aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-19 07:06:30 +0000
committerRichard M. Stallman1994-08-19 07:06:30 +0000
commitdfd11da7903c32515c8a886e33db9e04290d9cd6 (patch)
tree3b1884ec5de337eb26aee7bf2add5b3f8a2a0457
parent7d002ae1699ab29626a6b4f3f479c5af83bb87d9 (diff)
downloademacs-dfd11da7903c32515c8a886e33db9e04290d9cd6.tar.gz
emacs-dfd11da7903c32515c8a886e33db9e04290d9cd6.zip
(read_char): Don't show buffer-events to the user.
Handle chars over 255 in dribble files.
-rw-r--r--src/keyboard.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index ff26a4e414b..e916bc7ee09 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1715,9 +1715,13 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
1715 1715
1716 start_polling (); 1716 start_polling ();
1717 1717
1718 /* Don't wipe the echo area for a trivial event. */ 1718 /* Buffer switch events are only for internal wakeups
1719 if (XTYPE (c) != Lisp_Buffer) 1719 so don't show them to the user. */
1720 echo_area_glyphs = 0; 1720 if (XTYPE (c) == Lisp_Buffer)
1721 return c;
1722
1723 /* Wipe the echo area. */
1724 echo_area_glyphs = 0;
1721 1725
1722 /* Handle things that only apply to characters. */ 1726 /* Handle things that only apply to characters. */
1723 if (XTYPE (c) == Lisp_Int) 1727 if (XTYPE (c) == Lisp_Int)
@@ -1742,7 +1746,12 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
1742 if (dribble) 1746 if (dribble)
1743 { 1747 {
1744 if (XTYPE (c) == Lisp_Int) 1748 if (XTYPE (c) == Lisp_Int)
1745 putc (XINT (c), dribble); 1749 {
1750 if (XUINT (c) < 0x100)
1751 putc (XINT (c), dribble);
1752 else
1753 fprintf (dribble, " 0x%x", XUINT (c));
1754 }
1746 else 1755 else
1747 { 1756 {
1748 Lisp_Object dribblee; 1757 Lisp_Object dribblee;