From: morioka Date: Fri, 10 Apr 1998 00:40:17 +0000 (+0000) Subject: (regexp-or): Moved from semi-def.el. X-Git-Tag: semi-1_2_2~22 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca8500e6acf690fbc2f294767f13eccbeb40193;p=elisp%2Fsemi.git (regexp-or): Moved from semi-def.el. --- diff --git a/mime-parse.el b/mime-parse.el index 493bbcb..ac77bff 100644 --- a/mime-parse.el +++ b/mime-parse.el @@ -45,6 +45,9 @@ which are string or symbol." (defsubst regexp-* (regexp) (concat regexp "*")) +(defsubst regexp-or (&rest args) + (concat "\\(" (mapconcat (function identity) args "\\|") "\\)")) + (defconst rfc822/quoted-pair-regexp "\\\\.") (defconst rfc822/qtext-regexp (concat "[^" (char-list-to-string std11-non-qtext-char-list) "]"))