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: Keybinding for finding definition by mouse Date: Mon, 09 Jul 2018 20:09:49 +0300 Message-ID: <83h8l8gwte.fsf@gnu.org> References: <76face16-e29e-e945-674f-79b8a2f2e498@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1531156107 12206 195.159.176.226 (9 Jul 2018 17:08:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2018 17:08:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tobias Gerdin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 09 19:08:23 2018 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 1fcZe8-00033q-5G for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2018 19:08:20 +0200 Original-Received: from localhost ([::1]:43479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcZgF-0006WS-2q for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2018 13:10:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcZfU-0006W7-M3 for emacs-devel@gnu.org; Mon, 09 Jul 2018 13:09:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcZfR-0007Vw-Gx for emacs-devel@gnu.org; Mon, 09 Jul 2018 13:09:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcZfR-0007Vq-Co; Mon, 09 Jul 2018 13:09:41 -0400 Original-Received: from [176.228.60.248] (port=4410 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fcZfQ-0004vh-R1; Mon, 09 Jul 2018 13:09:41 -0400 In-reply-to: <76face16-e29e-e945-674f-79b8a2f2e498@gmail.com> (message from Tobias Gerdin on Sun, 8 Jul 2018 22:06:18 +0200) 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:227160 Archived-At: > From: Tobias Gerdin > Date: Sun, 8 Jul 2018 22:06:18 +0200 > > A function for jumping to a definition by clicking on an identifier was > recently added to master.[1] > > For mouse users like myself this invoking this is probably the second > mouse common use of the mouse (after text selection) so I propose we add > a default binding for it in the global map. So which one? I wonder whether we should. I think people who like to use the mouse for xref-find-definitions will bind the command to something handy, like C-mouse-1 (and give up on, or rebind, mouse-buffer-menu). We cannot do that by default, and OTOH binding it to something like C-M-mouse-1 sounds too difficult to use (and then there's the problem of binding xref-pop-marker-stack). I'm also not convinced many people will want such a binding, as most of us use the keyboard for these commands. So I think we should leave this unbound by default, at least for now, and rely on people who want this on a mouse click to make their local changes.