the case: Let's say I did a query-replace is foo1 with foo2, and now I want to query-replace foo2 with foo1.
In earlier versions of emacs (emacs 24, and every other version I remember), each previous entry into
query-replace could be accessed via the up-arrow:
I used to go ESC-% (
query-replace), up-arrow ** x1, it then shows ("foo2"), RETURN, then up-arrow x3 ("foo1"), RETURN.
In my new Emacs (emacs 25), up-arrow gives me the entire previous
query-replace ("foo1 -> foo2"), instead of each field separately.
So I've got to do a rather convoluted edit which involves:
- putting either foo1 or foo2 onto the clipboard. e.g. put foo1 onto clip board (which involves many keystrokes if foo1 is long and complicated)
- 3 x delete (to remove the arrow and spaces),
- RETURN ctrl-Y, RETURN.
I've no idea why emacs 25 "improved" `query-replace up-arrow like that, but I find it a pain.
Is there any way to get the old, simpler, query-replace up-arrow functionality?