[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change 5ca311b 2/
From: |
Phillip Lord |
Subject: |
[Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change 5ca311b 2/5: New variable "undo-buffer-undoably-changed". |
Date: |
Tue, 15 Sep 2015 15:21:30 +0000 |
branch: fix/no-undo-boundary-on-secondary-buffer-change
commit 5ca311b85bc9efc5b2817b43db0a21c207952624
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>
New variable "undo-buffer-undoably-changed".
---
lisp/simple.el | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index c0e1f07..7e6d84a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2215,6 +2215,12 @@ A redo record for ordinary undo maps to the following
(earlier) undo.")
(defvar undo-no-redo nil
"If t, `undo' doesn't go through redo entries.")
+(defvar-local undo-buffer-undoably-changed nil
+ "Non-nil means that that the buffer has had a recent undo-able change.
+
+Recent means since the value of this variable was last set explicitly to nil,
+usually as part of the undo machinary.")
+
(defvar pending-undo-list nil
"Within a run of consecutive undo commands, list remaining to be undone.
If t, we undid all the way to the end of it.")