branch: elpa/lua-mode
commit a9945c9d752889dcbbaff552c7f7e0da44b5cf4d
Author: velkyel <[email protected]>
Commit: velkyel <[email protected]>
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)