# HG changeset patch # User Richard M. Stallman # Date 777279990 0 # Node ID 3a9e9d3df59055a0e11c6854e27cd70f86246df1 # Parent 1e700f1343443fad3b7df4ebb3113e7507f8c4f2 (read_char): Don't show buffer-events to the user. Handle chars over 255 in dribble files. diff -r 1e700f134344 -r 3a9e9d3df590 src/keyboard.c --- a/src/keyboard.c Fri Aug 19 05:47:15 1994 +0000 +++ b/src/keyboard.c Fri Aug 19 07:06:30 1994 +0000 @@ -1715,9 +1715,13 @@ 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 @@ 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;