diff options
| author | Eli Zaretskii | 2002-03-29 14:04:05 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-03-29 14:04:05 +0000 |
| commit | d88c92eb325c8ced8b2dac9f08d8a52bbbd573e3 (patch) | |
| tree | e6f5487c011f9616ae80c6bb762eff14c4fd39d4 /lisp/startup.el | |
| parent | 747981b0cbc8f3b1fc7488d2817bda205a8c72a7 (diff) | |
| download | emacs-d88c92eb325c8ced8b2dac9f08d8a52bbbd573e3.tar.gz emacs-d88c92eb325c8ced8b2dac9f08d8a52bbbd573e3.zip | |
(command-line): Recompute auto-save-file-name-transforms
using the updated value of temporary-file-directory.
Diffstat (limited to 'lisp/startup.el')
| -rw-r--r-- | lisp/startup.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index dd13f1ede3e..bff519156c3 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -653,6 +653,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 653 | (setq small-temporary-file-directory | 653 | (setq small-temporary-file-directory |
| 654 | (if (eq system-type 'ms-dos) | 654 | (if (eq system-type 'ms-dos) |
| 655 | (getenv "TMPDIR"))) | 655 | (getenv "TMPDIR"))) |
| 656 | (setq auto-save-file-name-transforms | ||
| 657 | (list (list "\\`/[^/]*:\\(.+/\\)*\\(.*\\)" | ||
| 658 | ;; Don't put "\\2" inside expand-file-name, since | ||
| 659 | ;; it will be transformed to "/2" on DOS/Windows. | ||
| 660 | (concat (expand-file-name temporary-file-directory) | ||
| 661 | "\\2")))) | ||
| 656 | 662 | ||
| 657 | ;; See if we should import version-control from the environment variable. | 663 | ;; See if we should import version-control from the environment variable. |
| 658 | (let ((vc (getenv "VERSION_CONTROL"))) | 664 | (let ((vc (getenv "VERSION_CONTROL"))) |