# HG changeset patch # User Kim F. Storm # Date 1107358998 0 # Node ID 385699a0ff014c173474a69b43cb164d944bdc29 # Parent 3ffcc76427cd06cbe1459c4a3585d885dba2b0a7 (Fprimitive_undo): Fix dummy apply undo entry. diff -r 3ffcc76427cd -r 385699a0ff01 src/undo.c --- a/src/undo.c Wed Feb 02 15:43:05 2005 +0000 +++ b/src/undo.c Wed Feb 02 15:43:18 2005 +0000 @@ -560,12 +560,13 @@ } cdr = Fcdr (cdr); apply1 (car, cdr); + /* Make sure this produces at least one undo entry, so the test in `undo' for continuing an undo series will work right. */ if (EQ (oldlist, current_buffer->undo_list)) current_buffer->undo_list - = Fcons (list2 (Qcdr, Qnil), current_buffer->undo_list); + = Fcons (list3 (Qapply, Qcdr, Qnil), current_buffer->undo_list); } else if (STRINGP (car) && INTEGERP (cdr)) {