diff options
| author | Eli Zaretskii | 2015-12-11 11:53:53 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-11 11:53:53 +0200 |
| commit | 9d2b8e768f2015a89f7609dedf7b28ea5e8123b5 (patch) | |
| tree | 187a470771f9d31e2d8e8685d2a94f3c4f16cd0a /src/keyboard.c | |
| parent | 5aaa636b7bc5fbc7cb946a5f8cb3f9dd3604159d (diff) | |
| download | emacs-9d2b8e768f2015a89f7609dedf7b28ea5e8123b5.tar.gz emacs-9d2b8e768f2015a89f7609dedf7b28ea5e8123b5.zip | |
Fix 'this-command-keys' wrt prefix argument
* src/keyboard.c (command_loop_1): Restore the feature whereby C-u
was part of this-command-keys, but not of this-single-command-keys.
(Bug#22107)
* lisp/simple.el (internal-echo-keystrokes-prefix): Add
commentary about the function's return value.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 02bc7d2a0b7..928d8496cdb 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1486,11 +1486,14 @@ command_loop_1 (void) | |||
| 1486 | if (!CONSP (last_command_event)) | 1486 | if (!CONSP (last_command_event)) |
| 1487 | kset_last_repeatable_command (current_kboard, Vreal_this_command); | 1487 | kset_last_repeatable_command (current_kboard, Vreal_this_command); |
| 1488 | 1488 | ||
| 1489 | this_command_key_count = 0; | 1489 | /* Don't reset this_command_key_count if we've processed |
| 1490 | this_single_command_key_start = 0; | 1490 | prefix-arg. */ |
| 1491 | 1491 | if (NILP (call0 (Qinternal_echo_keystrokes_prefix))) | |
| 1492 | if (current_kboard->immediate_echo | 1492 | { |
| 1493 | && !NILP (call0 (Qinternal_echo_keystrokes_prefix))) | 1493 | this_command_key_count = 0; |
| 1494 | this_single_command_key_start = 0; | ||
| 1495 | } | ||
| 1496 | else if (current_kboard->immediate_echo) | ||
| 1494 | { | 1497 | { |
| 1495 | current_kboard->immediate_echo = false; | 1498 | current_kboard->immediate_echo = false; |
| 1496 | /* Refresh the echo message. */ | 1499 | /* Refresh the echo message. */ |