From 7a7235899429d5adaec92d7184208db53448d81a Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 25 Sep 2021 02:55:55 +0200 Subject: [PATCH] Use `temporary-file-directory' in `with-existing-directory' * lisp/subr.el (with-existing-directory): Use `temporary-file-directory' over TMPDIR. --- lisp/subr.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/subr.el b/lisp/subr.el index 2d2794cfd1f..fd1ceb95f53 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4636,6 +4636,7 @@ If `default-directory' is already an existing directory, it's not changed." (file-exists-p dir))) (list default-directory (expand-file-name "~/") + temporary-file-directory (getenv "TMPDIR") "/tmp/") "/"))) -- 2.39.2