Function: gmm-regexp-concat

gmm-regexp-concat is an autoloaded and byte-compiled function defined in gmm-utils.el.gz.

Signature

(gmm-regexp-concat REGEXP)

Documentation

Potentially concat a list of regexps into a single one.

The concatenation is done with logical ORs.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gmm-utils.el.gz
;;;###autoload
(defun gmm-regexp-concat (regexp)
  "Potentially concat a list of regexps into a single one.
The concatenation is done with logical ORs."
  (cond ((null regexp)
	 nil)
	((stringp regexp)
	 regexp)
	((listp regexp)
	 (mapconcat (lambda (elt) (concat "\\(" elt "\\)"))
		    regexp
		    "\\|"))))