diff options
| author | Alan Mackenzie | 2008-10-21 21:14:04 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2008-10-21 21:14:04 +0000 |
| commit | b553f6858c6edab5f4e1494272d455adc0d2668e (patch) | |
| tree | 9af7f410e8a8c30789ee8ce69568db98fbdfd107 | |
| parent | 0182609c22038fcc5be8a6b5e40f760847272ff7 (diff) | |
| download | emacs-b553f6858c6edab5f4e1494272d455adc0d2668e.tar.gz emacs-b553f6858c6edab5f4e1494272d455adc0d2668e.zip | |
(undo-more): Add comment explaining the operations on pending-undo-list
and buffer-undo-list.
| -rw-r--r-- | lisp/simple.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 7cd321564d9..6ebbd71cdbf 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1725,6 +1725,9 @@ then call `undo-more' one or more times to undo them." | |||
| 1725 | (error (concat "No further undo information" | 1725 | (error (concat "No further undo information" |
| 1726 | (and undo-in-region " for region")))) | 1726 | (and undo-in-region " for region")))) |
| 1727 | (let ((undo-in-progress t)) | 1727 | (let ((undo-in-progress t)) |
| 1728 | ;; Note: The following, while pulling elements off | ||
| 1729 | ;; `pending-undo-list' will call primitive change functions which | ||
| 1730 | ;; will push more elements onto `buffer-undo-list'. | ||
| 1728 | (setq pending-undo-list (primitive-undo n pending-undo-list)) | 1731 | (setq pending-undo-list (primitive-undo n pending-undo-list)) |
| 1729 | (if (null pending-undo-list) | 1732 | (if (null pending-undo-list) |
| 1730 | (setq pending-undo-list t)))) | 1733 | (setq pending-undo-list t)))) |