From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: john muhl Newsgroups: gmane.emacs.bugs Subject: bug#73586: [PATCH] Tag interactive commands in 'lua-ts-mode' Date: Tue, 01 Oct 2024 13:43:51 -0500 Message-ID: <87a5fn4qag.fsf@pub.pink> References: <87ikub4qfu.fsf@pub.pink> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9182"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 31.0.50 To: 73586@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 01 20:44:17 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 1svhr7-0002G5-3f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Oct 2024 20:44:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svhqv-0005EB-Th; Tue, 01 Oct 2024 14:44:06 -0400 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 1svhqt-0005Dm-PZ for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2024 14:44:03 -0400 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 1svhqt-0003Wp-HZ for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2024 14:44:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=YrDZZ4zGty2BeKSFtyEf+rv1GBkI221DcXf2lV0XEyE=; b=ksVncMZxVg+XPEz9nXVwbagxHVitr6hD03jsgPFg1KOEvaP7roltWE0M4N+zzix43dOUuy9H52SpXcg7CqE7F+XOOws+p/7G5RTd3hHQUTFbcOkq9BoBiY60kvEz8MLlFZ4Dk3KYOr9uJyWBlofG8kbqYz5+aQB0/kZR+flnhQL7xUUL4xa3q/ODz1KDz7Y+wwhL0cFzOqSqrd/dt/RhdS/jVfrx9oPPmxVWu13b6K9A71E9L3iqPqufJQCL3d0/zEWFw16qOeeWYjDeUG3skCfmmGEsEIqj148IpLagS1+IPblpP8PA8QqeuK/vnmI1JAIqnYffujGpHFdvVsXUWw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svhqr-0004i8-SM for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2024 14:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2024 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73586-submit@debbugs.gnu.org id=B73586.172780823918094 (code B ref 73586); Tue, 01 Oct 2024 18:44:01 +0000 Original-Received: (at 73586) by debbugs.gnu.org; 1 Oct 2024 18:43:59 +0000 Original-Received: from localhost ([127.0.0.1]:52981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svhqp-0004hm-2K for submit@debbugs.gnu.org; Tue, 01 Oct 2024 14:43:59 -0400 Original-Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]:59203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svhqm-0004he-Te for 73586@debbugs.gnu.org; Tue, 01 Oct 2024 14:43:57 -0400 Original-Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 416B51140D21 for <73586@debbugs.gnu.org>; Tue, 1 Oct 2024 14:43:52 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 01 Oct 2024 14:43:52 -0400 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=fm2; t=1727808232; x=1727894632; bh=YrDZZ4zGty 2BeKSFtyEf+rv1GBkI221DcXf2lV0XEyE=; b=XkiC/NolyCV8b0Fg45TuxcSexV zHNWDkxeielRq1LDEnCboLU9fSTCV/GLe2KQqavShf7exr2aWhBVuInXbxEVJAkU B1yDMQAbE9Lz99EjiJbgS1Zbj9mcRfMPzBAXbGOfYrp6FjIZV5e+tI/t+LxRwnfd Y7nj8ctDfoG9I5cn1z9NyxrdOsSGgZKD7WyYILg+zzu1QWbmah1kXj0k6gVSt6ob x+fTvR8JX/+RyjBOD4XJKxq1vnthgXj03heCOAIZ4OX5faO0unElIzIGaF45Cntk Wm8YXTKQ4XIY2VXQnOwXUgrw7yiSQZkTCBjgh+vYWeAgCb5TbebwWutHrw3Q== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1727808232; x=1727894632; bh=YrDZZ4zGty2BeKSFtyEf+rv1GBkI 221DcXf2lV0XEyE=; b=eaOKvLZ0oBSUH2pzChnS5fyFimrmL7QwpKG9c4qN1g+b dyYgZ/M5EzlLLg1wHtYdhpBFmYOAzlyn1OIbI0dKOjYrML2fHLhoByFILr+eoqfl 0+kNx/RrFoNxDaG3f9ae41V9zvKZVWUoKF8z7n/ZDbjij5+siKsBYpGaR85C0QUS OrhgC2cDwrXtzTWl8SF7Vdcyd97xNKiPr/hVLjiRXiEAnSCoMFxPGUH2hueMQZYc x6myKwSI12XAjiU8mFbZGz7aWhFlS/y8Z94inSz2Omw5nMl1Gc40mHMzSMfNbT9g suRuKzAI8yGza75iD5Y7mk99fbKO2HEJWqslpcb9Cw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddujedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf gjfhgffffkgggtsehmtderredtredtnecuhfhrohhmpehjohhhnhcumhhuhhhluceojhhm sehpuhgsrdhpihhnkheqnecuggftrfgrthhtvghrnhepgfelheekheevvedtfeejtdduvd eihffgkeduleevueehkeegffeluedvteehteeunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepjhhmsehpuhgsrdhpihhnkhdpnhgspghrtghpth htohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjeefheekieesuggvsggs uhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i74194916:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for <73586@debbugs.gnu.org>; Tue, 1 Oct 2024 14:43:51 -0400 (EDT) In-Reply-To: <87ikub4qfu.fsf@pub.pink> (john muhl's message of "Tue, 01 Oct 2024 13:40:37 -0500") 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:292782 Archived-At: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Tag-interactive-commands-in-lua-ts-mode.patch >From bba5bcf0df080c92508f4fc932f9ea27874f0b05 Mon Sep 17 00:00:00 2001 From: john muhl 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 --=-=-= Content-Type: text/plain john muhl writes: > Tags: patch > > Add tags to interactive commands that only make sense in lua mode > buffers. --=-=-=--