From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Menu commands to M-x history? Date: Mon, 27 Jul 2009 08:48:42 -0700 Message-ID: <9D1E3CE97BF4491E973F872B00D6277D@us.oracle.com> References: <87skgqu2ce.fsf@olgas.newt.com> <7432.1248236149@olgas.newt.com> <7dbe73ed0907221134o1a1fe024k353b1a9a61482041@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248713325 32460 80.91.229.12 (27 Jul 2009 16:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 16:48:45 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, 'Mathias Dahl' To: "'Lennart Borgman'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 18:48:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVTNM-00040V-TG for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 18:48:37 +0200 Original-Received: from localhost ([127.0.0.1]:45693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVTNM-0008JP-5z for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 12:48:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVSRf-0005aY-CE for emacs-devel@gnu.org; Mon, 27 Jul 2009 11:48:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVSRa-0005Y2-Fs for emacs-devel@gnu.org; Mon, 27 Jul 2009 11:48:58 -0400 Original-Received: from [199.232.76.173] (port=46751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVSRa-0005Xs-8b for emacs-devel@gnu.org; Mon, 27 Jul 2009 11:48:54 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:53644 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVSRW-0005R0-5g; Mon, 27 Jul 2009 11:48:50 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6RFmIpW009977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 27 Jul 2009 15:48:19 GMT Original-Received: from abhmt007.oracle.com (abhmt007.oracle.com [141.146.116.16]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6RFmtTk031295; Mon, 27 Jul 2009 15:48:55 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 27 Jul 2009 08:48:42 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcoOn88P3SdoYNS3Q2eq/OMdhL1wogAMOG/A X-Source-IP: abhmt007.oracle.com [141.146.116.16] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4A6DCC5B.00B8:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113226 Archived-At: > >> > Perhaps a better way of learning what command is on a > >> > button or menu item is to use help such as `M-x help > >> > RET k RET'. > >> > >> I think that is enough too. > > > > I agree: `C-h k' or a tooltip is sufficient to show the > > command associated with a menu item or button. > > > > However, it can also be convenient to be able to complete > > against commands that were previously executed using a menu. > > You might want to do this some of the time (but probably not > > by default). > > > > FWIW, this feature is available in Icicles in the following way: > > So you think it is enough to not have the menu commands available in > Emacs M-x history variable, but that it is good to have it available > (in a different way) in your Icicles library? Just what is unclear about what I wrote? 1. I think C-h k or a tooltip is generally enough for seeing the command associated with a menu item. 2. Nevertheless, it can also help sometimes to be able to complete against command names corresponding to menu items. 3. Such completion should probably not be part of the normal (default) command completion, for reasons already discussed (e.g. by Mathias). 4. It can help to make such completion available on demand during normal command completion. That is, while completing a normal command name, hit some key to complete also against menu-item commands already entered. 5. This suggests having a separate, more inclusive command history, which includes menu-item commands - to be used only on demand, not by default. 6. I explained how Icicles handles this, as an example of what is possible.