From: Paul Eggert Date: Mon, 11 Apr 2011 07:02:21 +0000 (-0700) Subject: * commands.h (last_point_position, last_point_position_buffer): X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~340 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=14a9c8df7aea649633c74000600965913c6b0b2a;p=emacs.git * commands.h (last_point_position, last_point_position_buffer): (last_point_position_window): Remove decls. * keyboard.c: Make these variables static. --- diff --git a/src/ChangeLog b/src/ChangeLog index 35acd030955..57c5be9a7e2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2011-04-11 Paul Eggert + * commands.h (last_point_position, last_point_position_buffer): + (last_point_position_window): Remove decls. + * keyboard.c: Make these variables static. + * coding.h (coding, code_convert_region, encode_coding_gap): Remove decls. * coding.c (Vsjis_coding_system, Vbig5_coding_system): diff --git a/src/commands.h b/src/commands.h index 925e0ba1b80..bcd5de44180 100644 --- a/src/commands.h +++ b/src/commands.h @@ -36,15 +36,6 @@ extern Lisp_Object control_x_map; events until a non-ASCII event is acceptable as input. */ extern Lisp_Object unread_switch_frame; -/* The value of point when the last command was started. */ -extern EMACS_INT last_point_position; - -/* The buffer that was current when the last command was started. */ -extern Lisp_Object last_point_position_buffer; - -/* The window that was selected when the last command was started. */ -extern Lisp_Object last_point_position_window; - /* Nonzero means ^G can quit instantly */ extern int immediate_quit; @@ -55,4 +46,3 @@ extern int immediate_quit; /* Set this nonzero to force reconsideration of mode line. */ extern int update_mode_lines; - diff --git a/src/keyboard.c b/src/keyboard.c index f4afe000685..92a44de6dae 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -213,13 +213,13 @@ int last_auto_save; Lisp_Object real_this_command; /* The value of point when the last command was started. */ -EMACS_INT last_point_position; +static EMACS_INT last_point_position; /* The buffer that was current when the last command was started. */ -Lisp_Object last_point_position_buffer; +static Lisp_Object last_point_position_buffer; /* The window that was selected when the last command was started. */ -Lisp_Object last_point_position_window; +static Lisp_Object last_point_position_window; /* The frame in which the last input event occurred, or Qmacro if the last event came from a macro. We use this to determine when to