From: Paul Eggert Date: Thu, 14 Apr 2011 00:49:57 +0000 (-0700) Subject: * insdel.c (signal_before_change): Now static. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~320 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4889fc82cf51dacb7435e33c5230f53c1251b0d4;p=emacs.git * insdel.c (signal_before_change): Now static. --- diff --git a/src/ChangeLog b/src/ChangeLog index c87dfb5056e..9791e2b4d35 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,10 +4,10 @@ However, leave prepare_to_modify_buffer alone. It's never called from outside this function, but that appears to be a bug. (combine_after_change_list, combine_after_change_buffer): - (adjust_after_replace): Now static. + (adjust_after_replace, signal_before_change): Now static. (adjust_after_replace_noundo): Remove; unused. * lisp.h (adjust_after_replace, adjust_after_replace_noundo): - Remove decls. + (signal_before_change): Remove decls. * indent.c (val_compute_motion, val_vmotion): Now static. diff --git a/src/insdel.c b/src/insdel.c index 4bc25025a2f..8733054e9cd 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -66,6 +66,8 @@ static Lisp_Object combine_after_change_list; static Lisp_Object combine_after_change_buffer; Lisp_Object Qinhibit_modification_hooks; + +static void signal_before_change (EMACS_INT, EMACS_INT, EMACS_INT *); #define CHECK_MARKERS() \ do \ @@ -1997,7 +1999,7 @@ reset_var_on_error (Lisp_Object val) If PRESERVE_PTR is nonzero, we relocate *PRESERVE_PTR by holding its value temporarily in a marker. */ -void +static void signal_before_change (EMACS_INT start_int, EMACS_INT end_int, EMACS_INT *preserve_ptr) { diff --git a/src/lisp.h b/src/lisp.h index e25ae89dfaa..447fea7e8a7 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -2568,7 +2568,6 @@ extern Lisp_Object del_range_2 (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, int); extern void modify_region (struct buffer *, EMACS_INT, EMACS_INT, int); extern void prepare_to_modify_buffer (EMACS_INT, EMACS_INT, EMACS_INT *); -extern void signal_before_change (EMACS_INT, EMACS_INT, EMACS_INT *); extern void signal_after_change (EMACS_INT, EMACS_INT, EMACS_INT); extern void adjust_after_insert (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT);