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#74951: [PATCH] Add 'lua-ts-mode' to 'interpreter-mode-alist' Date: Wed, 18 Dec 2024 13:20:24 -0600 Message-ID: <878qscyf0n.fsf@pub.pink> References: <87ed24yf52.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="4282"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 31.0.50 To: 74951@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 18 20:21:20 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 1tNzbi-0000sV-J8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Dec 2024 20:21:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNzba-0004dK-KA; Wed, 18 Dec 2024 14:21:14 -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 1tNzbU-0004Xv-S2 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 14:21:06 -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 1tNzbS-0002BW-VT for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 14:21:03 -0500 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=zqEKYMYl5qsGQu4ir00qp0Pk4gOCktV4MKzFnL8NCmw=; b=m7aSnzFl/NSyDyH7h9wcPW0kUzuSvlAnrBM09yWLIBfUZ3V9ZTSRVvjqNyYQQX3DHzCNg/UgLOwszDHsiIs923u3hbYniorETHMuiCkSwP1lFLF4Wu663HRx1qmjQQ5JWSFwLPX0f5W5vvjTuB4qr5JEWaTHxNIzJ+MXxpxFLMlMSqKrsVnQX7SSi11Ei/b1dpd1uF5MToN7i76BW4OKOVqP+atduFjAIs/rKa9PlnTSKwOczTdRJ1LMl87Ls1YolppA6i6rjBKnmE9zG4vhZGzEFoRjpBTyzL2czAZEdFlnj8JrEAvvaYB75LuK6f3OOYUWmcokws4w0c0HEKyGpw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNzbS-0004Qz-G9 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2024 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Dec 2024 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74951 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74951-submit@debbugs.gnu.org id=B74951.173454963516989 (code B ref 74951); Wed, 18 Dec 2024 19:21:02 +0000 Original-Received: (at 74951) by debbugs.gnu.org; 18 Dec 2024 19:20:35 +0000 Original-Received: from localhost ([127.0.0.1]:36024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNzb0-0004Px-J7 for submit@debbugs.gnu.org; Wed, 18 Dec 2024 14:20:34 -0500 Original-Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]:54385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNzay-0004Ph-KB for 74951@debbugs.gnu.org; Wed, 18 Dec 2024 14:20:33 -0500 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 0E2291140152 for <74951@debbugs.gnu.org>; Wed, 18 Dec 2024 14:20:26 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 18 Dec 2024 14:20:26 -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=1734549625; x=1734636025; bh=zqEKYMYl5q sGQu4ir00qp0Pk4gOCktV4MKzFnL8NCmw=; b=Yu6rCHnkE85X/cIl3lSm5d9z7W 62p53A9TeXGUDQRyvuWBRr6Yt7/V1+Q/8jgCwJHUW1toHx/XBk0dDoYISJ/SE2ro N8xetjcCFEafNfT+7Z0aO4sIVaNopHA41cjgRNPCXzN1rMq7y3SAwaUSTmfFWBm0 Kd8L/iVfsBRRWvKs1zDDMOwi6PPMv6r+nKiKxhqIOJ8kOIVx3TjMa3YIBMHHNl3M HpPKvR3GyJ8VTSHhNgsykPHcacu4PDfSxt+OnycWaFHHww5rX9hIIrkXxQ9rdl/L c5mccx+nhWuUkICyUwPjKNwgJOmY4slNRajJkjb9f05sa4DaqHgwgaf+XrwA== 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= 1734549625; x=1734636025; bh=zqEKYMYl5qsGQu4ir00qp0Pk4gOCktV4MKz FnL8NCmw=; b=IyZXsTyLmN8RRq7xqZYSY7VyWkMWgAH3EvjyA2/I45WwLTlWXqu YfADfJ4t5d+QRoGAMhzl650+q4rsAc1z/Bvih6rEBBRVOG3URMywi0HvXCy/wBCY 7p1aVIYdgWbkG5hIdl88qhHg0lc0bi2j4Wc5hV8B/z1MB9bbJTy1dT3fmP3Ymm4J wsSxl7maZfud/IEPB1A72jlaEDLdJseEbcMwKo3ig0p7Q28KRvax4vJ10hfp8qLN qMr7WNyXsP0ZanC2Q0F7k9akiXNYTQxljfPolI0DA7+QBfVezNY79sJd4LjYxUVs 3d/qWNaBN2Wia8wPuwKwgWqnXbtC3vUn7fQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrleekgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujg hffgffkfggtgesmhdtreertdertdenucfhrhhomhepjhhohhhnuchmuhhhlhcuoehjmhes phhusgdrphhinhhkqeenucggtffrrghtthgvrhhnpefgleehkeehveevtdefjedtuddvie fhgfekudelveeuheekgeffleeuvdetheetueenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehjmhesphhusgdrphhinhhkpdhnsggprhgtphhtth hopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeejgeelheduseguvggssghu ghhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i74194916:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for <74951@debbugs.gnu.org>; Wed, 18 Dec 2024 14:20:25 -0500 (EST) In-Reply-To: <87ed24yf52.fsf@pub.pink> (john muhl's message of "Wed, 18 Dec 2024 13:17:45 -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:297348 Archived-At: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-lua-ts-mode-to-interpreter-mode-alist.patch >From 375f901d152b929d7f64bd2c18fa6a02bd4ba233 Mon Sep 17 00:00:00 2001 From: john muhl Date: Wed, 18 Dec 2024 10:59:19 -0600 Subject: [PATCH] Add 'lua-ts-mode' to 'interpreter-mode-alist' * lisp/progmodes/lua-ts-mode.el: Enable 'lua-ts-mode' for Lua scripts based on their interpreter line. (Bug#74951) --- lisp/progmodes/lua-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 9d2969d6ac4..6fa3e51b34b 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -839,7 +839,8 @@ lua-ts-mode (derived-mode-add-parents 'lua-ts-mode '(lua-mode)) (when (treesit-ready-p 'lua) - (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode))) + (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode)) + (add-to-list 'interpreter-mode-alist '("\\ writes: > Tags: patch > > Make is so that extensionless Lua scripts get recognized based on > the interpreter line. --=-=-=--