Mercurial > emacs
changeset 16411:939831bf2103
(Fx_popup_menu): Give the menu a title when the menu is a single keymap.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 09 Oct 1996 04:56:48 +0000 |
parents | 454a13718b1f |
children | 49f61db069a4 |
files | src/xmenu.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Tue Oct 08 23:13:39 1996 +0000 +++ b/src/xmenu.c Wed Oct 09 04:56:48 1996 +0000 @@ -880,6 +880,8 @@ /* 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)