unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Joost Kremers <joostkremers@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to tell if a command was called from a menu?
Date: Sat, 15 Aug 2009 17:07:38 +0200	[thread overview]
Message-ID: <e01d8a50908150807h6029d23an8decb4bbb31e8446@mail.gmail.com> (raw)
In-Reply-To: <slrnh8dg1f.4c3.joostkremers@j.kremers4.news.arnhem.chello.nl>

On Sat, Aug 15, 2009 at 4:04 PM, Joost Kremers<joostkremers@yahoo.com> wrote:
> hi all,
>
> is there a reliable way to tell in elisp if a command was called from a menu?
> commands such as find-file and y-or-n-p behave differently when called from a
> menu (they use a popup window instead of the minibuffer) but it seems that the
> relevant check is done in the C part of the source...


I believe you can do it the same way it is done in
ourcomments-M-x-menu-mode. It is in the file ourcomments-util.el in
nXhtml repository.




  reply	other threads:[~2009-08-15 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-15 14:04 How to tell if a command was called from a menu? Joost Kremers
2009-08-15 15:07 ` Lennart Borgman [this message]
     [not found] ` <mailman.4631.1250348865.2239.help-gnu-emacs@gnu.org>
2009-08-17  8:52   ` Joost Kremers

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=e01d8a50908150807h6029d23an8decb4bbb31e8446@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joostkremers@yahoo.com \
    /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).