Variable: menu-bar-update-hook

menu-bar-update-hook is a variable defined in xdisp.c.

Value

(menu-bar-update-buffers)

Documentation

Normal hook run to update the menu bar definitions.

Redisplay runs this hook before it redisplays the menu bar. This is used to update menus such as Buffers, whose contents depend on various data.

View in manual

Source Code

// Defined in /usr/src/emacs/src/xdisp.c
  DEFVAR_LISP ("menu-bar-update-hook",  Vmenu_bar_update_hook,
    doc: /* Normal hook run to update the menu bar definitions.
Redisplay runs this hook before it redisplays the menu bar.
This is used to update menus such as Buffers, whose contents depend on
various data.  */);