bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: replace history


From: Juri Linkov
Subject: Re: replace history
Date: Thu, 27 Dec 2007 22:12:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>   > In Emacs 22 it's great the way that you are given the last
>   > search/replace pair as a default for query-replace, but is there a way
>   > to get a history of pairs rather than alternating search item/replace
>   > item?
>
> There isn't. I would also love to have such a feature. Bound for example
> to C-M-p and C-M-n

How do you imagine it could insert two separate history elements for
from-string and to-string simultaneously?  Maybe, C-M-p typed in the
from-string minibuffer should switch to the to-string reading, and
typing C-M-p in the to-string minibuffer should also change the prompt
that displays the from-string while reading the to-string, e.g.

Query replace: <C-M-p>

Query replace from1 with: to1 <C-M-p>

Query replace from2 with: to2 <C-M-p>

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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