]> git.eshelyaron.com Git - emacs.git/commit
Fix problems resulting from modification of the undo list
authorPo Lu <luangruo@yahoo.com>
Tue, 6 Jun 2023 13:00:44 +0000 (21:00 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 6 Jun 2023 13:00:44 +0000 (21:00 +0800)
commitbf28b019a85fcc4e16bc7ecad6304c30e48a3223
tree0fc53c2707e0aab410ef20399fcc2ac1b2b71990
parent05c2be28a3e97bd920d0bf8c8b59ec682a420cce
Fix problems resulting from modification of the undo list

* doc/lispref/text.texi (Atomic Changes): Describe what not to
do inside an atomic change group.
* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance):
Don't call `delete-char'; that edits the undo list by removing
boundary markers.
* lisp/subr.el (atomic-change-group, prepare-change-group): Warn
against modifying the undo list inside.
doc/lispref/text.texi
lisp/elec-pair.el
lisp/subr.el