Function: widget-create-child-and-convert
widget-create-child-and-convert is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-create-child-and-convert PARENT TYPE &rest ARGS)
Documentation
As part of the widget PARENT, create a child widget TYPE.
The child is converted, using the keyword arguments ARGS.
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-create-child-and-convert (parent type &rest args)
"As part of the widget PARENT, create a child widget TYPE.
The child is converted, using the keyword arguments ARGS."
(let ((widget (apply 'widget-convert type args)))
(widget-put widget :parent parent)
(unless (widget-get widget :indent)
(widget-put widget :indent (+ (or (widget-get parent :indent) 0)
(or (widget-get widget :extra-offset) 0)
(widget-get parent :offset))))
(widget-apply widget :create)
widget))