[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode cd5fa7d 010/468: lua-start-process: made program
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode cd5fa7d 010/468: lua-start-process: made program &optional argument (defaults to name) |
Date: |
Thu, 5 Aug 2021 04:57:58 -0400 (EDT) |
branch: elpa/lua-mode
commit cd5fa7d1224b51dd4c9eac9d9b62aee97f0a5982
Author: juergen <juergen>
Commit: juergen <juergen>
lua-start-process: made program &optional argument (defaults to name)
---
lua-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 6fea962..698783f 100755
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -918,10 +918,11 @@ This function just searches for a `end' at the beginning
of a line."
;;{{{ lua-start-process
-(defun lua-start-process (name program &optional startfile &rest switches)
+(defun lua-start-process (name &optional program startfile &rest switches)
"Start a lua process named NAME, running PROGRAM."
(or switches
(setq switches lua-default-command-switches))
+ (setq program (or program name))
(setq lua-process-buffer (apply 'make-comint name program startfile
switches))
(setq lua-process (get-buffer-process lua-process-buffer))
;; wait for prompt
@@ -983,7 +984,7 @@ If `lua-process' is nil or dead, start a new process first."
(write-region start end tempfile)
(or (and lua-process
(comint-check-proc lua-process-buffer))
- (lua-start-process lua-default-application lua-default-application))
+ (lua-start-process lua-default-application))
;; kill lua process without query
(if (fboundp 'process-kill-without-query)
(process-kill-without-query lua-process))
@@ -1061,7 +1062,7 @@ t, otherwise return nil. BUF must exist."
(error "lua-region not set"))
(or (and lua-process
(comint-check-proc lua-process-buffer))
- (lua-start-process lua-default-application lua-default-application))
+ (lua-start-process lua-default-application))
(comint-simple-send lua-process
(buffer-substring lua-region-start
lua-region-end)
)
@@ -1082,7 +1083,7 @@ t, otherwise return nil. BUF must exist."
(setq end (point)))
(or (and lua-process
(comint-check-proc lua-process-buffer))
- (lua-start-process lua-default-application lua-default-application))
+ (lua-start-process lua-default-application))
(comint-simple-send lua-process
(buffer-substring beg end))
(if lua-always-show
@@ -1104,7 +1105,7 @@ t, otherwise return nil. BUF must exist."
"Restart lua subprocess and send whole file as input."
(interactive)
(lua-kill-process)
- (lua-start-process lua-default-application lua-default-application)
+ (lua-start-process lua-default-application)
(lua-send-buffer))
;;}}}
- [nongnu] elpa/lua-mode 8802c43 006/468: fixed lua-postprocess-output-buffer: start search from last prompt, (continued)
- [nongnu] elpa/lua-mode 8802c43 006/468: fixed lua-postprocess-output-buffer: start search from last prompt, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3d6f6ed 012/468: enforce interactive mode by default: (defcustom lua-default-command-switches (list "-i")..., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 8ab6df6 026/468: Fix bug #619: Wrong identation with .. operator, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d313ff5 024/468: New Release: 20061208, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 31acb6b 029/468: Fix bug #621: Wrong comment block detection, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 8f17c27 021/468: fix [#472] lua-mode colorization, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode b11a136 022/468: implemented lua-forward-sexp using lua-find-matching-token-word, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c49fb68 023/468: Fixed lua-prompt-regex and handling of output without newline (bug #425), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 99324a4 034/468: minor font-lock fix, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c61bda2 040/468: Commit from Reuben:, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode cd5fa7d 010/468: lua-start-process: made program &optional argument (defaults to name),
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 13363db 017/468: Fixed typo (#470), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9730289 027/468: Insert Project page Link, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode bf0b902 033/468: New Release 20070708, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ab9783f 041/468: Applied patch from Reuben Thomas:, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 2786823 043/468: Add example code to trigger lua-mode for hash-bang lines containing, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 4f4d3de 047/468: Add Makefile with dist and release targets, and ignore release zips., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 16861a3 032/468: Fix bug #620 again: Wrong identation with tables, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e10183d 037/468: handle font-lock-variable-name-face (Reuben Thomas), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ab2d44c 038/468: Multiple changes by Reuben Thomas:, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e057e22 044/468: Rename install.rst to README to help github and users., Philip Kaludercic, 2021/08/05