From unknown Thu Aug 14 21:51:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#74705 <74705@debbugs.gnu.org> To: bug#74705 <74705@debbugs.gnu.org> Subject: Status: [PATCH] Don't restrict 'lua-ts-send-file' to 'lua-ts-mode' Reply-To: bug#74705 <74705@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:51:18 +0000 retitle 74705 [PATCH] Don't restrict 'lua-ts-send-file' to 'lua-ts-mode' reassign 74705 emacs submitter 74705 john muhl severity 74705 normal tag 74705 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 05 20:32:19 2024 Received: (at submit) by debbugs.gnu.org; 6 Dec 2024 01:32:19 +0000 Received: from localhost ([127.0.0.1]:41485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJNCd-0007fe-8S for submit@debbugs.gnu.org; Thu, 05 Dec 2024 20:32:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:55104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJNCa-0007fT-EA for submit@debbugs.gnu.org; Thu, 05 Dec 2024 20:32:18 -0500 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 1tJNCZ-0003Nd-JH for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2024 20:32:15 -0500 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJNCX-0006cs-0v for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2024 20:32:14 -0500 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id B2BF025400D9 for ; Thu, 5 Dec 2024 20:32:09 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 05 Dec 2024 20:32:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1733448729; x=1733535129; bh=GA3P5+Pvhr2MTheVDzOgnlSmDuaOZYBP diqgBt8meTc=; b=hoZCXA7FZmOiAe2My/uIhhl9mwi68fQBL2WeRvgiAKaYh8hQ ReWJK7QTZAMGQcLQA8UkNd+zPzKFbuJx3omLNrs2lZNji1QwYUDatDTNKEZULiSV 12S5yvzFs3rBfotcv0IN0XHLLYa4ML+ajGc+dEaNt87kO3EWgluwhdBtTi3FpYIC w7DItYifVFURNT8DzWJEvGzwTzjhRBr77hVmWtaSr2bJK5UnYsNqFeIS1Bw2sfU9 Gk2Q3Q7GNlmPsSv4CeUYcZLtHyI5mRp0OoGdqRDnQiA9gbJnDoiBvepwPtFIJCrb 3aQL4/P0EW+ojHyx6C1t/Qq2oEEaqD0EcwADHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733448729; x= 1733535129; bh=GA3P5+Pvhr2MTheVDzOgnlSmDuaOZYBPdiqgBt8meTc=; b=4 noqwfmNWZhcGVdGLkessGrau4Np9QoiJ7CTS/86z3V2jgIut5JDYgG9BPF1ZTP2s 5irSPQ2agAW9OyrxMeTfK6/IsdP4/7vEXwMUAKzXkdJPDZSN4ybq8CEg4t2B/qed UaPBtuOf+Bw9hq6BUlmMf4T79AOcK1Xi9WT0SErDntDma9dBAGvqP79zTBYS8+Zx 2b4u5tnTLarm0TQ8S5vl7yJnLrV9UexW4a6YPxkoJgNPphpyA5ixiSx6Z0xTmB+I pSSnIKE1bMph13OuO1BnZC+pbxm+H/ffvQ3+SlTkecpTD0YnmTCzgK9a7HV22/K4 3OPyaHkSF2Sl6WgT9cSrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieekgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkf ggtgesthdtredttddttdenucfhrhhomhepjhhohhhnuchmuhhhlhcuoehjmhesphhusgdr phhinhhkqeenucggtffrrghtthgvrhhnpeeghfdukeeuheduuefghffggeefvefhteejhe fhueelfffggeeutdffvdetueetudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehjmhesphhusgdrphhinhhkpdhnsggprhgtphhtthhopedupd hmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehg nhhurdhorhhg X-ME-Proxy: Feedback-ID: i74194916:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 5 Dec 2024 20:32:08 -0500 (EST) From: john muhl To: bug-gnu-emacs@gnu.org Subject: [PATCH] Don't restrict 'lua-ts-send-file' to 'lua-ts-mode' X-Debbugs-Cc: Date: Thu, 05 Dec 2024 19:32:05 -0600 Message-ID: <87r06lwq96.fsf@pub.pink> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.12.124.153; envelope-from=jm@pub.pink; helo=fhigh-b2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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). From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 05 20:35:45 2024 Received: (at 74705) by debbugs.gnu.org; 6 Dec 2024 01:35:45 +0000 Received: from localhost ([127.0.0.1]:41494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJNFw-0007rZ-T2 for submit@debbugs.gnu.org; Thu, 05 Dec 2024 20:35:45 -0500 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]:33575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJNFu-0007rK-5l for 74705@debbugs.gnu.org; Thu, 05 Dec 2024 20:35:43 -0500 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 5618B1140219 for <74705@debbugs.gnu.org>; Thu, 5 Dec 2024 20:35:36 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Thu, 05 Dec 2024 20:35:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1733448936; x=1733535336; bh=I7zk7UGcic FmLDHMW9UAABywPueN5ABIacK7RFMNf/0=; b=bkPYNa63YwvQlwLToy8iqYWOgk yUkDFhBtHs22mrJAzHdvnyoFQIHigjrZpJjDjAzByYF3WysgVS5b5ASJCj4YwZCf iys6tK8iIgwF2q94MLhKG8iA8TpCSDSAwIuTQ6Zr2F2c0NsxbZSHvy1q/d+3Yh7y oXfxZw5IIdd3C0YtlBJ3iV1sAtVCLBnN6Oj0GhazQWRh1KhQ5Xmg/0Dx2BW6rR9B EgCxYY1NKjvxAI7OIF2sVk33hdjfHAV7mcLIuWklMiA0ev3oYBQRpzot4YI8E48f NdS2wCGT0vODFAbWCKRDDCntlsHXOjfQ1rZ1c9lcMJ2tupcg2mSB6y0XQ55A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1733448936; x=1733535336; bh=I7zk7UGcicFmLDHMW9UAABywPueN5ABIacK 7RFMNf/0=; b=UgrFrHzqTGMea+IKev0GeGkqfClAo8+yi0z3sNkNjzOkI5iF917 8763eklozL0QeCz2IU2eVklu/6TqWQ1ny3pkw/ZGiXekvYq2nEUwoB7es95OBahK D7x0EMl3n8m8L4hhiyBosdr8BIz95Ukn3b2BuVVYpYLlKjh2Rr0jO0NPtBempLrQ cA1efrOysh0BUjexgHxXFs0Xm110T47sRSs/YvyAg5VuV08EWz8J37Y2rSw0nem9 fGEE5ziIcwwPQXU1SdipLhFet2CzWwTazY9UY57HYyuyJT40Y2V0vv4Khtjl86jn nk1s5MNBjLv+3LQycU9RRxmt8pVg61TYN7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieekgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfh gffffkgggtsehmtderredtredtnecuhfhrohhmpehjohhhnhcumhhuhhhluceojhhmsehp uhgsrdhpihhnkheqnecuggftrfgrthhtvghrnhepgfelheekheevvedtfeejtdduvdeihf fgkeduleevueehkeegffeluedvteehteeunecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepjhhmsehpuhgsrdhpihhnkhdpnhgspghrtghpthhtoh epuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjeegjedtheesuggvsggsuhhg shdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i74194916:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <74705@debbugs.gnu.org>; Thu, 5 Dec 2024 20:35:34 -0500 (EST) From: john muhl To: 74705@debbugs.gnu.org Subject: Re: bug#74705: [PATCH] Don't restrict 'lua-ts-send-file' to 'lua-ts-mode' In-Reply-To: <87r06lwq96.fsf@pub.pink> (john muhl's message of "Thu, 05 Dec 2024 19:32:05 -0600") References: <87r06lwq96.fsf@pub.pink> User-Agent: mu4e 1.12.1; emacs 31.0.50 Date: Thu, 05 Dec 2024 19:35:33 -0600 Message-ID: <87frn1wq3e.fsf@pub.pink> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74705 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Don-t-restrict-lua-ts-send-file-to-lua-ts-mode.patch >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 --=-=-= Content-Type: text/plain 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). --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 07 08:30:13 2024 Received: (at 74705-done) by debbugs.gnu.org; 7 Dec 2024 13:30:13 +0000 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 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 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==; Date: Sat, 07 Dec 2024 15:29:24 +0200 Message-Id: <86cyi3ipu3.fsf@gnu.org> From: Eli Zaretskii To: john muhl In-Reply-To: <87frn1wq3e.fsf@pub.pink> (message from john muhl on Thu, 05 Dec 2024 19:35:33 -0600) Subject: Re: bug#74705: [PATCH] Don't restrict 'lua-ts-send-file' to 'lua-ts-mode' References: <87r06lwq96.fsf@pub.pink> <87frn1wq3e.fsf@pub.pink> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74705-done Cc: 74705-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Thu Aug 14 21:51:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Jan 2025 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator