Function: calc-graph-output
calc-graph-output is an autoloaded, interactive and byte-compiled
function defined in calc-graph.el.gz.
Signature
(calc-graph-output NAME FLAG)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-graph.el.gz
(defun calc-graph-output (name flag)
(interactive "FOutput file name: \np")
(cond ((string-match "\\<[aA][uU][tT][oO]$" name)
(setq name "auto"))
((string-match "\\<[tT][tT][yY]$" name)
(setq name "tty"))
((string-match "\\<[sS][tT][dD][oO][uU][tT]$" name)
(setq name "STDOUT"))
((equal (file-name-nondirectory name) "")
(setq name ""))
(t (setq name (expand-file-name name))))
(if flag
(if (> (prefix-numeric-value flag) 0)
(if (equal name "")
(message "Default GNUPLOT output file is \"%s\""
calc-gnuplot-default-output)
(setq calc-gnuplot-default-output name))
(if (equal name "")
(message "GNUPLOT output file for Print command is \"%s\""
calc-gnuplot-print-output)
(setq calc-gnuplot-print-output name)))
(calc-graph-set-command "output" (if (not (equal name ""))
(prin1-to-string name)))))