bruceravel/gnuplot-mode — Issue #9: Lisp error: (void-function gnuplot-comint-start-function)
Author: thisch
Created: 2012-01-20 12:55:55+00:00
State: open

I get the following error/trace with the current HEAD.

I triggered this by pressing C-c C-r in gnuplot-mode on a marked region

``` Debugger entered--Lisp error: (void-function gnuplot-comint-start-function)
(gnuplot-comint-start-function)
(save-excursion (set-buffer gnuplot-buffer) (gnuplot-comint-mode) (if (featurep (quote xemacs)) (make-local-hook (quote kill-buffer-hook))) (add-hook (quote kill-buffer-hook) (quote gnuplot-close-down) nil t) (gnuplot-comint-start-function) (make-local-variable (quote comint-output-filter-functions)) (setq comint-output-filter-functions (append comint-output-filter-functions (quote (comint-postoutput-scroll-to-bottom gnuplot-protect-prompt-fn)))) (message "Starting gnuplot plotting program...Done"))
(progn (message "Starting gnuplot plotting program...") (setq gnuplot-buffer (make-comint gnuplot-process-name gnuplot-program) gnuplot-process (get-process gnuplot-process-name)) (process-kill-without-query gnuplot-process nil) (save-excursion (set-buffer gnuplot-buffer) (gnuplot-comint-mode) (if (featurep (quote xemacs)) (make-local-hook (quote kill-buffer-hook))) (add-hook (quote kill-buffer-hook) (quote gnuplot-close-down) nil t) (gnuplot-comint-start-function) (make-local-variable (quote comint-output-filter-functions)) (setq comint-output-filter-functions (append comint-output-filter-functions (quote (comint-postoutput-scroll-to-bottom gnuplot-protect-prompt-fn)))) (message "Starting gnuplot plotting program...Done")))
(or (and gnuplot-process (get-process gnuplot-process) gnuplot-buffer (buffer-name gnuplot-buffer)) (progn (message "Starting gnuplot plotting program...") (setq gnuplot-buffer (make-comint gnuplot-process-name gnuplot-program) gnuplot-process (get-process gnuplot-process-name)) (process-kill-without-query gnuplot-process nil) (save-excursion (set-buffer gnuplot-buffer) (gnuplot-comint-mode) (if (featurep (quote xemacs)) (make-local-hook (quote kill-buffer-hook))) (add-hook (quote kill-buffer-hook) (quote gnuplot-close-down) nil t) (gnuplot-comint-start-function) (make-local-variable (quote comint-output-filter-functions)) (setq comint-output-filter-functions (append comint-output-filter-functions (quote (comint-postoutput-scroll-to-bottom gnuplot-protect-prompt-fn)))) (message "Starting gnuplot plotting program...Done"))))
gnuplot-make-gnuplot-buffer()
gnuplot-send-string-to-gnuplot("pl sin(x)\n" region)
(cond ((equal major-mode (quote gnuplot-mode)) (setq string (buffer-substring-no-properties begin end)) (if (string= (substring string -1) "\n") nil (setq string (concat string "\n"))) (gnuplot-send-string-to-gnuplot string txt)) (t (message (concat "You can only send regions from " "gnuplot-mode buffers to gnuplot."))))
(let (string (txt (or text (quote region)))) (cond ((equal major-mode (quote gnuplot-mode)) (setq string (buffer-substring-no-properties begin end)) (if (string= (substring string -1) "\n") nil (setq string (concat string "\n"))) (gnuplot-send-string-to-gnuplot string txt)) (t (message (concat "You can only send regions from " "gnuplot-mode buffers to gnuplot.")))))
gnuplot-send-region-to-gnuplot(1 10)
call-interactively(gnuplot-send-region-to-gnuplot nil nil)```