Variable: x-pre-popup-menu-hook
x-pre-popup-menu-hook is a variable defined in menu.c.
Value
nil
Documentation
Hook run before x-popup-menu displays a popup menu.
It is only run before the menu is really going to be displayed. It
won't be run if x-popup-menu fails or returns for some other reason
(such as the keymap is invalid).
Probably introduced at or before Emacs version 29.1.
Source Code
// Defined in /usr/src/emacs/src/menu.c
DEFVAR_LISP ("x-pre-popup-menu-hook", Vx_pre_popup_menu_hook,
doc: /* Hook run before `x-popup-menu' displays a popup menu.
It is only run before the menu is really going to be displayed. It
won't be run if `x-popup-menu' fails or returns for some other reason
(such as the keymap is invalid). */);