Tag interactive commands in 'lua-ts-mode'
authorjohn muhl <jm@pub.pink>
Sat, 13 Jul 2024 23:36:38 +0000 (18:36 -0500)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 1 Oct 2024 19:35:24 +0000 (21:35 +0200)
* lisp/progmodes/lua-ts-mode.el (lua-ts-send-buffer)
(lua-ts-send-file, lua-ts-send-region): Mark inferior interaction
commands that are only relevant in Lua buffers.  (Bug#73586)

lisp/progmodes/lua-ts-mode.el

index 8d0f49c2d89d553d258e56748b39ca2edb4e4fed..4ea453c9b65221574e6c141360c1c5e90d42de20 100644 (file)
@@ -676,19 +676,19 @@ Calls REPORT-FN directly."
 
 (defun lua-ts-send-buffer ()
   "Send current buffer to the inferior Lua process."
-  (interactive)
+  (interactive nil lua-ts-mode)
   (lua-ts-send-region (point-min) (point-max)))
 
 (defun lua-ts-send-file (file)
   "Send contents of FILE to the inferior Lua process."
-  (interactive "f")
+  (interactive "f" lua-ts-mode)
   (with-temp-buffer
     (insert-file-contents-literally file)
     (lua-ts-send-region (point-min) (point-max))))
 
 (defun lua-ts-send-region (beg end)
   "Send region between BEG and END to the inferior Lua process."
-  (interactive "r")
+  (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