summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-03-27 11:36:13 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-03-27 11:37:47 -0700
commit92acab73e0dd3921b53eac4f3fba327b7aa4d3aa (patch)
treed853281b0ef547f99b74994bb70caecac9a3f778 /lisp/emacs-lisp/regexp-opt.el
parenta35a1f6a9406bc98b4ab83489e5dc7843ffacfb6 (diff)
downloademacs-92acab73e0dd3921b53eac4f3fba327b7aa4d3aa.tar.gz
emacs-92acab73e0dd3921b53eac4f3fba327b7aa4d3aa.tar.bz2
emacs-92acab73e0dd3921b53eac4f3fba327b7aa4d3aa.zip
Use regexp-opt-charset to improve regexp tweaks
* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Reword confusing sentence in doc string. * lisp/erc/erc.el (erc-lurker-maybe-trim): * lisp/mail/footnote.el (footnote-hebrew-numeric-regex): Improve by using regexp-opt-charset.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
-rw-r--r--lisp/emacs-lisp/regexp-opt.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index fce6a47d989..d883752d712 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -86,9 +86,9 @@
;;;###autoload
(defun regexp-opt (strings &optional paren keep-order)
"Return a regexp to match a string in the list STRINGS.
-Each string should be unique in STRINGS and should not contain
-any regexps, quoted or not. Optional PAREN specifies how the
-returned regexp is surrounded by grouping constructs.
+Each member of STRINGS is treated as a fixed string, not as a regexp.
+Optional PAREN specifies how the returned regexp is surrounded by
+grouping constructs.
If STRINGS is the empty list, the return value is a regexp that
never matches anything.