all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acm@muc.de, 29478@debbugs.gnu.org, npostavs@users.sourceforge.net
Subject: bug#29478: [SUSPECTED SPAM] Re: [Patch] bug#29478: 26.0.90; `C-h k' followed by mouse clicks no longer shows down event
Date: Sun, 07 Jan 2018 10:31:38 -0500	[thread overview]
Message-ID: <jwvpo6lzo78.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <83zi5q997a.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Jan 2018 19:40:57 +0200")

>> If you want a patch that applies, the one below should work.
> Thanks.  It needs some more work.

No doubt.

> E.g., "C-h k C-mouse-1" signals an error:
>   help-fns--analyze-function: Symbol’s function definition is void: nil

Thanks.  I'll look into fixing this...

> and "C-h k C-mouse-3" followed by a menu selection asks for another
> key or mouse click, although it already has got a full key sequence.

... and this.

> In general, I see the idea is to show both down-mouse-N event and
> mouse-N event, both with "C-h c" and "C-h k".  That could be okay, but
> why show undefined sequences?  E.g, "C-h c S-mouse-1" shows this in
> the echo area:
>
>   <S-down-mouse-1> at that spot runs the command mouse-appearance-menu
>   <S-mouse-1> at that spot is undefined

I did not make a special effort to do that, but I also didn't feel like
stripping them away because sometimes it's useful to know what is the
event name.  E.g. you want to bind something to "shifted left mouse
click" because you noticed it doesn't do anything, so you already know
it's undefined, but you don't yet know how to spell it.

I think it's also useful to show to the user than there were two events.

> Also, if both events are bound, I think we should show the mouse-N
> event before the down-mouse-N event, because the former is much more
> important and normally is the one that's bound.

If the down event is unbound it's not shown (this is actually not
a feature I actively tried to obtained: it's just the result of
read-key-sequence dropping the down event if it's not bound).

And I think it's important to preserve the order of the events.
As a side-benefit it reduces the amount of ad-hoc code that needs to
know about what is a down event or a mouse event and so on.


        Stefan





  reply	other threads:[~2018-01-07 15:31 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
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                                 ` Stefan Monnier [this message]
2018-01-07 17:46                                   ` bug#29478: [SUSPECTED SPAM] " 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=jwvpo6lzo78.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=29478@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --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.