* combine isearch-forward-regexp and query-replace-regexp
@ 2005-02-08 13:05 Hans-Christoph Wirth
2005-02-08 14:15 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: Hans-Christoph Wirth @ 2005-02-08 13:05 UTC (permalink / raw)
I usually fail to construct the correct regexp suitable for
query-replace-regexp at first attempt.
isearch-forward-regexp does a nice job since it highlights all
matching positions on the fly.
If I composed the right regexp with isearch-forward-regexp, how
can I supply it as an argument to query-replace-regexp? M-p does
not help.
H-C
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: combine isearch-forward-regexp and query-replace-regexp
2005-02-08 13:05 combine isearch-forward-regexp and query-replace-regexp Hans-Christoph Wirth
@ 2005-02-08 14:15 ` Stefan Monnier
2005-02-09 14:07 ` Hans-Christoph Wirth
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2005-02-08 14:15 UTC (permalink / raw)
> If I composed the right regexp with isearch-forward-regexp, how
> can I supply it as an argument to query-replace-regexp? M-p does
> not help.
In Emacs-CVS, if you hit M-% from isearch, it'll do that for
you automatically.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: combine isearch-forward-regexp and query-replace-regexp
2005-02-08 14:15 ` Stefan Monnier
@ 2005-02-09 14:07 ` Hans-Christoph Wirth
2005-02-09 14:25 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Hans-Christoph Wirth @ 2005-02-09 14:07 UTC (permalink / raw)
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> > If I composed the right regexp with isearch-forward-regexp, how
> > can I supply it as an argument to query-replace-regexp? M-p does
> > not help.
>
> In Emacs-CVS, if you hit M-% from isearch, it'll do that for
> you automatically.
Thanks. So I guess there's no solution I you are bound to non-CVS
versions ...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: combine isearch-forward-regexp and query-replace-regexp
2005-02-09 14:07 ` Hans-Christoph Wirth
@ 2005-02-09 14:25 ` Peter Dyballa
2005-02-09 18:09 ` Thien-Thi Nguyen
2005-02-10 1:23 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2005-02-09 14:25 UTC (permalink / raw)
Am 09.02.2005 um 14:07 schrieb Hans-Christoph Wirth:
> So I guess there's no solution I you are bound to non-CVS versions ...
There could be another one, I didn't check: do at least one search with
the expression you foud might suit your needs. Finish searching and do
a 'repeat-complex-command' (bound to a few keys). In the mini-buffer
you'll see your expression, C-a C-k C-g and it should be in your
kill-ring!
--
Greetings
Pete
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: combine isearch-forward-regexp and query-replace-regexp
2005-02-09 14:07 ` Hans-Christoph Wirth
2005-02-09 14:25 ` Peter Dyballa
@ 2005-02-09 18:09 ` Thien-Thi Nguyen
2005-02-10 1:23 ` Stefan Monnier
2 siblings, 0 replies; 7+ messages in thread
From: Thien-Thi Nguyen @ 2005-02-09 18:09 UTC (permalink / raw)
Hans-Christoph Wirth <hcw@despammed.com> writes:
> Thanks. So I guess there's no solution I you are bound to non-CVS
> versions ...
one solution is to wait for a future (or past ;-)
emacs release.
thi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: combine isearch-forward-regexp and query-replace-regexp
2005-02-09 14:07 ` Hans-Christoph Wirth
2005-02-09 14:25 ` Peter Dyballa
2005-02-09 18:09 ` Thien-Thi Nguyen
@ 2005-02-10 1:23 ` Stefan Monnier
2005-02-10 18:13 ` Hans-Christoph Wirth
2 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2005-02-10 1:23 UTC (permalink / raw)
>> > If I composed the right regexp with isearch-forward-regexp, how
>> > can I supply it as an argument to query-replace-regexp? M-p does
>> > not help.
>>
>> In Emacs-CVS, if you hit M-% from isearch, it'll do that for
>> you automatically.
> Thanks. So I guess there's no solution I you are bound to non-CVS
> versions ...
Well you can either define this isearch M-% thingy (IIRC it was originally
posted in this newsgroup before being integrated in Emacs-CVS), or you can
go the low-tech route:
C-s M-p C-k C-g
M-% C-y
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: combine isearch-forward-regexp and query-replace-regexp
2005-02-10 1:23 ` Stefan Monnier
@ 2005-02-10 18:13 ` Hans-Christoph Wirth
0 siblings, 0 replies; 7+ messages in thread
From: Hans-Christoph Wirth @ 2005-02-10 18:13 UTC (permalink / raw)
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> Well you can either define this isearch M-% thingy (IIRC it was originally
> posted in this newsgroup before being integrated in Emacs-CVS), or you can
> go the low-tech route:
>
> C-s M-p C-k C-g
> M-% C-y
Thanks. This comes close to what I need. I made the mistake to leave
the initial isearch with C-g. When I leave it with RET, the contents
gets stored in the ring buffer, and can be invoked with M-p then.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-02-10 18:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08 13:05 combine isearch-forward-regexp and query-replace-regexp Hans-Christoph Wirth
2005-02-08 14:15 ` Stefan Monnier
2005-02-09 14:07 ` Hans-Christoph Wirth
2005-02-09 14:25 ` Peter Dyballa
2005-02-09 18:09 ` Thien-Thi Nguyen
2005-02-10 1:23 ` Stefan Monnier
2005-02-10 18:13 ` Hans-Christoph Wirth
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.