[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/substitute bc4df178a5 1/2: undo doesn't change point
From: |
ELPA Syncer |
Subject: |
[elpa] externals/substitute bc4df178a5 1/2: undo doesn't change point |
Date: |
Tue, 17 Jan 2023 13:58:22 -0500 (EST) |
branch: externals/substitute
commit bc4df178a53e2177ef6bd81460450ba2c988a843
Author: Ed Tavinor <edtavinor@posteo.de>
Commit: Protesilaos Stavrou <info@protesilaos.com>
undo doesn't change point
---
substitute.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/substitute.el b/substitute.el
index 6864d3e8cb..e0295d3e72 100644
--- a/substitute.el
+++ b/substitute.el
@@ -213,6 +213,8 @@ If optional SCOPE is equal to `above', then adjust for a
reverse
motion."
(when-let ((targets substitute--last-matches))
(save-excursion
+ (when (listp buffer-undo-list)
+ (push (point) buffer-undo-list))
(save-restriction
(mapcar (lambda (target)
(let ((ps (substitute--beg-end (nth 1 target) (nth 2
target)))