diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index e5d0a8946e7..3c5ebbb9b8d 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7891,9 +7891,18 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_ | |||
| 7891 | Qmouse_movement))) | 7891 | Qmouse_movement))) |
| 7892 | { | 7892 | { |
| 7893 | /* But first wait, and skip the message if there is input. */ | 7893 | /* But first wait, and skip the message if there is input. */ |
| 7894 | if (!NILP (Fsit_for ((NUMBERP (Vsuggest_key_bindings) | 7894 | int delay_time; |
| 7895 | ? Vsuggest_key_bindings : make_number (2)), | 7895 | if (echo_area_glyphs != 0) |
| 7896 | Qnil, Qnil)) | 7896 | /* This command displayed something in the echo area; |
| 7897 | so wait a few seconds, then display our suggestion message. */ | ||
| 7898 | delay_time = (NUMBERP (Vsuggest_key_bindings) | ||
| 7899 | ? XINT (Vsuggest_key_bindings) : 2); | ||
| 7900 | else | ||
| 7901 | /* This command left the echo area empty, | ||
| 7902 | so display our message immediately. */ | ||
| 7903 | delay_time = 0; | ||
| 7904 | |||
| 7905 | if (!NILP (Fsit_for (make_number (delay_time), Qnil, Qnil)) | ||
| 7897 | && ! CONSP (Vunread_command_events)) | 7906 | && ! CONSP (Vunread_command_events)) |
| 7898 | { | 7907 | { |
| 7899 | Lisp_Object binding; | 7908 | Lisp_Object binding; |