From: Tak Kunihiro <tak.kunihiro@gmail.com>
To: npostavs@users.sourceforge.net
Cc: eliz@gnu.org, tak.kunihiro@gmail.com, emacs-devel@gnu.org
Subject: Re: binding S-mouse-1
Date: Mon, 29 May 2017 08:14:10 +0900 (JST) [thread overview]
Message-ID: <20170529.081410.444201645.tak.kunihiro@gmail.com> (raw)
In-Reply-To: <CAM-tV-9iDPwp8M-gxiJ0L8-XOdcESfkhDUPvY0jQOGHkT3bHbQ@mail.gmail.com>
>>> Keys <S-right> and <S-left> extend region. I think that [S-mouse-1]
>>> should behave similar by default.
>>>
>>> I propose to bind mouse-appearance-menu to super instead of shift,
>>> (global-set-key [S-down-mouse-1] 'mouse-appearance-menu)
>>> and bind following to let shift click to extend region on mouse.el.
>>> (global-set-key [S-down-mouse-1] 'ignore)
>>> (global-set-key [S-mouse-1] 'mouse-save-then-kill)
>>
>> Isn't that backward-incompatible change in behavior?
>>
>> FWIW, I use S-down-mouse-1 quite a lot, especially when testing
>> various display-related bug reports and questions. Replacing it with
>> super, for which I have no key on my keyboard, would need both more
>> customizations and re-teaching my muscle memory.
I suppose you meant without customizations, you have to re-teach. You
do not have to do both.
>> All that just to provide some kind of "consistency"? I'm not sure
>> it's a good enough reason for changing such a veteran behavior.
>
> This seems to be common behaviour across other applications (e.g.,
> Firefox), so it could help with the muscle memory of newer users.
> Perhaps we could enable it in cua-mode?
>
> Moving mouse-appearance-menu to super doesn't work since we can't rely
> on super being generally usable. Perhaps C-S- instead?
I think internal consistency between mouse-1 and S-mouse-1 also
matters as well as behavior of S-mouse-1 across applications.
Shift should modify operation by mouse-1. I think `extend region' can
be regarded as modified set-point; however mouse-appearance-menu has
significant distance from set-point.
How about A or B?
A (global-set-key [C-S-down-mouse-1] 'mouse-appearance-menu)
A (global-set-key [S-down-mouse-1] 'ignore)
A (global-set-key [S-mouse-1] 'mouse-save-then-kill)
B (define-key cua--cua-keys-keymap [S-down-mouse-1] 'ignore)
B (define-key cua--cua-keys-keymap [S-mouse-1] 'mouse-save-then-kill)
next prev parent reply other threads:[~2017-05-28 23:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-28 10:06 binding S-mouse-1 Tak Kunihiro
2017-05-28 15:18 ` Eli Zaretskii
2017-05-28 15:41 ` Noam Postavsky
2017-05-28 23:14 ` Tak Kunihiro [this message]
2017-05-29 2:42 ` Eli Zaretskii
2017-05-30 8:20 ` Tak Kunihiro
2017-05-30 8:41 ` Eli Zaretskii
2017-05-29 7:59 ` Yuri Khan
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170529.081410.444201645.tak.kunihiro@gmail.com \
--to=tak.kunihiro@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).