From: Richard M. Stallman Date: Wed, 9 Oct 1996 04:56:48 +0000 (+0000) Subject: (Fx_popup_menu): Give the menu a title when the menu is a single keymap. X-Git-Tag: emacs-20.1~3533 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4f9ad01661b1882883205f6ccefd58ab1b4e9f6a;p=emacs.git (Fx_popup_menu): Give the menu a title when the menu is a single keymap. --- diff --git a/src/xmenu.c b/src/xmenu.c index 3eb56ff3120..cec9aa0d004 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -880,6 +880,8 @@ cached information about equivalent key sequences.") /* Search for a string appearing directly as an element of the keymap. That string is the title of the menu. */ prompt = map_prompt (keymap); + if (NILP (title) && !NILP (prompt)) + title = prompt; /* Make that be the pane title of the first pane. */ if (!NILP (prompt) && menu_items_n_panes >= 0)