From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Andryshak Newsgroups: gmane.emacs.bugs Subject: bug#19718: read_filtered_event echos mouse events until character is inputted Date: Wed, 28 Jan 2015 15:35:43 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01183ed6c906d4050dbc500f X-Trace: ger.gmane.org 1422477497 11813 80.91.229.3 (28 Jan 2015 20:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 20:38:17 +0000 (UTC) To: 19718@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 21:38:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGZNK-0000lO-Ph for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 21:38:11 +0100 Original-Received: from localhost ([::1]:55869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGZNK-0007KI-5V for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 15:38:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGZNE-0007Gz-DQ for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:38:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGZND-0002PA-7L for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:38:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGZND-0002P0-4Z for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YGZNC-0000cn-JA for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nick Andryshak Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jan 2015 20:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14224774572362 (code B ref -1); Wed, 28 Jan 2015 20:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jan 2015 20:37:37 +0000 Original-Received: from localhost ([127.0.0.1]:56697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGZMn-0000c1-1K for submit@debbugs.gnu.org; Wed, 28 Jan 2015 15:37:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40777) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGZL8-0000Yk-GY for submit@debbugs.gnu.org; Wed, 28 Jan 2015 15:35:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGZL2-0001Hw-HK for submit@debbugs.gnu.org; Wed, 28 Jan 2015 15:35:49 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGZL2-0001Hs-EC for submit@debbugs.gnu.org; Wed, 28 Jan 2015 15:35:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGZL0-0006CH-UD for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:35:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGZKz-0001Gx-7M for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:35:46 -0500 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:39999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGZKy-0001Go-SX for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 15:35:44 -0500 Original-Received: by mail-oi0-f51.google.com with SMTP id x69so19852184oia.10 for ; Wed, 28 Jan 2015 12:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jLuwYIAEXI3ZVSvhCKtRtPVTySK22t8n9Pl8WXVhNfQ=; b=pD6EwjVVls35iHnvHHyjM9x2EeHVGSYV7hfOfrOOUDRoybD2iMGqg+frqCyFiRY3Sd c4ivQWVsoqn+nnQxU8byH417qKf/o7cuXdj6BSY7o7Uk6hT3Zax8b3QkufFj+VaKVqA3 xMI73Pa+ylwy+fNhFkC1yqgSf9sxklBBaJZ2eAdx6K5qc5k6OW12HNmH93jZ73zk1aX1 5y9Hx6+GG4NwSdb9aY2Pohn6rbvtS5FqLTRh82Yx9CocJ+C6MasuIHuLdMZbFagW5GBZ j8TKQGZocFiDzyCDDikE9KU8EFqdq+EjhaUr1pLfqi6TB+h0nIDwuPFUS08f0gC457Jj X4Fw== X-Received: by 10.182.84.225 with SMTP id c1mr3431866obz.68.1422477343916; Wed, 28 Jan 2015 12:35:43 -0800 (PST) Original-Received: by 10.202.133.139 with HTTP; Wed, 28 Jan 2015 12:35:43 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 28 Jan 2015 15:37:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98844 Archived-At: --089e01183ed6c906d4050dbc500f Content-Type: text/plain; charset=UTF-8 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 --089e01183ed6c906d4050dbc500f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
See this Stack Exchange question:=C2=A0

= The asker is trying to use the mouse wheel to scroll the org-export-dispatc= h
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 ful= l of mouse event names.

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

$ git diff<= /div>
diff --git a/src/lread.c b/src/lread.c
index 69ec059..0= 041b03 100644
--- a/src/lread.c
+++ b/src/lread.c
=
@@ -651,7 +651,10 @@ read_filtered_event (bool no_switch_frame, bool a= scii_required,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 e= rror ("Non-character input-event");
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 els= e
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto retry;
+ = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{
+ =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0message1 (0);
+ =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0goto retry;
+ =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0= =C2=A0 =C2=A0}


Nick Andryshak
--089e01183ed6c906d4050dbc500f--