bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31492: 26.1; query-replace-regexp undo fails in regexps w/o printabl


From: Tino Calancha
Subject: bug#31492: 26.1; query-replace-regexp undo fails in regexps w/o printable chars
Date: Sat, 19 May 2018 10:46:10 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)



On Fri, 18 May 2018, Eli Zaretskii wrote:

From: Tino Calancha <tino.calancha@gmail.com>
Date: Fri, 18 May 2018 23:22:13 +0900 (JST)
cc: Tino Calancha <tino.calancha@gmail.com>, 31492@debbugs.gnu.org

emacs -Q

< C-M-% \b RET foo RET TAB TAB TAB
U ; undo all replacements
;; Nothing is undid :-(

'<' stands for `beginning-of-buffer'.
Sorry, I'm still in the dark. Typing '<' inserts that character
Opps... Sorry!  That should read 'M-<'.
And the TAB's should read SPC.

The correct recipe is:

M-<
C-M-% \b RET foo RET SPC SPC
U
;; All 'foo' keep there :-(

This happen because the regexp "\b" has any printable character.
If we try instead:

M-<
C-M-% is\b RET foo RET SPC SPC
U
;; Now all 'foo' are gone :-)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]