diff options
| author | Glenn Morris | 2009-06-23 07:28:19 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-06-23 07:28:19 +0000 |
| commit | d916c9650d8f175bdee543955fa49f119ca0daf3 (patch) | |
| tree | 54ee529063d080b7ec820cd790ca59c6b113e987 | |
| parent | b6a44b279c19ca25edabbded3c196e6e914f0b97 (diff) | |
| download | emacs-d916c9650d8f175bdee543955fa49f119ca0daf3.tar.gz emacs-d916c9650d8f175bdee543955fa49f119ca0daf3.zip | |
(calc-graph-plot): Avoid assignment to free variable `filename'.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/calc/calc-graph.el | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 06aeaca6421..820aa6fc764 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-06-23 Glenn Morris <rgm@gnu.org> | 1 | 2009-06-23 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calc/calc-graph.el (calc-graph-plot): Avoid assignment to free | ||
| 4 | variable `filename'. | ||
| 5 | |||
| 3 | * comint.el (comint-insert-input): Doc fix. | 6 | * comint.el (comint-insert-input): Doc fix. |
| 4 | 7 | ||
| 5 | * Makefile.in (ELCFILES): Fix typo in previous change. | 8 | * Makefile.in (ELCFILES): Fix typo in previous change. |
diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el index 8bc352bfb1a..5e9470da5f3 100644 --- a/lisp/calc/calc-graph.el +++ b/lisp/calc/calc-graph.el | |||
| @@ -529,10 +529,10 @@ | |||
| 529 | (calc-clear-command-flag 'clear-message) | 529 | (calc-clear-command-flag 'clear-message) |
| 530 | (message "No data to plot!")) | 530 | (message "No data to plot!")) |
| 531 | (setq calc-graph-data-cache-limit (max calc-graph-curve-num | 531 | (setq calc-graph-data-cache-limit (max calc-graph-curve-num |
| 532 | calc-graph-data-cache-limit) | 532 | calc-graph-data-cache-limit)) |
| 533 | filename (calc-temp-file-name 0)) | 533 | (let ((filename (calc-temp-file-name 0))) |
| 534 | (write-region (point-min) (point-max) filename nil 'quiet) | 534 | (write-region (point-min) (point-max) filename nil 'quiet) |
| 535 | (calc-gnuplot-command "load" (prin1-to-string filename)) | 535 | (calc-gnuplot-command "load" (prin1-to-string filename))) |
| 536 | (or (equal output "STDOUT") | 536 | (or (equal output "STDOUT") |
| 537 | calc-gnuplot-keep-outfile | 537 | calc-gnuplot-keep-outfile |
| 538 | (progn ; need to close the output file before printing/plotting | 538 | (progn ; need to close the output file before printing/plotting |