mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
* src/undo.c (scrub_undo_list): If possible, avoid mutation.
This commit is contained in:
parent
8f04fd5d86
commit
195d68f101
|
|
@ -193,7 +193,8 @@ scrub_undo_list (Lisp_Object list)
|
|||
Lisp_Object head = Fnthcdr (make_fixnum (4), entry);
|
||||
Lisp_Object pairs
|
||||
= scrub_id_offset_pairs (htab, XCDR (head));
|
||||
XSETCDR (head, pairs);
|
||||
if (pairs != XCDR (head))
|
||||
XSETCDR (head, pairs);
|
||||
drop = NILP (pairs);
|
||||
}
|
||||
if (drop)
|
||||
|
|
|
|||
Loading…
Reference in a new issue