# HG changeset patch # User Richard M. Stallman # Date 1003963752 0 # Node ID d2e0c5832e0ddfb4399fdbfc4aeb98af9d049230 # Parent 03eaa14e9bac5250521cc1b89ae6f2c924b8648e (substitute-env-vars): Quote the arg to rx. diff -r 03eaa14e9bac -r d2e0c5832e0d lisp/env.el --- a/lisp/env.el Wed Oct 24 22:49:01 2001 +0000 +++ b/lisp/env.el Wed Oct 24 22:49:12 2001 +0000 @@ -59,9 +59,9 @@ dollar sign." (let ((start 0)) (while (string-match - (rx (or (and "$" (submatch (1+ (in "a-zA-Z0-9_")))) - (and "${" (submatch (minimal-match (0+ anything))) "}") - "$$")) + (rx '(or (and "$" (submatch (1+ (in "a-zA-Z0-9_")))) + (and "${" (submatch (minimal-match (0+ anything))) "}") + "$$")) string start) (cond ((match-beginning 1) (let ((value (getenv (match-string 1 string))))