help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find commands run by menu?


From: harven
Subject: Re: How to find commands run by menu?
Date: Wed, 09 Dec 2009 17:35:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> kj wrote:
>> 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.

I think that it actually calls ps-print-region-with-faces


reply via email to

[Prev in Thread] Current Thread [Next in Thread]