The doc string of `menu-bar-update-hook' states that it is a "... hook
run for clicks on menu bar, before displaying a submenu."
Execute the following code snippet:
(progn
(setq hook-counter 0)
(add-hook 'menu-bar-update-hook
(lambda ()
(setq hook-counter (1+ hook-counter))
(message "menu-bar-update-hook+%s"
(number-to-string hook-counter)))))
Now open a file, do some basic editing, insert some newlines, move
around with `C-v' or `M-v' till you hit the bottom or top of the file
respectively and watch how the call count increases without even
touching the menu. Is that how it is supposed to be?
--
Ralf
_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug