Function: widget-field-find
widget-field-find is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-field-find POS)
Documentation
Return the field at POS.
Unlike (get-char-property POS 'field), this works with empty fields too.
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-field-find (pos)
"Return the field at POS.
Unlike (get-char-property POS \\='field), this works with empty fields too."
(let (found)
(dolist (field widget-field-list)
(when (and (<= (widget-field-start field) pos)
(<= pos (widget-field-end field)))
(when found
(error "Overlapping fields"))
(setq found field)))
found))