[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode f9cbb91 007/468: make lua-process-buffer and lua-
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode f9cbb91 007/468: make lua-process-buffer and lua-process global |
Date: |
Thu, 5 Aug 2021 04:57:58 -0400 (EDT) |
branch: elpa/lua-mode
commit f9cbb917fdadb45666e8ab32f0e2fcada0a60c4f
Author: juergen <juergen>
Commit: juergen <juergen>
make lua-process-buffer and lua-process global
---
lua-mode.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 9c30674..1179fd2 100755
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -28,7 +28,7 @@
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
;; MA 02110-1301, USA.
-(defconst lua-version "$Revision: 1.6 $"
+(defconst lua-version "$Revision: 1.7 $"
"Lua Mode version number.")
;; Keywords: languages, processes, tools
@@ -110,6 +110,12 @@ Should be a list of strings."
:type 'string
:group 'lua)
+(defvar lua-process nil
+ "The active Lua subprocess")
+
+(defvar lua-process-buffer nil
+ "Buffer used for communication with Lua subprocess")
+
(defvar lua-mode-map nil
"Keymap used with lua-mode.")
@@ -238,8 +244,6 @@ The following keys are bound:
(setq major-mode 'lua-mode)
(setq mode-name "Lua")
(setq comint-prompt-regexp lua-prompt-regexp)
- (set (make-local-variable 'lua-process) nil) ; The active Lua subprocess
corresponding to current buffer
- (set (make-local-variable 'lua-process-buffer) nil) ; Buffer used
for communication with Lua subprocess for current buffer.
(make-local-variable 'lua-default-command-switches)
(set (make-local-variable 'indent-line-function) 'lua-indent-line)
(set (make-local-variable 'comment-start) "--")
@@ -995,9 +999,10 @@ If `lua-process' is nil or dead, start a new process
first."
(accept-process-output (get-buffer-process (current-buffer)))))
;; remove temp. lua file
(delete-file tempfile)
- (lua-postprocess-output-buffer lua-process-buffer current-prompt
lua-stdin-line-offset)
+ (lua-postprocess-output-buffer lua-process-buffer current-prompt
lua-stdin-line-offset)
(if lua-always-show
(display-buffer lua-process-buffer))))
+
;;}}}
;;{{{ lua-prompt-line
@@ -1026,12 +1031,7 @@ t, otherwise return nil. BUF must exist."
(let ((buffer (cond ((or (string-equal file tempfile) (string-equal file
"stdin"))
(setq line (+ line lua-stdin-line-offset))
lua-stdin-buffer)
- (find-file-noselect file)
- ;; could not figure out what file the traceback
- ;; is pointing to, so prompt for it
- (t (find-file (read-file-name "Traceback file: "
- nil
- file t))))))
+ (t (find-file-noselect file)))))
(pop-to-buffer buffer)
;; Force Lua mode
(if (not (eq major-mode 'lua-mode))
- [nongnu] branch elpa/lua-mode created (now 7ee3feb), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 001fff1 001/468: Initial revision, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 99230fc 002/468: code cleanup: removed duplicate code from lua-send-buffer, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode fb12d2b 003/468: lua-send-region: create temporary file to send lua code as one chunk, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 05a9513 004/468: fixed copyright notice, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode f9cbb91 007/468: make lua-process-buffer and lua-process global,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode c13235f 008/468: fixed indention, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d91bf2b 011/468: new buffer-local variable: lua-electric-flag, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6a7929a 013/468: lua-postprocess-output-buffer: match first error, not last, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 78f7b78 014/468: emacs-compatibility: replace-in-string not available on GNU emacs, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ea5c4a1 015/468: Documentation: Added installation notes, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9d20d58 019/468: fold mode cleanup, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 78fc3ba 005/468: lua-postprocess-output-buffer: jump to lua errors in source files, Philip Kaludercic, 2021/08/05
- [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