fix(emacs/lean-server): check buffer-modified-p before create a process

fix #57
This commit is contained in:
Soonho Kong 2014-08-18 14:18:11 -07:00
parent 7a8796a4ca
commit 608b66c323

View file

@ -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