aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c7
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. */
1899void 1899void
1900show_help_echo (msg) 1900show_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