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: Chong Yidong
Subject: Re: suggestion in query-replace is messed up after cancelation
Date: Fri, 26 May 2006 22:45:01 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     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.
>
> So how about adding an empty to-string as a way to preserve parity?

That would mean that after doing a C-g, the next time you do M-% the
suggested replacement the will be "LAST_FROM -> ", i.e., replacing the
last from-string entered with the empty string, instead of the last
"good" pair of values as the bug reporter wanted.  Maybe this is
acceptable behavior, I don't know.




reply via email to

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