diff options
| author | Karl Heuer | 1994-10-04 12:28:40 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 12:28:40 +0000 |
| commit | 552bdbcf7114b65201f8a6c169837dcfb255f892 (patch) | |
| tree | dba0a297d7c2c33a0d8738406bcafc1156b6a2ce /src/undo.c | |
| parent | c8a4fc3d27dcf7022b77e8e974e14e44edb7db79 (diff) | |
| download | emacs-552bdbcf7114b65201f8a6c169837dcfb255f892.tar.gz emacs-552bdbcf7114b65201f8a6c169837dcfb255f892.zip | |
(record_insert, record_delete, record_first_change, record_property_change):
Use new accessor macros instead of calling XSET directly.
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/undo.c b/src/undo.c index abd5adbd30c..be6d5062422 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -55,7 +55,7 @@ record_insert (beg, length) | |||
| 55 | 55 | ||
| 56 | if (current_buffer != XBUFFER (last_undo_buffer)) | 56 | if (current_buffer != XBUFFER (last_undo_buffer)) |
| 57 | Fundo_boundary (); | 57 | Fundo_boundary (); |
| 58 | XSET (last_undo_buffer, Lisp_Buffer, current_buffer); | 58 | XSETBUFFER (last_undo_buffer, current_buffer); |
| 59 | 59 | ||
| 60 | if (MODIFF <= current_buffer->save_modified) | 60 | if (MODIFF <= current_buffer->save_modified) |
| 61 | record_first_change (); | 61 | record_first_change (); |
| @@ -77,7 +77,7 @@ record_insert (beg, length) | |||
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | lbeg = beg; | 79 | lbeg = beg; |
| 80 | XSET (lend, Lisp_Int, XINT (beg) + XINT (length)); | 80 | XSETINT (lend, XINT (beg) + XINT (length)); |
| 81 | current_buffer->undo_list = Fcons (Fcons (lbeg, lend), | 81 | current_buffer->undo_list = Fcons (Fcons (lbeg, lend), |
| 82 | current_buffer->undo_list); | 82 | current_buffer->undo_list); |
| 83 | } | 83 | } |
| @@ -100,7 +100,7 @@ record_delete (beg, length) | |||
| 100 | 100 | ||
| 101 | if (current_buffer != XBUFFER (last_undo_buffer)) | 101 | if (current_buffer != XBUFFER (last_undo_buffer)) |
| 102 | Fundo_boundary (); | 102 | Fundo_boundary (); |
| 103 | XSET (last_undo_buffer, Lisp_Buffer, current_buffer); | 103 | XSETBUFFER (last_undo_buffer, current_buffer); |
| 104 | 104 | ||
| 105 | at_boundary = (CONSP (current_buffer->undo_list) | 105 | at_boundary = (CONSP (current_buffer->undo_list) |
| 106 | && NILP (XCONS (current_buffer->undo_list)->car)); | 106 | && NILP (XCONS (current_buffer->undo_list)->car)); |
| @@ -109,7 +109,7 @@ record_delete (beg, length) | |||
| 109 | record_first_change (); | 109 | record_first_change (); |
| 110 | 110 | ||
| 111 | if (point == beg + length) | 111 | if (point == beg + length) |
| 112 | XSET (sbeg, Lisp_Int, -beg); | 112 | XSETINT (sbeg, -beg); |
| 113 | else | 113 | else |
| 114 | XFASTINT (sbeg) = beg; | 114 | XFASTINT (sbeg) = beg; |
| 115 | XFASTINT (lbeg) = beg; | 115 | XFASTINT (lbeg) = beg; |
| @@ -152,7 +152,7 @@ record_first_change () | |||
| 152 | 152 | ||
| 153 | if (current_buffer != XBUFFER (last_undo_buffer)) | 153 | if (current_buffer != XBUFFER (last_undo_buffer)) |
| 154 | Fundo_boundary (); | 154 | Fundo_boundary (); |
| 155 | XSET (last_undo_buffer, Lisp_Buffer, current_buffer); | 155 | XSETBUFFER (last_undo_buffer, current_buffer); |
| 156 | 156 | ||
| 157 | XFASTINT (high) = (current_buffer->modtime >> 16) & 0xffff; | 157 | XFASTINT (high) = (current_buffer->modtime >> 16) & 0xffff; |
| 158 | XFASTINT (low) = current_buffer->modtime & 0xffff; | 158 | XFASTINT (low) = current_buffer->modtime & 0xffff; |
| @@ -190,8 +190,8 @@ record_property_change (beg, length, prop, value, buffer) | |||
| 190 | if (MODIFF <= current_buffer->save_modified) | 190 | if (MODIFF <= current_buffer->save_modified) |
| 191 | record_first_change (); | 191 | record_first_change (); |
| 192 | 192 | ||
| 193 | XSET (lbeg, Lisp_Int, beg); | 193 | XSETINT (lbeg, beg); |
| 194 | XSET (lend, Lisp_Int, beg + length); | 194 | XSETINT (lend, beg + length); |
| 195 | entry = Fcons (Qnil, Fcons (prop, Fcons (value, Fcons (lbeg, lend)))); | 195 | entry = Fcons (Qnil, Fcons (prop, Fcons (value, Fcons (lbeg, lend)))); |
| 196 | current_buffer->undo_list = Fcons (entry, current_buffer->undo_list); | 196 | current_buffer->undo_list = Fcons (entry, current_buffer->undo_list); |
| 197 | 197 | ||