[Top][All Lists]

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

Re: Menu filter triggered too early

From: Stefan Monnier
Subject: Re: Menu filter triggered too early
Date: Sat, 07 May 2005 12:18:03 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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 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.

Well, you may not be able to tell when it's done, but you can tell whether
it's done at one specific place or not: add a `message' before
easy-menu-define and another after and see whether your filter's message
occurs between the two or not.

In any case I guess it just takes place as part of the first redisplay after


reply via email to

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