feat(emacs/lean-server): print out signal event to debug buffer
This commit is contained in:
parent
b82092a123
commit
cab1811927
1 changed files with 5 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
||||||
(require 'lean-cmd)
|
(require 'lean-cmd)
|
||||||
(require 'lean-info)
|
(require 'lean-info)
|
||||||
(require 'lean-util)
|
(require 'lean-util)
|
||||||
|
(require 's)
|
||||||
(require 'flycheck)
|
(require 'flycheck)
|
||||||
|
|
||||||
;; Parameters
|
;; Parameters
|
||||||
|
@ -142,11 +143,10 @@
|
||||||
|
|
||||||
(defun lean-server-handle-signal (process event)
|
(defun lean-server-handle-signal (process event)
|
||||||
"Handle signals for lean-server-process"
|
"Handle signals for lean-server-process"
|
||||||
(cond
|
(let ((event-string (s-trim event)))
|
||||||
((string-prefix-p "hangup" event)
|
(lean-server-initialize-global-vars)
|
||||||
(lean-server-initialize-global-vars))
|
(lean-server-debug "lean-server-handle-signal: %s"
|
||||||
((string-prefix-p "killed" event)
|
(propertize event-string 'face '(:foreground "red")))))
|
||||||
(lean-server-initialize-global-vars))))
|
|
||||||
|
|
||||||
;; How to create an async process
|
;; How to create an async process
|
||||||
;; ==============================
|
;; ==============================
|
||||||
|
|
Loading…
Reference in a new issue