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 <[email protected]> and
;; Aaron Smith <[email protected]>.
+(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 ()