Function: widget-checklist-match-inline
widget-checklist-match-inline is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-checklist-match-inline WIDGET VALS)
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-checklist-match-inline (widget vals)
;; Find the values which match a type in the checklist.
(let ((greedy (widget-get widget :greedy))
(args (copy-sequence (widget-get widget :args)))
found rest)
(while vals
(let ((answer (widget-checklist-match-up args vals)))
(cond (answer
(let ((vals2 (widget-match-inline answer vals)))
(setq found (append found (car vals2))
vals (cdr vals2)
args (delq answer args))))
(greedy
(setq rest (append rest (list (car vals)))
vals (cdr vals)))
(t
(setq rest (append rest vals)
vals nil)))))
(cons found rest)))