summarylogtreecommitdiffstats
path: root/phreeqc.el
diff options
context:
space:
mode:
authordtbaumann2016-09-02 07:37:15 +0200
committerdtbaumann2016-09-02 07:37:15 +0200
commit705733080502a6cf825d0c8851ca6d666855c4b7 (patch)
treefd0576b7fbf96931c35c211aa9f5066f6df56811 /phreeqc.el
parentfb91e3b63e1899c6d651e9bc77262b9a413cb54c (diff)
downloadaur-705733080502a6cf825d0c8851ca6d666855c4b7.tar.gz
update phreeqc.el
Diffstat (limited to 'phreeqc.el')
-rw-r--r--phreeqc.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/phreeqc.el b/phreeqc.el
index 6fdb9c6463df..5f80d3b26a28 100644
--- a/phreeqc.el
+++ b/phreeqc.el
@@ -453,7 +453,12 @@ with no args, if that value is non-nil."
(infile (buffer-name))
(outfile (concat (file-name-sans-extension infile) ".out"))
(database phreeqc-database))
-
+
+ ;; make sure that we start with a fresh output buffer to avoid problems
+ ;; with huge output buffers slowing down emacs
+ (if (buffer-live-p (get-buffer "*phreeqc*"))
+ (kill-buffer "*phreeqc*"))
+
(save-buffer)
;; check if a DATABASE keyword was given
(save-excursion