Don't restrict 'lua-ts-send-file' to 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts-send-file): Remove
restriction on interactive use.  Unlike related send-* commands
it can be useful to send a file to the Lua interpreter outside of
a 'lua-ts-mode' buffer.  (Bug#74705)
This commit is contained in:
john muhl 2024-12-02 09:20:01 -06:00 committed by Eli Zaretskii
parent 84fc77f34f
commit 4f2a21cc2a

View file

@ -694,7 +694,7 @@ Calls REPORT-FN directly."
(defun lua-ts-send-file (file)
"Send contents of FILE to the inferior Lua process."
(interactive "f" lua-ts-mode)
(interactive "f")
(with-temp-buffer
(insert-file-contents-literally file)
(lua-ts-send-region (point-min) (point-max))))