branch: elpa/gnuplot
commit 0faec4fd4cfc3f3f630469bb57dd8c461a32ca76
Author: Jonathan Oddie <[email protected]>
Commit: Jonathan Oddie <[email protected]>

    Check that gnuplot-process is not nil in gnuplot-close-down
---
 gnuplot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnuplot.el b/gnuplot.el
index 8146ca5..d7d6a1d 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2185,7 +2185,8 @@ STRING is the text as originally inserted in the comint 
buffer."
 
 (defun gnuplot-close-down ()
   "Tidy up when deleting the gnuplot buffer."
-  (if (eq (process-status gnuplot-process) 'run);; <SE>
+  (if (and gnuplot-process
+          (eq (process-status gnuplot-process) 'run)) ; <SE>
       (kill-process gnuplot-process))
   (setq gnuplot-process nil
         gnuplot-buffer nil))

Reply via email to