summaryrefslogtreecommitdiff
path: root/lisp/emerge.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emerge.el')
-rw-r--r--lisp/emerge.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emerge.el b/lisp/emerge.el
index 99b1ec1ff78..8a05ba7bb74 100644
--- a/lisp/emerge.el
+++ b/lisp/emerge.el
@@ -251,7 +251,9 @@ depend on the flags."
displaying a difference.")
(defvar emerge-temp-file-prefix
- (let ((env (getenv "TMPDIR"))
+ (let ((env (or (getenv "TMPDIR")
+ (getenv "TMP")
+ (getenv "TEMP")))
d)
(setq d (if (and env (> (length env) 0))
env