- Subject: Re: filter buffer and/or region
- From: Jerry A! <jerry@xxxxxxxxxxx>
- Date: Tue, 23 Mar 2004 03:15:21 -0500
On Tue, Mar 23, 2004 at 08:38:38AM +0100, Guenter Milde wrote:
: On Tue, Mar 23, 2004 at 12:37:24AM -0500, Jerry A! wrote:
: > I'm doing a let of editing where I need to do some complex regex
: > search and replacing. 'replace_cmd()' is too limited for what I need
: > to do.
:
: There is a regexp-replace command
: M-x query_replace_match
: With (the extended) cua-emulation it is on Ctrl-F P, try Help>Show_Key
: query_replace_match to find out what it is bound to in your setting.
:
: Jed's regexps are somewhat limited in relation to perl or sed, so the
: question is still of interest:
Exactly. 'query_replace_match' won't work for me b/c I need to use
case conversions (\U, \L) in my regexps.
:
: > I'm curious, is there some way to run a buffer or region through an
: > external filter (sed/awk/perl/etc...) and have the transformation take
: > place inline?
: >
: > Ex, mark a region -> filter region -> replace original w/new
:
: With the ishell mode from jedmodes.sf.net/mode/ishell comes a command
: shell_cmd_on_region that can do what you want:
:
: SYNOPSIS
: Save region to a temp file and run a command on it
Thank you!!! I totally glossed over this when I was checking out
jedmodes.sf.net earlier today.
Suggestion for next version of ishell.sl. Please consider having it
clean up after itself. Those temp files are really annoying to clean
up after-the-fact. :)
--Jerry
--
"I'm going to try speaking some reckless words,
and I want you to try to listen recklessly."
-- Chuang Tzu
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2004 date index]
[2004 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]