diff lisp/emacs-lisp/rx.el @ 81671:03548d4c812b

(rx-constituents): Fix up `anything'.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 30 Jun 2007 18:49:41 +0000
parents d858d80ae609
children b98604865ea0 988f1edc9674
line wrap: on
line diff
--- a/lisp/emacs-lisp/rx.el	Fri Jun 29 11:07:09 2007 +0000
+++ b/lisp/emacs-lisp/rx.el	Sat Jun 30 18:49:41 2007 +0000
@@ -120,7 +120,7 @@
     (|			. or)		; SRE
     (not-newline	. ".")
     (nonl		. not-newline)	; SRE
-    (anything		. ".\\|\n")
+    (anything		. "\\(?:.\\|\n\\)")
     (any		. (rx-any 1 nil rx-check-any)) ; inconsistent with SRE
     (in			. any)
     (char		. any)		; sregex