Function: menu-bar-make-mm-toggle
menu-bar-make-mm-toggle is a macro defined in menu-bar.el.gz.
Signature
(menu-bar-make-mm-toggle FNAME DOC HELP &optional PROPS)
Documentation
Make a menu-item for a global minor mode toggle.
FNAME is the minor mode's name (variable and function). DOC is the text to use for the menu entry. HELP is the text to use for the tooltip. PROPS are additional properties.
Source Code
;; Defined in /usr/src/emacs/lisp/menu-bar.el.gz
;(defvar-keymap menu-bar-preferences-menu :name "Preferences")
(defmacro menu-bar-make-mm-toggle (fname doc help &optional props)
"Make a menu-item for a global minor mode toggle.
FNAME is the minor mode's name (variable and function).
DOC is the text to use for the menu entry.
HELP is the text to use for the tooltip.
PROPS are additional properties."
`'(menu-item ,doc ,fname
,@props
:help ,help
:button (:toggle . (and (default-boundp ',fname)
(default-value ',fname)))))