Function: custom-variable-menu-create

custom-variable-menu-create is a byte-compiled function defined in cus-edit.el.gz.

Signature

(custom-variable-menu-create WIDGET SYMBOL)

Documentation

Ignoring WIDGET, create a menu entry for customization variable SYMBOL.

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun custom-variable-menu-create (_widget symbol)
  "Ignoring WIDGET, create a menu entry for customization variable SYMBOL."
  (let ((type (get symbol 'custom-type)))
    (setq type (ensure-list type))
    (if (and type (widget-get type :custom-menu))
	(widget-apply type :custom-menu symbol)
      (vector (custom-unlispify-menu-entry symbol)
	      `(customize-variable ',symbol)
	      t))))