comparison src/insdel.c @ 16102:76bd16bb5906

(prepare_to_modify_buffer): Take integer arguments. (signal_before_change): Take integer arguments.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 Sep 1996 03:34:04 +0000
parents d6106d651a71
children 6c9c298680da
comparison
equal deleted inserted replaced
16101:039e96495054 16102:76bd16bb5906
737 verify that the text to be modified is not read-only, and call 737 verify that the text to be modified is not read-only, and call
738 any modification properties the text may have. */ 738 any modification properties the text may have. */
739 739
740 void 740 void
741 prepare_to_modify_buffer (start, end) 741 prepare_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 ();
746 746
747 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ 747 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
777 777
778 Vdeactivate_mark = Qt; 778 Vdeactivate_mark = Qt;
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
785 void 784 void
786 signal_before_change (start, end) 785 signal_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)
792 && !NILP (Vrun_hooks)) 796 && !NILP (Vrun_hooks))
793 call1 (Vrun_hooks, Qfirst_change_hook); 797 call1 (Vrun_hooks, Qfirst_change_hook);