summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cmacexp.el
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
commitfc416240b90c934fa530444202627fcb79688169 (patch)
tree64ac0a03de5dc1b0a2ce669461e50cab8a673ff7 /lisp/progmodes/cmacexp.el
parent11757e2f52741e3aa81d2a2fa30ae0f5f6de8d34 (diff)
downloademacs-fc416240b90c934fa530444202627fcb79688169.tar.gz
(c-macro-expansion):
Use temporary-file-directory. Choose temp file name properly.
Diffstat (limited to 'lisp/progmodes/cmacexp.el')
-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