aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorColin Walters2002-03-01 01:18:37 +0000
committerColin Walters2002-03-01 01:18:37 +0000
commit2c37c14bd0982c1c96e7ef8581d8d23f89019a1b (patch)
tree5c23cdf2a32d4b950ea01d9cedf924264316a1d4 /lisp
parent73c2f6c4264305d1ebf2b54c5a1de21594e04db6 (diff)
downloademacs-2c37c14bd0982c1c96e7ef8581d8d23f89019a1b.tar.gz
emacs-2c37c14bd0982c1c96e7ef8581d8d23f89019a1b.zip
(calc-gnuplot-tempfile): Don't expand against
`temporary-file-directory'; we now do that in `calc-graph-file-cache'. (calc-temp-file-name): Use `make-temp-file'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calc/calc-graph.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el
index 417e1e436a9..2a69a28883f 100644
--- a/lisp/calc/calc-graph.el
+++ b/lisp/calc/calc-graph.el
@@ -37,7 +37,7 @@
37;;; Graphics 37;;; Graphics
38 38
39;;; Note that some of the following initial values also occur in calc.el. 39;;; Note that some of the following initial values also occur in calc.el.
40(defvar calc-gnuplot-tempfile (expand-file-name "calc" temporary-file-directory)) 40(defvar calc-gnuplot-tempfile "calc")
41 41
42(defvar calc-gnuplot-default-device "default") 42(defvar calc-gnuplot-default-device "default")
43(defvar calc-gnuplot-default-output "STDOUT") 43(defvar calc-gnuplot-default-output "STDOUT")
@@ -845,7 +845,7 @@
845 (setq calc-graph-file-cache (nconc calc-graph-file-cache (list nil)))) 845 (setq calc-graph-file-cache (nconc calc-graph-file-cache (list nil))))
846 (car (or (nth (1+ num) calc-graph-file-cache) 846 (car (or (nth (1+ num) calc-graph-file-cache)
847 (setcar (nthcdr (1+ num) calc-graph-file-cache) 847 (setcar (nthcdr (1+ num) calc-graph-file-cache)
848 (list (make-temp-name 848 (list (make-temp-file
849 (concat calc-gnuplot-tempfile 849 (concat calc-gnuplot-tempfile
850 (if (<= num 0) 850 (if (<= num 0)
851 (char-to-string (- ?A num)) 851 (char-to-string (- ?A num))