fix(emacs/lean-server): check buffer-modified-p before create a process
fix #57
This commit is contained in:
parent
7a8796a4ca
commit
608b66c323
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@
|
|||
;; ==============================
|
||||
(defun lean-server-create-process ()
|
||||
"Create lean-server process."
|
||||
(when (buffer-modified-p)
|
||||
(error "Please save the buffer before start lean-server."))
|
||||
(let ((process-connection-type nil)
|
||||
(lean-server-process
|
||||
(start-process lean-server-process-name
|
||||
|
|
Loading…
Reference in a new issue