branch: elpa/gnuplot
commit 57fd4a265b2dc5c1d84bcd108cdc21c3fdf211ee
Author: Jonathan Oddie <[email protected]>
Commit: Jonathan Oddie <[email protected]>
Attempt to fix issue #9, void-function gnuplot-start-comint-function
`gnuplot-make-gnuplot-buffer' had somehow reverted to an earlier version.
This seems to result from some confusion over merging mcraveiro's pull request
and then merging the master and devel branches.
---
gnuplot.el | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/gnuplot.el b/gnuplot.el
index 193ba49..8f63a29 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2110,19 +2110,8 @@ buffer."
(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)
+ (with-current-buffer gnuplot-buffer
(gnuplot-comint-mode)
- ;; 'local does not automatically make hook buffer-local in XEmacs.
- (if (featurep 'xemacs)
- (make-local-hook 'kill-buffer-hook))
- (add-hook 'kill-buffer-hook 'gnuplot-close-down nil t)
- (gnuplot-comint-start-function)
- (make-local-variable 'comint-output-filter-functions)
- (setq comint-output-filter-functions
- (append comint-output-filter-functions
- '(comint-postoutput-scroll-to-bottom
- gnuplot-protect-prompt-fn)))
(message "Starting gnuplot plotting program...Done")))))
(defun gnuplot-fetch-version-number ()