[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple runs of menu-bar-update-hook
From: |
Kim F. Storm |
Subject: |
Re: Multiple runs of menu-bar-update-hook |
Date: |
Fri, 28 Jul 2006 14:57:36 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Marshall, Simon" <address@hidden> writes:
> 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.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Multiple runs of menu-bar-update-hook, Marshall, Simon, 2006/07/26
- RE: Multiple runs of menu-bar-update-hook, Marshall, Simon, 2006/07/28
- RE: Multiple runs of menu-bar-update-hook, Marshall, Simon, 2006/07/28
- Re: Multiple runs of menu-bar-update-hook,
Kim F. Storm <=
- RE: Multiple runs of menu-bar-update-hook, Marshall, Simon, 2006/07/28