From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: How to find commands run by menu? Date: Tue, 8 Dec 2009 20:42:02 +0000 (UTC) Organization: none Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260318173 7871 80.91.229.12 (9 Dec 2009 00:22:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Dec 2009 00:22:53 +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:22:46 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 1NIAKK-00083u-D3 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 01:22:44 +0100 Original-Received: from localhost ([127.0.0.1]:45800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIAKK-0006Vm-1I for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 19:22:44 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1260304922 1843 166.84.1.2 (8 Dec 2009 20:42:02 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 8 Dec 2009 20:42:02 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.3 Original-Xref: news.stanford.edu gnu.emacs.help:175430 X-Mailman-Approved-At: Tue, 08 Dec 2009 19:22:04 -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:70515 Archived-At: Is there any way to determine the exact command that gets run when one invokes a particular menu item? TIA! kynnjo P.S. Here's why I want this. It's a bit convoluted. For mysterious reasons, the latest version of Emacs on my system does not offer any "print region" commands when run in X11 mode (these commands do show in the File menu, but are permanently disabled, irrespective of whether a region is defined or not). I determined that if instead I run Emacs in text mode, now the menus do offer the "print region" commands. But I don't want to run Emacs in text mode. Therefore, I want to be able to execute *while on X11 mode* the same commands that get triggered when I choose (in text mode) one of the "print region" commands from the File menu. Make sense? I thought that the desired commands would be ones like ps-print-region, but the ones I've guessed produce different-looking printed results from those obtained by using the menus under text mode, and I prefer the latter by far. Therefore, I have to conclude that using the menus does something more than just calling, say, ps-print-region.