Function: describe-text-widget

describe-text-widget is a byte-compiled function defined in descr-text.el.gz.

Signature

(describe-text-widget WIDGET)

Documentation

Insert text to describe WIDGET in the current buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/descr-text.el.gz
;;; Describe-Text Utilities.

(defun describe-text-widget (widget)
  "Insert text to describe WIDGET in the current buffer."
  (insert-text-button
   (symbol-name (if (symbolp widget) widget (car widget)))
   'action (lambda (&rest _ignore) (widget-browse widget))
   'help-echo "mouse-2, RET: browse this widget")
  (insert " ")
  (insert-text-button
   "(widget)Top" 'type 'help-info 'help-args '("(widget)Top")))