widget-convert-text

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

(widget-convert-text TYPE FROM TO &optional BUTTON-FROM BUTTON-TO &rest ARGS)

Return a widget of type TYPE with endpoint FROM TO.
No text will be inserted to the buffer, instead the text between FROM
and TO will be used as the widgets end points. If optional arguments
BUTTON-FROM and BUTTON-TO are given, these will be used as the widgets
button end points.
Optional ARGS are extra keyword arguments for TYPE.