aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-02 05:07:16 +0000
committerRichard M. Stallman2001-12-02 05:07:16 +0000
commit0b1f45722e4279acad99fa9c80f1fae20de025a2 (patch)
tree8d47264a81f5200e7ef6133567888da68373ea29 /src
parent691d6e9e6ff4074b8cecb643ded5d9815dc9d9a3 (diff)
downloademacs-0b1f45722e4279acad99fa9c80f1fae20de025a2.tar.gz
emacs-0b1f45722e4279acad99fa9c80f1fae20de025a2.zip
(menu_highlight_callback): Use `help' field as Lisp_Object.
(single_submenu, xmenu_show): Set `help' field as Lisp_Object.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 75799a80fc0..3df3cab9be4 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -246,8 +246,7 @@ init_menu_items ()
246 menu_items_submenu_depth = 0; 246 menu_items_submenu_depth = 0;
247} 247}
248 248
249/* Call at the end of generating the data in menu_items. 249/* Call at the end of generating the data in menu_items. */
250 This fills in the number of items in the last pane. */
251 250
252static void 251static void
253finish_menu_items () 252finish_menu_items ()
@@ -1186,7 +1185,7 @@ menu_highlight_callback (widget, id, call_data)
1186 struct frame *f; 1185 struct frame *f;
1187 Lisp_Object frame, help; 1186 Lisp_Object frame, help;
1188 1187
1189 help = wv && wv->help ? build_string (wv->help) : Qnil; 1188 help = wv ? wv->help : Qnil;
1190 1189
1191 /* Determine the frame for the help event. */ 1190 /* Determine the frame for the help event. */
1192 f = menubar_id_to_frame (id); 1191 f = menubar_id_to_frame (id);
@@ -1535,10 +1534,10 @@ single_submenu (item_key, item_name, maps)
1535 abort (); 1534 abort ();
1536 1535
1537 wv->selected = !NILP (selected); 1536 wv->selected = !NILP (selected);
1538 if (STRINGP (help)) 1537 if (! STRINGP (help))
1539 wv->help = (char *) XSTRING (help)->data; 1538 help = Qnil;
1540 else 1539
1541 wv->help = NULL; 1540 wv->help = help;
1542 1541
1543 prev_wv = wv; 1542 prev_wv = wv;
1544 1543
@@ -2133,10 +2132,10 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2133 2132
2134 wv->selected = !NILP (selected); 2133 wv->selected = !NILP (selected);
2135 2134
2136 if (STRINGP (help)) 2135 if (! STRINGP (help))
2137 wv->help = (char *) XSTRING (help)->data; 2136 help = Qnil;
2138 else 2137
2139 wv->help = NULL; 2138 wv->help = help;
2140 2139
2141 prev_wv = wv; 2140 prev_wv = wv;
2142 2141