aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c16
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
69static void 69static void
70record_point (int pt) 70record_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
131void 131void
132record_insert (int beg, int length) 132record_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
166void 166void
167record_delete (int beg, Lisp_Object string) 167record_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
194void 194void
195record_marker_adjustment (Lisp_Object marker, int adjustment) 195record_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
217void 217void
218record_change (int beg, int length) 218record_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
252void 252void
253record_property_change (int beg, int length, Lisp_Object prop, Lisp_Object value, Lisp_Object buffer) 253record_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)