Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ramen
· 16y ago · 0 comments
If you use transient-mark-mode (which is on by default these days), you can mark a region and then use replacement commands like query-replace (M-%) that affect just that region.
Comments
[–]
jcsalterego
16y ago
I had tried that before transient-mark-mode was on by default (Emacs 23?) and it didn't work, but turns out you are 100% correct.
Thanks ramen!
[–]
parbo
16y ago
Undo also works on the region, which is amazingly useful.