4 ms·
The takeaway for me (since I use Emacs in a console and not in GUI mode) is `C-x n n` and `C-x n w`. Looks like it could be pretty useful for `M-x replace-regex
by jcsalterego 16y ago
The takeaway for me (since I use Emacs in a console and not in GUI mode) is `C-x n n` and `C-x n w`. Looks like it could be pretty useful for `M-x replace-regexp` (if I don't want to use query-replace-regexp, and I've got a lot of searching and replacing to do in a particular region.
- s1rech 16y agoindeed. When you want to do a quick and dirty 'replace-string', this command looks very good. I've ended up copying the whole region to scratch to make my edits more than once.
- ramen 16y agoIf 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.
- jcsalterego 16y agoI 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 agoUndo also works on the region, which is amazingly useful.