* incremental regexp replace
@ 2006-06-17 1:12 Ryan Krauss
0 siblings, 0 replies; 2+ messages in thread
From: Ryan Krauss @ 2006-06-17 1:12 UTC (permalink / raw)
If I use incremental regexp search as a way to figure out the correct
syntax for my regexp, is there an easy way to copy that regexp into
the kill-ring or something so that I can easily use it in a regexp
replace operation?
Thanks,
Ryan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: incremental regexp replace
[not found] <mailman.2959.1150506770.9609.help-gnu-emacs@gnu.org>
@ 2006-06-17 1:39 ` Johan Bockgård
0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2006-06-17 1:39 UTC (permalink / raw)
"Ryan Krauss" <ryanlists@gmail.com> writes:
> If I use incremental regexp search as a way to figure out the
> correct syntax for my regexp, is there an easy way to copy that
> regexp into the kill-ring or something so that I can easily use it
> in a regexp replace operation?
M-e lets you manipulate the search string in a regular minibuffer.
In Emacs 22 (CVS) you can drop into query-replace directly:
*** M-% typed in isearch mode invokes `query-replace' or
`query-replace-regexp' (depending on search mode) with the current
search string used as the string to replace.
(from etc/NEWS)
(Setting `query-replace-interactive' to a non-nil value makes
query-replace always use the last search string.)
--
Johan Bockgård
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-17 1:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-17 1:12 incremental regexp replace Ryan Krauss
[not found] <mailman.2959.1150506770.9609.help-gnu-emacs@gnu.org>
2006-06-17 1:39 ` Johan Bockgård
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).