diff options
| author | Stefan Monnier | 2010-09-30 01:28:20 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-30 01:28:20 +0200 |
| commit | a01a7932080e8a6e7bc8472c58cefabcc2c37df3 (patch) | |
| tree | 94b28b19c8f1536e76ffe7d5826811b74a79e3a5 /src/undo.c | |
| parent | cc390e46c7ba95b76ea133d98fd386214cd01709 (diff) | |
| parent | 6b0f7311f16646e0de2045b2410e20921901c616 (diff) | |
| download | emacs-a01a7932080e8a6e7bc8472c58cefabcc2c37df3.tar.gz emacs-a01a7932080e8a6e7bc8472c58cefabcc2c37df3.zip | |
Merge from trunk
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/undo.c b/src/undo.c index 14a8268394a..cd3ad97349b 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -67,7 +67,7 @@ int undo_inhibit_record_point; | |||
| 67 | undo record that will be added just after this command terminates. */ | 67 | undo record that will be added just after this command terminates. */ |
| 68 | 68 | ||
| 69 | static void | 69 | static void |
| 70 | record_point (int pt) | 70 | record_point (EMACS_INT pt) |
| 71 | { | 71 | { |
| 72 | int at_boundary; | 72 | int at_boundary; |
| 73 | 73 | ||
| @@ -129,7 +129,7 @@ record_point (int pt) | |||
| 129 | because we don't need to record the contents.) */ | 129 | because we don't need to record the contents.) */ |
| 130 | 130 | ||
| 131 | void | 131 | void |
| 132 | record_insert (int beg, int length) | 132 | record_insert (EMACS_INT beg, EMACS_INT length) |
| 133 | { | 133 | { |
| 134 | Lisp_Object lbeg, lend; | 134 | Lisp_Object lbeg, lend; |
| 135 | 135 | ||
| @@ -164,7 +164,7 @@ record_insert (int beg, int length) | |||
| 164 | of the characters in STRING, at location BEG. */ | 164 | of the characters in STRING, at location BEG. */ |
| 165 | 165 | ||
| 166 | void | 166 | void |
| 167 | record_delete (int beg, Lisp_Object string) | 167 | record_delete (EMACS_INT beg, Lisp_Object string) |
| 168 | { | 168 | { |
| 169 | Lisp_Object sbeg; | 169 | Lisp_Object sbeg; |
| 170 | 170 | ||
| @@ -192,7 +192,7 @@ record_delete (int beg, Lisp_Object string) | |||
| 192 | won't be inverted automatically by undoing the buffer modification. */ | 192 | won't be inverted automatically by undoing the buffer modification. */ |
| 193 | 193 | ||
| 194 | void | 194 | void |
| 195 | record_marker_adjustment (Lisp_Object marker, int adjustment) | 195 | record_marker_adjustment (Lisp_Object marker, EMACS_INT adjustment) |
| 196 | { | 196 | { |
| 197 | if (EQ (current_buffer->undo_list, Qt)) | 197 | if (EQ (current_buffer->undo_list, Qt)) |
| 198 | return; | 198 | return; |
| @@ -215,7 +215,7 @@ record_marker_adjustment (Lisp_Object marker, int adjustment) | |||
| 215 | The replacement must not change the number of characters. */ | 215 | The replacement must not change the number of characters. */ |
| 216 | 216 | ||
| 217 | void | 217 | void |
| 218 | record_change (int beg, int length) | 218 | record_change (EMACS_INT beg, EMACS_INT length) |
| 219 | { | 219 | { |
| 220 | record_delete (beg, make_buffer_string (beg, beg + length, 1)); | 220 | record_delete (beg, make_buffer_string (beg, beg + length, 1)); |
| 221 | record_insert (beg, length); | 221 | record_insert (beg, length); |
| @@ -250,7 +250,9 @@ record_first_change (void) | |||
| 250 | for LENGTH characters starting at position BEG in BUFFER. */ | 250 | for LENGTH characters starting at position BEG in BUFFER. */ |
| 251 | 251 | ||
| 252 | void | 252 | void |
| 253 | record_property_change (int beg, int length, Lisp_Object prop, Lisp_Object value, Lisp_Object buffer) | 253 | record_property_change (EMACS_INT beg, EMACS_INT length, |
| 254 | Lisp_Object prop, Lisp_Object value, | ||
| 255 | Lisp_Object buffer) | ||
| 254 | { | 256 | { |
| 255 | Lisp_Object lbeg, lend, entry; | 257 | Lisp_Object lbeg, lend, entry; |
| 256 | struct buffer *obuf = current_buffer, *buf = XBUFFER (buffer); | 258 | struct buffer *obuf = current_buffer, *buf = XBUFFER (buffer); |
| @@ -601,7 +603,7 @@ Return what remains of the list. */) | |||
| 601 | { | 603 | { |
| 602 | /* Element (STRING . POS) means STRING was deleted. */ | 604 | /* Element (STRING . POS) means STRING was deleted. */ |
| 603 | Lisp_Object membuf; | 605 | Lisp_Object membuf; |
| 604 | int pos = XINT (cdr); | 606 | EMACS_INT pos = XINT (cdr); |
| 605 | 607 | ||
| 606 | membuf = car; | 608 | membuf = car; |
| 607 | if (pos < 0) | 609 | if (pos < 0) |