>From 097384e4ddaf98b1f2afe441d2c7997feb0bd715 Mon Sep 17 00:00:00 2001 From: john muhl Date: Mon, 2 Dec 2024 09:20:01 -0600 Subject: [PATCH] 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) --- lisp/progmodes/lua-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 828636f359d..f7669a1b015 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -694,7 +694,7 @@ lua-ts-send-buffer (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)))) -- 2.47.0