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

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

RE: Multiple runs of menu-bar-update-hook


From: Marshall, Simon
Subject: RE: Multiple runs of menu-bar-update-hook
Date: Fri, 28 Jul 2006 14:11:17 +0100

> > I notice that the hook is run once whenever I down-mouse-1 on the menu 
> > bar (at least with lucid or motif toolkit).  This may be a stupid 
> > question, but isn't it enough to run at this point?  Does emacs need 
> > to run the hook during buffer editing, window motion or frame 
> > switching?  (Obviously it needs to be run during buffer or window 
> > switching.)  In other words, does the hook need to be run 
> > from under redisplay() itself?
> 
> Buffer text may have a keymap or local-map property which may 
> define specific menu-items (even top-level items) that are 
> specific to that buffer position.
> 
> So even just moving point must call the update hook.

Surely only when point moves in/out of text that has those properties?

Ok, I appreciate there are special cases, just like switching the buffer or
window.  If those can be handled specifically when the buffer or window
changes, why can't your example be handled when point moves in/out of text
that has those properties?

In other words, in general, is the update of the menu bar more appropriate
for redisplay (which in reality hardly ever needs to actually update the
menu bar) or for the (small?) set of actions that can effect menu bars?

Simon.




reply via email to

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