widget-convert

widget-convert is a compiled Lisp function in `wid-edit.el'.

(widget-convert TYPE &rest ARGS)

Convert TYPE to a widget without inserting it in the buffer.
The optional ARGS are additional keyword arguments.