(calc-gnuplot-tempfile): Don't expand against
authorColin Walters <walters@gnu.org>
Fri, 1 Mar 2002 01:18:37 +0000 (01:18 +0000)
committerColin Walters <walters@gnu.org>
Fri, 1 Mar 2002 01:18:37 +0000 (01:18 +0000)
`temporary-file-directory'; we now do that in `calc-graph-file-cache'.
(calc-temp-file-name): Use `make-temp-file'.

lisp/calc/calc-graph.el

index 417e1e4..2a69a28 100644 (file)
@@ -37,7 +37,7 @@
 ;;; Graphics
 
 ;;; Note that some of the following initial values also occur in calc.el.
-(defvar calc-gnuplot-tempfile (expand-file-name "calc" temporary-file-directory))
+(defvar calc-gnuplot-tempfile "calc")
 
 (defvar calc-gnuplot-default-device "default")
 (defvar calc-gnuplot-default-output "STDOUT")
     (setq calc-graph-file-cache (nconc calc-graph-file-cache (list nil))))
   (car (or (nth (1+ num) calc-graph-file-cache)
           (setcar (nthcdr (1+ num) calc-graph-file-cache)
-                  (list (make-temp-name
+                  (list (make-temp-file
                          (concat calc-gnuplot-tempfile
                                  (if (<= num 0)
                                      (char-to-string (- ?A num))