aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-15 23:17:10 +0000
committerRichard M. Stallman1993-06-15 23:17:10 +0000
commit07a675b77b2118d466f858239b408959403bd328 (patch)
tree0763b15462473ec277f0c9c3ac887badb640ec1d /src
parent01906bcac94f42eb470455ed0cdb52a62df63e29 (diff)
downloademacs-07a675b77b2118d466f858239b408959403bd328.tar.gz
emacs-07a675b77b2118d466f858239b408959403bd328.zip
(xmenu_show): Store 0 in *ERROR at the beginning.
(Fx_popup_menu): Call keymap_panes right in one-keymap case.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 1f70766426d..f067b416283 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -192,7 +192,7 @@ With this form of menu, the return value is VALUE from the chosen item.")
192 192
193 /* Extract the detailed info to make one pane. */ 193 /* Extract the detailed info to make one pane. */
194 number_of_panes = keymap_panes (&obj_list, &menus, &names, &enables, 194 number_of_panes = keymap_panes (&obj_list, &menus, &names, &enables,
195 &items, &menu, 1); 195 &items, &prefixes, &menu, 1);
196 /* The menu title seems to be ignored, 196 /* The menu title seems to be ignored,
197 so put it in the pane title. */ 197 so put it in the pane title. */
198 if (menus[0] == 0) 198 if (menus[0] == 0)
@@ -329,6 +329,7 @@ xmenu_show (parent, startx, starty, line_list, enable_list, pane_list,
329 int ulx, uly, width, height; 329 int ulx, uly, width, height;
330 int dispwidth, dispheight; 330 int dispwidth, dispheight;
331 331
332 *error = 0;
332 if (pane_cnt == 0) 333 if (pane_cnt == 0)
333 return 0; 334 return 0;
334 335