emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Menu filter triggered too early


From: Ralf Angeli
Subject: Re: Menu filter triggered too early
Date: Sat, 07 May 2005 18:03:25 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

* Stefan Monnier (2005-05-07) writes:

>> I expected the filter function to be called only when the menu is
>> being activated.
>
> In many circumstances, the whole menu is computed even when the purpose is
> only to refresh the menu-bar itself.  This is not really considered as
> a bug, just a misfeature.

Hm, this might be a knock-out criterion for the usage of menu filters
or hooks in order to ask the user for a master file of a multi-file
LaTeX document.

> OTOH, you say that the filter is run during easy-menu-define, which sounds
> very odd and would most likely be a bug.  Are you sure that's what happens?

No, because I don't know how to debug the filter function.  If it
would produce a backtrace or debugging buffer upon putting (error) or
(debug) into the filter function, I could see where it is called.

-- 
Ralf




reply via email to

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