GNU bug report logs - #19718
read_filtered_event echos mouse events until character is inputted

Previous Next

Package: emacs;

Reported by: Nick Andryshak <nandryshak <at> gmail.com>

Date: Wed, 28 Jan 2015 20:38:02 UTC

Severity: minor

Full log


View this message in rfc822 format

From: Nick Andryshak <nandryshak <at> gmail.com>
To: 19718 <at> debbugs.gnu.org
Subject: bug#19718: read_filtered_event echos mouse events until character is inputted
Date: Wed, 28 Jan 2015 15:35:43 -0500
[Message part 1 (text/plain, inline)]
See this Stack Exchange question:

http://emacs.stackexchange.com/questions/7443/mouse-problem-in-org-mode-export-window

The asker is trying to use the mouse wheel to scroll the org-export-dispatch
window. org-export-dispatch is using the built-in function
read-char-exclusive,
which in turn calls read_filtered_event with the parameter error_nonascii
set to
0. Unlike read-char, which will throw an error upon receiving a mouse event,
read-char-exclusive just keeps retrying, and eventually the echo area will
become full of mouse event names.

Here's the git diff of a small, possible fix for this issue:

$ git diff
diff --git a/src/lread.c b/src/lread.c
index 69ec059..0041b03 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -651,7 +651,10 @@ read_filtered_event (bool no_switch_frame, bool
ascii_required,
              error ("Non-character input-event");
            }
          else
-           goto retry;
+            {
+              message1 (0);
+              goto retry;
+            }
        }
     }


Nick Andryshak
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.