From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#22456: 24.5; Have \\[...] handle mouse commands differently Date: Sun, 24 Jan 2016 08:14:19 -0800 (PST) Message-ID: <1e37c053-d6f5-4dc9-8436-f2eaca87f5f2@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1453652133 6869 80.91.229.3 (24 Jan 2016 16:15:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2016 16:15:33 +0000 (UTC) To: 22456@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 17:15:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aNNJo-0000hM-Sp for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jan 2016 17:15:13 +0100 Original-Received: from localhost ([::1]:60928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNNJn-00027v-LO for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jan 2016 11:15:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNNJj-00025m-Pc for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:15:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNNJe-0005sL-Qz for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:15:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNNJe-0005s1-Ny for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aNNJe-0008EF-Gt for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jan 2016 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22456 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145365207631578 (code B ref -1); Sun, 24 Jan 2016 16:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2016 16:14:36 +0000 Original-Received: from localhost ([127.0.0.1]:35053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNNJD-0008DG-Qg for submit@debbugs.gnu.org; Sun, 24 Jan 2016 11:14:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44794) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aNNJB-0008D1-Qm for submit@debbugs.gnu.org; Sun, 24 Jan 2016 11:14:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNNJ5-0005lB-TC for submit@debbugs.gnu.org; Sun, 24 Jan 2016 11:14:28 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNNJ5-0005l7-QH for submit@debbugs.gnu.org; Sun, 24 Jan 2016 11:14:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNNJ4-0001oK-Rk for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:14:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNNIz-0005kc-RJ for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:14:26 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:31623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNNIz-0005kY-LG for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2016 11:14:21 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0OGEKpa023216 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 24 Jan 2016 16:14:21 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u0OGEJMf008039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 24 Jan 2016 16:14:20 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u0OGEJLg013986 for ; Sun, 24 Jan 2016 16:14:19 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111921 Archived-At: Enhancement request: If a command that can only be bound to a mouse event is mentioned in a doc string, and if that command is not bound currently, the mention is inappropriate (unhelpful). (defun foo (event) "..." (interactive "e") (message "foo")) (defun bar () "... mouse command \\[foo] is ..." (interactive) (message "bar")) C-h f bar bar is an interactive Lisp function. (bar) ... mouse command `M-x foo' is ... This is quite wrong: `foo' *cannot* be invoked using `M-x'. The request is for Emacs to do something better for this case. It should just write "... mouse command `foo' is ...", for example, leaving off the "M-x " part. Maybe these are some possible approaches (?): * Check the `interactive' spec for "e" or an argument that is `mouse-event-p'. * Allow for "mouse command" in a doc string to indicate that the command name that follows it is to be considered a mouse command. In either case, if a command is indicated to be a mouse command, render its use within "\\[...]" without the prefix "M-x ". In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/usr --host=3Di686-pc-mingw32'