Function: lua-ts-send-region

lua-ts-send-region is an interactive and byte-compiled function defined in lua-ts-mode.el.gz.

Signature

(lua-ts-send-region BEG END)

Documentation

Send region between BEG and END to the inferior Lua process.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-ts-mode.el.gz
(defun lua-ts-send-region (beg end)
  "Send region between BEG and END to the inferior Lua process."
  (interactive "r" lua-ts-mode)
  (let ((string (buffer-substring-no-properties beg end))
        (proc-buffer (lua-ts-inferior-lua)))
    (comint-send-string proc-buffer "print()") ; Prevent output from
    (comint-send-string proc-buffer "\n")      ; appearing at prompt.
    (comint-send-string proc-buffer string)
    (comint-send-string proc-buffer "\n")))