[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: |
Joost Kremers |
Subject: |
Re: How to tell if a command was called from a menu? |
Date: |
17 Aug 2009 08:52:34 GMT |
User-agent: |
slrn/0.9.9 (Linux) |
Lennart Borgman wrote:
> 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.
cool, thanks! i had found (member 'menu-bar last-nonmenu-event) myself, but i
suspect your way is better. (in fact, judging by the documentation, i think
last-nonmenu-event should be nil when a command is called from a menu, but
instead it seems to have the value (menu-bar)...)
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)