aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c
index b664cf3c61f..bf10de6e502 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -73,7 +73,7 @@ record_insert (beg, length)
73 && INTEGERP (XCDR (elt)) 73 && INTEGERP (XCDR (elt))
74 && XINT (XCDR (elt)) == beg) 74 && XINT (XCDR (elt)) == beg)
75 { 75 {
76 XSETINT (XCDR (elt), beg + length); 76 XSETCDR (elt, make_number (beg + length));
77 return; 77 return;
78 } 78 }
79 } 79 }
@@ -273,7 +273,7 @@ but another undo command will undo to the previous boundary.")
273 { 273 {
274 /* If we have preallocated the cons cell to use here, 274 /* If we have preallocated the cons cell to use here,
275 use that one. */ 275 use that one. */
276 XCDR (pending_boundary) = current_buffer->undo_list; 276 XSETCDR (pending_boundary, current_buffer->undo_list);
277 current_buffer->undo_list = pending_boundary; 277 current_buffer->undo_list = pending_boundary;
278 pending_boundary = Qnil; 278 pending_boundary = Qnil;
279 } 279 }
@@ -378,7 +378,7 @@ truncate_undo_list (list, minsize, maxsize)
378 /* Truncate at the boundary where we decided to truncate. */ 378 /* Truncate at the boundary where we decided to truncate. */
379 if (!NILP (last_boundary)) 379 if (!NILP (last_boundary))
380 { 380 {
381 XCDR (last_boundary) = Qnil; 381 XSETCDR (last_boundary, Qnil);
382 return list; 382 return list;
383 } 383 }
384 else 384 else