From: ueno Date: Mon, 27 Oct 2003 12:55:43 +0000 (+0000) Subject: (riece-make-interval-regexp): Simplified. X-Git-Tag: riece-0_1_6~9 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac4357b486b2f72e161dd2b4f050c6f4f9354709;p=elisp%2Friece.git (riece-make-interval-regexp): Simplified. --- diff --git a/lisp/riece-compat.el b/lisp/riece-compat.el index 25d544e..2bc6469 100644 --- a/lisp/riece-compat.el +++ b/lisp/riece-compat.el @@ -62,8 +62,8 @@ (if (string-match "0\\{0\\}" "") (defun riece-make-interval-regexp (regexp min &optional max) (if max - (concat regexp (format "\\{%d,%d\\}" min max)) - (concat regexp (format "\\{%d\\}" min)))) + (format "%s\\{%d,%d\\}" regexp min max) + (format "%s\\{%d\\}" regexp min))) ;; Emacs 20.7 doesn't support \{...\} in regexps. (defun riece-make-interval-regexp (regexp min &optional max) (mapconcat #'identity