aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/simple.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index a502448b31c..bc3e7b83b8d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2884,6 +2884,10 @@ REASON describes the reason that the boundary is being added; see
2884 "Check recently changed buffers and add a boundary if necessary. 2884 "Check recently changed buffers and add a boundary if necessary.
2885REASON describes the reason that the boundary is being added; see 2885REASON describes the reason that the boundary is being added; see
2886`undo-last-boundary' for more information." 2886`undo-last-boundary' for more information."
2887 ;; (Bug #23785) All commands should ensure that there is an undo
2888 ;; boundary whether they have changed the current buffer or not.
2889 (when (eq cause 'command)
2890 (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer)))
2887 (dolist (b undo-auto--undoably-changed-buffers) 2891 (dolist (b undo-auto--undoably-changed-buffers)
2888 (when (buffer-live-p b) 2892 (when (buffer-live-p b)
2889 (with-current-buffer b 2893 (with-current-buffer b