emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode b27edce 348/468: Minor simplification of lua-get-


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode b27edce 348/468: Minor simplification of lua-get-create-process
Date: Thu, 5 Aug 2021 04:59:07 -0400 (EDT)

branch: elpa/lua-mode
commit b27edcee83a2826bea0e4e2f4e4bbd196c5f1bcd
Author: Reuben Thomas <rrt@sc3d.org>
Commit: Reuben Thomas <rrt@sc3d.org>

    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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]