Mercurial > emacs
diff src/xmenu.c @ 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 | 16fb6dcfa4e8 |
| children | 9cbbf721b91c |
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)
