Function: pcomplete-match

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

Signature

(pcomplete-match REGEXP &optional INDEX OFFSET START)

Documentation

Like string-match, but on the current completion argument.

Source Code

;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
(defun pcomplete-match (regexp &optional index offset start)
  "Like `string-match', but on the current completion argument."
  (let ((arg (pcomplete-arg (or index 1) offset)))
    (if arg
	(string-match regexp arg start)
      (throw 'pcompleted nil))))