From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: binding S-mouse-1 Date: Mon, 29 May 2017 05:42:06 +0300 Message-ID: <83lgpgfkox.fsf@gnu.org> References: <20170528.190648.38300257.tkk@misasa.okayama-u.ac.jp> <83d1atggcp.fsf@gnu.org> <20170529.081410.444201645.tak.kunihiro@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1496025764 13474 195.159.176.226 (29 May 2017 02:42:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 May 2017 02:42:44 +0000 (UTC) Cc: emacs-devel@gnu.org, npostavs@users.sourceforge.net To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 29 04:42:39 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dFAdj-0003Lq-1M for ged-emacs-devel@m.gmane.org; Mon, 29 May 2017 04:42:39 +0200 Original-Received: from localhost ([::1]:46636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFAdo-0006xm-1t for ged-emacs-devel@m.gmane.org; Sun, 28 May 2017 22:42:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFAdB-0006xg-OV for emacs-devel@gnu.org; Sun, 28 May 2017 22:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFAd8-0004UF-L6 for emacs-devel@gnu.org; Sun, 28 May 2017 22:42:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFAd8-0004U9-Hv; Sun, 28 May 2017 22:42:02 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4609 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dFAd7-0007hQ-Ll; Sun, 28 May 2017 22:42:02 -0400 In-reply-to: <20170529.081410.444201645.tak.kunihiro@gmail.com> (message from Tak Kunihiro on Mon, 29 May 2017 08:14:10 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215299 Archived-At: > Date: Mon, 29 May 2017 08:14:10 +0900 (JST) > Cc: eliz@gnu.org, emacs-devel@gnu.org, tak.kunihiro@gmail.com > From: Tak Kunihiro > > >> 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. Yes, I do have to do both, because I will have to tell Emacs to use, say, the left Windows key as super, and then learn to use that when I need the menu which currently pops up by S-mouse-1. > I think internal consistency between mouse-1 and S-mouse-1 also > matters as well as behavior of S-mouse-1 across applications. The current binding of S-mouse-1 was not taken out of thin air, it was modeled on other applications as well, AFAIR. > 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) I don't use CUA, so my opinions about modifying its bindings don't matter. We should ask CUA users if they care. But I don't think we should change the default behavior of S-mouse-1.