From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29478: 26.0.90; `C-h k' followed by mouse clicks no longer shows down event Date: Sat, 23 Dec 2017 11:42:10 +0200 Message-ID: <833741lr0t.fsf@gnu.org> References: <1b3879d6-f14e-47b0-970f-baf09598fcfd@default> <871skjnpd8.fsf@users.sourceforge.net> <20171128221036.GC14868@ACM> <83o9ni3l3i.fsf@gnu.org> <83bmji2xye.fsf@gnu.org> <83tvwzubez.fsf@gnu.org> <20171222220549.GC8072@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514022084 24740 195.159.176.226 (23 Dec 2017 09:41:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Dec 2017 09:41:24 +0000 (UTC) Cc: 29478@debbugs.gnu.org, npostavs@users.sourceforge.net To: Alan Mackenzie , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 23 10:41:19 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 1eSgIt-0005eo-0W for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Dec 2017 10:41:15 +0100 Original-Received: from localhost ([::1]:41166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSgKo-0006oP-G1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Dec 2017 04:43:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSgKg-0006na-Iy for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 04:43:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSgKc-0002NM-Lz for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 04:43:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eSgKc-0002ND-Ih for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 04:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eSgKc-0001ix-BO for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 04:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Dec 2017 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 29478-submit@debbugs.gnu.org id=B29478.15140221566590 (code B ref 29478); Sat, 23 Dec 2017 09:43:02 +0000 Original-Received: (at 29478) by debbugs.gnu.org; 23 Dec 2017 09:42:36 +0000 Original-Received: from localhost ([127.0.0.1]:48713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSgKC-0001iD-Cu for submit@debbugs.gnu.org; Sat, 23 Dec 2017 04:42:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSgKB-0001i2-2T for 29478@debbugs.gnu.org; Sat, 23 Dec 2017 04:42:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSgK1-000276-SJ for 29478@debbugs.gnu.org; Sat, 23 Dec 2017 04:42:29 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSgJm-0001xQ-Ar; Sat, 23 Dec 2017 04:42:10 -0500 Original-Received: from [176.228.60.248] (port=3634 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eSgJl-0004Yp-QP; Sat, 23 Dec 2017 04:42:10 -0500 In-reply-to: <20171222220549.GC8072@ACM> (message from Alan Mackenzie on Fri, 22 Dec 2017 22:05:49 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:141416 Archived-At: > Date: Fri, 22 Dec 2017 22:05:49 +0000 > Cc: drew.adams@oracle.com, 29478@debbugs.gnu.org, > npostavs@users.sourceforge.net > From: Alan Mackenzie > > (i) emacs-26 -Q > (ii) M-: (read-key-sequence "prompt: ") > (iii) -mouse-1 > > What happens now is the key sequence is displayed, a S-down-mouse-1 > event, but immediately overwritten in the message area by > > is undefined > > . Why? I merely asked for the key sequence. I didn't ask for it to be > looked up in any key maps. What is doing the translation from a > shift-down-mouse event to a S-click event? What is looking up this > down-mouse event in a key map? read-key-sequence itself examines the possible remapping of the sequence. And it seems reasonable, since how can it otherwise know when the sequence is complete? What is perhaps unexpected here (or might be a bug) is that for some reason the sequence is left in unread-command-events (or somewhere similar, perhaps in read_key_sequence_remapped?), because if I set a breakpoint in Fding, the backtrace from the "is undefined" message clearly shows it was the command loop that invoked 'undefined': Thread 1 hit Breakpoint 3, Fding (arg=XIL(0)) at dispnew.c:5666 5666 if (!NILP (arg)) (gdb) bt #0 Fding (arg=XIL(0)) at dispnew.c:5666 #1 0x012269c1 in funcall_subr (subr=0x1383100 , numargs=0, args=0x82f2e0) at eval.c:2841 #2 0x01226412 in Ffuncall (nargs=1, args=0x82f2d8) at eval.c:2766 #3 0x0128cef7 in exec_byte_code (bytestr=XIL(0x8000000001397478), vector=XIL(0xa000000001397488), maxdepth=make_number(4), args_template=make_number(0), nargs=0, args=0x82f750) at bytecode.c:62 #4 0x01227510 in funcall_lambda (fun=XIL(0xa000000001397440), nargs=0, arg_vector=0x40000000) at eval.c:2967 #5 0x0122646c in Ffuncall (nargs=1, args=0x82f748) at eval.c:2768 #6 0x01225913 in call0 (fn=XIL(0xfca8)) at eval.c:2609 #7 0x0114fd0d in command_loop_1 () at keyboard.c:1457 #8 0x01220de9 in internal_condition_case (bfun=0x114f33f handlers=XIL(0x5b70), hfun=0x114e5bf ) at eval.c:1332 #9 0x0114edd3 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110 #10 0x0121ff1b in internal_catch (tag=XIL(0xf570), func=0x114ed97 , arg=XIL(0)) at eval.c:1097 #11 0x0114ed52 in command_loop () at keyboard.c:1089 #12 0x0114dfe7 in recursive_edit_1 () at keyboard.c:695 #13 0x0114e289 in Frecursive_edit () at keyboard.c:766 #14 0x0114b990 in main (argc=2, argv=0xa428d8) at emacs.c:1713 Lisp Backtrace: "ding" (0x82f2e0) "undefined" (0x82f750) CC'ing Stefan in the hope that he could have some insights.