I expected the filter function to be called only when the menu is
being activated.
You can't count on that.
I will document this fact in the manual.
___
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
* 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
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.
Indeed. Why do you want to do it from a menu-filter? It sounds like an odd
idea to start with.
OTOH, you say that the filter is run
* Stefan Monnier (2005-05-07) writes:
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.
Indeed. Why do you want to do it from a menu-filter? It sounds like an odd
idea to start with.
So we searched for a way to delay the question about the master file
until this information is actually needed in the editing process. One
of these events is when the user opens the menu for inserting a LaTeX
environment or macro.
I understand. I do think the current behavior of menu