diff options
| author | Stefan Monnier | 2012-11-08 20:31:54 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-08 20:31:54 -0500 |
| commit | 67dd8ad119474d5c403e3410b4465baef2647609 (patch) | |
| tree | 10dc9ef1e5c8dc727fc4893e5ac2e79f67beadf5 | |
| parent | 53371430cdd6fe4e9d8c4a29f0b1db47165c9868 (diff) | |
| download | emacs-67dd8ad119474d5c403e3410b4465baef2647609.tar.gz emacs-67dd8ad119474d5c403e3410b4465baef2647609.zip | |
* lisp/env.el (env--substitute-vars-regexp): Don't use rx (for bootstrap).
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/env.el | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b3decbd3dac..b54a3e281af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-11-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * env.el (env--substitute-vars-regexp): Don't use rx (for bootstrap). | ||
| 4 | |||
| 1 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * files.el (hack-one-local-variable--obsolete): New function. | 7 | * files.el (hack-one-local-variable--obsolete): New function. |
diff --git a/lisp/env.el b/lisp/env.el index f770dd27d75..5f7c61b719a 100644 --- a/lisp/env.el +++ b/lisp/env.el | |||
| @@ -58,10 +58,7 @@ If it is also not t, RET does not exit if it does non-null completion." | |||
| 58 | (defvar setenv-history nil) | 58 | (defvar setenv-history nil) |
| 59 | 59 | ||
| 60 | (defconst env--substitute-vars-regexp | 60 | (defconst env--substitute-vars-regexp |
| 61 | (rx "$" | 61 | "\\$\\(?:\\(?1:[[:alnum:]_]+\\)\\|{\\(?1:[^{}]+\\)}\\|\\$\\)") |
| 62 | (or (submatch-n 1 (1+ (regexp "[[:alnum:]_]"))) | ||
| 63 | (and "{" (submatch-n 1 (minimal-match (0+ anything))) "}") | ||
| 64 | "$"))) | ||
| 65 | 62 | ||
| 66 | (defun substitute-env-vars (string &optional only-defined) | 63 | (defun substitute-env-vars (string &optional only-defined) |
| 67 | "Substitute environment variables referred to in STRING. | 64 | "Substitute environment variables referred to in STRING. |