Function: customize-menu-create
customize-menu-create is an autoloaded and byte-compiled function
defined in cus-edit.el.gz.
Signature
(customize-menu-create SYMBOL &optional NAME)
Documentation
Return a customize menu for customization group SYMBOL.
If optional NAME is given, use that as the name of the menu.
Otherwise the menu will be named Customize.
The format is suitable for use with easy-menu-define.
Source Code
;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
;;;###autoload
(defun customize-menu-create (symbol &optional name)
"Return a customize menu for customization group SYMBOL.
If optional NAME is given, use that as the name of the menu.
Otherwise the menu will be named `Customize'.
The format is suitable for use with `easy-menu-define'."
(unless name
(setq name "Customize"))
`(,name
:filter (lambda (&rest junk)
(let ((menu (custom-menu-create ',symbol)))
(if (consp menu) (cdr menu) menu)))))