From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: RE: poplife-mode
Date: Mon, 13 Nov 2017 09:08:27 -0800 (PST) [thread overview]
Message-ID: <7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default> (raw)
In-Reply-To: <jwvtvxyp5qo.fsf-monnier+gmane.emacs.devel@gnu.org>
> >> It's visible if it was activated by an earlier command,
> >> of course. E.g. "mouse-3" followed by "down-mouse-3".
> > Pressing and holding down `mouse-3' does _not_ highlight
> > the region. That happens only when `mouse-3' is released.
>
> `mouse-3` is an "up", so it implies releasing the button.
Sure - when we mean the _event_. `mouse-3' is also the
name of the button - as in "pressing and holding down
`mouse-3'. If that wasn't clear, please reread what I
wrote, substituting "3rd mouse button" for such occurrences.
> > If you mean first click `mouse-3' (press and release)
> > and then press and hold `mouse-3',
>
> That's right.
>
> > then you are talking about _two_ `mouse-3' clicks (it will be
> > released) - similar to what `mouse3.el' does.
>
> But that's only if you want to use the `mouse-3` event first.
> My suggestion is mostly about providing *another* operation on that same
> button (I expect it will rarely be used together with a mouse-3 event
> (i.e. with mouse-save-then-kill)).
Not sure what you are trying to say. You seemed to be
saying that the region is highlighted with your feature
also. My point was that the region is highlighted only
after the button is release, which is as many clicks
with your approach as with the mouse3.el approach (which
shows the menu upon button release, not upon long press).
With your approach, simply pressing and holding the button
down a long time will show the menu, but it won't highlight
the region. So it is not appropriate for menu items that
act on the region or otherwise take the region into account.
> > Besides not highlighting the region that is active and
> > can be acted on, your approach has the disadvantage of
> > mistakenly killing the region when an intended long
> > press happens to be a bit too short.
>
> This risk only exists in the case you use down-mouse-3
> right after mouse-3, which I expect will be rare.
AFAICT, it's the only way, with your approach, to see
the region you will act on get highlighted. Are you
relegating your approach to menus that don't have items
that act on the region?
> > What's better about it?
>
> No need to double click, hence (except for a 450ms delay)
As I pointed out, there is just as much need to click twice,
if you want to see the region. (It's not a double-click
event in either case; it's two click events in both cases.)
> it behaves just like the "standard" context menu of other
> applications.
At least on MS Windows, the apps I use all show the
menu upon button-release, not upon button press. (And
press-and-hold is surely not standard for showing a menu
anywhere, is it?)
And if there is anywhere where a `mouse-3' menu is used
ubiquitously it is on Windows. Windows users are used to
`mouse-3' showing a context menu when it is clicked, not
when it is pressed and held.
So I'd say that the mouse3.el approach is at least as
"standard-context-menu"-like as your approach.
next prev parent reply other threads:[~2017-11-13 17:08 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-05 1:00 poplife-mode Tak Kunihiro
2017-11-05 5:52 ` poplife-mode Drew Adams
2017-11-11 12:47 ` poplife-mode Charles A. Roelli
2017-11-11 15:01 ` poplife-mode Stefan Monnier
2017-11-12 13:55 ` poplife-mode Charles A. Roelli
2017-11-12 16:46 ` poplife-mode Stefan Monnier
2017-11-12 16:54 ` poplife-mode Eli Zaretskii
2017-11-12 17:47 ` poplife-mode Stefan Monnier
2017-11-12 19:17 ` poplife-mode Yuri Khan
2017-11-12 20:32 ` poplife-mode Charles A. Roelli
2017-11-12 20:36 ` poplife-mode Stefan Monnier
2017-11-13 5:03 ` poplife-mode Yuri Khan
2017-11-12 18:06 ` poplife-mode Stefan Monnier
2017-11-12 20:24 ` poplife-mode Charles A. Roelli
2017-11-13 8:11 ` poplife-mode Tak Kunihiro
2017-11-13 14:36 ` poplife-mode Drew Adams
2017-11-13 23:03 ` poplife-mode Tak Kunihiro
2017-11-14 0:48 ` poplife-mode Drew Adams
2017-11-14 23:26 ` poplife-mode Tak Kunihiro
2017-11-14 23:40 ` poplife-mode Drew Adams
2017-11-13 1:36 ` poplife-mode Drew Adams
2017-11-13 3:40 ` poplife-mode Drew Adams
2017-11-13 4:06 ` poplife-mode Stefan Monnier
2017-11-13 14:36 ` poplife-mode Drew Adams
2017-11-13 15:24 ` poplife-mode Stefan Monnier
2017-11-13 17:08 ` Drew Adams [this message]
2017-11-13 20:20 ` poplife-mode Stefan Monnier
2017-11-13 21:56 ` poplife-mode Drew Adams
2017-11-13 23:13 ` poplife-mode Stefan Monnier
2017-11-13 23:08 ` Changing default mouse bindings (was: poplife-mode) Alex
2017-11-14 2:50 ` Changing default mouse bindings Stefan Monnier
2017-11-14 7:07 ` Yuri Khan
2017-11-14 16:34 ` Stefan Monnier
2017-11-14 15:13 ` Eli Zaretskii
2017-11-14 16:35 ` Stefan Monnier
2017-11-14 16:38 ` Eli Zaretskii
[not found] ` <<838tf8lwqn.fsf@gnu.org>
2017-11-14 15:35 ` Drew Adams
2017-11-14 16:58 ` Eli Zaretskii
[not found] ` <<<838tf8lwqn.fsf@gnu.org>
[not found] ` <<69307385-5625-48dc-9611-ad7f0b6bd529@default>
[not found] ` <<83r2t0kdaz.fsf@gnu.org>
2017-11-14 19:47 ` Drew Adams
2017-11-14 20:26 ` Changing default mouse bindings (was: poplife-mode) Charles A. Roelli
2017-11-14 23:11 ` Changing default mouse bindings Tak Kunihiro
2017-11-15 3:16 ` Stefan Monnier
2017-11-16 23:21 ` Tak Kunihiro
2017-11-17 7:23 ` Eli Zaretskii
2017-11-17 15:28 ` Stefan Monnier
2018-01-10 4:34 ` Tak Kunihiro
[not found] ` <<838tf5id1e.fsf@gnu.org>
2017-11-17 15:31 ` Drew Adams
2017-11-17 16:25 ` Sam Steingold
2017-11-13 23:16 ` poplife-mode Tak Kunihiro
[not found] ` <<jwvy3ncx3kx.fsf-monnier+gmane.emacs.devel@gnu.org>
[not found] ` <<m2h8tzppod.fsf@aurox.ch>
2017-11-13 1:06 ` poplife-mode 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=7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.