From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74705: [PATCH] Don't restrict 'lua-ts-send-file' to 'lua-ts-mode' Date: Sat, 07 Dec 2024 15:29:24 +0200 Message-ID: <86cyi3ipu3.fsf@gnu.org> References: <87r06lwq96.fsf@pub.pink> <87frn1wq3e.fsf@pub.pink> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17664"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74705-done@debbugs.gnu.org To: john muhl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 14:31:30 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tJuu9-0004RF-Sm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 14:31:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJutn-0000jl-CP; Sat, 07 Dec 2024 08:31:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJutj-0000iL-DG for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 08:31:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJutj-0003R7-41 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 08:31:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=n6DblbKXwbXpL93oyrn5yeB4suWIk63Lqr5oDHqY1JA=; b=pHR90Sf2PCobTn/AdEd6bs7sMA8RifAjaGhnspcYyPFKwVWaUjB3QR+B17SYfoAvnbpWwMsaJyZI0Dj6sQhq8AB0W3xO6pUdOna3Lb63SYyoRRJSCYd71EGSqMCRaWtXUs9rcYupOkbz/pL7n6NfWJ65LdC+LtMFiUD9Clc9fEhg9G4mNbjWW6O9AgQpXozmCny1VMzGaIabUNTL8gztwSBop91m5Zfqs9S3CyXw1QizUF/9KnKzYMOxpUgh3AxNzhkupnSqVsLIjGIagMJi7ygDwoEjubdFRg4p/HGl4gMc+yHrHqhpeyLfVbgJWSktye+JGEfuRv/HISD83QONkA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJuth-0005Oo-V4 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 08:31:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Dec 2024 13:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 74705@debbugs.gnu.org, eliz@gnu.org, jm@pub.pink Original-Received: via spool by 74705-done@debbugs.gnu.org id=D74705.173357821320438 (code D ref 74705); Sat, 07 Dec 2024 13:31:01 +0000 Original-Received: (at 74705-done) by debbugs.gnu.org; 7 Dec 2024 13:30:13 +0000 Original-Received: from localhost ([127.0.0.1]:45973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJusv-0005JH-7I for submit@debbugs.gnu.org; Sat, 07 Dec 2024 08:30:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJuss-0005GA-Ii for 74705-done@debbugs.gnu.org; Sat, 07 Dec 2024 08:30:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJusm-00034Z-G7; Sat, 07 Dec 2024 08:30:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=n6DblbKXwbXpL93oyrn5yeB4suWIk63Lqr5oDHqY1JA=; b=ZYUOJOwOAJqj aVXbH1ofgQdqyvXRbLRnYVdK5OJZnxcAgi6TeRhCL/8VvWajoog6WFHP7Vko9cZnJ17hFaGwmagTU kT5xkxFTI5RfeVGtC0eJQmksLLOwquFwyAW7v2f32ieMfjYQnBRNGYmIvSeLXx4y+fDTuabAsYHb9 p5NYM+a+UL1Lxeq7iMLYLW3c3MaZsGGE42RnAUAiT7ghPL7hNFUgBiOGUbzPj0E88o8gjSm8rraqw +z/eBdIZgV1SG2r12Rwx/a1AQMr38s/yFY6KaaCvJKrY7EVMwzP9S++p5+/u6cqx7r5nNt6kYacEf rQFkdfk9IRldUw8SuhQkiw==; In-Reply-To: <87frn1wq3e.fsf@pub.pink> (message from john muhl on Thu, 05 Dec 2024 19:35:33 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296567 Archived-At: > From: john muhl > Date: Thu, 05 Dec 2024 19:35:33 -0600 > > >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 > > john muhl writes: > > > Tags: patch > > > > The lua-ts-send-file command was marked as limited to lua-ts-mode > > buffers but there is no reason for such a restriction since it > > reads a file from disk (unlike the other send-* commands that use > > buffer contents). Thanks, installed on the emacs-30 branch, and closing the bug.