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#61996: 30.0.50; Submitting elixir-ts-mode and heex-ts-mode Date: Mon, 06 Mar 2023 13:59:02 +0200 Message-ID: <83cz5m8515.fsf@gnu.org> References: <87mt4qibnk.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9423"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61996@debbugs.gnu.org, theo@thornhill.no, casouri@gmail.com To: Wilhelm Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 13:00:27 2023 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 1pZ9Vy-0002GJ-Vg for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 13:00:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ9Ve-00037U-VM; Mon, 06 Mar 2023 07:00:07 -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 1pZ9Vb-00037B-5K for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZ9Va-0004Bi-MJ for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZ9Va-00013Y-5V for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 07:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61996 X-GNU-PR-Package: emacs Original-Received: via spool by 61996-submit@debbugs.gnu.org id=B61996.16781039603982 (code B ref 61996); Mon, 06 Mar 2023 12:00:02 +0000 Original-Received: (at 61996) by debbugs.gnu.org; 6 Mar 2023 11:59:20 +0000 Original-Received: from localhost ([127.0.0.1]:41533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ9Ut-000129-St for submit@debbugs.gnu.org; Mon, 06 Mar 2023 06:59:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ9Ur-00011x-TJ for 61996@debbugs.gnu.org; Mon, 06 Mar 2023 06:59:18 -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 1pZ9Ul-00041f-Nm; Mon, 06 Mar 2023 06:59:11 -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=UaSquXPagLrFZUM/0jD6f9va2PMRCA8sIMq1eWYXJvA=; b=WHFNoJdw3w1C r8kt6xgg3QBoguVMV3+1kcd2Ok85wimD4d/TtdfRA58DPg84TFnZZ43em08OXebp4V/c6wfNdoZh/ w4QDFhkqBVJh18eLOq15ofcyfnDvjmTBLBOgKOPfxnqv00b6veHXUXgpZHlfeHWqNv2vaVzcrkmMk O+XOv4S6MAb2IVSPi+wBxpFKumeLr6aFtbvA7xn4GLWa381XNccqKq5WiNQNDKHohV4C46SI6HwOh p4zKp5gZUK8NDHCGTdyI5HRCv/D/H1sAEjQlv5rBi6BUtHnIUFdVghhfAmPYOcgZz2OUdSHlAVX1W WAL1Rq99qKS1cFAzCDUOPg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZ9Uj-0000QU-UD; Mon, 06 Mar 2023 06:59:11 -0500 In-Reply-To: <87mt4qibnk.fsf@gmail.com> (message from Wilhelm Kirschbaum on Mon, 06 Mar 2023 09:04:13 +0200) 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:257378 Archived-At: > Cc: casouri@gmail.com, theo@thornhill.no > From: Wilhelm Kirschbaum > Date: Mon, 06 Mar 2023 09:04:13 +0200 > > I would like to submit elixir-ts-mode and heex-ts-mode to emacs > master. Thanks. Please state in the comments to each mode with which grammars is it compatible, so that users could know from which URL to download the required grammar libraries. The heex-ts-mode mentions that, but elixir-ts-mode doesn't, AFAICT. > +(defcustom heex-ts-mode-indent-offset 2 > + "Indentation of Heex statements." > + :version "29.1" I think these modes should go to the master branch, so "30.1" is more accurate. > +(if (treesit-ready-p 'elixir) > + (progn > + (add-to-list 'auto-mode-alist '("\\.elixir\\'" . elixir-ts-mode)) > + (add-to-list 'auto-mode-alist '("\\.ex\\'" . elixir-ts-mode)) > + (add-to-list 'auto-mode-alist '("\\.exs\\'" . elixir-ts-mode)) > + (add-to-list 'auto-mode-alist '("mix\\.lock" . elixir-ts-mode)))) > + > +(if (treesit-ready-p 'heex) > + (add-to-list 'auto-mode-alist '("\\.[hl]?eex\\'" . heex-ts-mode))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Copy/paste error, I presume? Thanks.