diff options
| author | Richard M. Stallman | 1998-07-09 04:49:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-09 04:49:24 +0000 |
| commit | 52d1110dca4467773c37693467c666e838836799 (patch) | |
| tree | 92760de9f04a06ea7e3229cb6d8415b96d5943ef | |
| parent | 1ed79e4156c16700b01dbed51f5cbdc53c72b4d4 (diff) | |
| download | emacs-52d1110dca4467773c37693467c666e838836799.tar.gz emacs-52d1110dca4467773c37693467c666e838836799.zip | |
(undo-in-progress): New variable.
(undo-more): Bind it to t.
| -rw-r--r-- | lisp/simple.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index ca083f963d5..e5fa2386320 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -849,13 +849,18 @@ Likewise in Transient Mark mode when the mark is active." | |||
| 849 | (defvar pending-undo-list nil | 849 | (defvar pending-undo-list nil |
| 850 | "Within a run of consecutive undo commands, list remaining to be undone.") | 850 | "Within a run of consecutive undo commands, list remaining to be undone.") |
| 851 | 851 | ||
| 852 | (defvar undo-in-progress nil | ||
| 853 | "Non-nil while performing an undo. | ||
| 854 | Some change-hooks test this variable to do something different.") | ||
| 855 | |||
| 852 | (defun undo-more (count) | 856 | (defun undo-more (count) |
| 853 | "Undo back N undo-boundaries beyond what was already undone recently. | 857 | "Undo back N undo-boundaries beyond what was already undone recently. |
| 854 | Call `undo-start' to get ready to undo recent changes, | 858 | Call `undo-start' to get ready to undo recent changes, |
| 855 | then call `undo-more' one or more times to undo them." | 859 | then call `undo-more' one or more times to undo them." |
| 856 | (or pending-undo-list | 860 | (or pending-undo-list |
| 857 | (error "No further undo information")) | 861 | (error "No further undo information")) |
| 858 | (setq pending-undo-list (primitive-undo count pending-undo-list))) | 862 | (let ((undo-in-progress t)) |
| 863 | (setq pending-undo-list (primitive-undo count pending-undo-list)))) | ||
| 859 | 864 | ||
| 860 | ;; Deep copy of a list | 865 | ;; Deep copy of a list |
| 861 | (defun undo-copy-list (list) | 866 | (defun undo-copy-list (list) |