aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2003-11-01 17:35:49 +0000
committerEli Zaretskii2003-11-01 17:35:49 +0000
commitcdddbfd273edd13323019898a74ba36f9cfe5e89 (patch)
treef96f2f918f7e20c1004c6aca0ff0243899f9d33f
parent01cf96d518026af58c101aead1f671d90a5e9edb (diff)
downloademacs-cdddbfd273edd13323019898a74ba36f9cfe5e89.tar.gz
emacs-cdddbfd273edd13323019898a74ba36f9cfe5e89.zip
(rx-or): Fix the case of "(rx (and ?a (or ?b ?c) ?d))".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/rx.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9094e15a8b6..11fad844e80 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12003-11-01 Oliver Scholz <epameinondas@gmx.de>
2
3 * emacs-lisp/rx.el (rx-or): Fix the case of
4 "(rx (and ?a (or ?b ?c) ?d))".
5
12003-11-01 Christoph Wedler <wedler@users.sourceforge.net> (tiny change) 62003-11-01 Christoph Wedler <wedler@users.sourceforge.net> (tiny change)
2 7
3 * textmodes/texinfmt.el (texinfo-pre-format-hook): New variable. 8 * textmodes/texinfmt.el (texinfo-pre-format-hook): New variable.
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index 8e38aed10d2..bc16a84b156 100644
--- a/lisp/emacs-lisp/rx.el
+++ b/lisp/emacs-lisp/rx.el
@@ -286,9 +286,11 @@ FORM is of the form `(and FORM1 ...)'."
286 (dolist (arg (cdr form)) 286 (dolist (arg (cdr form))
287 (unless (stringp arg) 287 (unless (stringp arg)
288 (setq all-args-strings nil))) 288 (setq all-args-strings nil)))
289 (if all-args-strings 289 (concat "\\(?:"
290 (regexp-opt (cdr form)) 290 (if all-args-strings
291 (mapconcat #'rx-to-string (cdr form) "\\|")))) 291 (regexp-opt (cdr form))
292 (mapconcat #'rx-to-string (cdr form) "\\|"))
293 "\\)")))
292 294
293 295
294(defun rx-quote-for-set (string) 296(defun rx-quote-for-set (string)