Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9cd2ced7
Commit
9cd2ced7
authored
Aug 27, 2000
by
Stefan Monnier
Browse files
(menu_bar_item): Detect duplicate entries for all items
to better match the key-lookup behavior.
parent
67320f8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
src/keyboard.c
src/keyboard.c
+10
-12
No files found.
src/keyboard.c
View file @
9cd2ced7
...
...
@@ -6346,29 +6346,27 @@ menu_bar_item (key, item)
&XVECTOR (menu_bar_items_vector)->contents[i],
(menu_bar_items_index - i - 4) * sizeof (Lisp_Object));
menu_bar_items_index -= 4;
return;
}
/* If there's no definition for this key yet,
just ignore `undefined'. */
return;
}
GCPRO1 (key); /* Is this necessary? */
i = parse_menu_item (item, 0, 1);
UNGCPRO;
if (!i)
return;
/* If this keymap has already contributed to this KEY,
don't contribute to it a second time. */
tem = Fmemq (key, menu_bar_one_keymap_changed_items);
if (!NILP (tem))
if (!NILP (tem)
|| NILP (item)
)
return;
menu_bar_one_keymap_changed_items
= Fcons (key, menu_bar_one_keymap_changed_items);
/* We add to menu_bar_one_keymap_changed_items before doing the
parse_menu_item, so that if it turns out it wasn't a menu item,
it still correctly hides any further menu item. */
GCPRO1 (key);
i = parse_menu_item (item, 0, 1);
UNGCPRO;
if (!i)
return;
item = XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF];
/* Find any existing item for this KEY. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment