comparison lisp/simple.el @ 73190:181f8fa16272

(undo-more): When undo information for the region is exhausted, say "No further undo information FOR REGION".
author Eli Zaretskii <eliz@gnu.org>
date Sat, 30 Sep 2006 09:49:26 +0000
parents 1b3313de1c4c
children 4a27744452bb
comparison
equal deleted inserted replaced
73189:20b963c49703 73190:181f8fa16272
1499 "Undo back N undo-boundaries beyond what was already undone recently. 1499 "Undo back N undo-boundaries beyond what was already undone recently.
1500 Call `undo-start' to get ready to undo recent changes, 1500 Call `undo-start' to get ready to undo recent changes,
1501 then call `undo-more' one or more times to undo them." 1501 then call `undo-more' one or more times to undo them."
1502 (or (listp pending-undo-list) 1502 (or (listp pending-undo-list)
1503 (error (concat "No further undo information" 1503 (error (concat "No further undo information"
1504 (and transient-mark-mode mark-active 1504 (and undo-in-region " for region"))))
1505 " for region"))))
1506 (let ((undo-in-progress t)) 1505 (let ((undo-in-progress t))
1507 (setq pending-undo-list (primitive-undo n pending-undo-list)) 1506 (setq pending-undo-list (primitive-undo n pending-undo-list))
1508 (if (null pending-undo-list) 1507 (if (null pending-undo-list)
1509 (setq pending-undo-list t)))) 1508 (setq pending-undo-list t))))
1510 1509