From: Gerd Moellmann Date: Thu, 28 Dec 2000 13:37:33 +0000 (+0000) Subject: (echo_char): If C is an integer, always call X-Git-Tag: emacs-pretest-21.0.95~248 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a7cb8f13db7a034020435845486ad2d735355dd;p=emacs.git (echo_char): If C is an integer, always call push_key_description. Former code could signal an invalid character error. --- diff --git a/src/keyboard.c b/src/keyboard.c index d8c96c82add..15bb56a22ee 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -735,8 +735,6 @@ void echo_char (c) Lisp_Object c; { - extern char *push_key_description (); - if (current_kboard->immediate_echo) { char *ptr = current_kboard->echoptr; @@ -755,14 +753,7 @@ echo_char (c) > ECHOBUFSIZE - KEY_DESCRIPTION_SIZE) return; - if (ASCII_BYTE_P (ch)) - ptr = push_key_description (ch, ptr); - else - { - if (SINGLE_BYTE_CHAR_P (ch)) - ch = unibyte_char_to_multibyte (ch); - ptr += CHAR_STRING (ch, ptr); - } + ptr = push_key_description (ch, ptr, 1); } else if (SYMBOLP (c)) {