diff options
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/undo.c b/src/undo.c index 7e121e8b27d..7e999fe5120 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -30,7 +30,7 @@ static struct buffer *last_undo_buffer; | |||
| 30 | 30 | ||
| 31 | /* Position of point last time we inserted a boundary. */ | 31 | /* Position of point last time we inserted a boundary. */ |
| 32 | static struct buffer *last_boundary_buffer; | 32 | static struct buffer *last_boundary_buffer; |
| 33 | static EMACS_INT last_boundary_position; | 33 | static ptrdiff_t last_boundary_position; |
| 34 | 34 | ||
| 35 | Lisp_Object Qinhibit_read_only; | 35 | Lisp_Object Qinhibit_read_only; |
| 36 | 36 | ||
| @@ -51,7 +51,7 @@ static Lisp_Object pending_boundary; | |||
| 51 | undo record that will be added just after this command terminates. */ | 51 | undo record that will be added just after this command terminates. */ |
| 52 | 52 | ||
| 53 | static void | 53 | static void |
| 54 | record_point (EMACS_INT pt) | 54 | record_point (ptrdiff_t pt) |
| 55 | { | 55 | { |
| 56 | int at_boundary; | 56 | int at_boundary; |
| 57 | 57 | ||
| @@ -113,7 +113,7 @@ record_point (EMACS_INT pt) | |||
| 113 | because we don't need to record the contents.) */ | 113 | because we don't need to record the contents.) */ |
| 114 | 114 | ||
| 115 | void | 115 | void |
| 116 | record_insert (EMACS_INT beg, EMACS_INT length) | 116 | record_insert (ptrdiff_t beg, ptrdiff_t length) |
| 117 | { | 117 | { |
| 118 | Lisp_Object lbeg, lend; | 118 | Lisp_Object lbeg, lend; |
| 119 | 119 | ||
| @@ -148,7 +148,7 @@ record_insert (EMACS_INT beg, EMACS_INT length) | |||
| 148 | of the characters in STRING, at location BEG. */ | 148 | of the characters in STRING, at location BEG. */ |
| 149 | 149 | ||
| 150 | void | 150 | void |
| 151 | record_delete (EMACS_INT beg, Lisp_Object string) | 151 | record_delete (ptrdiff_t beg, Lisp_Object string) |
| 152 | { | 152 | { |
| 153 | Lisp_Object sbeg; | 153 | Lisp_Object sbeg; |
| 154 | 154 | ||
| @@ -176,7 +176,7 @@ record_delete (EMACS_INT beg, Lisp_Object string) | |||
| 176 | won't be inverted automatically by undoing the buffer modification. */ | 176 | won't be inverted automatically by undoing the buffer modification. */ |
| 177 | 177 | ||
| 178 | void | 178 | void |
| 179 | record_marker_adjustment (Lisp_Object marker, EMACS_INT adjustment) | 179 | record_marker_adjustment (Lisp_Object marker, ptrdiff_t adjustment) |
| 180 | { | 180 | { |
| 181 | if (EQ (BVAR (current_buffer, undo_list), Qt)) | 181 | if (EQ (BVAR (current_buffer, undo_list), Qt)) |
| 182 | return; | 182 | return; |
| @@ -199,7 +199,7 @@ record_marker_adjustment (Lisp_Object marker, EMACS_INT adjustment) | |||
| 199 | The replacement must not change the number of characters. */ | 199 | The replacement must not change the number of characters. */ |
| 200 | 200 | ||
| 201 | void | 201 | void |
| 202 | record_change (EMACS_INT beg, EMACS_INT length) | 202 | record_change (ptrdiff_t beg, ptrdiff_t length) |
| 203 | { | 203 | { |
| 204 | record_delete (beg, make_buffer_string (beg, beg + length, 1)); | 204 | record_delete (beg, make_buffer_string (beg, beg + length, 1)); |
| 205 | record_insert (beg, length); | 205 | record_insert (beg, length); |
| @@ -233,7 +233,7 @@ record_first_change (void) | |||
| 233 | for LENGTH characters starting at position BEG in BUFFER. */ | 233 | for LENGTH characters starting at position BEG in BUFFER. */ |
| 234 | 234 | ||
| 235 | void | 235 | void |
| 236 | record_property_change (EMACS_INT beg, EMACS_INT length, | 236 | record_property_change (ptrdiff_t beg, ptrdiff_t length, |
| 237 | Lisp_Object prop, Lisp_Object value, | 237 | Lisp_Object prop, Lisp_Object value, |
| 238 | Lisp_Object buffer) | 238 | Lisp_Object buffer) |
| 239 | { | 239 | { |
| @@ -308,11 +308,11 @@ truncate_undo_list (struct buffer *b) | |||
| 308 | { | 308 | { |
| 309 | Lisp_Object list; | 309 | Lisp_Object list; |
| 310 | Lisp_Object prev, next, last_boundary; | 310 | Lisp_Object prev, next, last_boundary; |
| 311 | int size_so_far = 0; | 311 | EMACS_INT size_so_far = 0; |
| 312 | 312 | ||
| 313 | /* Make sure that calling undo-outer-limit-function | 313 | /* Make sure that calling undo-outer-limit-function |
| 314 | won't cause another GC. */ | 314 | won't cause another GC. */ |
| 315 | int count = inhibit_garbage_collection (); | 315 | ptrdiff_t count = inhibit_garbage_collection (); |
| 316 | 316 | ||
| 317 | /* Make the buffer current to get its local values of variables such | 317 | /* Make the buffer current to get its local values of variables such |
| 318 | as undo_limit. Also so that Vundo_outer_limit_function can | 318 | as undo_limit. Also so that Vundo_outer_limit_function can |
| @@ -444,8 +444,8 @@ Return what remains of the list. */) | |||
| 444 | { | 444 | { |
| 445 | struct gcpro gcpro1, gcpro2; | 445 | struct gcpro gcpro1, gcpro2; |
| 446 | Lisp_Object next; | 446 | Lisp_Object next; |
| 447 | int count = SPECPDL_INDEX (); | 447 | ptrdiff_t count = SPECPDL_INDEX (); |
| 448 | register int arg; | 448 | register EMACS_INT arg; |
| 449 | Lisp_Object oldlist; | 449 | Lisp_Object oldlist; |
| 450 | int did_apply = 0; | 450 | int did_apply = 0; |
| 451 | 451 | ||