From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: How, in a QUERY-REPLACE-regexp, to match a RANGE of lines?
Date: Fri, 19 Feb 2010 05:59:08 +0000 (UTC) [thread overview]
Message-ID: <hll9bc$f9e$1@reader2.panix.com> (raw)
In-Reply-To: mailman.1412.1266448375.14305.help-gnu-emacs@gnu.org
In article <mailman.1412.1266448375.14305.help-gnu-emacs@gnu.org>,
Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
>
>Am 17.02.2010 um 21:22 schrieb David Combs:
>
>> subj: How, in a QUERY-REPLACE-regexp, to match a RANGE of lines?
>
>Activate Active Region Highlight, mark the region, perform regexp.
I'm not sure I really understand that.
From one interpretation, it means find the first line, save it's start-location in
register x, say, then search down for the end line, go to its end, C-x space,
go to register x, C-x C-x, C-w, and it's gone.
From another interpretation, well, I don't understand any of it.
Your "commands" are:
Activate
Active region
Highlite it somehow
then "mark" the region it somehow (as above in first interpretation?),
and THEN and ONLY then do some regexp stuff.
Peter, I haven't a clue what you're talking about.
Thanks for the work, but sorry, I understand not one piece of it.
David
PS: oh, I haven't a clue how this would interact with query-replace. What,
turn the first arg (regexp) into a function which goes out and DOES some
stuff (side-effects?), then RETURNS a regexp, which is what Q-R will
finally receive as its first arg?
next prev parent reply other threads:[~2010-02-19 5:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 20:22 How, in a QUERY-REPLACE-regexp, to match a RANGE of lines? David Combs
2010-02-17 23:12 ` Peter Dyballa
[not found] ` <mailman.1412.1266448375.14305.help-gnu-emacs@gnu.org>
2010-02-19 5:59 ` David Combs [this message]
2010-02-19 9:25 ` Peter Dyballa
2010-02-19 10:04 ` Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hll9bc$f9e$1@reader2.panix.com' \
--to=dkcombs@panix.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.