branch: elpa/lua-mode
commit b27edcee83a2826bea0e4e2f4e4bbd196c5f1bcd
Author: Reuben Thomas <[email protected]>
Commit: Reuben Thomas <[email protected]>
Minor simplification of lua-get-create-process
---
lua-mode.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 2652494..4242296 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1768,9 +1768,8 @@ When called interactively, switch to the process buffer."
(defun lua-get-create-process ()
"Return active Lua process creating one if necessary."
- (or (and (comint-check-proc lua-process-buffer)
- lua-process)
- (lua-start-process))
+ (unless (comint-check-proc lua-process-buffer)
+ (lua-start-process))
lua-process)
(defun lua-kill-process ()