aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2008-01-11 14:44:15 +0000
committerRichard M. Stallman2008-01-11 14:44:15 +0000
commitcf1917060aa30a20ef40aa296497c4a4ebeeb9f1 (patch)
treec7424f1854c0079e1207b8344a4093440b48de9e
parent07b312cf3c2e26482d1f5cf4d2c0d57d762f78fd (diff)
downloademacs-cf1917060aa30a20ef40aa296497c4a4ebeeb9f1.tar.gz
emacs-cf1917060aa30a20ef40aa296497c4a4ebeeb9f1.zip
(atomic-change-group): Prevent undo list truncation.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el4
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3b5a19197bc..69f537f916c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-01-11 Richard Stallman <rms@gnu.org>
2
3 * subr.el (atomic-change-group): Prevent undo list truncation.
4
12008-01-11 Martin Rudalics <rudalics@gmx.at> 52008-01-11 Martin Rudalics <rudalics@gmx.at>
2 6
3 * cus-start.el (all): Add missing version entries. 7 * cus-start.el (all): Add missing version entries.
diff --git a/lisp/subr.el b/lisp/subr.el
index a9674bbba36..b4bd4a0150c 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1802,6 +1802,10 @@ user can undo the change normally."
1802 (let ((handle (make-symbol "--change-group-handle--")) 1802 (let ((handle (make-symbol "--change-group-handle--"))
1803 (success (make-symbol "--change-group-success--"))) 1803 (success (make-symbol "--change-group-success--")))
1804 `(let ((,handle (prepare-change-group)) 1804 `(let ((,handle (prepare-change-group))
1805 ;; Don't truncate any undo data in the middle of this.
1806 (undo-outer-limit nil)
1807 (undo-limit most-positive-fixnum)
1808 (undo-strong-limit most-positive-fixnum)
1805 (,success nil)) 1809 (,success nil))
1806 (unwind-protect 1810 (unwind-protect
1807 (progn 1811 (progn