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

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

Re: suggestion in query-replace is messed up after cancelation


From: Juri Linkov
Subject: Re: suggestion in query-replace is messed up after cancelation
Date: Thu, 25 May 2006 22:08:09 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>> 1) $ emacs -Q
>> 2) type football and C-a
>> 3) M-% foo RET bar RET y (this replaces the only occurence of foo)
>> 4) M-% (suggests foo -> bar) baz RET C-g
>> 5) M-% (suggests bar -> baz, while it should suggest foo -> bar)
>
> I think this can be fixed with the following patch to
> query-replace-read-to.  I can install it if people don't object.

Removing from-element from the history list is not a good solution.
Most often I type C-g in the to-element prompt, when instead
of typing a long to-element I need to switch to another buffer
and copy to-element from that buffer (to yank it later from the kill ring
to the to-element prompt).  After that I type M-% again, and definitely
don't want to re-type the from-element.  I need to get the previous
already entered from-element from the history by M-p in the
from-element's prompt.

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





reply via email to

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