From: Richard M. Stallman Date: Sat, 16 May 1998 17:52:29 +0000 (+0000) Subject: (c-macro-expansion): X-Git-Tag: emacs-20.3~976 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fc416240b90c934fa530444202627fcb79688169;p=emacs.git (c-macro-expansion): Use temporary-file-directory. Choose temp file name properly. --- 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