Function: widget-text
widget-text is a byte-compiled function defined in wid-edit.el.gz.
Signature
(widget-text WIDGET)
Documentation
Get the text representation of the widget.
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-text (widget)
"Get the text representation of the widget."
(when-let ((from (widget-get widget :from))
(to (widget-get widget :to)))
(when (eq (marker-buffer from) (marker-buffer to)) ; is this check necessary?
(buffer-substring-no-properties from to))))