[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 0e3e012 3/3: easy-menu-define doc string fix
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 0e3e012 3/3: easy-menu-define doc string fix |
Date: |
Sat, 3 Aug 2019 14:33:24 -0400 (EDT) |
branch: master
commit 0e3e01221583185e7a9ab701d1f541f36d07fe0b
Author: Kevin Ryde <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
easy-menu-define doc string fix
* emacs-lisp/easymenu.el (easy-menu-define): Docstring :label and
:help of the menu itself.
---
lisp/emacs-lisp/easymenu.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el
index 5bf046d..f274f62 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: