From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: Re: How to find commands run by menu? Date: Tue, 8 Dec 2009 22:13:51 +0000 (UTC) Organization: none Message-ID: References: <87638hb1uf.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260318714 9345 80.91.229.12 (9 Dec 2009 00:31:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Dec 2009 00:31:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 09 01:31:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NIAT4-0002Wh-C1 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 01:31:47 +0100 Original-Received: from localhost ([127.0.0.1]:53396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIAT4-0005RF-5l for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 19:31:46 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1260310431 14591 166.84.1.2 (8 Dec 2009 22:13:51 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 8 Dec 2009 22:13:51 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.3 Original-Xref: news.stanford.edu gnu.emacs.help:175436 X-Mailman-Approved-At: Tue, 08 Dec 2009 19:22:06 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70516 Archived-At: In <87638hb1uf.fsf@galatea.local> pjb@informatimago.com (Pascal J. Bourguignon) writes: > oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 > 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac > l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR > mV+hO/VvFAAAAABJRU5ErkJggg== >X-Accept-Language: fr, es, en >X-Disabled: X-No-Archive: no >User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) >Xref: panix gnu.emacs.help:180899 >kj writes: >> Is there any way to determine the exact command that gets run when >> one invokes a particular menu item? >Yes. You do that with C-h k and select the command in the menu. I can't figure out how to do this when I'm in text mode. In text mode, to select the command I want from the menu (File > Postscript Print Region (B+W)), the entire keystroke sequence is M-` f 3. If I prefix this sequence with C-h k, then the info command responds with: M-` runs the command tmm-menubar, which is an interactive compiled Lisp function in `tmm.el'. It is bound to M-`. (tmm-menubar &optional X-POSITION) Text-mode emulation of looking and choosing from a menubar. See the documentation for `tmm-prompt'. X-POSITION, if non-nil, specifies a horizontal position within the menu bar; we make that menu bar item (the one at that position) the default choice. So I never get to the point of querying the meaning of the last keystroke of the sequence (3). I also tried to hit C-h k after having hit M-` f but before hitting 3. In this case the info message is 3 runs the command tmm-shortcut, which is an interactive compiled Lisp function in `tmm.el'. It is bound to many ordinary text characters. (tmm-shortcut) Choose the shortcut that the user typed. ...which is not what I'm looking for. Kynn