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 f43c966 3/


From: Phillip Lord
Subject: [Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change f43c966 3/5: New hook undo-first-undoable-change-hook.
Date: Tue, 15 Sep 2015 15:21:30 +0000

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

    New hook undo-first-undoable-change-hook.
---
 lisp/simple.el |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 7e6d84a..27ec66d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2221,6 +2221,13 @@ A redo record for ordinary undo maps to the following 
(earlier) undo.")
 Recent means since the value of this variable was last set explicitly to nil,
 usually as part of the undo machinary.")
 
+(defvar undo-first-undoable-change-hook nil
+  "Normal hook run when a buffer has its first recent undo-able change.
+
+This hook will be run with `current-buffer' as the buffer that
+has changed. Recent means since the value of `undo-buffer-undoably-changed'
+was last set of nil.")
+
 (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.")



reply via email to

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