all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Mackenzie <acm@muc.de>, Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 29478@debbugs.gnu.org, npostavs@users.sourceforge.net
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	[thread overview]
Message-ID: <833741lr0t.fsf@gnu.org> (raw)
In-Reply-To: <20171222220549.GC8072@ACM> (message from Alan Mackenzie on Fri,  22 Dec 2017 22:05:49 +0000)

> 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 <acm@muc.de>
> 
> (i) emacs-26 -Q
> (ii) M-: (read-key-sequence "prompt: ") <CR>
> (iii) <shift>-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 
> 
>     <S-mouse-1> 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 <Sding>, 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 <command_loop_1>
      handlers=XIL(0x5b70), hfun=0x114e5bf <cmd_error>) 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 <command_loop_2>, 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.





  reply	other threads:[~2017-12-23  9:42 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27 23:21 bug#29478: 26.0.90; `C-h k' followed by mouse clicks no longer shows down event Drew Adams
2017-11-28  1:50 ` Noam Postavsky
2017-11-28 17:11   ` Eli Zaretskii
2017-11-28 22:10   ` Alan Mackenzie
2017-11-29  0:44     ` Noam Postavsky
2017-11-29  3:36       ` Eli Zaretskii
2017-11-29  4:33     ` Drew Adams
2017-12-01  8:31       ` Eli Zaretskii
2017-12-09 17:18         ` Alan Mackenzie
2017-12-23 14:28         ` bug#29478: [Patch 2]: " Alan Mackenzie
2017-12-23 14:48           ` Andreas Schwab
2017-12-24  8:43             ` Alan Mackenzie
     [not found]   ` <<20171128221036.GC14868@ACM>
     [not found]     ` <<bbcb1d00-a728-4b5e-b65f-bd2b168c4a51@default>
     [not found]       ` <<83o9ni3l3i.fsf@gnu.org>
2017-12-01 15:35         ` Drew Adams
2017-12-01 16:51           ` Eli Zaretskii
2017-12-09 16:13             ` Eli Zaretskii
2017-12-09 17:23               ` Alan Mackenzie
2017-12-22 22:05               ` Alan Mackenzie
2017-12-23  9:42                 ` Eli Zaretskii [this message]
2017-12-23 11:17                   ` bug#29478: [Patch] " Alan Mackenzie
2017-12-23 12:41                     ` Eli Zaretskii
2017-12-23 16:33                     ` Stefan Monnier
2017-12-23 21:04                       ` Alan Mackenzie
2017-12-24  4:55                         ` Stefan Monnier
2017-12-24  5:41                           ` Eli Zaretskii
2017-12-24  6:52                         ` Stefan Monnier
2017-12-24 11:48                           ` Alan Mackenzie
2017-12-24 15:41                             ` Stefan Monnier
2017-12-30 10:50                           ` Eli Zaretskii
2018-01-03  3:56                             ` Stefan Monnier
2018-01-06 17:40                               ` Eli Zaretskii
2018-01-07 15:31                                 ` bug#29478: [SUSPECTED SPAM] " Stefan Monnier
2018-01-07 17:46                                   ` Eli Zaretskii
2018-01-07 18:03                                     ` Stefan Monnier
2018-01-26 22:00                                 ` bug#29478: " Stefan Monnier
2018-01-26 22:37                                   ` Stefan Monnier
2018-01-27  8:28                                     ` Eli Zaretskii
2018-01-28 16:02                                       ` Stefan Monnier
2018-01-28 17:18                                         ` Eli Zaretskii
2018-01-29 21:54                                           ` Stefan Monnier
2018-01-30  3:23                                             ` Eli Zaretskii
2018-01-30 14:18                                               ` Stefan Monnier
2018-01-30 15:40                                                 ` Eli Zaretskii
2018-01-30 16:59                                                   ` Stefan Monnier
2018-01-27  7:59                                   ` Eli Zaretskii
2017-12-30 10:51                         ` Eli Zaretskii
2017-12-30 11:32                           ` Alan Mackenzie
2017-12-30 12:49                             ` Eli Zaretskii
2017-12-23 16:19             ` bug#29478: " Stefan Monnier
2020-08-26 13:43 ` bug#29478: 26.0.90; " Lars Ingebrigtsen
2020-08-26 17:12   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=833741lr0t.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=29478@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=monnier@iro.umontreal.ca \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.