Edit the previous search string in emacs query-replace? -
when using query-replace (with or without regexp) in emacs, previous query-replace pair remembered , suggested default next time query-replace invoked. able edit default replacement similar without having type entire new variant.
like this:
in section of long document query-replace
m-% antidisestablishmentarianism-a [return] antidisestablismentarianism-b
later on in same document want do
m-% antidisestablishmentarianism-a [return] antidisestablismentarianism-c
the command m-% on own gives
query-replace (default antidisestablishmentarianism-a -> antidisestablismentarianism-b):
is there magic key combination makes possible change final "b" "c" without retyping?
yah, try m-p, sequence
m-% m-p [return] m-p [del] c [return]
Comments
Post a Comment