]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_char): Don't show buffer-events to the user.
authorRichard M. Stallman <rms@gnu.org>
Fri, 19 Aug 1994 07:06:30 +0000 (07:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 19 Aug 1994 07:06:30 +0000 (07:06 +0000)
Handle chars over 255 in dribble files.

src/keyboard.c

index ff26a4e414b2eb4b7f5b8789f340abc4e3d3e165..e916bc7ee09fe05057928264042a1150ffc0a70b 100644 (file)
@@ -1715,9 +1715,13 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
 
   start_polling ();
 
-  /* Don't wipe the echo area for a trivial event.  */
-  if (XTYPE (c) != Lisp_Buffer)
-    echo_area_glyphs = 0;
+  /* Buffer switch events are only for internal wakeups
+     so don't show them to the user.  */
+  if (XTYPE (c) == Lisp_Buffer)
+    return c;
+
+  /* Wipe the echo area.  */
+  echo_area_glyphs = 0;
 
   /* Handle things that only apply to characters.  */
   if (XTYPE (c) == Lisp_Int)
@@ -1742,7 +1746,12 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
   if (dribble)
     {
       if (XTYPE (c) == Lisp_Int)
-       putc (XINT (c), dribble);
+       {
+         if (XUINT (c) < 0x100)
+           putc (XINT (c), dribble);
+         else
+           fprintf (dribble, " 0x%x", XUINT (c));
+       }
       else
        {
          Lisp_Object dribblee;