Function: pcomplete-test

pcomplete-test is a byte-compiled function defined in pcomplete.el.gz.

Signature

(pcomplete-test PREDICATES &optional INDEX OFFSET)

Documentation

Predicates to test the current programmable argument with.

Source Code

;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
(defun pcomplete-test (predicates &optional index offset)
  "Predicates to test the current programmable argument with."
  (let ((arg (pcomplete-arg (or index 1) offset)))
    (unless (null predicates)
      (if (not (listp predicates))
	  (pcomplete--test predicates arg)
	(let ((pred predicates)
	      found)
	  (while (and pred (not found))
	    (setq found (pcomplete--test (car pred) arg)
		  pred (cdr pred)))
	  found)))))