Don't restrict 'lua-ts-send-file' to 'lua-ts-mode'
authorjohn muhl <jm@pub.pink>
Mon, 2 Dec 2024 15:20:01 +0000 (09:20 -0600)
committerEli Zaretskii <eliz@gnu.org>
Sat, 7 Dec 2024 13:28:14 +0000 (15:28 +0200)
* 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)

lisp/progmodes/lua-ts-mode.el

index d2ac67a923004007f12907cd21d1dea0eb32cf98..9d06517a97d5134153f259e176c818099707ebbe 100644 (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))))