[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query-replace in isearch

From: Juri Linkov
Subject: Re: query-replace in isearch
Date: Wed, 03 May 2006 23:27:32 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

> This reminds me of the fact that doing `query-replace' from isearch
> does not put `query-replace' in the complex command history. IMHO it
> should. i.e.: C-s FOO M-% BAR RET C-x ESC ESC should show the same
> thing as M-% FOO RET BAR RET C-x ESC ESC

Calling `query-replace' from isearch with using `call-interactive' would
add it with its arguments to the complex command history, but using
`call-interactive' is not feasible here, since isearch-query-replace calls
a low-level replacement function `perform-replace'.  So one way to
implement this I see is to use a new macro `history-push' that Kim
just proposed.  This is the third place where this macro would be useful.

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]