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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -