branch: elpa/lua-mode
commit 2d308e8f16c0f20614b1be975c500b50692cb42c
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
Move "no-query-on-exit" initialization to lua-start-process, update it
Update means "process-kill-without-query" is deprecated in favour of
"set-process-query-on-exit-flag".
---
lua-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 6c038f3..e4b588f 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1563,6 +1563,7 @@ When called interactively, switch to the process buffer."
(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))
+ (set-process-query-on-exit-flag lua-process nil)
(with-current-buffer lua-process-buffer
;; wait for prompt
(while (not (lua-prompt-line))
@@ -1578,11 +1579,10 @@ When called interactively, switch to the process
buffer."
(switch-to-buffer lua-process-buffer)))
(defun lua-get-create-process ()
+ "Return active Lua process creating one if necessary."
(or (and (comint-check-proc lua-process-buffer)
lua-process)
- (prog1 (lua-start-process)
- (when (fboundp 'process-kill-without-query)
- (process-kill-without-query lua-process))))
+ (lua-start-process))
lua-process)
(defun lua-kill-process ()