diff options
| author | Eli Zaretskii | 2000-07-11 07:33:06 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-07-11 07:33:06 +0000 |
| commit | adc84f484d0dde414bca9511e79b8f75b5dd1cbc (patch) | |
| tree | 79c29f0bec0a2cc840241ebe2c7324094908ab8c /src | |
| parent | 60d2b434c0da033e4677e9a7046b3264d92a08ea (diff) | |
| download | emacs-adc84f484d0dde414bca9511e79b8f75b5dd1cbc.tar.gz emacs-adc84f484d0dde414bca9511e79b8f75b5dd1cbc.zip | |
(show_help_echo): Accept additional parameter
ok_to_overwrite_keystroke_echo.
(read_char): Call show_help_echo with a zero
ok_to_overwrite_keystroke_echo argument.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 2674485f33c..6763f28dd84 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1897,8 +1897,9 @@ make_ctrl_char (c) | |||
| 1897 | 1897 | ||
| 1898 | /* Display a help message in the echo area. */ | 1898 | /* Display a help message in the echo area. */ |
| 1899 | void | 1899 | void |
| 1900 | show_help_echo (msg) | 1900 | show_help_echo (msg, ok_to_overwrite_keystroke_echo) |
| 1901 | Lisp_Object msg; | 1901 | Lisp_Object msg; |
| 1902 | int ok_to_overwrite_keystroke_echo; | ||
| 1902 | { | 1903 | { |
| 1903 | int count = specpdl_ptr - specpdl; | 1904 | int count = specpdl_ptr - specpdl; |
| 1904 | 1905 | ||
| @@ -1911,7 +1912,7 @@ show_help_echo (msg) | |||
| 1911 | else if (/* Don't overwrite minibuffer contents. */ | 1912 | else if (/* Don't overwrite minibuffer contents. */ |
| 1912 | !MINI_WINDOW_P (XWINDOW (selected_window)) | 1913 | !MINI_WINDOW_P (XWINDOW (selected_window)) |
| 1913 | /* Don't overwrite a keystroke echo. */ | 1914 | /* Don't overwrite a keystroke echo. */ |
| 1914 | && NILP (echo_message_buffer) | 1915 | && (NILP (echo_message_buffer) || ok_to_overwrite_keystroke_echo) |
| 1915 | /* Don't overwrite a prompt. */ | 1916 | /* Don't overwrite a prompt. */ |
| 1916 | && !cursor_in_echo_area) | 1917 | && !cursor_in_echo_area) |
| 1917 | { | 1918 | { |
| @@ -2668,7 +2669,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2668 | /* Display help if not echoing. */ | 2669 | /* Display help if not echoing. */ |
| 2669 | if (CONSP (c) && EQ (XCAR (c), Qhelp_echo)) | 2670 | if (CONSP (c) && EQ (XCAR (c), Qhelp_echo)) |
| 2670 | { | 2671 | { |
| 2671 | show_help_echo (XCDR (XCDR (c))); | 2672 | show_help_echo (XCDR (XCDR (c)), 0); |
| 2672 | goto retry; | 2673 | goto retry; |
| 2673 | } | 2674 | } |
| 2674 | 2675 | ||