mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(atomic-change-group): Prevent undo list truncation.
This commit is contained in:
parent
07b312cf3c
commit
cf1917060a
2 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue