From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#29272: 26.0.90; "C-h k C-mouse-3" followed by menu selection asks for more keys Date: Sun, 19 Nov 2017 17:54:26 +0000 Message-ID: <20171119175426.GC9922@ACM> References: <83shdjn3ju.fsf@gnu.org> <83mv3rn02t.fsf@gnu.org> <20171114205449.GA8025@ACM> <83r2svg72w.fsf@gnu.org> <20171119161943.GA9922@ACM> <83shdadwsy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1511114290 21185 195.159.176.226 (19 Nov 2017 17:58:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 17:58:10 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 29272@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 19 18:58:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGTr2-00054c-19 for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 18:58:04 +0100 Original-Received: from localhost ([::1]:53888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGTr9-0006vo-DB for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 12:58:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGTr3-0006vj-DW for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2017 12:58:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGTr0-0002SH-Bi for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2017 12:58:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGTr0-0002S9-6Z for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2017 12:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGTqz-0006Cj-SD for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2017 12:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Nov 2017 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29272-submit@debbugs.gnu.org id=B29272.151111424723807 (code B ref 29272); Sun, 19 Nov 2017 17:58:01 +0000 Original-Received: (at 29272) by debbugs.gnu.org; 19 Nov 2017 17:57:27 +0000 Original-Received: from localhost ([127.0.0.1]:47779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGTqQ-0006Bv-VZ for submit@debbugs.gnu.org; Sun, 19 Nov 2017 12:57:27 -0500 Original-Received: from ocolin.muc.de ([193.149.48.4]:20991 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1eGTqP-0006Bn-D5 for 29272@debbugs.gnu.org; Sun, 19 Nov 2017 12:57:25 -0500 Original-Received: (qmail 93597 invoked by uid 3782); 19 Nov 2017 17:57:24 -0000 Original-Received: from acm.muc.de (p548C7514.dip0.t-ipconnect.de [84.140.117.20]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 19 Nov 2017 18:57:23 +0100 Original-Received: (qmail 10576 invoked by uid 1000); 19 Nov 2017 17:54:26 -0000 Content-Disposition: inline In-Reply-To: <83shdadwsy.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:140108 Archived-At: Hello, Eli. On Sun, Nov 19, 2017 at 19:04:45 +0200, Eli Zaretskii wrote: > > Date: Sun, 19 Nov 2017 16:19:43 +0000 > > Cc: 29272@debbugs.gnu.org > > From: Alan Mackenzie > > > In any case, this is a much more minor bug than the one I reported, so > > > please install your changes on the release branch. Bonus points if > > > you can find where does the "translation" come from. > > I claim my prize. :-) > > The following patch (which absolutely requires the patch to bug #29349 > > "read_key_sequence is only partially recursive. This is a bug." to work) > > fixes the above glitch on Linux tty (and possibly on other platforms). > > It works by disregarding the "intermediate" events in UNTRANSLATED when > > comparing the processed key sequence with the UNTRANSLATED string of > > events: > OK, but I still would like to understand where did that "translation" > come from. I don't think I get that from the above description. It comes from the menu processing with GPM. Each mouse click (but I'm not sure about mouse movements) in a menu is entered into read_key_sequence's raw event buffer. This happens in the recursive call of read_key_sequence which happens when r_k_s calls read_key, and a menu gets processed. > Thanks. -- Alan Mackenzie (Nuremberg, Germany).