Function: widget-at

widget-at is a byte-compiled function defined in wid-edit.el.gz.

Signature

(widget-at &optional POS)

Documentation

The button or field at POS (default, point).

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-at (&optional pos)
  "The button or field at POS (default, point)."
  (let ((widget (or (get-char-property (or pos (point)) 'button)
                    (widget-field-at pos))))
    (and (widgetp widget) widget)))