summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-05-16 17:52:29 +0000
committerRichard M. Stallman <rms@gnu.org>1998-05-16 17:52:29 +0000
commit7f2d89d2b62ed45a5636e879793b32f8be277c87 (patch)
tree636eff79ec783123d7c77070719abd84c98db89d
parent9e7d010771fa459eb9ed4778b8fc209ea874603e (diff)
downloademacs-7f2d89d2b62ed45a5636e879793b32f8be277c87.tar.gz
(c-macro-expansion):
Use temporary-file-directory. Choose temp file name properly.
-rw-r--r--lisp/progmodes/cmacexp.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el
index 93ce065b6d5..82d90d6d599 100644
--- a/lisp/progmodes/cmacexp.el
+++ b/lisp/progmodes/cmacexp.el
@@ -265,7 +265,9 @@ Optional arg DISPLAY non-nil means show messages in the echo area."
(startstat ())
(startmarker "")
(exit-status 0)
- (tempname (make-temp-name (file-name-directory system-tmp-directory))))
+ (tempname (make-temp-name
+ (expand-file-name "cmacexp"
+ temporary-file-directory))))
(unwind-protect
(save-excursion
(save-restriction