* window.c (window_deletion_count): Now static.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Apr 2011 02:57:04 +0000 (19:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Apr 2011 02:57:04 +0000 (19:57 -0700)
* undo.c: Make symbols static if they're not exported.
(last_undo_buffer, last_boundary_position, pending_boundary):
Now static.

src/ChangeLog
src/undo.c
src/window.c

index 7d5ae72..c586e86 100644 (file)
@@ -1,5 +1,11 @@
 2011-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * 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.
 
index b310133..ba420fd 100644 (file)
@@ -26,11 +26,11 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 /* 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.
index ee1b1bc..5b758ac 100644 (file)
@@ -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 */