summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorKevin Ryde <user42_kevin@yahoo.com.au>2019-08-03 20:32:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-08-03 20:32:24 +0200
commit0e3e01221583185e7a9ab701d1f541f36d07fe0b (patch)
tree68c3278d39610cf943a6704024580efaccacbce0 /lisp/emacs-lisp
parent9fa60c19d0470176b1b49e9d7d4ce8e030e75657 (diff)
downloademacs-0e3e01221583185e7a9ab701d1f541f36d07fe0b.tar.gz
emacs-0e3e01221583185e7a9ab701d1f541f36d07fe0b.tar.bz2
emacs-0e3e01221583185e7a9ab701d1f541f36d07fe0b.zip
easy-menu-define doc string fix
* emacs-lisp/easymenu.el (easy-menu-define): Docstring :label and :help of the menu itself.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/easymenu.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el
index 5bf046d41db..f274f62164f 100644
--- a/lisp/emacs-lisp/easymenu.el
+++ b/lisp/emacs-lisp/easymenu.el
@@ -71,6 +71,17 @@ pairs:
if the expression evaluates to a non-nil value. `:enable' is
an alias for `:active'.
+ :label FORM
+ FORM is an expression that is dynamically evaluated and whose
+ value serves as the menu's label (the default is the first
+ element of MENU).
+
+ :help HELP
+ HELP is a string, the help to display for the menu.
+ In a GUI this is a \"tooltip\" on the menu button. (Though
+ in Lucid :help is not shown for the top-level menu bar, only
+ for sub-menus.)
+
The rest of the elements in MENU are menu items.
A menu item can be a vector of three elements: