diff options
| author | Eli Zaretskii | 1999-09-02 12:30:24 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1999-09-02 12:30:24 +0000 |
| commit | 607f86f52769c8a965b77bdc0f85be4af6ed6fee (patch) | |
| tree | 0356c6d30702fb04ae43df33b2ca50a35d3545b8 | |
| parent | 9531ab86d9f875b7e88e8beb63d7b5f49368e24a (diff) | |
| download | emacs-607f86f52769c8a965b77bdc0f85be4af6ed6fee.tar.gz emacs-607f86f52769c8a965b77bdc0f85be4af6ed6fee.zip | |
(command-line): Compute the value of
small-temporary-file-directory.
| -rw-r--r-- | lisp/startup.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index d2b2afd57fe..cb8f0cef47e 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -504,6 +504,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 504 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "SYS$SCRATCH:")) | 504 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "SYS$SCRATCH:")) |
| 505 | (t | 505 | (t |
| 506 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "/tmp"))))) | 506 | (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "/tmp"))))) |
| 507 | (setq small-temporary-file-directory | ||
| 508 | (if (eq system-type 'ms-dos) | ||
| 509 | (getenv "TMPDIR") | ||
| 510 | temporary-file-directory)) | ||
| 507 | 511 | ||
| 508 | ;; See if we should import version-control from the environment variable. | 512 | ;; See if we should import version-control from the environment variable. |
| 509 | (let ((vc (getenv "VERSION_CONTROL"))) | 513 | (let ((vc (getenv "VERSION_CONTROL"))) |