check if buffer exists and not alive before kill
This commit is contained in:
parent
16a495c97d
commit
394e166894
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ Meant to be used for `scala-mode's `comment-line-break-function'."
|
||||||
(if (and (require 'sbt-mode nil t)
|
(if (and (require 'sbt-mode nil t)
|
||||||
(sbt:find-root))
|
(sbt:find-root))
|
||||||
(let ((buffer-name (sbt:buffer-name)))
|
(let ((buffer-name (sbt:buffer-name)))
|
||||||
(unless (comint-check-proc buffer-name)
|
(when (and (get-buffer buffer-name) (not (comint-check-proc buffer-name)))
|
||||||
(kill-buffer buffer-name))
|
(kill-buffer buffer-name))
|
||||||
(run-scala)
|
(run-scala)
|
||||||
(get-buffer buffer-name))
|
(get-buffer buffer-name))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue