From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oNPfBrIaKmKlVgAAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 16:35:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iGScA7IaKmL3KwAAauVa8A (envelope-from ) for ; Thu, 10 Mar 2022 16:35:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A3A673D1E4 for ; Thu, 10 Mar 2022 16:35:13 +0100 (CET) Received: from localhost ([::1]:41384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSKoq-0003O0-Dw for larch@yhetil.org; Thu, 10 Mar 2022 10:35:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSKoh-0003No-4v for guix-patches@gnu.org; Thu, 10 Mar 2022 10:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSKog-00044C-S6 for guix-patches@gnu.org; Thu, 10 Mar 2022 10:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSKog-0006k8-1V for guix-patches@gnu.org; Thu, 10 Mar 2022 10:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [WIP PATCH v3 00/26] gnu: Add tree-sitter for emacs (and neovim as well?). Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Mar 2022 15:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: Luis Henrique Gomes Higino , 49946@debbugs.gnu.org Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.164692646525856 (code B ref 49946); Thu, 10 Mar 2022 15:35:01 +0000 Received: (at 49946) by debbugs.gnu.org; 10 Mar 2022 15:34:25 +0000 Received: from localhost ([127.0.0.1]:35270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSKo5-0006iy-41 for submit@debbugs.gnu.org; Thu, 10 Mar 2022 10:34:25 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:59752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSKo2-0006im-1e for 49946@debbugs.gnu.org; Thu, 10 Mar 2022 10:34:23 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id 4faK2700c4UW6Th06faLZc; Thu, 10 Mar 2022 16:34:20 +0100 Message-ID: <4849eb7dd3faa87d81e4bfbdff88ab6496d9be9d.camel@telenet.be> From: Maxime Devos Date: Thu, 10 Mar 2022 16:34:14 +0100 In-Reply-To: <87fsnpkjgg.fsf@gmx.com> References: <87h7fztt60.fsf@gmx.com> <20210808233354.6745-1-pierre.langlois@gmx.com> <20210808233354.6745-7-pierre.langlois@gmx.com> <87czpwzg9e.fsf@gmx.com> <87leyinxly.fsf@gmx.com> <87lexl1goc.fsf@gmail.com> <87sfrrnpme.fsf@gmx.com> <24f64e912876f56fe40fbaeaec02ddd5e8ef2c4b.camel@telenet.be> <87zglykpmf.fsf@gmx.com> <87fsnpkjgg.fsf@gmx.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-1ybn/Kn7uEr97Vu/JoOv" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646926460; bh=1/bU8oBKBYGRAVczJrVb8SEpuzP4pSW7Q5IYjEi8UYw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=eY6N1TD7B/q61uEDjBEYiifZDKYe2ymBNbAa17WaydARbPZrH5qR21jtnLSqBXDmY hETlMAqKX9LNG37rKL8i41jk6oNFtXCA/V0aI8oAW4ksNyv0fqRgkn+pk86TxqvxpH USW38WD72hWkH8+So5kDAokupTAgUhmUa3rRFmIf7fJGGi6vvDaI/MSKLj4/KaWWWp A1Off9X9l+kSczhfBZlpZgMqBOdpkOjFTu9ssDDGW9R+PIjjQ+kz8oesuGe3KzalDx 01tTuAEcegCACnZ/y+fV5uW+zlQBCrNVMeoHma4ANte0RpuCbRkg9sZyrD3E/ztqVp Yncz9gskrJtvQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646926513; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=1/bU8oBKBYGRAVczJrVb8SEpuzP4pSW7Q5IYjEi8UYw=; b=iTce5OY/jMd7if61VQoa4As8XfQVAxaUbWR7Y2ugb7aQhFnDwTfliCodEzH6n69/VsOR0c cfzVrs/QpynvyzaNpw68KOogUk6byAESvFLm0PK495mJEJQDz5TKBcbmlwHWCKk2ofcgdp BYlw/I1/DWbNoAcdlbOXOiWR6/Ju4/misAkSIK8HReKve5m594CuW5qzEEsOaMHwCTqqzr ivgK80eopPgFbSq6tJ5h95zItI1iKadQ09mOiOuV4R37rsxyKWNotS6brOQOvjh8ho/F/q Ri9HcjNH9PYMjQFxfN4MWMqNy7yr3jYPe0eqCD4E45PRETvDwp38Xj/PgjDeUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646926513; a=rsa-sha256; cv=none; b=paSIiwBrSEw/w4BpTh/BnWPlkfOuAkUXpcyYsyGu8mJeZ2s8bcU9VEYgRtFgrlhHivWjc3 haNeNMskxB+9AxGZxmAWEqb1rdbAkVIlBuaEaISToybk6x/9Ay+KK/eN1+ABCn74qwN7cK 83eks83TpYRWZy1lhWrmI/NgWXjhdL5cwfcNNxOJH2gPOg4gGiPflbgUPSUpjI5jkjrTCN UTbWMHb/7UZwVI8/sLxTVf7ZuXXhTHCey6jdIn+xFjE+JgMnt6U4Ndyxkxj+7XIKp8GDn2 +noHl3LgYZG8U9OkZBtpsf7DLkZ1peIPwUIufMZDnWdP2dDE4tIXMIQR0E4aqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=eY6N1TD7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=eY6N1TD7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A3A673D1E4 X-Spam-Score: 2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: GSrG2YYiZqJv --=-1ybn/Kn7uEr97Vu/JoOv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Pierre Langlois schreef op do 10-03-2022 om 13:19 [+0000]: > I'll see what can be done, sadly so far I couldn't find a way to do > the right thing automatically for ocaml and typescript.=C2=A0 These are > packages that provide two grammars, and I didn't see a way to > "discover" that there are multiple languages supported.=C2=A0 [...] maybe > by passing new #:keyword parameters. >=20 > Another idea could be to call back into the build-system phase, for > example something like: >=20 > --8<---------------cut here---------------start------------->8--- > (replace 'build > =C2=A0 (lambda _ > =C2=A0=C2=A0=C2=A0 (for-each (lambda (dir) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (with-directory-excursion dir > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((assoc-ref tree-sitter:%standard-phases 'bu= ild)))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 '("ocaml" "interface")))) I would go for a keyword argument (#:languages 'auto by default, or an explicit list like #:languages '("ocaml" "interface") for when autodetection does not work), since it seems more declarative and conciser than overriding the build phase. Greetings, Maxime. --=-1ybn/Kn7uEr97Vu/JoOv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYioadhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mDAAP9MWRpS6Ig0yLS+y0G4NqNnE0CK s5x8jz0SOK96UVk5DAEAqWt00a3XDP7YFRaXiPeocZNjVsWMeMSqoJbeDMLlJw4= =ywGA -----END PGP SIGNATURE----- --=-1ybn/Kn7uEr97Vu/JoOv--