summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Frasca <mrgsfrasca@gmail.com>2014-11-02 08:50:47 -0500
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2014-11-08 21:37:15 +0100
commit9f28685b29e21517dd2d4b870fec835929be882f (patch)
tree7a46e09050315652e767636865d8652520b58237
parente80894fcc0ebaa168a81a729fd22616df0026c73 (diff)
downloadorg-mode-9f28685b29e21517dd2d4b870fec835929be882f.tar.gz
org-plot: Reset gnuplot process instead of killing it
org-plot.el (org-plot/gnuplot): Do not kill the gnuplot process. just jump to end of buffer and rely on command to do the resetting job. Without this patch, the gnuplot process associated to the gnuplot buffer is killed before each batch of instructions from orgmode to gnuplot. With or without this patch, Org mode sends a reset instruction to the gnuplot process as first instruction. TINYCHANGE
-rw-r--r--lisp/org-plot.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index 556b9ef..69d9250 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -281,8 +281,7 @@ line directly before or after the table."
(delete-other-windows)
(when (get-buffer "*gnuplot*") ;; reset *gnuplot* if it already running
(with-current-buffer "*gnuplot*"
- (goto-char (point-max))
- (gnuplot-delchar-or-maybe-eof nil)))
+ (goto-char (point-max))))
(org-plot/goto-nearest-table)
;; set default options
(mapc