diff options
| author | Ken Raeburn | 2001-10-16 09:09:51 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2001-10-16 09:09:51 +0000 |
| commit | f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f (patch) | |
| tree | 43eb51ff0ca4af1705387403827ef210098f2da8 /src/undo.c | |
| parent | 018ba359ab456f6a43f3acea0c15df616aa0ad02 (diff) | |
| download | emacs-f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f.tar.gz emacs-f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f.zip | |
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 6 |
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 |