unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: john muhl <jm@pub.pink>
To: 73586@debbugs.gnu.org
Subject: bug#73586: [PATCH] Tag interactive commands in 'lua-ts-mode'
Date: Tue, 01 Oct 2024 13:43:51 -0500	[thread overview]
Message-ID: <87a5fn4qag.fsf@pub.pink> (raw)
In-Reply-To: <87ikub4qfu.fsf@pub.pink> (john muhl's message of "Tue, 01 Oct 2024 13:40:37 -0500")

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-Tag-interactive-commands-in-lua-ts-mode.patch --]
[-- Type: text/x-patch, Size: 1495 bytes --]

From bba5bcf0df080c92508f4fc932f9ea27874f0b05 Mon Sep 17 00:00:00 2001
From: john muhl <jm@pub.pink>
Date: Sat, 13 Jul 2024 18:36:38 -0500
Subject: [PATCH] Tag interactive commands in 'lua-ts-mode'

* 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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index dd04a9e7569..7f16c75bdb5 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -676,19 +676,19 @@ lua-ts-inferior-lua
 
 (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
-- 
2.46.2


[-- Attachment #2: Type: text/plain, Size: 130 bytes --]



john muhl <jm@pub.pink> writes:

> Tags: patch
>
> Add tags to interactive commands that only make sense in lua mode
> buffers.

  reply	other threads:[~2024-10-01 18:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-01 18:40 bug#73586: [PATCH] Tag interactive commands in 'lua-ts-mode' john muhl
2024-10-01 18:43 ` john muhl [this message]
2024-10-01 19:37   ` Stefan Kangas
2024-10-02  6:30     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5fn4qag.fsf@pub.pink \
    --to=jm@pub.pink \
    --cc=73586@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).