Function: cvs-match

cvs-match is a macro defined in pcvs-parse.el.gz.

Signature

(cvs-match RE &rest MATCHES)

Documentation

Try to match RE and extract submatches.

If RE matches, advance the point until the line after the match and then assign the variables as specified in MATCHES (via setq).

Source Code

;; Defined in /usr/src/emacs/lisp/vc/pcvs-parse.el.gz
;;(defsubst COLLECT (exp) (push exp *result*))
;;(defsubst PROG (e) t)
;;(defmacro SEQ (&rest seqs) (cons 'and seqs))

(defmacro cvs-match (re &rest matches)
  "Try to match RE and extract submatches.
If RE matches, advance the point until the line after the match and
then assign the variables as specified in MATCHES (via `setq')."
  (cons 'cvs-do-match
	(cons re (mapcar (lambda (match)
			   `(cons ',(car match) ,(cadr match)))
			 matches))))