summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-09-07 01:24:23 +0000
committerRichard M. Stallman <rms@gnu.org>1997-09-07 01:24:23 +0000
commit20ebbd717377af3eab253fb60c1ed82e67e99513 (patch)
tree8fceb3789d83fcb99f756ba5b3ecf43bf0841573
parentaafa288dbac119bc72a6a15ba79af1e839419e74 (diff)
downloademacs-20ebbd717377af3eab253fb60c1ed82e67e99513.tar.gz
(regexp-opt): Doc fix.
-rw-r--r--lisp/emacs-lisp/regexp-opt.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index f8b733041e2..589f1b70ac4 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -4,7 +4,6 @@
;; Author: Simon Marshall <simon@gnu.ai.mit.edu>
;; Keywords: strings, regexps
-;; Version: 1.05.01
;; This file is part of GNU Emacs.
@@ -84,9 +83,9 @@
;;;###autoload
(defun regexp-opt (strings &optional paren)
"Return a regexp to match a string in STRINGS.
-Each string should be unique in STRINGS and should not contain any regexps.
-If optional PAREN non-nil, ensure that the returned regexp is enclosed by at
-least one regexp grouping construct.
+Each string should be unique in STRINGS and should not contain any regexps,
+quoted or not. If optional PAREN is non-nil, ensure that the returned regexp
+is enclosed by at least one regexp grouping construct.
The returned regexp is typically more efficient than the equivalent regexp:
(let ((open-paren (if PAREN \"\\\\(\" \"\")) (close-paren (if PAREN \"\\\\)\" \"\")))