Function: widgetp

widgetp is an autoloaded and byte-compiled function defined in wid-edit.el.gz.

Signature

(widgetp WIDGET)

Documentation

Return non-nil if WIDGET is a widget.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
;;;###autoload
(defun widgetp (widget)
  "Return non-nil if WIDGET is a widget."
  (if (symbolp widget)
      (get widget 'widget-type)
    (and (consp widget)
	 (symbolp (car widget))
	 (get (car widget) 'widget-type))))