From: david@adboyd.com (J. David Boyd)
To: help-gnu-emacs@gnu.org
Subject: Re: How to find commands run by menu?
Date: Wed, 09 Dec 2009 13:44:43 -0500 [thread overview]
Message-ID: <e8rhbs0m1gk.fsf@FLM000025LVE9F.catmktg.com> (raw)
In-Reply-To: hfmdmq$1pj$1@reader1.panix.com
kj <no.email@please.post> writes:
> 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.
C-h k, then place the mouse on the appropriate menu item.
When I do C-h k, then work my way down to the 'Postscript Print Buffer'
item, and release the mouse button, emacs tells me that the function is
(ps-print-buffer-with-faces)
next prev parent reply other threads:[~2009-12-09 18:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 20:42 How to find commands run by menu? kj
2009-12-08 21:19 ` Pascal J. Bourguignon
2009-12-08 22:13 ` kj
2009-12-08 23:29 ` Pascal J. Bourguignon
2009-12-09 9:22 ` Peter Dyballa
[not found] ` <mailman.12591.1260350574.2239.help-gnu-emacs@gnu.org>
2009-12-09 15:57 ` kj
2009-12-09 16:06 ` Andreas Röhler
[not found] ` <mailman.12600.1260374782.2239.help-gnu-emacs@gnu.org>
2009-12-09 16:35 ` harven
2009-12-09 18:44 ` J. David Boyd [this message]
2009-12-10 13:30 ` Jason Rumney
2009-12-11 15:44 ` kj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e8rhbs0m1gk.fsf@FLM000025LVE9F.catmktg.com \
--to=david@adboyd.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).