Mercurial > emacs
comparison src/keyboard.c @ 4115:4aafcdc3d9e7
(Vhelp_menu_bar_map): Deleted.
(menu_bar_items): Move elts for events in Vmenu_bar_final_items to end.
(syms_of_keyboard): Corresponding changes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 17 Jul 1993 02:10:03 +0000 |
parents | bfc21ea9a00f |
children | 9f3fe01a678d |
comparison
equal
deleted
inserted
replaced
4114:5746e25610f8 | 4115:4aafcdc3d9e7 |
---|---|
128 Lisp_Object Vhelp_form; | 128 Lisp_Object Vhelp_form; |
129 | 129 |
130 /* Command to run when the help character follows a prefix key. */ | 130 /* Command to run when the help character follows a prefix key. */ |
131 Lisp_Object Vprefix_help_command; | 131 Lisp_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. */ |
134 Lisp_Object Vhelp_menu_bar_map; | 134 Lisp_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 |
138 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 |
139 ASCII char, since we want to make it our interrupt character. | 139 ASCII char, since we want to make it our interrupt character. |
3159 | 3159 |
3160 /* maps[0..nmaps-1] are the prefix definitions of KEYBUF[0..t-1] | 3160 /* maps[0..nmaps-1] are the prefix definitions of KEYBUF[0..t-1] |
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 |
3168 int mapno; | 3168 int mapno; |
3169 Lisp_Object oquit; | 3169 Lisp_Object oquit; |
3210 tem = Fkeymapp (def); | 3210 tem = Fkeymapp (def); |
3211 if (!NILP (tem)) | 3211 if (!NILP (tem)) |
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; |
3219 return result; | 3226 return result; |
3220 } | 3227 } |
5221 | 5228 |
5222 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag, | 5229 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag, |
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; | 5235 The elements of the listare event types that may have menu bar bindings."); |
5236 Vmenu_bar_final_items = Qnil; | |
5229 } | 5237 } |
5230 | 5238 |
5231 keys_of_keyboard () | 5239 keys_of_keyboard () |
5232 { | 5240 { |
5233 initial_define_key (global_map, Ctl ('Z'), "suspend-emacs"); | 5241 initial_define_key (global_map, Ctl ('Z'), "suspend-emacs"); |