Function: widget-match-inline

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

Signature

(widget-match-inline WIDGET VALS)

Documentation

In WIDGET, match the start of VALS.

For an inline widget or for a widget that acts like one (see widget-inline-p), try to match elements in VALS as far as possible. Otherwise, match the first element of the list VALS.

Return a list whose car contains all members of VALS that matched WIDGET.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-match-inline (widget vals)
  "In WIDGET, match the start of VALS.

For an inline widget or for a widget that acts like one (see `widget-inline-p'),
try to match elements in VALS as far as possible.  Otherwise, match the first
element of the list VALS.

Return a list whose car contains all members of VALS that matched WIDGET."
  (cond ((widget-inline-p widget t)
	 (widget-apply widget :match-inline vals))
	((and (listp vals)
	      (widget-apply widget :match (car vals)))
	 (cons (list (car vals)) (cdr vals)))
	(t nil)))