[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 99230fc 002/468: code cleanup: removed duplicate
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 99230fc 002/468: code cleanup: removed duplicate code from lua-send-buffer |
Date: |
Thu, 5 Aug 2021 04:57:57 -0400 (EDT) |
branch: elpa/lua-mode
commit 99230fcd520c9727e06d1cdb71603381794d7f26
Author: juergen <juergen>
Commit: juergen <juergen>
code cleanup: removed duplicate code from lua-send-buffer
---
lua-mode.el | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 8df9411..67d1526 100755
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -11,6 +11,9 @@
;; Paul Du Bois <pld-lua@gelatinous.com> and
;; Aaron Smith <aaron-lua@gelatinous.com>.
+(defconst lua-version "$Revision: 1.2 $"
+ "Lua Mode version number.")
+
;; Keywords: languages, processes, tools
;; This file is part of GNU Emacs.
@@ -999,18 +1002,9 @@ If `lua-process' is nil or dead, start a new process
first."
(defun lua-send-buffer ()
"Send whole buffer to lua subprocess."
(interactive)
- (or (and lua-process
- (comint-check-proc lua-process-buffer))
- (lua-start-process lua-default-application lua-default-application))
- (comint-simple-send lua-process
- (buffer-substring (point-min) (point-max)))
- (if lua-always-show
- (display-buffer lua-process-buffer)))
+ (lua-send-region (point-min) (point-max)))
;;}}}
-
-;;}}}
-
;;{{{ lua-restart-with-whole-file
(defun lua-restart-with-whole-file ()
- [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 <=
- [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, 2021/08/05
- [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