aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 06e47dabf99..3c52b74d389 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -130,6 +130,9 @@ Lisp_Object Vhelp_form;
130/* Command to run when the help character follows a prefix key. */ 130/* Command to run when the help character follows a prefix key. */
131Lisp_Object Vprefix_help_command; 131Lisp_Object Vprefix_help_command;
132 132
133/* Keymap for items that appear at end of menu bar. */
134Lisp_Object Vhelp_menu_bar_map;
135
133/* Character that causes a quit. Normally C-g. 136/* Character that causes a quit. Normally C-g.
134 137
135 If we are running on an ordinary terminal, this must be an ordinary 138 If we are running on an ordinary terminal, this must be an ordinary
@@ -3199,6 +3202,8 @@ menu_bar_items ()
3199 result = menu_bar_one_keymap (def, result); 3202 result = menu_bar_one_keymap (def, result);
3200 } 3203 }
3201 3204
3205 result = menu_bar_one_keymap (Vhelp_menu_bar_map, result);
3206
3202 result = Fnreverse (result); 3207 result = Fnreverse (result);
3203 Vinhibit_quit = oquit; 3208 Vinhibit_quit = oquit;
3204 return result; 3209 return result;
@@ -5198,6 +5203,10 @@ Buffer modification stores t in this variable.");
5198 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag, 5203 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag,
5199 "t means menu bar, specified Lucid style, needs to be recomputed."); 5204 "t means menu bar, specified Lucid style, needs to be recomputed.");
5200 Vlucid_menu_bar_dirty_flag = Qnil; 5205 Vlucid_menu_bar_dirty_flag = Qnil;
5206
5207 DEFVAR_LISP ("help-menu-bar-map", &Vhelp_menu_bar_map,
5208 "Keymap defining global menu items to appear at end of menu bar.");
5209 Vhelp_menu_bar_map = Qnil;
5201} 5210}
5202 5211
5203keys_of_keyboard () 5212keys_of_keyboard ()