aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-04 03:34:04 +0000
committerRichard M. Stallman1996-09-04 03:34:04 +0000
commitfb4ee5cdb135bc44c4a29e546e716c7c1639b029 (patch)
tree626cf245c5517fc9316c1653ca46738403d7f8b1 /src
parent5a053ea9811b64c63fde8f98900f3aa13f68b659 (diff)
downloademacs-fb4ee5cdb135bc44c4a29e546e716c7c1639b029.tar.gz
emacs-fb4ee5cdb135bc44c4a29e546e716c7c1639b029.zip
(prepare_to_modify_buffer): Take integer arguments.
(signal_before_change): Take integer arguments.
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 9f505361cc0..56ae6535c00 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -739,7 +739,7 @@ modify_region (buffer, start, end)
739 739
740void 740void
741prepare_to_modify_buffer (start, end) 741prepare_to_modify_buffer (start, end)
742 Lisp_Object start, end; 742 int start, end;
743{ 743{
744 if (!NILP (current_buffer->read_only)) 744 if (!NILP (current_buffer->read_only))
745 Fbarf_if_buffer_read_only (); 745 Fbarf_if_buffer_read_only ();
@@ -779,13 +779,17 @@ prepare_to_modify_buffer (start, end)
779} 779}
780 780
781/* Signal a change to the buffer immediately before it happens. 781/* Signal a change to the buffer immediately before it happens.
782 START and END are the bounds of the text to be changed, 782 START_INT and END_INT are the bounds of the text to be changed. */
783 as Lisp objects. */
784 783
785void 784void
786signal_before_change (start, end) 785signal_before_change (start, end)
787 Lisp_Object start, end; 786 int start_int, end_end;
788{ 787{
788 Lisp_Object start, end;
789
790 start = make_number (start_int);
791 end = make_number (end_int);
792
789 /* If buffer is unmodified, run a special hook for that case. */ 793 /* If buffer is unmodified, run a special hook for that case. */
790 if (SAVE_MODIFF >= MODIFF 794 if (SAVE_MODIFF >= MODIFF
791 && !NILP (Vfirst_change_hook) 795 && !NILP (Vfirst_change_hook)