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

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

[nongnu] elpa/lua-mode a9945c9 340/468: possibility to connect to remote


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode a9945c9 340/468: possibility to connect to remote lua process
Date: Thu, 5 Aug 2021 04:59:05 -0400 (EDT)

branch: elpa/lua-mode
commit a9945c9d752889dcbbaff552c7f7e0da44b5cf4d
Author: velkyel <capak@inputwish.com>
Commit: velkyel <capak@inputwish.com>

    possibility to connect to remote lua process
    
    lua-default-application now can be (host . service)
---
 lua-mode.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index 8f236af..04cee92 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -243,7 +243,8 @@ for Emacsen that doesn't contain one (pre-23.3)."
 
 (defcustom lua-default-application "lua"
   "Default application to run in lua subprocess."
-  :type 'string
+  :type '(choice (string)
+                 (cons string integer))
   :group 'lua)
 
 (defcustom lua-default-command-switches (list "-i")
@@ -1738,8 +1739,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]