Function: widget-tabable-at

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

Signature

(widget-tabable-at &optional POS)

Documentation

Return the tabable widget at POS, or nil.

POS defaults to the value of (point). If user option widget-skip-inactive is non-nil, inactive widgets are not tabable.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-tabable-at (&optional pos)
  "Return the tabable widget at POS, or nil.
POS defaults to the value of (point).  If user option
`widget-skip-inactive' is non-nil, inactive widgets are not tabable."
  (let ((widget (widget-at pos)))
    (if (and widget (if widget-skip-inactive
                        (widget-apply widget :active)
                      t))
	(let ((order (widget-get widget :tab-order)))
	  (if order
	      (if (>= order 0)
		  widget)
	    widget)))))