From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: How to find commands run by menu? Date: Wed, 09 Dec 2009 00:29:07 +0100 Organization: Informatimago Message-ID: <87skbl9ha4.fsf@galatea.local> References: <87638hb1uf.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260315733 981 80.91.229.12 (8 Dec 2009 23:42:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2009 23:42:13 +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 00:42:06 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 1NI9g9-0000DS-Mq for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 00:41:14 +0100 Original-Received: from localhost ([127.0.0.1]:54090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NI9g9-00055o-JO for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 18:41:13 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: individual.net djkQ+TQsEgb89keTPFyuhALNTv+CTi8vYyGOixVITkZC+PJ4cP Cancel-Lock: sha1:MzY2NWE3Nzg2NGJhNzk0NzFkMjExNGE0MzA5NGI2MzMzODJiZDNhNA== sha1:iyS374np57zHMy/3tHabwJdXJ/I= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA 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) Original-Xref: news.stanford.edu gnu.emacs.help:175438 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:70512 Archived-At: kj writes: > 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) Well, then you will have to see what's put in the menu. I don't know how this is done, but using apropos, or scanning the sources, you may find either functions to get the menus and menu items, and see what function is associated with what menu, or you may find in the sources where the menus are created what function is associated. -- __Pascal Bourguignon__