emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change 2c73646: u


From: Phillip Lord
Subject: [Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change 2c73646: undo resets undo-last-boundary.
Date: Fri, 16 Oct 2015 20:37:29 +0000

branch: fix/no-undo-boundary-on-secondary-buffer-change
commit 2c73646956cdd7dfcc4cf30615db3f9bd54614ba
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>

    undo resets undo-last-boundary.
---
 lisp/simple.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 03982a7..a2421df 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2244,7 +2244,10 @@ as an argument limits undo to changes within the current 
region."
     ;; the next command should not be a "consecutive undo".
     ;; So set `this-command' to something other than `undo'.
     (setq this-command 'undo-start)
-
+    ;; We need to set `undo-last-boundary' to nil as we are about to
+    ;; delete the last boundary, so we want to not assume anything about
+    ;; the boundary before this one
+    (setq undo-last-boundary nil)
     (unless (and (eq last-command 'undo)
                 (or (eq pending-undo-list t)
                     ;; If something (a timer or filter?) changed the buffer



reply via email to

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