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

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

Re: How to tell if a command was called from a menu?


From: Lennart Borgman
Subject: Re: How to tell if a command was called from a menu?
Date: Sat, 15 Aug 2009 17:07:38 +0200

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 via email to

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