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
510d5bf6
Commit
510d5bf6
authored
Apr 18, 2006
by
Richard M. Stallman
Browse files
Comment changes.
parent
1fc4d463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/xmenu.c
src/xmenu.c
+6
-0
No files found.
src/xmenu.c
View file @
510d5bf6
...
...
@@ -2180,21 +2180,27 @@ set_frame_menubar (f, first_time, deep_p)
/* If there has been no change in the Lisp-level contents
of the menu bar, skip redisplaying it. Just exit. */
/* Compare the new menu items with the ones computed last time. */
for
(
i
=
0
;
i
<
previous_menu_items_used
;
i
++
)
if
(
menu_items_used
==
i
||
(
!
EQ
(
previous_items
[
i
],
XVECTOR
(
menu_items
)
->
contents
[
i
])))
break
;
if
(
i
==
menu_items_used
&&
i
==
previous_menu_items_used
&&
i
!=
0
)
{
/* The menu items have not changed. Don't bother updating
the menus in any form, since it would be a no-op. */
free_menubar_widget_value_tree
(
first_wv
);
discard_menu_items
();
unbind_to
(
specpdl_count
,
Qnil
);
return
;
}
/* The menu items are different, so store them in the frame. */
f
->
menu_bar_vector
=
menu_items
;
f
->
menu_bar_items_used
=
menu_items_used
;
/* This calls restore_menu_items to restore menu_items, etc.,
as they were outside. */
unbind_to
(
specpdl_count
,
Qnil
);
/* Now GC cannot happen during the lifetime of the widget_value,
...
...
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