]> git.eshelyaron.com Git - emacs.git/commitdiff
(atomic-change-group): Prevent undo list truncation.
authorRichard M. Stallman <rms@gnu.org>
Fri, 11 Jan 2008 14:44:15 +0000 (14:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 11 Jan 2008 14:44:15 +0000 (14:44 +0000)
lisp/ChangeLog
lisp/subr.el

index 3b5a19197bc307f2c8b9d860be133d1ddc00ec31..69f537f916c51282ba780dbe9c4199b36455b0bf 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-11  Richard Stallman  <rms@gnu.org>
+
+       * subr.el (atomic-change-group): Prevent undo list truncation.
+
 2008-01-11  Martin Rudalics  <rudalics@gmx.at>
 
        * cus-start.el (all): Add missing version entries.
index a9674bbba3662351dfa141ffd34dbc863a3a5864..b4bd4a0150c9c630b37479ccdf6aa3ef881b9fa6 100644 (file)
@@ -1802,6 +1802,10 @@ user can undo the change normally."
   (let ((handle (make-symbol "--change-group-handle--"))
        (success (make-symbol "--change-group-success--")))
     `(let ((,handle (prepare-change-group))
+          ;; Don't truncate any undo data in the middle of this.
+          (undo-outer-limit nil)
+          (undo-limit most-positive-fixnum)
+          (undo-strong-limit most-positive-fixnum)
           (,success nil))
        (unwind-protect
           (progn