Mark Thomas <mthomas(a)jprc.com> writes:
Suppose I isearch (successfully) for "foo" and press RET to
exit
isearch. Next I isearch (successfully) for "bar" and use C-g to
exit isearch. In b17, pressing C-s C-s would isearch for "bar"; in
b20, it searches for "foo".
Is this by design?
Yes. C-g cancels the incremental search, which means that it backs up
the point to where it was, and forgets the old search string.
The change happened because I merged isearch-mode.el with FSF Emacs.
I was careful not to destroy useful XEmacs features in the process,
but I think this behaviour is acceptable.
I notice that isearch-quit (bound by default to (ugh!) ESC ESC ESC)
remembers the most recent search string.
For me it doesn't. ESC ESC ESC is bound to isearch-cancel, and
behaves almost exactly the same as C-g, bound to isearch-abort.