Function: widget-type-value-create

widget-type-value-create is a byte-compiled function defined in wid-edit.el.gz.

Signature

(widget-type-value-create WIDGET)

Documentation

Convert and instantiate the value of the :type attribute of WIDGET.

Store the newly created widget in the :children attribute.

The value of the :type attribute should be an unconverted widget type.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-type-value-create (widget)
  "Convert and instantiate the value of the :type attribute of WIDGET.
Store the newly created widget in the :children attribute.

The value of the :type attribute should be an unconverted widget type."
  (let ((value (widget-get widget :value))
	(type (widget-get widget :type)))
    (widget-put widget :children
                (list (widget-create-child-value widget
                                                 (widget-convert type)
                                                 value)))))