aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-17 02:10:03 +0000
committerRichard M. Stallman1993-07-17 02:10:03 +0000
commit9f9c0e277f62de816a33c6f21148df0fdafe6710 (patch)
tree1e3960b8aee482c8ad29c1a82ba0c6d21a5bbb3d /src
parentda183f87af0f57789800785448595bff7af71010 (diff)
downloademacs-9f9c0e277f62de816a33c6f21148df0fdafe6710.tar.gz
emacs-9f9c0e277f62de816a33c6f21148df0fdafe6710.zip
(Vhelp_menu_bar_map): Deleted.
(menu_bar_items): Move elts for events in Vmenu_bar_final_items to end. (syms_of_keyboard): Corresponding changes.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 60c44d55f89..e0a43095058 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -130,8 +130,8 @@ 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. */ 133/* List of items that should move to the end of the menu bar. */
134Lisp_Object Vhelp_menu_bar_map; 134Lisp_Object Vmenu_bar_final_items;
135 135
136/* Character that causes a quit. Normally C-g. 136/* Character that causes a quit. Normally C-g.
137 137
@@ -3161,7 +3161,7 @@ menu_bar_items ()
3161 in the current keymaps, or nil where it is not a prefix. */ 3161 in the current keymaps, or nil where it is not a prefix. */
3162 Lisp_Object *maps; 3162 Lisp_Object *maps;
3163 3163
3164 Lisp_Object def, tem; 3164 Lisp_Object def, tem, tail;
3165 3165
3166 Lisp_Object result; 3166 Lisp_Object result;
3167 3167
@@ -3212,7 +3212,14 @@ menu_bar_items ()
3212 result = menu_bar_one_keymap (def, result); 3212 result = menu_bar_one_keymap (def, result);
3213 } 3213 }
3214 3214
3215 result = menu_bar_one_keymap (Vhelp_menu_bar_map, result); 3215 for (tail = Vmenu_bar_final_items; CONSP (tail); tail = XCONS (tail)->cdr)
3216 {
3217 Lisp_Object elt;
3218
3219 elt = Fassq (XCONS (tail)->car, result);
3220 if (!NILP (elt))
3221 result = Fcons (elt, Fdelq (elt, result));
3222 }
3216 3223
3217 result = Fnreverse (result); 3224 result = Fnreverse (result);
3218 Vinhibit_quit = oquit; 3225 Vinhibit_quit = oquit;
@@ -5223,9 +5230,10 @@ Buffer modification stores t in this variable.");
5223 "t means menu bar, specified Lucid style, needs to be recomputed."); 5230 "t means menu bar, specified Lucid style, needs to be recomputed.");
5224 Vlucid_menu_bar_dirty_flag = Qnil; 5231 Vlucid_menu_bar_dirty_flag = Qnil;
5225 5232
5226 DEFVAR_LISP ("help-menu-bar-map", &Vhelp_menu_bar_map, 5233 DEFVAR_LISP ("menu-bar-final-items", &Vmenu_bar_final_items,
5227 "Keymap defining global menu items to appear at end of menu bar."); 5234 "List of menu bar items to move to the end of the menu bar.\n\
5228 Vhelp_menu_bar_map = Qnil; 5235The elements of the listare event types that may have menu bar bindings.");
5236 Vmenu_bar_final_items = Qnil;
5229} 5237}
5230 5238
5231keys_of_keyboard () 5239keys_of_keyboard ()