aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-10-09 04:56:48 +0000
committerRichard M. Stallman1996-10-09 04:56:48 +0000
commit4f9ad01661b1882883205f6ccefd58ab1b4e9f6a (patch)
tree525c2c7c5be8eaf99b197a7c04192bc3c88c1147 /src
parente3ac26cbb8f0bbc87bb3074f840001426d8b4a74 (diff)
downloademacs-4f9ad01661b1882883205f6ccefd58ab1b4e9f6a.tar.gz
emacs-4f9ad01661b1882883205f6ccefd58ab1b4e9f6a.zip
(Fx_popup_menu): Give the menu a title when the menu is a single keymap.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c2
1 files changed, 2 insertions, 0 deletions
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.")
880 /* Search for a string appearing directly as an element of the keymap. 880 /* Search for a string appearing directly as an element of the keymap.
881 That string is the title of the menu. */ 881 That string is the title of the menu. */
882 prompt = map_prompt (keymap); 882 prompt = map_prompt (keymap);
883 if (NILP (title) && !NILP (prompt))
884 title = prompt;
883 885
884 /* Make that be the pane title of the first pane. */ 886 /* Make that be the pane title of the first pane. */
885 if (!NILP (prompt) && menu_items_n_panes >= 0) 887 if (!NILP (prompt) && menu_items_n_panes >= 0)