# HG changeset patch # User Richard M. Stallman # Date 1200062590 0 # Node ID e9adfbf7d96ea6a78b6412bf892db1d6861a5292 # Parent 7e539002737217683d0c8de258bce63c2046ce23 (atomic-change-group): Prevent undo list truncation. diff -r 7e5390027372 -r e9adfbf7d96e lisp/subr.el --- a/lisp/subr.el Fri Jan 11 14:23:39 2008 +0000 +++ b/lisp/subr.el Fri Jan 11 14:43:10 2008 +0000 @@ -1802,6 +1802,10 @@ (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