emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gnuplot 0faec4f 022/184: Check that gnuplot-process is not


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 0faec4f 022/184: Check that gnuplot-process is not nil in gnuplot-close-down
Date: Sun, 29 Aug 2021 11:03:07 -0400 (EDT)

branch: elpa/gnuplot
commit 0faec4fd4cfc3f3f630469bb57dd8c461a32ca76
Author: Jonathan Oddie <j.j.oddie@gmail.com>
Commit: Jonathan Oddie <j.j.oddie@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]