diff options
| -rw-r--r-- | lisp/ediff-init.el | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el index d5ac60b2a81..f56a1922588 100644 --- a/lisp/ediff-init.el +++ b/lisp/ediff-init.el | |||
| @@ -1204,19 +1204,9 @@ Instead, C-h would jump to previous difference." | |||
| 1204 | :group 'ediff) | 1204 | :group 'ediff) |
| 1205 | 1205 | ||
| 1206 | (defcustom ediff-temp-file-prefix | 1206 | (defcustom ediff-temp-file-prefix |
| 1207 | (let ((env (or (getenv "TMPDIR") | 1207 | ;; The following is to make sure we get something to which we can |
| 1208 | (getenv "TMP") | 1208 | ;; add directory levels under VMS. |
| 1209 | (getenv "TEMP"))) | 1209 | (file-name-as-directory system-tmp-directory) |
| 1210 | d) | ||
| 1211 | (setq d (if (and env (> (length env) 0)) | ||
| 1212 | env | ||
| 1213 | (cond ((memq system-type '(vax-vms axp-vms)) "SYS$SCRATCH:") | ||
| 1214 | ((eq system-type 'ms-dos) "c:/") | ||
| 1215 | (t "/tmp")))) | ||
| 1216 | ;; The following is to make sure we get something to which we can | ||
| 1217 | ;; add directory levels under VMS. | ||
| 1218 | (setq d (file-name-as-directory (directory-file-name d))) | ||
| 1219 | ) | ||
| 1220 | "*Prefix to put on Ediff temporary file names. | 1210 | "*Prefix to put on Ediff temporary file names. |
| 1221 | Do not start with `~/' or `~user-name/'." | 1211 | Do not start with `~/' or `~user-name/'." |
| 1222 | :type 'string | 1212 | :type 'string |