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

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

[nongnu] elpa/lua-mode 99312b8 365/468: Merge pull request #134 from vel


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 99312b8 365/468: Merge pull request #134 from velkyel/master
Date: Thu, 5 Aug 2021 04:59:10 -0400 (EDT)

branch: elpa/lua-mode
commit 99312b8d6c500ba3067da6d81efcfbbea05a1cbd
Merge: 7909513 8b66d36
Author: dennis again <immerrr@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #134 from velkyel/master
    
    possibility to connect to remote lua process
---
 lua-mode.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index ebe6ea2..91fd0a4 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -201,7 +201,8 @@ element is itself expanded with `lua-rx-to-string'. "
 
 (defcustom lua-default-application "lua"
   "Default application to run in Lua process."
-  :type 'string
+  :type '(choice (string)
+                 (cons string integer))
   :group 'lua)
 
 (defcustom lua-default-command-switches (list "-i")
@@ -1657,8 +1658,10 @@ When called interactively, switch to the process buffer."
   (interactive)
   (or switches
       (setq switches lua-default-command-switches))
-  (setq name (or name lua-default-application))
-  (setq program (or program name))
+  (setq name (or name (if (consp lua-default-application)
+                          (car lua-default-application)
+                        lua-default-application)))
+  (setq program (or program lua-default-application))
   (setq lua-process-buffer (apply 'make-comint name program startfile 
switches))
   (setq lua-process (get-buffer-process lua-process-buffer))
   (set-process-query-on-exit-flag lua-process nil)



reply via email to

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