branch: elpa/lua-mode
commit 99312b8d6c500ba3067da6d81efcfbbea05a1cbd
Merge: 7909513 8b66d36
Author: dennis again <[email protected]>
Commit: GitHub <[email protected]>
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)