Function: custom-buffer-create
custom-buffer-create is an autoloaded and byte-compiled function
defined in cus-edit.el.gz.
Signature
(custom-buffer-create OPTIONS &optional NAME DESCRIPTION)
Documentation
Create a buffer containing OPTIONS.
Optional NAME is the name of the buffer. OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where SYMBOL is a customization option, and WIDGET is a widget for editing that option. DESCRIPTION is unused.
Source Code
;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
;;;###autoload
(defun custom-buffer-create (options &optional name _description)
"Create a buffer containing OPTIONS.
Optional NAME is the name of the buffer.
OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where
SYMBOL is a customization option, and WIDGET is a widget for editing
that option.
DESCRIPTION is unused."
(pop-to-buffer-same-window
(custom-get-fresh-buffer (or name "*Customization*")))
(custom-buffer-create-internal options)
;; Notify the command buttons, to correctly enable/disable them.
(dolist (btn custom-command-buttons)
(widget-apply btn :notify)))