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:
parent
84fc77f34f
commit
4f2a21cc2a
1 changed files with 1 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue