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

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

Re: [h-e-w] Re: tmm showing greyed-out menus


From: Jason Rumney
Subject: Re: [h-e-w] Re: tmm showing greyed-out menus
Date: 25 Feb 2002 22:18:29 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

Ilya Zakharevich <address@hidden> writes:

> On Mon, Feb 25, 2002 at 03:23:38PM -0500, Nascif Abousalh-Neto wrote:
> > I see, you're suggesting I change the code to use the Emacs menu info to
> > skip the greyed-out entries.
> > Since you're the original author of tmm, would you please provide some
> > pointers on where to look at the code to make those changes? I would be glad
> > to give it a try.
> 
> All you need is how to fetch the info.  There should be an API to
> gray/ungray an entry (look in easymenu.el).  One should be able to
> deduce how-to-peek looking on the implementation.

You want the :enable property of the menu item (and probably the
:visible property as well in case some lisp code makes a menu item
invisible without disabling it).  Evaluating those should tell you
whether the menu should be displayed now.

-- 
Jason Rumney




reply via email to

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