Subject: Re: bug#24237: 24.5; (elisp)`Extended Menu Items', :filter warning

From: Eli Zaretskii <[email-masked]>
Date: Sun, 13 Dec 2020 17:07:18 +0200

> Date: Sat, 12 Dec 2020 12:45:17 -0800 (PST)
> From: Drew Adams <[email-masked]>
> Cc: [email-masked]
> 
> IF the guess is correct that this caveat does NOT
> in fact apply to this use case then no, it is
> NOT the case that "You should always write these
> filter functions as if they are called at any time."
> If that guess is correct then what you say as the
> reason for not fixing this doc bug simply isn't
> relevant.

I don't think I understand what "this case" is, but in general menu
functions could be called whenever the display engine needs to
recalculate the contents and the dimensions of the menu, and that
could basically be every redisplay cycle, depending on circumstances.