this post was submitted on 11 Nov 2023
1 points (100.0% liked)

Emacs

1927 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
 

Why does replace-regexp backwards work so differently?

C-u - M-x replace-regexp \w+

The - prefix arg replaces backwards but it hits one char at a time, as if the plus sign weren't there. The same replacement forwards (without the prefix arg) does hit one word at a time. What's going on, @[email protected]?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here