aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-03-03 20:08:12 +0000
committerKarl Heuer1994-03-03 20:08:12 +0000
commitb453f72e5c171cc2a4102436f6d213949de5b53b (patch)
treea5e2ebe529bdc26a442f9c96a9a7cc07327ee677 /src
parentcfadd37670cdcd20b65ab3809f9aa07e132a0409 (diff)
downloademacs-b453f72e5c171cc2a4102436f6d213949de5b53b.tar.gz
emacs-b453f72e5c171cc2a4102436f6d213949de5b53b.zip
(command_loop_1): Set last_point_position to the value of point.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 1ea938c654f..42aaf82a105 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -232,6 +232,9 @@ Lisp_Object last_command;
232 instead of the actual command. */ 232 instead of the actual command. */
233Lisp_Object this_command; 233Lisp_Object this_command;
234 234
235/* The value of point when the last command was executed. */
236int last_point_position;
237
235#ifdef MULTI_FRAME 238#ifdef MULTI_FRAME
236/* The frame in which the last input event occurred, or Qmacro if the 239/* The frame in which the last input event occurred, or Qmacro if the
237 last event came from a macro. We use this to determine when to 240 last event came from a macro. We use this to determine when to
@@ -906,6 +909,7 @@ command_loop_1 ()
906 no_redisplay = 0; 909 no_redisplay = 0;
907 this_command_key_count = 0; 910 this_command_key_count = 0;
908 last_command = this_command; 911 last_command = this_command;
912 last_point_position = PT;
909 913
910 /* Make sure this hook runs after commands that get errors and 914 /* Make sure this hook runs after commands that get errors and
911 throw to top level. */ 915 throw to top level. */