switch to *eaf* buffer when encountering finished event

Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com>
master
Mingde (Matthew) Zeng 6 years ago
parent 6f8baecf61
commit ce8e2425bd
  1. 3
      eaf.el

@ -961,7 +961,8 @@ For now only EAF browser app is supported."
(set-process-sentinel
eaf-process
#'(lambda (process event)
(when (string-prefix-p "exited abnormally with code" event)
(when (or (string-prefix-p "exited abnormally with code" event)
(string-match "finished" event))
(switch-to-buffer eaf-name))
(message "[EAF] %s %s" process (replace-regexp-in-string "\n$" "" event))))
(message "[EAF] Process starting..."))

Loading…
Cancel
Save