[Top][All Lists]

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

menu-bar-update-hook run very often

From: Ralf Angeli
Subject: menu-bar-update-hook run very often
Date: Sat, 26 Feb 2005 17:37:11 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

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:

  (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?


reply via email to

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