diff options
author | dtbaumann | 2016-09-02 07:37:15 +0200 |
---|---|---|
committer | dtbaumann | 2016-09-02 07:37:15 +0200 |
commit | 705733080502a6cf825d0c8851ca6d666855c4b7 (patch) | |
tree | fd0576b7fbf96931c35c211aa9f5066f6df56811 /phreeqc.el | |
parent | fb91e3b63e1899c6d651e9bc77262b9a413cb54c (diff) | |
download | aur-705733080502a6cf825d0c8851ca6d666855c4b7.tar.gz |
update phreeqc.el
Diffstat (limited to 'phreeqc.el')
-rw-r--r-- | phreeqc.el | 7 |
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 |