diff options
| author | Richard M. Stallman | 1997-09-07 01:24:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-07 01:24:23 +0000 |
| commit | 582305b09bb47fb3c92bba5dc2d130163730aaa1 (patch) | |
| tree | a33db6cd8f593971a313add84d81eba71a9d478e | |
| parent | adce3b5f3dd43653e27eb6f501e4dd165f24e9db (diff) | |
| download | emacs-582305b09bb47fb3c92bba5dc2d130163730aaa1.tar.gz emacs-582305b09bb47fb3c92bba5dc2d130163730aaa1.zip | |
(regexp-opt): Doc fix.
| -rw-r--r-- | lisp/emacs-lisp/regexp-opt.el | 7 |
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 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Simon Marshall <simon@gnu.ai.mit.edu> | 5 | ;; Author: Simon Marshall <simon@gnu.ai.mit.edu> |
| 6 | ;; Keywords: strings, regexps | 6 | ;; Keywords: strings, regexps |
| 7 | ;; Version: 1.05.01 | ||
| 8 | 7 | ||
| 9 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 10 | 9 | ||
| @@ -84,9 +83,9 @@ | |||
| 84 | ;;;###autoload | 83 | ;;;###autoload |
| 85 | (defun regexp-opt (strings &optional paren) | 84 | (defun regexp-opt (strings &optional paren) |
| 86 | "Return a regexp to match a string in STRINGS. | 85 | "Return a regexp to match a string in STRINGS. |
| 87 | Each string should be unique in STRINGS and should not contain any regexps. | 86 | Each string should be unique in STRINGS and should not contain any regexps, |
| 88 | If optional PAREN non-nil, ensure that the returned regexp is enclosed by at | 87 | quoted or not. If optional PAREN is non-nil, ensure that the returned regexp |
| 89 | least one regexp grouping construct. | 88 | is enclosed by at least one regexp grouping construct. |
| 90 | The returned regexp is typically more efficient than the equivalent regexp: | 89 | The returned regexp is typically more efficient than the equivalent regexp: |
| 91 | 90 | ||
| 92 | (let ((open-paren (if PAREN \"\\\\(\" \"\")) (close-paren (if PAREN \"\\\\)\" \"\"))) | 91 | (let ((open-paren (if PAREN \"\\\\(\" \"\")) (close-paren (if PAREN \"\\\\)\" \"\"))) |