From 2b96acb7c0c23467a24d922b91f76780855c01f4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Apr 2011 19:57:04 -0700 Subject: [PATCH] * window.c (window_deletion_count): Now static. * undo.c: Make symbols static if they're not exported. (last_undo_buffer, last_boundary_position, pending_boundary): Now static. --- src/ChangeLog | 6 ++++++ src/undo.c | 8 ++++---- src/window.c | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7d5ae728f79..c586e869e9b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,11 @@ 2011-04-14 Paul Eggert + * window.c (window_deletion_count): Now static. + + * undo.c: Make symbols static if they're not exported. + (last_undo_buffer, last_boundary_position, pending_boundary): + Now static. + * textprop.c (interval_insert_behind_hooks): Now static. (interval_insert_in_front_hooks): Likewise. diff --git a/src/undo.c b/src/undo.c index b310133900c..ba420fde817 100644 --- a/src/undo.c +++ b/src/undo.c @@ -26,11 +26,11 @@ along with GNU Emacs. If not, see . */ /* Last buffer for which undo information was recorded. */ /* BEWARE: This is not traced by the GC, so never dereference it! */ -struct buffer *last_undo_buffer; +static struct buffer *last_undo_buffer; /* Position of point last time we inserted a boundary. */ -struct buffer *last_boundary_buffer; -EMACS_INT last_boundary_position; +static struct buffer *last_boundary_buffer; +static EMACS_INT last_boundary_position; Lisp_Object Qinhibit_read_only; @@ -43,7 +43,7 @@ Lisp_Object Qapply; which will be added to the list at the end of the command. This ensures we can't run out of space while trying to make an undo-boundary. */ -Lisp_Object pending_boundary; +static Lisp_Object pending_boundary; /* Record point as it was at beginning of this command (if necessary) and prepare the undo info for recording a change. diff --git a/src/window.c b/src/window.c index ee1b1bc04f7..5b758ac698f 100644 --- a/src/window.c +++ b/src/window.c @@ -132,7 +132,7 @@ static int window_initialized; static Lisp_Object Qwindow_configuration_change_hook; /* Incremented by 1 whenever a window is deleted. */ -int window_deletion_count; +static int window_deletion_count; /* Used by the function window_scroll_pixel_based */ -- 2.39.2