GNU bug report logs - #7684
24.0.50; doc of `x-popup-menu'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sun, 19 Dec 2010 22:31:01 UTC

Severity: normal

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: 7684 <at> debbugs.gnu.org
Subject: bug#7684: 24.0.50; doc of `x-popup-menu'
Date: Sun, 19 Dec 2010 14:36:11 -0800
Both the doc string and node `Pop-Up Menus' of the Elisp manual omit
mentioning this fact, which should be documented:
 
If you use a list of menu keymaps as the value of MENU, then the title
string (so-called "overall prompt string") of the first keymap is used
as the menu title.
 
Example:
 
(defun foo (event)
  (interactive "e")
  (x-popup-menu event `((keymap "Title"
                                (help "Help" ,@menu-bar-help-menu))
                        (keymap "Ignored"
                                (edit "Edit" ,@menu-bar-edit-menu)))))
 
(global-set-key [mouse-3] 'foo)
 
Click mouse-3.  The menu title is "Title", which is the title string for
the first keymap.  The title strings of any other keymaps
(e.g. "Ignored") are ignored.  This should be stated in the doc.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-12-13 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 





This bug report was last modified 14 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.