This function pops up a menu specified by menu-description, which is a menu description (see Menu Format). The menu is displayed at the current mouse position.
Some machinery is provided that attempts to provide a higher-level mechanism onto pop-up menus. This only works if you do not redefine the binding for button3.
This function pops up a menu of global and mode-specific commands. The menu is computed by combining
global-popup-menuandmode-popup-menu. This is the default binding for button3. You should generally not change this binding.
This holds the global popup menu. This is present in all modes. (This is
nilby default.)
The mode-specific popup menu. Automatically buffer local. This is appended to the default items in
global-popup-menu.
Function or functions run before a mode-specific popup menu is made visible. These functions are called with no arguments, and should interrogate and modify the value of
global-popup-menuormode-popup-menuas desired. Note: this hook is only run if you usepopup-mode-menufor activating the global and mode-specific commands; if you have your own binding for button3, this hook won't be run.
The following convenience functions are provided for displaying pop-up menus.