changeset 34905:19f10425ca8b

(echo_char): If C is an integer, always call push_key_description. Former code could signal an invalid character error.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 28 Dec 2000 13:37:33 +0000
parents fb9a566b63eb
children 333a490b6ebc
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Thu Dec 28 12:27:40 2000 +0000
+++ b/src/keyboard.c	Thu Dec 28 13:37:33 2000 +0000
@@ -735,8 +735,6 @@
 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 @@
 	      > 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))
 	{