Commit b553f685 authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

(undo-more): Add comment explaining the operations on pending-undo-list

and buffer-undo-list.
parent 0182609c
......@@ -1725,6 +1725,9 @@ then call `undo-more' one or more times to undo them."
(error (concat "No further undo information"
(and undo-in-region " for region"))))
(let ((undo-in-progress t))
;; Note: The following, while pulling elements off
;; `pending-undo-list' will call primitive change functions which
;; will push more elements onto `buffer-undo-list'.
(setq pending-undo-list (primitive-undo n pending-undo-list))
(if (null pending-undo-list)
(setq pending-undo-list t))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment