X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/73bfe891e2cf3e9b693938fe94c1ead1bc9b318d..02a7e500e85ffe42a352a9e0c1fddd1ed6a67658:/src/keyboard.c diff --git a/src/keyboard.c b/src/keyboard.c index 3e5e405d66..8fe6926a17 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -348,7 +348,6 @@ static Lisp_Object Qmodifier_cache; Lisp_Object Qmode_line; Lisp_Object Qvertical_line; Lisp_Object Qright_divider, Qbottom_divider; -static Lisp_Object Qvertical_scroll_bar; Lisp_Object Qmenu_bar; static Lisp_Object Qecho_keystrokes; @@ -2084,7 +2083,7 @@ make_ctrl_char (int c) /* Save the upper bits here. */ int upper = c & ~0177; - if (! ASCII_BYTE_P (c)) + if (! ASCII_CHAR_P (c)) return c |= ctrl_modifier; c &= 0177; @@ -2181,7 +2180,7 @@ show_help_echo (Lisp_Object help, Lisp_Object window, Lisp_Object object, -/* Input of single characters from keyboard */ +/* Input of single characters from keyboard. */ static Lisp_Object kbd_buffer_get_event (KBOARD **kbp, bool *used_mouse_menu, struct timespec *end_time); @@ -9382,16 +9381,6 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt, first_unbound = min (t, first_unbound); head = EVENT_HEAD (key); - if (help_char_p (head) && t > 0) - { - read_key_sequence_cmd = Vprefix_help_command; - keybuf[t++] = key; - last_nonmenu_event = key; - /* The Microsoft C compiler can't handle the goto that - would go here. */ - dummyflag = 1; - break; - } if (SYMBOLP (head)) { @@ -9649,6 +9638,17 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt, goto replay_sequence; } + + if (NILP (current_binding) + && help_char_p (EVENT_HEAD (key)) && t > 1) + { + read_key_sequence_cmd = Vprefix_help_command; + /* The Microsoft C compiler can't handle the goto that + would go here. */ + dummyflag = 1; + break; + } + /* If KEY is not defined in any of the keymaps, and cannot be part of a function key or translation, and is a shifted function key, @@ -11011,7 +11011,6 @@ syms_of_keyboard (void) DEFSYM (Qmode_line, "mode-line"); DEFSYM (Qvertical_line, "vertical-line"); - DEFSYM (Qvertical_scroll_bar, "vertical-scroll-bar"); DEFSYM (Qmenu_bar, "menu-bar"); DEFSYM (Qright_divider, "right-divider"); DEFSYM (Qbottom_divider, "bottom-divider");