When using query-replace (with or without regexp) in emacs, the previous query replacement pair is remembered and offered by default the next time query-replace is called. But I would like to be able to edit this default replacement with something like this without entering a whole new option.
Like this:
in the section of a long document I execute a replacement request
M-% antidisestablishmentarianism-A [return] antidisestablismentarianism-B
further in the same document that I want to do
M-% antidisestablishmentarianism-A [return] antidisestablismentarianism-C
The M-% team alone gives
Query-replace (default antidisestablishmentarianism-A -> antidisestablismentarianism-B):
Is there any magic key combination that allows me to change this final “B” to “C” without redialing?
source share