Commit d916c965 authored by Glenn Morris's avatar Glenn Morris
Browse files

(calc-graph-plot): Avoid assignment to free variable `filename'.

parent b6a44b27
2009-06-23 Glenn Morris <rgm@gnu.org>
 
* calc/calc-graph.el (calc-graph-plot): Avoid assignment to free
variable `filename'.
* comint.el (comint-insert-input): Doc fix.
 
* Makefile.in (ELCFILES): Fix typo in previous change.
......
......@@ -529,10 +529,10 @@
(calc-clear-command-flag 'clear-message)
(message "No data to plot!"))
(setq calc-graph-data-cache-limit (max calc-graph-curve-num
calc-graph-data-cache-limit)
filename (calc-temp-file-name 0))
(write-region (point-min) (point-max) filename nil 'quiet)
(calc-gnuplot-command "load" (prin1-to-string filename))
calc-graph-data-cache-limit))
(let ((filename (calc-temp-file-name 0)))
(write-region (point-min) (point-max) filename nil 'quiet)
(calc-gnuplot-command "load" (prin1-to-string filename)))
(or (equal output "STDOUT")
calc-gnuplot-keep-outfile
(progn ; need to close the output file before printing/plotting
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment