[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37287: 26.3.50; query-replace-regexp undo does not update next-repla
From: |
Tino Calancha |
Subject: |
bug#37287: 26.3.50; query-replace-regexp undo does not update next-replacement |
Date: |
Mon, 09 Sep 2019 08:26:34 +0200 |
> emacs -Q
> C-x b foo RET
> M-: (insert "foo-1\nfoo-2\nfoo-3") RET
> M-<
> C-M-% \([0-9]\) RET
> \,(format "%d" (1+ (string-to-number \1))) RET
> SPC
> SPC
> U
> SPC
> q
>
> ;; buffer contains
> "foo-4\nfoo-2\nfoo-3"
> ;; expected
> "foo-2\nfoo-2\nfoo-3"
Fixed in emacs-26 branch with commit
'query-replace-regexp undo: Update next-replacement after undo'
(30c4f35a6fc8a6507930923766c3126ac1c2063f)