diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 4 |
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. */ |
| 233 | Lisp_Object this_command; | 233 | Lisp_Object this_command; |
| 234 | 234 | ||
| 235 | /* The value of point when the last command was executed. */ | ||
| 236 | int 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. */ |