Received: (at 81025) by debbugs.gnu.org; 2 Jun 2026 11:22:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 02 07:22:16 2026 Received: from localhost ([127.0.0.1]:54868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wUNCK-0001NK-88 for submit <at> debbugs.gnu.org; Tue, 02 Jun 2026 07:22:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36688) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wUNCH-0001M5-3y for 81025 <at> debbugs.gnu.org; Tue, 02 Jun 2026 07:22:14 -0400 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 <eliz@HIDDEN>) id 1wUNCA-0003O4-I4; Tue, 02 Jun 2026 07:22:06 -0400 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=MrEbVVLQyT5PNxG39DCqZNSb0+d54oZVenZgoSimKGY=; b=KYCHoVFGqYeA 4t1ZFvQhRhw2vSe5YsGAKblAgw5u2wScAqELWJu/umTO69T536vjlIYcYRPW2np6eeQYEqEFx9Mvn ilZGdTKbAskjDASN7+THL0YzGMuVWYxLcrO/OPKMs8PcztIQpR40j/qs7yrf6ff5vTeygeCoEh3Mz au/AjxtmU9OZ0m2kDwS8/zGsAMWS3uOJlN4A9eyUgUPBPjG7ZjGY2/+Y1q8x55dwa62hLWhAkS5Nk gPZb/ireO+1+tSjiAAG5URjTgdvPlVRNpzpDvJCqIe33JVWQdv1vCjfTceB9Ed9NTJD/9xxR7+GrE VqjYyT41GgLODnVhQJeNFg==; Date: Tue, 02 Jun 2026 14:22:02 +0300 Message-Id: <86ecipw5k5.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> In-Reply-To: <87mrxds277.fsf@HIDDEN> (message from Sean Whitton on Tue, 02 Jun 2026 10:48:12 +0100) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> <87bjdvx1fr.fsf@HIDDEN> <87y0gz5tx8.fsf@HIDDEN> <878q8ytqx1.fsf@HIDDEN> <86y0gywica.fsf@HIDDEN> <87mrxds277.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Sean Whitton <spwhitton@HIDDEN> > Cc: juri@HIDDEN, monnier@HIDDEN, p.d.oliver@HIDDEN, > 81025 <at> debbugs.gnu.org > Date: Tue, 02 Jun 2026 10:48:12 +0100 > > Eli Zaretskii [01/Jun 3:33pm +03] wrote: > >> From: Sean Whitton <spwhitton@HIDDEN> > >> Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>, > >> p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org > >> Date: Mon, 01 Jun 2026 12:56:42 +0100 > >> > >> Juri Linkov [31/May 9:13pm +03] wrote: > >> > Generic treesit modes could be used only for the default location > >> > of treesitter grammars on emacs-31. > >> > >> I see, okay. AFAIK distros have not really caught up with shipping tree > >> sitter grammars that Emacs can use, yet. Therefore we can expect that > >> most users would not be able to use the new generic modes at all because > >> they wouldn't be able to install the grammar in their home directory and > >> it wouldn't be found in the default location. But then it seems that > >> the generic modes are not very useful for almost everyone, yet. > >> > >> Eli, is the above your conclusion too? > > > > They need tinkering, yes. > > > > OTOH, they also don't do any harm, IMO. So maybe we should simply > > decide that what we have there now is enough, and users who want to > > use these modes in Emacs 31 will need to make sure the file > > tree-sitter/queries/LANG/highlights.scm exists under the user's init > > directory (and also install the grammar library). Making this more > > convenient and maybe also working OOTB should then be deferred to > > Emacs 32. WDYT? > > ISTM that giving the modes a proper launch in Emacs 32 is better than > letting users try it, find it's useless without a lot of knowledge, and > not looking at it ever again or for a long while. That would be certainly a reasonable decision a year ago, when the file was added. But given that it's in Emacs for the past year, maybe removing it now is too drastic a measure?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 2 Jun 2026 09:48:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 02 05:48:28 2026 Received: from localhost ([127.0.0.1]:53968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wULjU-0001OM-Sf for submit <at> debbugs.gnu.org; Tue, 02 Jun 2026 05:48:28 -0400 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]:39273) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wULjP-0001MV-Jx for 81025 <at> debbugs.gnu.org; Tue, 02 Jun 2026 05:48:22 -0400 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1514A1400190; Tue, 2 Jun 2026 05:48:14 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 02 Jun 2026 05:48:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=1780393694; x= 1780480094; bh=wNLVYLQBAoNSCp6swe9q+Q+xZtgtj+JAAlCNw4QbVg4=; b=U Ts8VgJcS45S8HtUokRdpOSsCtxbwklC67ZFbEKtWLCuMJc+lI1vyz58OLSG7nauf AppfJlFeOvofqonHdd/I/DttGJHca0LfYm1d+ZREX03k0/Yyh8QH5CKIPFpUGJsI kDYfn9Ba63vdEUU45AacVUltSrFaYkm7vedkEBYc8Ff+P4I+JrpdNbiB8EeM/mKt s28bVP22UpLp2a7CIs7SoHxXRTLT0Ha0uxBwx0ApeVsIfERBnoH3nlDp5Twfs4ha jhI6bY4ORdlAHMyXHs0rXPTLYGOWvzglF/3IncmvsRkJVqY0QY9ROSyABFwUTAQO irvbOoUT9IT8boFQOWzjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= 1780393694; x=1780480094; bh=wNLVYLQBAoNSCp6swe9q+Q+xZtgtj+JAAlC Nw4QbVg4=; b=OgJh+PvHtWr/qn0C5l0OADlp7oP9PEszN9lR74egjsKBsnadQ9q NSn5UeiSbaj1JA8LrXAaKoG3s3fjWXJ+qBXal24T51J/Q2WmCpXEa6cnhfegPAwW 9TUaO2ALts5Nnx9xsH2q8aINBZ/Knpx2OZuRtUJMGIBWMqj8Ldxl/q1GEQ3TcSOW nLsSpAAedvzSv64Lbzwx5m5EUauP215tuu53OIMJKi+d6XPfvqajMNtSev7qW393 wkmYaDEopo8X5xsGQHrrCcLAzfbqynxdUxM6EGs1h+l8ScD7c0EkJWzDFbw/7+c7 6anFMih5AEZ0fKlEaRNJvqmM0+OAZctsh0Q== X-ME-Sender: <xms:3aYeapnvQrh42P_su6HHX9BiY2wkngTQnMjjRbgYm-B9300KAkE_Lw> <xme:3aYeatzTyyo2763QEYVuvzAVZzNtQwTclzVup9wQQfIRQ_54IXyjxNzejAmFooekR wh4cp7BdMZxk1T0doCKuo-UwgNfa6O136QmRldmQwrH2plKZfLy00Ib> X-ME-Received: <xmr:3aYearMkKsYk8-rT5AgCjwmGkzT_xdZfLmIHMcu1cqOYKK8el9clVbPETDrxQjchwTm4NFwGLx86> X-ME-Proxy-Cause: dmFkZTGulAXCkQhujvoQfrUexFAKSWt3yIYjw5NzCQGI+41ilAGdIXVnmxVIBf5WUs61Nd MFvlGrzDk3mS0DQF+bzQ2lIMI29lqZT+e3BSz+0krz7GIDp751rC7Mq8KtMeOir0Nx104Z DkE6f1v7QdBdXaZsbw/nrJTrRri4oX9hUP6OePNZ5bIAXsAAOmdVsuDyua3styWFKg8gbJ aZ2kmYowEe7QQrI0ZdTnvq3GHwHtSoa84jgF9VzRj7GVo7gMtwVVvguZMHLVrmqNkD8oDX FPsgAapwguBzpWmKGH1ugSoZzWCna01WVLPBRgZCfK0J8lNiz98vsyTmJ5hp0A9zA14tAw z1HJ9FCMtx7zPAJEFUuUUtyiqT1fDmIycYPH685FfoVIijpgHO/D++zJTCBH6nOuj19F/o LHDE36lsxpJRj9cd60843W/c6hTDG2gyInxhsjLPjVK6LzwebHWPTbTMMtuRse8gmr1nlb U+vyxtzfcfycGo4Q1hd6g00/VKFJfleSkrP9ijfy6AOkI9ThuHDxDUrslFMPN3EnVnLBoH 6qfuaA7p8CxFGj5InshmheyM/odLgTg8oiG3gwPURI6iRjkj8Sm5E5GfJOEfUebPB2tuwV EVsVt1pBizaUhJfDqa6mW0I7UdE/YzyStT33G9N0Nnpaq0lYjXCh/+oeSC9g X-ME-Proxy: <xmx:3aYeapqzX0PrR4nny06DVev5pvRpbakLkPiSc87vrqY92EwSKyClDQ> <xmx:3aYeakEv1xFFogkEQRa8IQOXIG4Ub55utZnvQgsCn13TlDCkJI2gRA> <xmx:3aYeamr07L6ClooGRBEbTYbwYaLFZaARvbzvsOXqRfCC2ZRukG8FdQ> <xmx:3aYealYcqdLnnR3DO44WUqzxtonS-TM4gayS1pE4zHPCNIODTy4aeg> <xmx:3qYeaiMPQSTp7McYj5us57RNmjAeBIJ8cZgOfR1RmWn1TIUZwTZf-kfm> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Jun 2026 05:48:13 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 1F5C27E5B5E; Tue, 02 Jun 2026 10:48:12 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86y0gywica.fsf@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> <87bjdvx1fr.fsf@HIDDEN> <87y0gz5tx8.fsf@HIDDEN> <878q8ytqx1.fsf@HIDDEN> <86y0gywica.fsf@HIDDEN> Date: Tue, 02 Jun 2026 10:48:12 +0100 Message-ID: <87mrxds277.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Eli Zaretskii [01/Jun 3:33pm +03] wrote: >> From: Sean Whitton <spwhitton@HIDDEN> >> Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>, >> p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org >> Date: Mon, 01 Jun 2026 12:56:42 +0100 >> >> Juri Linkov [31/May 9:13pm +03] wrote: >> > Generic treesit modes could be used only for the default location >> > of treesitter grammars on emacs-31. >> >> I see, okay. AFAIK distros have not really caught up with shipping tree >> sitter grammars that Emacs can use, yet. Therefore we can expect that >> most users would not be able to use the new generic modes at all because >> they wouldn't be able to install the grammar in their home directory and >> it wouldn't be found in the default location. But then it seems that >> the generic modes are not very useful for almost everyone, yet. >> >> Eli, is the above your conclusion too? > > They need tinkering, yes. > > OTOH, they also don't do any harm, IMO. So maybe we should simply > decide that what we have there now is enough, and users who want to > use these modes in Emacs 31 will need to make sure the file > tree-sitter/queries/LANG/highlights.scm exists under the user's init > directory (and also install the grammar library). Making this more > convenient and maybe also working OOTB should then be deferred to > Emacs 32. WDYT? ISTM that giving the modes a proper launch in Emacs 32 is better than letting users try it, find it's useless without a lot of knowledge, and not looking at it ever again or for a long while. -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 1 Jun 2026 12:33:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 01 08:33:56 2026 Received: from localhost ([127.0.0.1]:41737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wU1q7-0006az-UH for submit <at> debbugs.gnu.org; Mon, 01 Jun 2026 08:33:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43416) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wU1q4-0006ab-Fz for 81025 <at> debbugs.gnu.org; Mon, 01 Jun 2026 08:33:54 -0400 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 <eliz@HIDDEN>) id 1wU1py-0000zx-Ap; Mon, 01 Jun 2026 08:33:46 -0400 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=SbvUqafFoNZiin7eaBwCz6OjNduwbIUu+R3cNCJDsBE=; b=F9WNVAsDd7ut NPWoLpa7PWgqvGogBNxbkPDhhg9fbChedFaFn7ajdc/rqwI7NSeICwtQliy0VG0bHpytwzBhexSwa oCp7RiulyXUcN9tRP7eZ5l3d3//Mw/QmMpoqp5nPv7tIpw0KUUzOQ7LW5QxtUH+TAqKCzB8xuu8oM XAvS9hg/FpOOU15EhNy97pVS2Toay0NgLHWm/en124TF7YH2WibM/wksxCSLNv88bcWuWx9+30BDq gYUv0qAWHDEunoW0y9lJRwaO2KGCqnHPxcwcHtAca5/nCuPHdx+vrHf0ZzKUF8nePR96c7T41W1wK 2OVvayjfxYhdo/z8+nlI1Q==; Date: Mon, 01 Jun 2026 15:33:41 +0300 Message-Id: <86y0gywica.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> In-Reply-To: <878q8ytqx1.fsf@HIDDEN> (message from Sean Whitton on Mon, 01 Jun 2026 12:56:42 +0100) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> <87bjdvx1fr.fsf@HIDDEN> <87y0gz5tx8.fsf@HIDDEN> <878q8ytqx1.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Sean Whitton <spwhitton@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>, > p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org > Date: Mon, 01 Jun 2026 12:56:42 +0100 > > Juri Linkov [31/May 9:13pm +03] wrote: > > Generic treesit modes could be used only for the default location > > of treesitter grammars on emacs-31. > > I see, okay. AFAIK distros have not really caught up with shipping tree > sitter grammars that Emacs can use, yet. Therefore we can expect that > most users would not be able to use the new generic modes at all because > they wouldn't be able to install the grammar in their home directory and > it wouldn't be found in the default location. But then it seems that > the generic modes are not very useful for almost everyone, yet. > > Eli, is the above your conclusion too? They need tinkering, yes. OTOH, they also don't do any harm, IMO. So maybe we should simply decide that what we have there now is enough, and users who want to use these modes in Emacs 31 will need to make sure the file tree-sitter/queries/LANG/highlights.scm exists under the user's init directory (and also install the grammar library). Making this more convenient and maybe also working OOTB should then be deferred to Emacs 32. WDYT?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 1 Jun 2026 11:56:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 01 07:56:52 2026 Received: from localhost ([127.0.0.1]:41432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wU1GF-0004I7-Hi for submit <at> debbugs.gnu.org; Mon, 01 Jun 2026 07:56:51 -0400 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]:54709) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wU1GD-0004Hs-Jn for 81025 <at> debbugs.gnu.org; Mon, 01 Jun 2026 07:56:50 -0400 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 65B7E1400083; Mon, 1 Jun 2026 07:56:44 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 01 Jun 2026 07:56:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=1780315004; x= 1780401404; bh=xqoMUGKAzHUWdt9GskByH3fHMxTXnBQAfqXUWqPBQrk=; b=n uaHTykHBfBVzCjBbxrlStmypUon0SjBtSXXqFoHEvxPTlDia47kAubZaxHTV8kjd bblRfV+968QhXz/p3ZINdK5EoFG+G23UUytN/RZtQpfetBeATn5/4lL0VLiN7kxX mLAbZaT8aXvXWZe7qNG6e2sQ5BtHfoo/8vOYdJ9/SFCxUeqoNhAqWzS6mKy/mFla TuOcK5k4JuAZfUiSfFVsCWs+9KPyh3/kiu7jg3SJdT/EDNVAUpDD8PTR/feTAa7O x9He8kNLVBJzabx6WCxw5K7RbkdYPkszjDS3Im9ZDXTvgTsKPqPjgXBJ0y7Co2sy 6Qgk7wfVzmaz9E/vBGSig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= 1780315004; x=1780401404; bh=xqoMUGKAzHUWdt9GskByH3fHMxTXnBQAfqX UWqPBQrk=; b=Byjm9cIeJc1viWvwL5rKz8fLkNuXpjlKDJfBGs1SjPhtNzPzWYT tXCTsHK8vjhT9AG6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9viV/fOaYF7BzYEgiPaS3ok3OSeunrstgiz7oAV1Bk+qAf8wF44f7sT YrRQPzAvt2QpXgdPOgr8/+wrojKnDLKJvTGJOxiExITJHDMlMuVXPqebJvwVLbYgdomGid OeTn6W8jjzy/JENdnVxShbbylKlAunOFvgjReqKR3X3Hj4iUNtqPiaaUjLaA X-ME-Proxy: <xmx:e3Mdas51td2ZAX2tOilVErKj_2j5px0p-luPqzqMAdtM7Rv-1zqD1A> <xmx:e3MdamWXxfQMV2pM2kShka5GAM9Qea5w9w-Gmar9ivCTR6zZO3nbfw> <xmx:e3Mdar6jL8n0OLW56HJ9M7Z3aO2GjTZY7ZZGPCYpwqyI6rtByqhWaw> <xmx:e3Mdaho7A5SM2GcBZ4whNl9wZ-_0VI229VDOnBgsAcy0-854-FjBsA> <xmx:fHMdandpPx9952uEZyKjIi2WVuCaB3qZlpgKGLXc7IsdPDJZstQjwF2U> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Jun 2026 07:56:43 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 5FDA87E69E8; Mon, 01 Jun 2026 12:56:42 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87y0gz5tx8.fsf@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> <87bjdvx1fr.fsf@HIDDEN> <87y0gz5tx8.fsf@HIDDEN> Date: Mon, 01 Jun 2026 12:56:42 +0100 Message-ID: <878q8ytqx1.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Juri Linkov [31/May 9:13pm +03] wrote: > Generic treesit modes could be used only for the default location > of treesitter grammars on emacs-31. I see, okay. AFAIK distros have not really caught up with shipping tree sitter grammars that Emacs can use, yet. Therefore we can expect that most users would not be able to use the new generic modes at all because they wouldn't be able to install the grammar in their home directory and it wouldn't be found in the default location. But then it seems that the generic modes are not very useful for almost everyone, yet. Eli, is the above your conclusion too? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 31 May 2026 18:53:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 31 14:53:29 2026 Received: from localhost ([127.0.0.1]:33196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wTlHs-00048g-RW for submit <at> debbugs.gnu.org; Sun, 31 May 2026 14:53:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43164) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wTlHp-00048A-Ik for 81025 <at> debbugs.gnu.org; Sun, 31 May 2026 14:53:26 -0400 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 <eliz@HIDDEN>) id 1wTlHi-000424-VE; Sun, 31 May 2026 14:53:18 -0400 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=Eln4MWBVo8b4urLbbAUYGLc1gpipEDMF90LTnlfnA2I=; b=kTH9+oN5tctp e6WMkNxRftL3LNqDsTL4KQYiLKEViv8WeAx72Ur6PFMrGqM2LShh/7t9prF/gfVe7XTS9kigWhYkO nC5VsHuHTGMjC+jqAL7kqxOl3LVkunRCzy5xIwXfmX8VwC7Mx/0BzO1Q6AjQJ61LeUXH/A1LcTv6t fMc09LZ1OwgKRPBQJ8W223pCWkI80oSDIVnzxuPbNoTrk3lIJdipye5+FKE9NUn8/sKbWj+0HKvco 7raDrt6NauzGDYJunlVg3bX9kK3YgKHN137Qn9hYHlnG957wRzyeI6+DeL6kLdHNayZB8mTX1TitU hBWHC6AdRQZweYppXIs9wA==; Date: Sun, 31 May 2026 21:53:13 +0300 Message-Id: <86ik83xvfq.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87qzmr5tue.fsf@HIDDEN> (message from Juri Linkov on Sun, 31 May 2026 21:15:05 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> <86tsrq116y.fsf@HIDDEN> <87qzmr5tue.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: spwhitton@HIDDEN, monnier@HIDDEN, > p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org > Date: Sun, 31 May 2026 21:15:05 +0300 > > >> The problem of installing architecture-dependent grammars > >> will remain until Emacs 32. The problem of installing > >> grammars into a user-defined directory will be solved > >> by a one-line patch in bug#81128. > > > > Can you show such a one-liner? > > diff --git a/lisp/treesit.el b/lisp/treesit.el > index 5253439a9dd..b8067d21946 100644 > --- a/lisp/treesit.el > +++ b/lisp/treesit.el > @@ -5830,6 +5830,7 @@ treesit-ensure-installed > out-dir > treesit-extra-load-path)) > (add-to-list 'treesit-extra-load-path out-dir) > + (add-to-list 'treesit-extra-queries-path out-dir) > t)))) > (treesit-install-language-grammar lang out-dir) > ;; Check that the grammar was installed successfully > I'm probably missing something because I don't understand how can this be correct. treesit-ensure-installed builds and installs the grammar library, not the queries. And if the above relies on the fact that the query files are in the same directory as the produced grammar library, then I'm not sure this is reliable enough, especially for grammar libraries whose build produces several shared libraries.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 31 May 2026 18:21:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 31 14:21:15 2026 Received: from localhost ([127.0.0.1]:32900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wTkmh-0001xs-C0 for submit <at> debbugs.gnu.org; Sun, 31 May 2026 14:21:15 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:57588) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wTkmH-0001rd-56 for 81025 <at> debbugs.gnu.org; Sun, 31 May 2026 14:20:52 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4gT54V1GVRz9tjp; Sun, 31 May 2026 20:20:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1780251642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PiF/gbhFjv/Uw1qmSmETAX9dLxwC/U5vVGUmjQyr1v4=; b=2Kw28XyK83QvKBX8C7pJG/+Gf+uQezrGnVd0ZJ/ybVtm8ZSKOLCBfxbunBdlEL1Dylqgl+ g9xn7OC191F276kKElD4IkS8o07MrLooUSzkZcLJQgWlIbUVqez2Sfwtuv6Zg9POggVSLU B05BBYrXLb4wBcATNSQLQeWr5pqd+YMxWA431BQoh4bqFTVY2e5YdAGZ257Q50WLo1nPeQ G04WQHCRPLeK/w20WDlFUg1DxJqVASui8ykM2bXeOx92ION8fhRRHUUGG7T0rrIMAfwf1r xbULst5/8e0Xu07IfvCJJETHnugl8w2uMPPcy/zOn4dycbPcEpT0HL10QxM2rw== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=juri@HIDDEN From: Juri Linkov <juri@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86v7c611a2.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <86jysn34ra.fsf@HIDDEN> <87jysnfmbq.fsf@HIDDEN> <86h5nr2y0y.fsf@HIDDEN> <87zf1ip8rq.fsf@HIDDEN> <86v7c611a2.fsf@HIDDEN> Date: Sun, 31 May 2026 21:17:20 +0300 Message-ID: <87cxyb5tqh.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4gT54V1GVRz9tjp X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: casouri@HIDDEN, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> >> OTOH, while supporting configurable paths for queries >> >> is not a requirement for Emacs 31, maybe it could be considered >> >> not as a new feature, but as improving usability of the generic modes >> >> for non-standard configurations. >> > >> > That's true, and that's what led me to a conclusion that treesit-x.el >> > is not yet mature enough, because these usability improvements are >> > really quite basic, and without them the feature is too bare. >> >> The basic support for the default directory existed from the initial >> version. Support for non-standard directories is an optional feature. > > If the 'tree-sittter' subdirectory of the user init directory is good > enough for now, then why not postpone this bug until Emacs 32? No problem to postpone until Emacs 32. >> >> > If you think it's mature enough, on what branch do you think >> >> > we should resolve this bug and bugs #81127 and #81128? >> >> >> >> I see that the request for architecture-specific subdirectories >> >> in bug#81127 was filed for 30.2, maybe because >> >> architecture-specific subdirectories were never supported >> >> by treesit, neither in 29 nor in 30. Then maybe this feature >> >> could wait for Emacs 32 since it's not trivial to implement. >> >> >> >> OTOH, bug#81128 is a one-line patch in treesit-ensure-installed >> >> for the new option treesit-extra-queries-path. >> > >> > And what about bug#81025? >> >> I see no harm in adding 'treesit-extra-queries-path' in Emacs 31 >> since it's confined to treesit-x.el only. > > Its default value is nil, so is it really useful enough to be added > now? The default value of 'treesit-extra-load-path' is nil too. >> I have doubts only about 'treesit-data-directory' since it looks >> like a general treesit option. Addition of this option could be >> postponed to Emacs 32 when more files besides the queries will be >> used from 'treesit-data-directory'. > > Why not postpone both of them? Ok, let's postpone both.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 31 May 2026 18:21:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 31 14:21:14 2026
Received: from localhost ([127.0.0.1]:32896 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wTkmg-0001xb-Hj
for submit <at> debbugs.gnu.org; Sun, 31 May 2026 14:21:14 -0400
Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:44326)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wTkmE-0001rI-KX
for 81025 <at> debbugs.gnu.org; Sun, 31 May 2026 14:20:49 -0400
Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
(No client certificate requested)
by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4gT54Q3zppz9t4g;
Sun, 31 May 2026 20:20:38 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001;
t=1780251638;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
in-reply-to:in-reply-to:references:references;
bh=B/9St4/5hF6eI2YpPDPxWy5AXyU5/5IkEGOLiynGkJc=;
b=e/Wq4K/0MEye9vxtpoQ6MaCHB2jFK/PSUFzHHx+p70rvfwzww7JtPccQ+1wXj9AwxU79O7
2IZSHag+ubvnpIYNEPPmrUVTr1UggPLtRTw6Pzz3NkrdFMQ6pX92KFuV+9Q9FoX5kwj/QV
35NWBug5PD/u7x/h6Vx5brcJltOy8DErSechKzfnQVdrr/rtWc1xCxRG1EVCbK9LwniPQU
CHHjKcgP8ga4RR0o5oBka8OG1jsrLOxAYwdeRakK0WFLdO12yM8M7fD+AKaqJytYiERcBu
qeLbNffPfx434iY2sCaMwsvbTZq/ru5I/PUrslBG/9LakgENG1JcN3eRnb7oig==
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
In-Reply-To: <86tsrq116y.fsf@HIDDEN>
Organization: LINKOV.NET
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN>
<865x4o7sha.fsf@HIDDEN>
<ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN>
<861pfc7nj3.fsf@HIDDEN>
<e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN>
<86tss52aui.fsf@HIDDEN>
<66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN>
<86lddg3lt6.fsf@HIDDEN>
<1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN>
<86ecj83fvo.fsf@HIDDEN>
<7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN>
<86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN>
<86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN>
<86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN>
<87ik86y43y.fsf@HIDDEN>
<87qzmup8nb.fsf@HIDDEN> <86tsrq116y.fsf@HIDDEN>
Date: Sun, 31 May 2026 21:15:05 +0300
Message-ID: <87qzmr5tue.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81025
Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN,
spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
>> The problem of installing architecture-dependent grammars
>> will remain until Emacs 32. The problem of installing
>> grammars into a user-defined directory will be solved
>> by a one-line patch in bug#81128.
>
> Can you show such a one-liner?
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 5253439a9dd..b8067d21946 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -5830,6 +5830,7 @@ treesit-ensure-installed
out-dir
treesit-extra-load-path))
(add-to-list 'treesit-extra-load-path out-dir)
+ (add-to-list 'treesit-extra-queries-path out-dir)
t))))
(treesit-install-language-grammar lang out-dir)
;; Check that the grammar was installed successfully
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 31 May 2026 18:21:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 31 14:21:14 2026 Received: from localhost ([127.0.0.1]:32894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wTkmg-0001xY-3y for submit <at> debbugs.gnu.org; Sun, 31 May 2026 14:21:14 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:45286) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wTkmA-0001qv-Dn for 81025 <at> debbugs.gnu.org; Sun, 31 May 2026 14:20:47 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4gT54L6xlHz9tpM; Sun, 31 May 2026 20:20:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1780251635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TOi9M5DyDSQJGLDPEW39xjpkgyWufPbjvejl87XREEA=; b=ABpFINcVD6AJIafI5wVK6yMqFebqKiIvwK4+B2Qi1T67Ixc4ijB9dg0FQ53CCoCpKyhn4/ Kx9mfGOEkDCj6//NOgmq1pYu/Kzy/kHPTb3eVfEpCVpEEW3CW2nQFT9hB5LlVlBSPt6fSI EoeETRa8SxcLzvOexuZu7tlrd3kCPjBQLDau/k+9c5DGkba2z8LOa3c5ZIplkm53fppcCq D0xQK5bF6vULag2vfwPIDP9LnpNO85mgAJRuMzVFo4yMIOg4tu2De+cdpZmoNiBFhIVxQ1 t80qkGqkPu2OihCbZOXAbBOC2argojXETlUw40OZel0NOVb1cW+TvjFTlaqwdQ== From: Juri Linkov <juri@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87bjdvx1fr.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> <87bjdvx1fr.fsf@HIDDEN> Date: Sun, 31 May 2026 21:13:23 +0300 Message-ID: <87y0gz5tx8.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >>>> Installation of grammar libraries has more problems >>>> because grammar libraries are architecture-dependent >>>> and require a subdirectory that is not supported >>>> by the existing option 'treesit-extra-load-path'. >>>> However, this deficiency did not prompt the idea >>>> to remove 'treesit-extra-load-path'. >>>> >>>> OTOH, queries are NOT architecture-dependent, >>>> so there is no problem with adding >>>> 'treesit-extra-queries-path'. The patch proposed >>>> by Peter solves all problems related to installation >>>> of queries. >>> >>> But the problem of installing grammars remains? >> >> The problem of installing architecture-dependent grammars >> will remain until Emacs 32. The problem of installing >> grammars into a user-defined directory will be solved >> by a one-line patch in bug#81128. > > My understanding is flawed, then. I thought all treesitter grammars are > arch-dependent and that treesit-generic-mode isn't useful without > treesitter grammars. Indeed, all treesitter grammars are arch-dependent for all treesit modes, not only for generic treesit modes. > Could someone perhaps state what this mode can be used to do in its > current state on emacs-31, without applying the resolutions to these > bugs? Generic treesit modes could be used only for the default location of treesitter grammars on emacs-31.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 31 May 2026 11:29:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 31 07:29:12 2026 Received: from localhost ([127.0.0.1]:56461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wTeLt-0003XW-V0 for submit <at> debbugs.gnu.org; Sun, 31 May 2026 07:29:12 -0400 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]:40729) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wTeLp-0003WO-2I for 81025 <at> debbugs.gnu.org; Sun, 31 May 2026 07:29:07 -0400 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 389D41D00055; Sun, 31 May 2026 07:28:59 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Sun, 31 May 2026 07:28:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=1780226939; x= 1780313339; bh=X8+nBoM0Xio6u0oJjagOYg3aVaWRmFBr+4gc2W2uRMc=; b=e D6pC0q6Z85U4TOG+Tbuve1N35VKM7SBPTVUz15fITKHuB77ZV7Nhi0Yg11YDuv99 zxiLKVQMrUi747RDzkcjYjHghz52I8Ij380btCxUVaUf5BOgjqGZ+6YpwnvSLzSA GL9D92LcfG1rN3H72wPwkFRL3vp1u8IS5H/729X6gZRTBw4sAA9F1ih0ar4UXLi2 R8Q9gwqbU+VFkUAWkDekWAP+HJOz4iLqquv2SxlRMhfg8PP5mPSPrpUo75nrMAJP QkKcYB0xtELfs03Mq3X1zLjJOZY+wwy8oZ6ErBiz7qrYogkBiaDk2wNF69JED5Ue ze7POW4PziNlepwQepvhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; t= 1780226939; x=1780313339; bh=X8+nBoM0Xio6u0oJjagOYg3aVaWRmFBr+4g c2W2uRMc=; b=knS/bLq8FvDHCJLrQiXq7xTr/GuhIJ4ckHPm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EFhipOMDoi11ffeysbAjvNhWXrwEDb a83nqFjMoY47Sx7fHoAPvwfEAgZ1SSAVFKzX8UhvowXW++UpWyAfQ6Vz+WL2BupS2FIvkf MPzpkGURXNhY8XZNQaVjJ2qLD1/obVsgXmi0ZlaxpUoaeXXOzDjsnonxfyt0+pvQ6MzQtk eLgQy6f88cZ0uqgqHLRiF2irg/LLeMBN1x6FGbceT4Wer3QF9pIeROGsZ/Ng X-ME-Proxy: <xmx:ehscatY0U9E5zFrPqGt1wOtAtW8D7bsZfAkr4eWexm99G7h7wzGtAw> <xmx:ehscas0d8XPd3WNCFNB_byb3UJPd7kwkL0S95x8Lsm2H_JlN6sTvBA> <xmx:ehscagZOWSGxUKjJyP2-vpRJkYfPGEc_NZNpOl09I-vDlRqIybg75Q> <xmx:ehscasJrHfdfIUdkmRqBzu6LTv6H7SDUToj9Htgx3r9SJYKGkppfiA> <xmx:exscar-Baesx91tFsJAHkmHpBmnjIIjYn_zhtcWeK7QMkbJvJgkXd-DT> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 May 2026 07:28:58 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 4361A7E11AE; Sun, 31 May 2026 12:28:57 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87qzmup8nb.fsf@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> Date: Sun, 31 May 2026 12:28:56 +0100 Message-ID: <87bjdvx1fr.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Juri Linkov [29/May 6:15pm +03] wrote: >> Juri Linkov [28/May 6:32pm +03] wrote: >>> Installation of grammar libraries has more problems >>> because grammar libraries are architecture-dependent >>> and require a subdirectory that is not supported >>> by the existing option 'treesit-extra-load-path'. >>> However, this deficiency did not prompt the idea >>> to remove 'treesit-extra-load-path'. >>> >>> OTOH, queries are NOT architecture-dependent, >>> so there is no problem with adding >>> 'treesit-extra-queries-path'. The patch proposed >>> by Peter solves all problems related to installation >>> of queries. >> >> But the problem of installing grammars remains? > > The problem of installing architecture-dependent grammars > will remain until Emacs 32. The problem of installing > grammars into a user-defined directory will be solved > by a one-line patch in bug#81128. My understanding is flawed, then. I thought all treesitter grammars are arch-dependent and that treesit-generic-mode isn't useful without treesitter grammars. Could someone perhaps state what this mode can be used to do in its current state on emacs-31, without applying the resolutions to these bugs? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 29 May 2026 19:10:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 29 15:10:56 2026 Received: from localhost ([127.0.0.1]:58654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wT2bg-0001TS-Df for submit <at> debbugs.gnu.org; Fri, 29 May 2026 15:10:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35492) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wT2bd-0001Sf-P1 for 81025 <at> debbugs.gnu.org; Fri, 29 May 2026 15:10:54 -0400 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 <eliz@HIDDEN>) id 1wT2bY-0002Ci-Dg; Fri, 29 May 2026 15:10:48 -0400 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=sBBlTPp6takdR19K9VFjx0q+PEgrAhVKRRx7KLCJ1Ds=; b=AaEzTFEqqtfI 4r1htwwBMfjGdDmhCWbcsu5wDK8zihzhUmTe5lvb73dqlUPIqY+uZYDqccmifwPtlPKTW0XPa3x3Y rZ16BHdjxQ0cqdevBAMemgOrYmlCDLkyFC+KxIbbHQdC5xyxSggtDMj4Ue7798LxyXb5R860N1dLI kIf3gcUN3OrrdIUuTWPU910a14ialBS/n0H0ndQCmPnqR/bK9LFq3oF/2gLgWBWgMWSKVCDqX3iaq /j7vB7unA5jPpRWZIqDndt5Jhbqje5siiA+esIZAdUzUg19hGU1c0r/he/zHyUJxJggQnpWWYKDB3 TkaPE3UHCPbX3lg/Jys7lw==; Date: Fri, 29 May 2026 22:10:45 +0300 Message-Id: <86tsrq116y.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87qzmup8nb.fsf@HIDDEN> (message from Juri Linkov on Fri, 29 May 2026 18:15:52 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> <87qzmup8nb.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier > <monnier@HIDDEN>, p.d.oliver@HIDDEN, > 81025 <at> debbugs.gnu.org > Date: Fri, 29 May 2026 18:15:52 +0300 > > > Juri Linkov [28/May 6:32pm +03] wrote: > >> Installation of grammar libraries has more problems > >> because grammar libraries are architecture-dependent > >> and require a subdirectory that is not supported > >> by the existing option 'treesit-extra-load-path'. > >> However, this deficiency did not prompt the idea > >> to remove 'treesit-extra-load-path'. > >> > >> OTOH, queries are NOT architecture-dependent, > >> so there is no problem with adding > >> 'treesit-extra-queries-path'. The patch proposed > >> by Peter solves all problems related to installation > >> of queries. > > > > But the problem of installing grammars remains? > > The problem of installing architecture-dependent grammars > will remain until Emacs 32. The problem of installing > grammars into a user-defined directory will be solved > by a one-line patch in bug#81128. Can you show such a one-liner?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 29 May 2026 19:09:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 29 15:09:07 2026 Received: from localhost ([127.0.0.1]:58613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wT2Zu-0001DO-G0 for submit <at> debbugs.gnu.org; Fri, 29 May 2026 15:09:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48760) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wT2Zr-0001CN-Cy for 81025 <at> debbugs.gnu.org; Fri, 29 May 2026 15:09:04 -0400 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 <eliz@HIDDEN>) id 1wT2Zl-0001ae-8v; Fri, 29 May 2026 15:08:57 -0400 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=Ng7yXrQG8fQ+okMnZ4L6aFHXTHzzeFdEH2DBSan85wc=; b=pC8hGHdp+5uW EQb6f7IrUHoQmO9Bf9q1LSZphEqzD0EX/9jwX14dD8cCoomb6VP7g0uH1TZvTD+AXtBdpKJttDyL2 yXeS8La4dBIbn4F4OC8FQN5IRaKTzqDDngAMdYgFF2C8Dn5eIuiBSDwhGJT8NU7WaD0u1tGnc6EzU 7Fl6wE6DTZEVwg12n89SJm/jjPAYwodjQkIAtFJS4YXygDFMdk2/OY2RztCqcATPuSr6i/wHp89vH +oLit4aoAGq0idcIxTFSbv7tmU3uKajPBBj6ttf6NYYDxuysbCPRhmEYAr3ystZFgNXKFLbUQbD+G eQgwbaeZJDIoJ6fsGfVYMw==; Date: Fri, 29 May 2026 22:08:53 +0300 Message-Id: <86v7c611a2.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87zf1ip8rq.fsf@HIDDEN> (message from Juri Linkov on Fri, 29 May 2026 18:10:13 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <86jysn34ra.fsf@HIDDEN> <87jysnfmbq.fsf@HIDDEN> <86h5nr2y0y.fsf@HIDDEN> <87zf1ip8rq.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: casouri@HIDDEN, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: casouri@HIDDEN, spwhitton@HIDDEN, monnier@HIDDEN, > p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org > Date: Fri, 29 May 2026 18:10:13 +0300 > > >> OTOH, while supporting configurable paths for queries > >> is not a requirement for Emacs 31, maybe it could be considered > >> not as a new feature, but as improving usability of the generic modes > >> for non-standard configurations. > > > > That's true, and that's what led me to a conclusion that treesit-x.el > > is not yet mature enough, because these usability improvements are > > really quite basic, and without them the feature is too bare. > > The basic support for the default directory existed from the initial > version. Support for non-standard directories is an optional feature. If the 'tree-sittter' subdirectory of the user init directory is good enough for now, then why not postpone this bug until Emacs 32? > >> Actually, these are not bug reports, but requests for new features > >> that support more configurable paths for several architectures > >> and queries. Without them, the ts-modes would be less usable > >> in some configurations. > > > > Exactly. Normally, such usability gaps are discovered much earlier in > > development, so we have enough time to fill those gaps before the > > feature freeze. Not so in these cases. > > 'treesit-extra-load-path' existed with usability gaps without > support for architecture-specific subdirectories for 3 releases > between Emacs 29 and 31, so no problem for this case too. You are looking at this from an incorrect angle, I think. What worries me is that missing user options are bing discovered only now. > >> > If you think it's mature enough, on what branch do you think > >> > we should resolve this bug and bugs #81127 and #81128? > >> > >> I see that the request for architecture-specific subdirectories > >> in bug#81127 was filed for 30.2, maybe because > >> architecture-specific subdirectories were never supported > >> by treesit, neither in 29 nor in 30. Then maybe this feature > >> could wait for Emacs 32 since it's not trivial to implement. > >> > >> OTOH, bug#81128 is a one-line patch in treesit-ensure-installed > >> for the new option treesit-extra-queries-path. > > > > And what about bug#81025? > > I see no harm in adding 'treesit-extra-queries-path' in Emacs 31 > since it's confined to treesit-x.el only. Its default value is nil, so is it really useful enough to be added now? > I have doubts only about 'treesit-data-directory' since it looks > like a general treesit option. Addition of this option could be > postponed to Emacs 32 when more files besides the queries will be > used from 'treesit-data-directory'. Why not postpone both of them?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 29 May 2026 15:18:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 29 11:18:44 2026 Received: from localhost ([127.0.0.1]:56625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSyyx-0001RX-VV for submit <at> debbugs.gnu.org; Fri, 29 May 2026 11:18:44 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:37416) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wSyyo-0001QJ-Du for 81025 <at> debbugs.gnu.org; Fri, 29 May 2026 11:18:34 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4gRn725rTFz9v42; Fri, 29 May 2026 17:18:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1780067902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/M6BS8Zt37IvuSrOZS3euNZh+n783Y/+kFmNe4telnw=; b=IFuyXlDS9CIT/lBvs6uih63VTANcouSqr+hmizcWVixvJjMGoa+9zQi0OaXaNcmbLJqhob Cp9NudFaAAz06giA79Vaapc9VyWYps+zq0Z9ZktenH3V0IPUXnuty3vy2wJzTHlWy9rOmu HJy1dMZO3yx5aoqi7ITuKiz2V6YDpFXVLusJpGkRIwBgQKp03SBouY3yAYCxYaVJXaLtv0 14AgHFvUxVfzAFmuRdX2gtaJJ9RnFto9+JMR7RCNCmp6gEJF8I7OIHaCbF2AAEP3jTvLhY hpldBOGyglOedm+rQMpfojY7fGPad6hY2FZ/VYhcDaw5mC6Oy51iMTmL9cpWYw== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN From: Juri Linkov <juri@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87ik86y43y.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <87ik86y43y.fsf@HIDDEN> Date: Fri, 29 May 2026 18:15:52 +0300 Message-ID: <87qzmup8nb.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4gRn725rTFz9v42 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Juri Linkov [28/May 6:32pm +03] wrote: >> Installation of grammar libraries has more problems >> because grammar libraries are architecture-dependent >> and require a subdirectory that is not supported >> by the existing option 'treesit-extra-load-path'. >> However, this deficiency did not prompt the idea >> to remove 'treesit-extra-load-path'. >> >> OTOH, queries are NOT architecture-dependent, >> so there is no problem with adding >> 'treesit-extra-queries-path'. The patch proposed >> by Peter solves all problems related to installation >> of queries. > > But the problem of installing grammars remains? The problem of installing architecture-dependent grammars will remain until Emacs 32. The problem of installing grammars into a user-defined directory will be solved by a one-line patch in bug#81128.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 29 May 2026 15:18:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 29 11:18:31 2026 Received: from localhost ([127.0.0.1]:56619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSyyl-0001Qo-Dz for submit <at> debbugs.gnu.org; Fri, 29 May 2026 11:18:31 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:36676) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wSyyf-0001Pt-Ns for 81025 <at> debbugs.gnu.org; Fri, 29 May 2026 11:18:26 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4gRn6y0PN7z9v0n; Fri, 29 May 2026 17:18:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1780067898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dnmwIFq4czj023GY9BANU3rx6bYXpmPhBt2PjnD0g84=; b=U/8WwWMAnYhwGrFQgMvdJt2MjpKj+IwqcHyFMQ8ugfGOXccrrazgwyt1sU69wPvxBo6Ix/ ARsxkfP9FbUtVSEK7SZkw/9TeZSU0Iw35mEO591BLyPQkIRsYzbZyD0FTRn3QSAJen9sEZ fFFn5OdQt09jcJ6eT95jk9j4NFOoXfDNVW6qAgPBvICaQCN2mknykOV1S9p0HJtfzxxEy6 utpmC1pBohywXqCiY97HEL29QF36KbjgD9Z2jsiToN4tiIgsH7b/IykbxzKUjGKSkXxS9I stjpmDIuu37NWiMxZgJwEyoSHK6BS1/dcUXHWh1khefT9cTS7IajBRqS45XOwA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@HIDDEN From: Juri Linkov <juri@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86h5nr2y0y.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <86jysn34ra.fsf@HIDDEN> <87jysnfmbq.fsf@HIDDEN> <86h5nr2y0y.fsf@HIDDEN> Date: Fri, 29 May 2026 18:10:13 +0300 Message-ID: <87zf1ip8rq.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4gRn6y0PN7z9v0n X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: casouri@HIDDEN, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> OTOH, while supporting configurable paths for queries >> is not a requirement for Emacs 31, maybe it could be considered >> not as a new feature, but as improving usability of the generic modes >> for non-standard configurations. > > That's true, and that's what led me to a conclusion that treesit-x.el > is not yet mature enough, because these usability improvements are > really quite basic, and without them the feature is too bare. The basic support for the default directory existed from the initial version. Support for non-standard directories is an optional feature. >> Actually, these are not bug reports, but requests for new features >> that support more configurable paths for several architectures >> and queries. Without them, the ts-modes would be less usable >> in some configurations. > > Exactly. Normally, such usability gaps are discovered much earlier in > development, so we have enough time to fill those gaps before the > feature freeze. Not so in these cases. 'treesit-extra-load-path' existed with usability gaps without support for architecture-specific subdirectories for 3 releases between Emacs 29 and 31, so no problem for this case too. >> > If you think it's mature enough, on what branch do you think >> > we should resolve this bug and bugs #81127 and #81128? >> >> I see that the request for architecture-specific subdirectories >> in bug#81127 was filed for 30.2, maybe because >> architecture-specific subdirectories were never supported >> by treesit, neither in 29 nor in 30. Then maybe this feature >> could wait for Emacs 32 since it's not trivial to implement. >> >> OTOH, bug#81128 is a one-line patch in treesit-ensure-installed >> for the new option treesit-extra-queries-path. > > And what about bug#81025? I see no harm in adding 'treesit-extra-queries-path' in Emacs 31 since it's confined to treesit-x.el only. I have doubts only about 'treesit-data-directory' since it looks like a general treesit option. Addition of this option could be postponed to Emacs 32 when more files besides the queries will be used from 'treesit-data-directory'.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 29 May 2026 09:09:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 29 05:09:17 2026 Received: from localhost ([127.0.0.1]:51738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wStDQ-0004a5-NC for submit <at> debbugs.gnu.org; Fri, 29 May 2026 05:09:17 -0400 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]:59363) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wStDM-0004ZJ-Ju for 81025 <at> debbugs.gnu.org; Fri, 29 May 2026 05:09:14 -0400 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id F10F7EC00B3; Fri, 29 May 2026 05:09:06 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 29 May 2026 05:09:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=1780045746; x= 1780132146; bh=MkmR9o6vFlrqnSiuS1NMPUbBmFH22O/rbnCIn6EqmQc=; b=V 8tFXptjumNhPUSYqKJmtpBhtMtVJWdzt8YR2yfe4XWJDnQYgvqkY9ev4lD0BAYn0 3ybgBDbr/7mSd9rXYO3AnPP4YKF4ng9Pw14vVe9O2guCzclH7PPqxA5jlzmGXg4J xH7mNBqt7B9TJwwt2b6pC+SmR1wGB8vAgYEPRcJDfRYRyIk935GJyh/N8DKUOJEi lzAPaLrddT/QjFjnKxZj+FFDGfOhmRe/7IU46ieZj3TR7deeEA2REWyWU5yZPJUl +/kKwqpRvCB1KHsGdPIfH/2wu3fH9+5ECEJ1vBDC/n0eII7RsQGd5H4evPfvqkun hVserMBYoLsWlo41mgZUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; t= 1780045746; x=1780132146; bh=MkmR9o6vFlrqnSiuS1NMPUbBmFH22O/rbnC In6EqmQc=; b=BxXq8k0clnK6fiiXQjoczbJTkFc5ZU2YnRJfHRficA/ng64m4jX zAhz/sfuGF8NwETDS9zDtAxxLyZEGCrtadgMMP8weO8PdEZuj/ta30Kbb8kbnf2k 7dNNkKlCNUTmAbx/dhSKrkUrQR2PX7umRCl9i9fqfLYZ9XtcSMO4AGxiMfLllw6q lvXRwJoes5xSphnIibEJwLLFk0kGbE0u+gObYU9/b61johRpTGAWIhJ3orE8NOfV RcBED3HbVcEql1hbmjlkNyzGBn9k2SCr39PWJQKgUma89YaQKmhFvr3cADwXZbP4 MgEh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chMxW3vTRhoZQWQ> <xmx:slcZapudsoSvFN4OriBDxUP-gXV2kIlWLPn-qsOwINPHnwOPsiaslw> <xmx:slcZarzMd5LEyuFX2QztppsPlO9vZXPtvKzaPLTn1ZtVJwzDG_ymbg> <xmx:slcZakDjuCq045V1Tou0lcR_Uc9C8nRFVffcihNAZo9fpvoQDrpjZg> <xmx:slcZavWSWCkV6yEZVUvVtAJdWSy6eTBKgFcC4uW9WG7Cyz5PGJrTlhqX> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 May 2026 05:09:06 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id C96117E97A4; Fri, 29 May 2026 10:09:05 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Juri Linkov <juri@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87h5nrk4xx.fsf@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> Date: Fri, 29 May 2026 10:09:05 +0100 Message-ID: <87ik86y43y.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Juri Linkov [28/May 6:32pm +03] wrote: > Installation of grammar libraries has more problems > because grammar libraries are architecture-dependent > and require a subdirectory that is not supported > by the existing option 'treesit-extra-load-path'. > However, this deficiency did not prompt the idea > to remove 'treesit-extra-load-path'. > > OTOH, queries are NOT architecture-dependent, > so there is no problem with adding > 'treesit-extra-queries-path'. The patch proposed > by Peter solves all problems related to installation > of queries. But the problem of installing grammars remains? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 28 May 2026 18:24:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 28 14:24:10 2026 Received: from localhost ([127.0.0.1]:39790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSfOs-0002ys-0w for submit <at> debbugs.gnu.org; Thu, 28 May 2026 14:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34816) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wSfOp-0002yG-3d for 81025 <at> debbugs.gnu.org; Thu, 28 May 2026 14:24:08 -0400 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 <eliz@HIDDEN>) id 1wSfOh-0004tl-L3; Thu, 28 May 2026 14:24:01 -0400 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=ANpeNkb59WTOPRvfKfL4NMT7gbF6oqn8Aoh8Z+hjXVw=; b=o2mO/hdYZpCr jeqY1mkYUaSJaNVFCl/HH+Qjg/2AuTheb5pUCCkzApQNl+SvP/kJsc4tBYl96Qm0UKGpuAPThiGpo /nw0QGXpIfI9Nmrm+s07V5V8T+BNk30piFykpPiknUIw6tG7cy4MMB3iPaGUzR2Dy5vsJ59eB7n7H rK/RjKB8JNwb3fcuDuC0XWiPT6fueX2SAmeb/3mXTr6BL3rF8Jk/icfi+kFw5IInHdu1+6nsFmRNc 3OhJ4SWwp4CuNcAKQOMHF1fU/AFhSE66CFLGnM0MKMFscczaMJnRT3iJ39sS0sOYIdNPoV8BpfV3q KQfjBq8XucSgLPVlVuVuAw==; Date: Thu, 28 May 2026 21:23:57 +0300 Message-Id: <86h5nr2y0y.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87jysnfmbq.fsf@HIDDEN> (message from Juri Linkov on Thu, 28 May 2026 20:58:17 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <86jysn34ra.fsf@HIDDEN> <87jysnfmbq.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: casouri@HIDDEN, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: Yuan Fu <casouri@HIDDEN>, spwhitton@HIDDEN, > monnier@HIDDEN, p.d.oliver@HIDDEN, > 81025 <at> debbugs.gnu.org > Date: Thu, 28 May 2026 20:58:17 +0300 > > OTOH, while supporting configurable paths for queries > is not a requirement for Emacs 31, maybe it could be considered > not as a new feature, but as improving usability of the generic modes > for non-standard configurations. That's true, and that's what led me to a conclusion that treesit-x.el is not yet mature enough, because these usability improvements are really quite basic, and without them the feature is too bare. > > It solves all the _known_ problems, perhaps (for the price of adding 2 > > new user options, something we try not to do after feature freeze). > > But my fear, which seems to be confirmed by the bug reports submitted > > for this feature just during the last 2 weeks, is that there are more > > problems which we will discover shortly. Worse, they could be > > discovered after Emacs 31.1 is released. > > Actually, these are not bug reports, but requests for new features > that support more configurable paths for several architectures > and queries. Without them, the ts-modes would be less usable > in some configurations. Exactly. Normally, such usability gaps are discovered much earlier in development, so we have enough time to fill those gaps before the feature freeze. Not so in these cases. > > If you think it's mature enough, on what branch do you think > > we should resolve this bug and bugs #81127 and #81128? > > I see that the request for architecture-specific subdirectories > in bug#81127 was filed for 30.2, maybe because > architecture-specific subdirectories were never supported > by treesit, neither in 29 nor in 30. Then maybe this feature > could wait for Emacs 32 since it's not trivial to implement. > > OTOH, bug#81128 is a one-line patch in treesit-ensure-installed > for the new option treesit-extra-queries-path. And what about bug#81025?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 28 May 2026 18:02:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 28 14:02:52 2026 Received: from localhost ([127.0.0.1]:39540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSf4D-000179-NF for submit <at> debbugs.gnu.org; Thu, 28 May 2026 14:02:52 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:46644) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wSf4A-000161-3m for 81025 <at> debbugs.gnu.org; Thu, 28 May 2026 14:02:47 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4gRDq21fqrz9v7f; Thu, 28 May 2026 20:02:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1779991358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3schtbCjhdD+EIJOoeN8h7UZMEagycR0O966JX1C/XQ=; b=Wv4tUXukyahnS17sy27CjjUl6ioL61vqNzojrX7Sa3SVli0gQaeyeVD+EUB1Ts2SqX486d i7dtnxu5keBfiK+q2i3ucVI7corO+KlLyAGlJ94wCMXhXpKShU8aaRYyd8P238OvHipymr gqLo1eAJJhDrwWrx+2z32cshnZI/MPM5mBX6F/FipeUpLIPfBppm1SdbKJ29NLHqDXxWAC bgcjRx1zgpsslqFQwyGB13m6aGRH5zpkgIVqgHFaVEoduscf79Q0Mv7h99T0UWbY4qvWos 4Ii1ur68rWYsPF8pDTnpLD7KyfQADlWHvWmiqD8avSS7AIcbx6qBnmi6v67EWg== From: Juri Linkov <juri@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86jysn34ra.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> <86jysn34ra.fsf@HIDDEN> Date: Thu, 28 May 2026 20:58:17 +0300 Message-ID: <87jysnfmbq.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Yuan Fu <casouri@HIDDEN>, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > The request to support installation of grammar libraries for several > architectures was submitted just now, and it will not be implemented > before Emacs 32, because it's too late for adding such features to > Emacs 31. Understandable, supporting several architectures looks like a new feature. OTOH, while supporting configurable paths for queries is not a requirement for Emacs 31, maybe it could be considered not as a new feature, but as improving usability of the generic modes for non-standard configurations. > It solves all the _known_ problems, perhaps (for the price of adding 2 > new user options, something we try not to do after feature freeze). > But my fear, which seems to be confirmed by the bug reports submitted > for this feature just during the last 2 weeks, is that there are more > problems which we will discover shortly. Worse, they could be > discovered after Emacs 31.1 is released. Actually, these are not bug reports, but requests for new features that support more configurable paths for several architectures and queries. Without them, the ts-modes would be less usable in some configurations. > Based on these recent bug reports, what is your opinion on the > maturity of this feature? The file treesit-x.el is mature enough for what it was intended to do in Emacs 31, namely supporting initially just a very small set of modes defined in treesit-x.el. There are plans to improve it further in Emacs 32 by adding more generic modes. This might require using 'tree-sitter-query' to parse queries. The only limitation is that some tree-sitter directives are not supported by src/treesit.c. This should be discussed later with Yuan to find a way to support all directives and predicates in treesit queries. > Do you consider it mature enough for us to > leave it on the emacs-31 release branch? It's mature for the emacs-31 release branch in the sense that there are no problems with existing generic modes defined in treesit-x.el. More modes could be added in Emacs 32. > If you think it's mature enough, on what branch do you think > we should resolve this bug and bugs #81127 and #81128? I see that the request for architecture-specific subdirectories in bug#81127 was filed for 30.2, maybe because architecture-specific subdirectories were never supported by treesit, neither in 29 nor in 30. Then maybe this feature could wait for Emacs 32 since it's not trivial to implement. OTOH, bug#81128 is a one-line patch in treesit-ensure-installed for the new option treesit-extra-queries-path.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 28 May 2026 15:58:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 28 11:58:47 2026 Received: from localhost ([127.0.0.1]:37768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSd89-0006iX-Mc for submit <at> debbugs.gnu.org; Thu, 28 May 2026 11:58:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51592) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wSd86-0006h6-13 for 81025 <at> debbugs.gnu.org; Thu, 28 May 2026 11:58:43 -0400 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 <eliz@HIDDEN>) id 1wSd7z-0001O1-Sg; Thu, 28 May 2026 11:58:35 -0400 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=V/zswUvOsBBEoBRMU/JdhdR4ZBSZnh+6rVUK3YwLiNE=; b=NJOD5gzrLni3 yX9lSuLYhjKXKH8BEP+a1k9wCidTg0rpZR/4sdPLQGYVpjBH7/v5R9SEaHEAHPlPolmQXbp2taQxP EqD/72le44TVkOHo4F181KU5WWg9+Irvi8rpz2bMAJAD4ZZqIJY/GUoftgHXANWtonPICCM1RZZj5 C0NF8i+EsNAnRPA7XljgyQ3K4rx+btZH1pVeGmz19pOt5ug9GuBvWQXQzfn3k23YIk27B3fMGtvqG 11EqW425IgHsel14+BeBhE32agZY/mKbOUXRzubWDddhm1twYEnHwpK/+Z0yOEcpIpxkdz0SQGCRO Mm9ExQJVpSxpYfCNsUACbw==; Date: Thu, 28 May 2026 18:58:33 +0300 Message-Id: <86jysn34ra.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87h5nrk4xx.fsf@HIDDEN> (message from Juri Linkov on Thu, 28 May 2026 18:32:34 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> <87h5nrk4xx.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, monnier@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: Sean Whitton <spwhitton@HIDDEN>, Stefan Monnier > <monnier@HIDDEN>, p.d.oliver@HIDDEN, > 81025 <at> debbugs.gnu.org > Date: Thu, 28 May 2026 18:32:34 +0300 > > >> > In addition to this bug (bug#81025), see also bug#81127, and > >> > bug#81128. Each one of them raises non-trivial problems with > >> > solutions that either require adding new features (for example, the > >> > current bug adds two new user options) or even infrastructure that > >> > currently doesn't exist (such as adding an architecture-dependent > >> > subdirectory under user's home and placing tree-sitter grammars > >> > in subdirectories according to the architecture). And I'm not at all > >> > sure this is all we'll need to change or add, because the issue of > >> > tree-sitter queries is new in Emacs, and I don't think we know enough > >> > about it, as we seem to discover new aspects every other day. > >> > >> Having now read all three bugs, I agree. > >> > >> This feels like something of an experiment right now where (i) the > >> end-to-end user experience in terms of installing grammars; and also > >> (ii) exactly what the generic modes are trying to achieve, are both > >> unclear. > > > > I think I understand where (ii) aims to go, but it turns out the > > implementation has several "holes" if one considers how this will be > > used in practice. In particular, the fact that the *.scm queries from > > the grammar library's distribution are needed raises several issues > > regarding where and how to find them, and whether they are at all > > distributed together with the grammar libraries. Other editors bundle > > these files, AFAIU, but I doubt this is a good idea for Emacs > > (assuming it is at all practical, given the legal and technical > > aspects). > > > > So: what do we decide about this? Juri hasn't spoken on this, and I > > would very much like to hear his take on this. Maybe also Stefan > > could chime in and share some insights and advice. > > Installation of grammar libraries has more problems > because grammar libraries are architecture-dependent > and require a subdirectory that is not supported > by the existing option 'treesit-extra-load-path'. > However, this deficiency did not prompt the idea > to remove 'treesit-extra-load-path'. We didn't receive bug reports about treesit-extra-load-path after feature-freeze of Emacs 29, which was the release where we added Tree Sitter support to Emacs. The request to support installation of grammar libraries for several architectures was submitted just now, and it will not be implemented before Emacs 32, because it's too late for adding such features to Emacs 31. So I don't quite see the analogy here. > OTOH, queries are NOT architecture-dependent, > so there is no problem with adding > 'treesit-extra-queries-path'. The patch proposed > by Peter solves all problems related to installation > of queries. It solves all the _known_ problems, perhaps (for the price of adding 2 new user options, something we try not to do after feature freeze). But my fear, which seems to be confirmed by the bug reports submitted for this feature just during the last 2 weeks, is that there are more problems which we will discover shortly. Worse, they could be discovered after Emacs 31.1 is released. Based on these recent bug reports, what is your opinion on the maturity of this feature? Do you consider it mature enough for us to leave it on the emacs-31 release branch? If you think it's mature enough, on what branch do you think we should resolve this bug and bugs #81127 and #81128? Thanks.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 28 May 2026 15:36:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 28 11:36:28 2026 Received: from localhost ([127.0.0.1]:37480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wScma-0004cL-2d for submit <at> debbugs.gnu.org; Thu, 28 May 2026 11:36:28 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:33648) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wScmX-0004bk-7i for 81025 <at> debbugs.gnu.org; Thu, 28 May 2026 11:36:25 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4gR9Z95LMHz9vHV; Thu, 28 May 2026 17:36:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1779982577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=q+AfMFOdQQSZBpSkph6PN7WOjGDictMLFEMmJU5RJLQ=; b=u5d8avVu3CveOelxNX01qIoEqyS70XQ4uDv91Y3COeDcU//plftwpLP6LxJ7NDo/zCRREt oEn6YiyTeiSpeTR0XG15jH6g0xo++GofekVg7FwdnBzu2NeN2cbL7TovrgJZfAzOBlWGG+ O4PVTEzjTG4PHBQAPUEJUHMKomSVjjFS2av9Ldo5mMh2S2UBawlg+qlo/j/7pDAMo3kcYI jyXZ6mz11lq1c+ypFlI5xW3CpQWzITRTvxTcCQegI93fSyShxoKV+r360dnahtAp/5EkuZ 7nBn6no4I7DTMVs1hX57c03TtaHAnq+FI/Ehq/Xs0f9wIdlh/x0gPbW4j/riuQ== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=juri@HIDDEN From: Juri Linkov <juri@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86tsrr3fuq.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> <86tsrr3fuq.fsf@HIDDEN> Date: Thu, 28 May 2026 18:32:34 +0300 Message-ID: <87h5nrk4xx.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4gR9Z95LMHz9vHV X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>, Sean Whitton <spwhitton@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> > In addition to this bug (bug#81025), see also bug#81127, and >> > bug#81128. Each one of them raises non-trivial problems with >> > solutions that either require adding new features (for example, the >> > current bug adds two new user options) or even infrastructure that >> > currently doesn't exist (such as adding an architecture-dependent >> > subdirectory under user's home and placing tree-sitter grammars >> > in subdirectories according to the architecture). And I'm not at all >> > sure this is all we'll need to change or add, because the issue of >> > tree-sitter queries is new in Emacs, and I don't think we know enough >> > about it, as we seem to discover new aspects every other day. >> >> Having now read all three bugs, I agree. >> >> This feels like something of an experiment right now where (i) the >> end-to-end user experience in terms of installing grammars; and also >> (ii) exactly what the generic modes are trying to achieve, are both >> unclear. > > I think I understand where (ii) aims to go, but it turns out the > implementation has several "holes" if one considers how this will be > used in practice. In particular, the fact that the *.scm queries from > the grammar library's distribution are needed raises several issues > regarding where and how to find them, and whether they are at all > distributed together with the grammar libraries. Other editors bundle > these files, AFAIU, but I doubt this is a good idea for Emacs > (assuming it is at all practical, given the legal and technical > aspects). > > So: what do we decide about this? Juri hasn't spoken on this, and I > would very much like to hear his take on this. Maybe also Stefan > could chime in and share some insights and advice. Installation of grammar libraries has more problems because grammar libraries are architecture-dependent and require a subdirectory that is not supported by the existing option 'treesit-extra-load-path'. However, this deficiency did not prompt the idea to remove 'treesit-extra-load-path'. OTOH, queries are NOT architecture-dependent, so there is no problem with adding 'treesit-extra-queries-path'. The patch proposed by Peter solves all problems related to installation of queries.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 28 May 2026 11:59:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 28 07:59:07 2026 Received: from localhost ([127.0.0.1]:34102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSZOE-0006sr-Gl for submit <at> debbugs.gnu.org; Thu, 28 May 2026 07:59:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50810) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wSZOA-0006rw-6J for 81025 <at> debbugs.gnu.org; Thu, 28 May 2026 07:59:04 -0400 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 <eliz@HIDDEN>) id 1wSZO3-0006Z4-Iv; Thu, 28 May 2026 07:58:55 -0400 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=bV4wGl+RprlreSpzXEvrthE3fvJF1YYFw4XdjPzoPwg=; b=R7qVgmzKaRy/ 6NYhlsWY2VRziVUgnub1dCBHQaHtNo5UWcLphYeIsY6kZMcRLXTIXCxFMmeixwwj8Hy4gwApG4pdo gfJVWY2BYIPY/wTqAdefpf7O+BZRS+aPNl6lMPeqojdNEjW7XaQrjEtxPEWAQyLqinM6ImUcE7Y/R wT1Ee6BQy2LBLplKRA2hQmg6cRAabfiKiJunLBxIG3FhDrTeF6rOgGoFwcRMrm0ryVeeOlt7OgUW9 Dgdm+/y/eFR3L+y5JOzFis73+nRCD09RaETQCXGH587Cf9u1kandlUrJ8rh9Xmk7xcPRUUzmns/9k YBSWrSgiQdIHisryl2aEJA==; Date: Thu, 28 May 2026 14:58:53 +0300 Message-Id: <86tsrr3fuq.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN>, Stefan Monnier <monnier@HIDDEN> In-Reply-To: <87wlwnyd3a.fsf@HIDDEN> (message from Sean Whitton on Thu, 28 May 2026 12:42:49 +0100) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> <87wlwnyd3a.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Sean Whitton <spwhitton@HIDDEN> > Cc: p.d.oliver@HIDDEN, juri@HIDDEN, 81025 <at> debbugs.gnu.org > Date: Thu, 28 May 2026 12:42:49 +0100 > > Eli Zaretskii [26/May 5:10pm +03] wrote: > > In addition to this bug (bug#81025), see also bug#81127, and > > bug#81128. Each one of them raises non-trivial problems with > > solutions that either require adding new features (for example, the > > current bug adds two new user options) or even infrastructure that > > currently doesn't exist (such as adding an architecture-dependent > > subdirectory under user's home and placing tree-sitter grammars > > in subdirectories according to the architecture). And I'm not at all > > sure this is all we'll need to change or add, because the issue of > > tree-sitter queries is new in Emacs, and I don't think we know enough > > about it, as we seem to discover new aspects every other day. > > Having now read all three bugs, I agree. > > This feels like something of an experiment right now where (i) the > end-to-end user experience in terms of installing grammars; and also > (ii) exactly what the generic modes are trying to achieve, are both > unclear. I think I understand where (ii) aims to go, but it turns out the implementation has several "holes" if one considers how this will be used in practice. In particular, the fact that the *.scm queries from the grammar library's distribution are needed raises several issues regarding where and how to find them, and whether they are at all distributed together with the grammar libraries. Other editors bundle these files, AFAIU, but I doubt this is a good idea for Emacs (assuming it is at all practical, given the legal and technical aspects). So: what do we decide about this? Juri hasn't spoken on this, and I would very much like to hear his take on this. Maybe also Stefan could chime in and share some insights and advice.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 28 May 2026 11:43:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 28 07:43:00 2026 Received: from localhost ([127.0.0.1]:33836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSZ8d-0005T7-Nr for submit <at> debbugs.gnu.org; Thu, 28 May 2026 07:43:00 -0400 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]:42361) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wSZ8Z-0005SZ-VF for 81025 <at> debbugs.gnu.org; Thu, 28 May 2026 07:42:58 -0400 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9BB31140014B; Thu, 28 May 2026 07:42:50 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Thu, 28 May 2026 07:42:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=1779968570; x= 1780054970; bh=NZtLHVTHB9OMNSZNPz4HTh2JsUxjqMqXoVT4M8kIptg=; b=j yDzrartEqmo1H8+EkXybNf+JzlQXYfi7weFOiq3HexcdX8dNFgyA9277v6RyuGsQ xyfKbD1Z0W7kp663zGIVlPJN+GcbG82N4tRwHqiuvbrioOjA04qLHiNKDW02Fzrk 29b3oSCbzIFxWGGHwZlKO3npkyEXZsP+xVXwuQ5Q8tsp8gtYoG2wDH/jbTvEIMby /x3fLTBm2/j9FAQNxm5hKqJEAj8DKWlXSb5VgMaWTXU2dIGcSz7sEfmZ17HulEtt JrCj/jAd8PaskPfcqfdlce4TM48UdiejUnywFoK+lHxAd4JSKIu5eLJYoCWv5Gir 58HAQS2JcpT+XscdkWwrg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; t= 1779968570; x=1780054970; bh=NZtLHVTHB9OMNSZNPz4HTh2JsUxjqMqXoVT 4M8kIptg=; b=k/j77xnZz3G7OqcyuxIXLpHD9FVTHU65PoEh44zpSw66LieOV9M u78+4yyhJISEldXjO6S//wZB15Q4ke2spz3DvxYQjgpRI3kvm+ypehaOIeCZc2uy uME1lZuea15OIycqg5CjIPznDV8VvzMn7I6N20VzI+mwzTd65tvzsFQDfT5owYSD zu22CKfRawk+QBDNUESng9Olabx3w60Gg+8j/FBN3bdSoisPgI23khGjY/BUql2j O3xNRrmvSjhz2EWzJWygNgwV1CBuGuN0d/L4DoW3dvf1aDq7pEGK16M+DogTgyP5 gsrz/gI4cKmqLfbFPoUzaBIQQcE1yft6JSA== X-ME-Sender: <xms:OioYavHub6enQcDupSZBR-KKau2RD5Sc5VjkgP3Q8hTKmFsTOLLLvA> <xme:OioYaqJQofgU6Zi0i1kYgce7w6EB7ZHosM8jvjlkGH9ZQRUTUO8L5MrZI0CrSEu_A PY7d1Y7C3Lebde4i6D5ueGJKMJL0aHsIYM09FkuuaOQ1b5bxIUEVSQ> X-ME-Received: <xmr:OioYarkWukn2M6hiisF7W1iriEPx6U67gf8oQJxYYJBRbFq1qt6eSJiUjV_Dh3urT1Zn8K8McYXD> X-ME-Proxy-Cause: dmFkZTFMb9Po8dKV8P45kNx3Y/7QJaaBmbGzzrZEb0QLBzv5/6wOaJZta7S0d+m8YJeeIs hNzRNFN6J14g5nt4g5C5is1hp74AEUo7LiJvXDFiTpSRVRd47+ttw6uPXy1S0mLJXsRhVN WpH4sA8HUL0KNpCJzukmP65THIFyZTDgsc2Dd89KV0NXCPTd+fu+6bgpN95QowxyMgogLf 22WR9MIM7UyLcuh5M3y2AbC9mO1Gb8lpxw1loZqyqEnzTrPi/8wPzS9By8H3rMQnfnI0+u pM0RMNGScvibhHmNJwKknuSmlJP0M1cgt3JyQR0C/8Tp5zmYmrgDh+0t+IR0S8WiSgexft AzKwjS/ZRP4Arb5W29YGr3E2S1p8u9Nu8ROqvPxD3vPW45CJMHZe3fy2hT6fRnph9C69yz TEGwrllEsrd78XcHfL03Xb4a0tE0fD1CmXo5n4Y5e6sfxTsqaNkWha9Zwc7qfZr0V1VWjx psYeZuDTX0/uDE+Gy9U38cww8Sor6qGCRf0D7zdmqgxyCKj/ZdvZ1NMME2vVoRPUIPJCIe OuoTXdtUudQdI8cIAOT7RWgMPJ+5SdIFgFg5vaBh4SVQ4aiy4tYQVt7yhsl+4+CtcdTvCF 2Re0AVR6UCSQVY1ZMZ2RqjTEJVZ1XAdrxaTAmMAvhchNdElA+OkpEUY4VvOg X-ME-Proxy: <xmx:OioYaqQwyEO5tGrlGMtgc5Am0exz3Jx63ITgxaUj0qqK5DoGH9VxxA> <xmx:OioYalIhC09rRkUGdhJ6ejeKOE0gbnCqmMEfKKPQpVOe1GvdIk9XFg> <xmx:OioYaoDCcZawNDF1WiDxfvufzCVncNCzvntE4c8HOefA2N8DGOkc6g> <xmx:OioYamBjQTQuCE6kKAZ-DGN0WlDBxFCYdNeLIzbe4daY3LV3ybiwbw> <xmx:OioYaiFG-8BrbG_cV7Eys6FFVb5Xq_hlpIMCcJVDlBYrLly7oZXwFC7l> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 May 2026 07:42:49 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 1DF577E8A5A; Thu, 28 May 2026 12:42:49 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86pl2ip8hl.fsf@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> Date: Thu, 28 May 2026 12:42:49 +0100 Message-ID: <87wlwnyd3a.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Eli Zaretskii [26/May 5:10pm +03] wrote: > In addition to this bug (bug#81025), see also bug#81127, and > bug#81128. Each one of them raises non-trivial problems with > solutions that either require adding new features (for example, the > current bug adds two new user options) or even infrastructure that > currently doesn't exist (such as adding an architecture-dependent > subdirectory under user's home and placing tree-sitter grammars > in subdirectories according to the architecture). And I'm not at all > sure this is all we'll need to change or add, because the issue of > tree-sitter queries is new in Emacs, and I don't think we know enough > about it, as we seem to discover new aspects every other day. Having now read all three bugs, I agree. This feels like something of an experiment right now where (i) the end-to-end user experience in terms of installing grammars; and also (ii) exactly what the generic modes are trying to achieve, are both unclear. -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 27 May 2026 11:06:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 27 07:06:06 2026 Received: from localhost ([127.0.0.1]:43734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wSC5N-0005ds-IW for submit <at> debbugs.gnu.org; Wed, 27 May 2026 07:06:06 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:58546) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wSC5K-0005dQ-7B for 81025 <at> debbugs.gnu.org; Wed, 27 May 2026 07:06:03 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-490388fd0dbso59806435e9.0 for <81025 <at> debbugs.gnu.org>; Wed, 27 May 2026 04:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1779879961; x=1780484761; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=3doWMBNpK9zRIJfJDxO4/UkKJlj4Dg351Xj350hejuo=; b=iJXKNimVYLoCLrEKk3TUN8XTx1/6Pepfkup+hpJdbKwKHIuHaTEPsxNZ+S5/l+l1YD LgL0fkovOWz/s34vcEq5XR6oZNvaFu1SOWaIHr5VXm0DnFQlPdlTOD4feuq6Ufca7MRz n9ZE8VMejMxfddPxL25ba+6hDKrA26wZxPung= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779879961; x=1780484761; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3doWMBNpK9zRIJfJDxO4/UkKJlj4Dg351Xj350hejuo=; b=FKrAZsQyxWNdD9Awv8WSigq5OMG8tvyCbdiEXHmxA60j9stXlxLIjcN6LkxThhCwlG QHzzhDUWoYMgZy+KmulSRjtQpNA1ohJHPgbIqbBuShaF/oJurtBjNe09onNF5c96/W69 XGCPlYivKKIBuRoXxe5GgVQFABXdec+p/lr6jgZsQDIEsQmuEsROJKsYEe6Q6qdyaxCh 3KcHtrmBZ2pw8vyjaAH1UPhjzg9CpUzVwaMoJLPEi58b6pxhPgJBsDLY/zPVm3XtmZ79 uAXmqzKR+N34n3yufCM/MwO9lvN5K2MxpvPF7eV419H7lHqINy2buUaKI5c3UAoho1UI iN3g== X-Forwarded-Encrypted: i=1; AFNElJ+RVxYtO0oF0Fu5vt1HD4MZs0KFzJU+5R2h1WA0w/Pj5xvPZiK+jfEen56CCeXgIcZenEjl5Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzLrvVgs8PfdBZRZsXImxCsrq3MEto3dtm/bsemkLqzz83onm5i Pisfr+rRXi68BrURheZD/IeRVIhtoV1vKg4VQ8II84yADGyzCAxZXqQNwimaqz+0UA== X-Gm-Gg: Acq92OFj+qGaHqDZCKkIuPzKMR0QdaR23u5/NBIm+ESDQBrOhn39gg0GEUf+d966+ah hEnGc7c+PHzEwrpsQTS1vMCUfe80JNuMIPnh79UcMOvpwJc8uO1Xpn6O07Y2dixK+ZOFvBjXmFh 7lhRN5/fSoxzoJXholG9jHpEzy1y2PzcNHfB4P8CUjEB+tgxlZVbUJ/OcTrPwY1AJJUfDoQg5WY PXMFXrjs6rZEINrG3AVbgtAh4uEh7iFZTMSO/5Eq6sJa2vjeV5U3piIEsg+FF7WYrxIygaJZo1m f8yNzIrRVXMRPzGs2aEF51LHL79Te5fkaV5nLf1Wak1OCkrALTtIu9hr2pxtt0yp9hu4S/DCXpu tIIJ8MyO1axnChaZo0BAugW5kD9ivHI7ztP8bJYGCpWnu76AKOa6qldlRCM/8HiHaa/ULWQ0Sjk QRB3+EOd0Y3V+RO7lIZ2yjz9RQeY0VKos6Rnd4SeLiQAjS6iQrRg/DkIYI6oSlhiJUmhhUxrQd6 yvmQGIMA63Zemk7QXBg73Bhv4f7vxX1C3VAE+Tgqg/RnCLF X-Received: by 2002:a05:600d:6414:20b0:490:4b89:5359 with SMTP id 5b1f17b1804b1-4904b895514mr245067575e9.1.1779879960591; Wed, 27 May 2026 04:06:00 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454c5eb0sm417966135e9.2.2026.05.27.04.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2026 04:05:59 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64RB5wEa038872 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 27 May 2026 12:05:58 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64RB5v1I038869; Wed, 27 May 2026 12:05:57 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Wed, 27 May 2026 12:05:57 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87cxyiusdi.fsf@HIDDEN> Message-ID: <8349a5dc-3b8e-b83f-79b9-0c35f6373801@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <87cxyiusdi.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-646775748-1779879958=:5519" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-646775748-1779879958=:5519 Content-Type: text/plain; charset=US-ASCII; format=flowed On Tue, 26 May 2026, Juri Linkov wrote: > Can this be optimized just with > > (locate-file (format "queries/%s/highlights.scm" lang) path)) Indeed it can; locate-file is more flexible than I was aware. Updated patch attached. -- Peter Oliver ---1463811584-646775748-1779879958=:5519 Content-Type: text/plain; charset=UTF-8; name=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch Content-Transfer-Encoding: BASE64 Content-ID: <0a7942c3-f2cd-5d61-5cb7-6e8a9783ff07@HIDDEN> Content-Description: Content-Disposition: attachment; filename=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch RnJvbSAzY2U4NjYxOWEyNzI5M2EzMWE2MTI4NjJkMDI3MWIxNzUzMGM0NzI4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogTW9uLCAxOCBNYXkgMjAyNiAx MzozNzo1NiArMDEwMA0KU3ViamVjdDogW1BBVENIXSBMb29rIGZvciBUcmVl LXNpdHRlciBoaWdobGlnaHRpbmcgcXVlcmllcyBpbiBtb3JlIHBsYWNlcw0K IChidWcjODEwMjUpDQp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gdHJlZXNpdC1leHRyYS1xdWVyaWVzLXBhdGgnLCB0 aGVuIHRoZSBcInRyZWUtc2l0dGVyXCINCitzdWJkaXJlY3Rvcnkgb2YgYHVz ZXItZW1hY3MtZGlyZWN0b3J5JywgdGhlbiBgdHJlZXNpdC1kYXRhLWRpcmVj dG9yeScsDQoraW4gdGhhdCBvcmRlci4iDQorICAobGV0KiAoKHBhdGgNCisg ICAgICAgICAgKGFwcGVuZA0KKyAgICAgICAgICAgdHJlZXNpdC1leHRyYS1x dWVyaWVzLXBhdGgNCisgICAgICAgICAgIChsaXN0DQorICAgICAgICAgICAg KGxvY2F0ZS11c2VyLWVtYWNzLWZpbGUgInRyZWUtc2l0dGVyIikNCisgICAg ICAgICAgICB0cmVlc2l0LWRhdGEtZGlyZWN0b3J5KSkpDQorICAgICAgICAg KGZpbGUgKGxvY2F0ZS1maWxlIChmb3JtYXQgInF1ZXJpZXMvJXMvaGlnaGxp Z2h0cy5zY20iIGxhbmcpIHBhdGgpKQ0KKyAgICAgICAgIChxdWVyeSAod2hl biBmaWxlDQogICAgICAgICAgICAgICAgICAgKHdpdGgtdGVtcC1idWZmZXIN CiAgICAgICAgICAgICAgICAgICAgIChpbnNlcnQtZmlsZS1jb250ZW50cyBm aWxlKQ0KICAgICAgICAgICAgICAgICAgICAgKGJ1ZmZlci1zdWJzdHJpbmct bm8tcHJvcGVydGllcyAocG9pbnQtbWluKSAocG9pbnQtbWF4KSkpKSkpDQot LSANCjIuNTQuMA0KDQo= ---1463811584-646775748-1779879958=:5519--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 15:29:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 11:29:40 2026 Received: from localhost ([127.0.0.1]:34285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRtit-0007wC-Tk for submit <at> debbugs.gnu.org; Tue, 26 May 2026 11:29:40 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:37502) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wRtiq-0007vn-KT for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 11:29:37 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4gPxWC5jY7z9tgJ; Tue, 26 May 2026 17:29:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1779809367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qt2VLUtlHx7V35ergSgcM4K27k6wfcmAZ4fyAgBvGR4=; b=fS0zZs1ZeP4pJHnp2J1n2Vx09SZCPDV1sOweQLOPkPaiQO4gZuzgh7bFAD61oILfHyz39P OCybzohKrTwppK4PHniKeDbopVh2nrqVo8Iehpg4MiskEvPK8LZpfDN1qRJe/jpvl7sys/ ak0wsPoP1ivSJmVuuPyMc+cjxsaeUu87f2MV4GPgFtsqoRupPJ2vVYZs6Sa49RhnniYKnE Xy5HzCZ017v/HJiFvqz3AGS501zS5TL1YIxPvp+Wom2oYq74fbxGUyAAoFwySwHHO3mQFS 4JnJgubJgg9+T8z+6BsgUuRJtDR2baAO4i9IYUvLUmK1mmrTUNUBgD4h3K7PQQ== From: Juri Linkov <juri@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> Date: Tue, 26 May 2026 18:16:40 +0300 Message-ID: <87cxyiusdi.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Updated patch attached. Thanks, looks good. So your patch will allow using even non-default configurations for treesit-x.el in Emacs 31. > + (file (locate-file "highlights.scm" > + (mapcar (lambda (path-elt) > + (expand-file-name (format "queries/%s" > + lang) > + path-elt)) > + path))) Can this be optimized just with (locate-file (format "queries/%s/highlights.scm" lang) path))
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 14:16:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 10:16:51 2026 Received: from localhost ([127.0.0.1]:33756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRsaQ-00062h-IO for submit <at> debbugs.gnu.org; Tue, 26 May 2026 10:16:51 -0400 Received: from mail-ua1-x933.google.com ([2607:f8b0:4864:20::933]:57396) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1wRsaN-00062Y-K4 for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 10:16:48 -0400 Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-95cc3522c40so7562023241.2 for <81025 <at> debbugs.gnu.org>; Tue, 26 May 2026 07:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779805007; cv=none; d=google.com; s=arc-20240605; b=Pq00LV3L3eX+6WXcA/tLh1jIJSgPVgmp9UB4YXuFMa0n2f0ClZ1ZjoU/WVgKIepH7k gDSJ+FhEAa8EKS3r2oE0FNpQMq3u14mLYAwDrrtEyYXia/jPyi4iJQYYaU45JJrrWX7N 9GYRawv22whSaJFjQNW9IAdelBToEE1M7H8FykNhtNAIvDB7Vem1efn1jkdK+2GTQF80 HdbpyA8m/26cIhHCt/BTqMYs7CjyM+UJRSMLRQZHfhVapzxKF385c4Ct3jxVClh2O7+5 2pFfVY2SfsReDl80X1KYdYByHykOJLdvSH+Sr7xkYGzorRneXXbkwemBemFya3h6c4yI 3gdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=OWAkWlOYGRhKLrG7QxDX1xE491IZlmGAdjz0KopCE9M=; fh=pBOj1Ql17F6UXKKvdQJF7Y0DueNCM5urIsUbZoIhT44=; b=Pz+kDV1dRJu5F6qUnYMQxuNy2/4GnVek9/hXio6PTSbKDePYRiuElXlvfSOPHXCZ5M WUbcqQyIM2P9kBMMfmMtYiSRWRs9KHCRUODqNNLqFwU7ehH0j9L1cgS5DccQREOaicnZ R184EeoAy7wxj3yYF8vl7JhpNmo9DYt/PKHgZQmaV007p1KdDgFsPQZdBxR8nFrdeoQ3 +ef/wVpLI+Rik2RF6YilL08q08z7Xu8ESBw41I7dTUZ6CtlEa5CKBqd1HsqatWvxGASL 6aNjqneuZYAIlqbQeDygl7wOC5U23sAeZy1N7paFInIEUR3MGru4smlPTVEAke/bPZn8 SdJg==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779805007; x=1780409807; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OWAkWlOYGRhKLrG7QxDX1xE491IZlmGAdjz0KopCE9M=; b=CYJDS0A7ZBVL2Y0y47YGD1Jh5+Gq0szuedrGtALgmLR+RteObEWATzL9CPeqEe9RG/ vXrwVc/pxVoC4EPbJqBZjNKWUWg/mqzVMei9WktCZ1mKQh77eIBpOK/Ksu6YBy5GVdP1 7CDcSIMfDiCkZfrL4RSFYKnJ+/DMklA/3slXMaOn9GysJC1zDcx/Y1jBK/O5gUGRSIgb U2ekwiXvCen/wow5K4PCiyuXbamJPDLNJ019gF21Yt9SA9POZwstroTBxF78knj/ZvmI zJTanqzvVxRZaJL97KRB8ht7XJiH26Z7Z85l82n2MeTTb/S5xIpF4+YR+x8jljQA58WJ PjfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779805007; x=1780409807; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OWAkWlOYGRhKLrG7QxDX1xE491IZlmGAdjz0KopCE9M=; b=mzGprKNyfpQlvkNjIx2gtveuPpfJ4ufL62AJEYwJMZQCH+phNjqFEAAhqnhilxKoNp 38DTj+qk0BemwGu4MoLNq4OvBeQ4/MphPluCYFYUm0Wv7qYT+fTbbdV1knSGkBCVPxTy GBGLwuR63Es/tlqgBc/cp6GzB1AZSIk8ypCOuQcOlbOmLOKu3CsyHhKi48j7YtOcLifF VkBLEKgpfpI8DQbkBhaaxYHTjAzhnqz/fMgLozEA8ywEDkUlnUUT2Z098DNKtJQ9Spc3 0/b158MrNuKJdlMUsFyc+XUcbvKtSVYiZw1WNrZ8bigQzT981CMsAERlZaqxuKEKpDyf ewVw== X-Forwarded-Encrypted: i=1; AFNElJ8SEDXjo06dfBGnXuLHtfblcuXVvjgnBnZFfOZoMsMR/BTU+IAFzmUSqtnZhu38A2TmJbbpuQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwKo+GJAk8hBXoKr5xcyfNukmkIPk59vT0YlhOTZVAj8Lqjf8In falwFWU5bdbP8KTXAFGhslwUEOx1cNgneoBlRHuSLc7X4xCz5frfqlpjVvRZwkaEmmmIpcohgbs wEwDIXGG+XntXHI38Nrvys8o0eZ4HQ1c= X-Gm-Gg: Acq92OEXlDIsTZ+SsNxbtEo5Cv9uJpia6VbSQWLKVygI0GYzyR71x2hIraDsfI9W4ku hNs+5t5qdjrl8MtQLxO9kRG/1+m+aFLox0uWqgpKSgjERzyuqbb1obh3FVwKkVPNVUD83en6DlB h1jn9sqV4/PqyezhNqqCXGP+KlYLr0q8tWfoGYJMEP/gUb6VPpxrBB68/plNFlEN7AojJlKWtk7 sTbTRXdwHWnZHJm3+m8AxSkWswtKVpGi7s0esFT/ieCoIOCPzvY25PJgzQnEipjhcWCJEv0yqcR B4A4835N0Ey7thJj7/GB9Ic1sD6c3A7JvDaulDgx9SFIqeS+IpcnjyPAkuzz0zbHGT1gACt6Ziz JavBp1nkfUUfOk+T1gTbtaMmk+rsZnLFtrOM4QZCWiYHGnf9j X-Received: by 2002:a67:f0d2:0:b0:6a2:b2a1:f170 with SMTP id ada2fe7eead31-6a2b2ef1eecmr1120571137.19.1779805006419; Tue, 26 May 2026 07:16:46 -0700 (PDT) MIME-Version: 1.0 References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> <86pl2ip8hl.fsf@HIDDEN> In-Reply-To: <86pl2ip8hl.fsf@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Tue, 26 May 2026 10:16:34 -0400 X-Gm-Features: AVHnY4K06T2SRKTEqDDdlPoK4dcjeNFwI4bYjg3H4Ni6qjSQZ9R13kcTy9WLdOo Message-ID: <CAN+1Hbr1O4CVjpgdkmXkrEMb3Yxzk06DV_ZC5=QJ9nOjGmj54w@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000002d5dba0652b925d7" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 81025 Cc: juri@HIDDEN, p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, Sean Whitton <spwhitton@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.0 (/) --0000000000002d5dba0652b925d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 26, 2026 at 10:11=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote= : > > From: Sean Whitton <spwhitton@HIDDEN> > > Cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > Date: Tue, 26 May 2026 14:58:37 +0100 > > > > Eli Zaretskii [26/May 4:47pm +03] wrote: > > > Sean, WDYT? > > > > Can you give me a few references to read that bring you to this > > conclusion? > > In addition to this bug (bug#81025), see also bug#81127, and > bug#81128. Each one of them raises non-trivial problems with > solutions that either require adding new features (for example, the > current bug adds two new user options) or even infrastructure that > currently doesn't exist (such as adding an architecture-dependent > subdirectory under user's home and placing tree-sitter grammars > in subdirectories according to the architecture). And I'm not at all > sure this is all we'll need to change or add, because the issue of > tree-sitter queries is new in Emacs, and I don't think we know enough > about it, as we seem to discover new aspects every other day. > + the questionable quality of query files in the Emacs context --0000000000002d5dba0652b925d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Tue, May 26, 2026 at 10:11=E2=80=AFAM Eli Zaretskii <<a href=3D"mailt= o:eliz@HIDDEN">eliz@HIDDEN</a>> wrote:</span></div></div><div class=3D= "gmail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex">> From: Sean Whitton <<a href=3D"mailto:spwhitton@spwhitto= n.name" target=3D"_blank">spwhitton@HIDDEN</a>><br> > Cc: <a href=3D"mailto:juri@HIDDEN" target=3D"_blank">juri@HIDDEN= et</a>, <a href=3D"mailto:81025 <at> debbugs.gnu.org" target=3D"_blank">81025@de= bbugs.gnu.org</a><br> > Date: Tue, 26 May 2026 14:58:37 +0100<br> > <br> > Eli Zaretskii [26/May=C2=A0 4:47pm +03] wrote:<br> > > Sean, WDYT?<br> > <br> > Can you give me a few references to read that bring you to this<br> > conclusion?<br> <br> In addition to this bug (bug#81025), see also bug#81127, and<br> bug#81128.=C2=A0 Each one of them raises non-trivial problems with<br> solutions that either require adding new features (for example, the<br> current bug adds two new user options) or even infrastructure that<br> currently doesn't exist (such as adding an architecture-dependent<br> subdirectory under user's home and placing tree-sitter grammars<br> in subdirectories according to the architecture).=C2=A0 And I'm not at = all<br> sure this is all we'll need to change or add, because the issue of<br> tree-sitter queries is new in Emacs, and I don't think we know enough<b= r> about it, as we seem to discover new aspects every other day.<br></blockquo= te><div><br></div><div class=3D"gmail_default" style=3D"font-family:monospa= ce">+ the questionable quality of query files in the Emacs context</div></d= iv></div> --0000000000002d5dba0652b925d7--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 14:10:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 10:10:30 2026 Received: from localhost ([127.0.0.1]:33707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRsUI-0005gS-0g for submit <at> debbugs.gnu.org; Tue, 26 May 2026 10:10:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37348) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wRsUF-0005g3-NE for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 10:10:28 -0400 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 <eliz@HIDDEN>) id 1wRsU8-0003Rj-LL; Tue, 26 May 2026 10:10:20 -0400 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=isBCHmg34bMcKnipSps1NMcwKUyPjrjceixB9DrHF/w=; b=WGvmyIQlGgG4 MjQyoSJLelYsLMKRGKrlGVMFB8DrsHDNRT4pxQWopbrWFp9JpcYXKmnpAWrJIKA1/Za7UwbmuKMyb NQK9N8SYJx4xcyI5EO+ki4Z+/S47+RKxDRV3yJ+N4qsBYtwkxN1sqv/gGT7GEL6SrRsCtNVIw+HEc 2iqjOhXgezAfioRJut0yFBsjt/QyDIxbCplTO7ruBaSjVnc5rqWfE+oNtZIswPSDRACxQj6lLh8wY WZIA1j4niMhjGJmoaR92E1H/EH98+5bEM2BX4ZK2YDyC1C4fX3QVAkaDCSUjP6qilL+OijLPDFB2p mIWSVpY8hlu/AE9DxIu34g==; Date: Tue, 26 May 2026 17:10:14 +0300 Message-Id: <86pl2ip8hl.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> In-Reply-To: <87ik8a1dde.fsf@HIDDEN> (message from Sean Whitton on Tue, 26 May 2026 14:58:37 +0100) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> <87ik8a1dde.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Sean Whitton <spwhitton@HIDDEN> > Cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > Date: Tue, 26 May 2026 14:58:37 +0100 > > Eli Zaretskii [26/May 4:47pm +03] wrote: > > Sean, WDYT? > > Can you give me a few references to read that bring you to this > conclusion? In addition to this bug (bug#81025), see also bug#81127, and bug#81128. Each one of them raises non-trivial problems with solutions that either require adding new features (for example, the current bug adds two new user options) or even infrastructure that currently doesn't exist (such as adding an architecture-dependent subdirectory under user's home and placing tree-sitter grammars in subdirectories according to the architecture). And I'm not at all sure this is all we'll need to change or add, because the issue of tree-sitter queries is new in Emacs, and I don't think we know enough about it, as we seem to discover new aspects every other day.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 13:58:48 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 09:58:47 2026 Received: from localhost ([127.0.0.1]:33613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRsIx-0004uu-HU for submit <at> debbugs.gnu.org; Tue, 26 May 2026 09:58:47 -0400 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:34511 helo=fout-c3-smtp.messagingengine.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1wRsIv-0004uV-0F for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 09:58:46 -0400 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 650491D00147; Tue, 26 May 2026 09:58:39 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 26 May 2026 09:58:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=1779803919; x= 1779890319; bh=cxAuQDpRSRmNAeWEDHNfR/mSIbdc9WzPnWYZPi0tDBE=; b=m qRrthDwixejFbqXQhKOP8HDkvXJp7BucpO3V/S/x7dyGIH8ih3EZBNUFtWCVzZE8 XaUGeQA2kmBpIpqxTx1ehxiXdCk5fb2V1Z/XANWX9QtqoF1LnKXD2JoTe6BLSmU8 kfxmu9ReUcOo7Bd6HEtxfxwQB+4prBIXACZG6biMYkiqFFM1DCPeMZdG91ggIpBh 3g7OR2ERN9//oRMZmQt/JLyZrooHZbNZXvCAkwPmwDmWI/X3wnFvNqGxYIKQYLrA Br5pZS7wGK3Wt78GuslRN5YNk4uTT0cXa40Pu/AOYNdRPf4b9X0R7LrHz3+vmDSB +nberIjqER59PIE7h2eyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; t= 1779803919; x=1779890319; bh=cxAuQDpRSRmNAeWEDHNfR/mSIbdc9WzPnWY ZPi0tDBE=; b=JU9ewqsBLAvRIif2uJX6jBLiljPjksDCPG4vKtkVZx6OvSCCiae Z4HrtXGNReNa42F1AF9HDe8xoIs0IQofJznETatigHzQBS1DkS8BGZybQFY/91tH MdAOPGUY4Fthppn7WzT2f/mQJ3TBoGyQk93KHF4WQbI0KL8SPpsIhuOlt58RJXH0 t4x5tXWMxiJP/SXU15QwP5c5JUDbwF9v7+CskHHSxPiiT1gy90KkW7C/M121YWqx CY+6+3q1f/4IyEC5znv7pPakU7asiZvjy34zMaHOFZMm8e3PQ4ZLBFVYf566JU6q b7NPeOV3L+PYKDfl7EeEkqN/0HGuI/oncSQ== X-ME-Sender: <xms:DqcVavMKAQSfrnBzQ7z1xYgjfT_46k7_HKpzTjaBRqNa9s-WsUSkeg> <xme:DqcVanwJbE9MY0A6WVKxju0nwVEKLrazPp9AxUxnoIxxeJyImEKlaFho2yn9XsERW lNempgnjPBPuZj159VVVOISVjlkxKn3xLu94tsaKkRCl2a9H05a1Yw> X-ME-Received: <xmr:DqcVaounFtW1eclTOAYggmD5vfqPk11BMyhb0nMaAAin6a21eR0KsSCYyB5swKs4hWOyBwC_NDnd> X-ME-Proxy-Cause: dmFkZTFma7/2KUCXMkFMxTmTxK889+vYDyWKn7hSTY4LXIf1pX9j+vhdo/0kk/Q/I/VDA5 AA0bl+pL9hcbeL1c/uiScRN/SqCqrA1njccj2+K3X9lNG/GNkNHrWgqNPCyOAKVGy1a1k9 8iSwhhQPKPLbS86OdbAoNYn6U2e+784jYG0KQG8EHzS3XbybKTy5M3jrY7bH1nJepJbEAQ otRagntfhlaLU5dFvw80VCCk/2LzbLfWWEMtx4R31lvAV3oi+Cf/N8U2KPBIaaoCHwnBRa U9vAEmnF53mTWuPJSJooR7cDKfuNRVBS5PrItM/pKFQ0ammdyiyMmDzhMqRuRU7FdrKxSE H8WgV4wFRNnFnyVQeSQuFtoCZpE3u755AnzGQeEVAgAiHQr8v2SErgOVdU9F2WAGuVsDKz w2Zd6BW04Vds5bLDY0ST4sSXij5wDGYXCWuMJXBnpTf5ok/qjzVjQBiOiqqHxkRsj/Co5Y Evw0JVdQCvdN2dsAq8kywKFXyR3dZv90cz795iNAXkuytYpg4Pmq9m6ypilqabk7ZM1Z7J 4vTvRq2zRD1RepTZgS5rkjSDwKrhwjhQMHdBzz3GbaLM4uJsO+kYqdh660UXprkMi+KKa5 E3XUxEbUUXNmmVUE3DwUyZLjkKm9uFId4qrFb4wHIg8penIBgQOsQHcSl1lg X-ME-Proxy: <xmx:DqcVag6G5mGa7w9gzqppOlxLb7CyrI-G-X5mwuhbsapopkAuWsNWLg> <xmx:DqcVanS7agxai_yhm5LH6UkgfIzyHaRxtliQ_xCjUPdnAm4aiwknWg> <xmx:DqcVavru-K-gBi6wHGORFXAjZtCktKOdrRtRVIJppBrNzhCiLz72VA> <xmx:DqcValLvPFG6phfm0HAhYG-ETimmSs8_rjbfAYmeX-FZJWTraju6jg> <xmx:D6cVagPRgxmpA6UPleVWsxj4f4_d9yNM9OIMW9MHo8uzwKFiekSrefGi> Feedback-ID: i62564b17:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 May 2026 09:58:38 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id B0FA57EA9A2; Tue, 26 May 2026 14:58:37 +0100 (BST) From: Sean Whitton <spwhitton@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN>, Peter Oliver <p.d.oliver@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86tsrup9ji.fsf@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> <86tsrup9ji.fsf@HIDDEN> Date: Tue, 26 May 2026 14:58:37 +0100 Message-ID: <87ik8a1dde.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Eli Zaretskii [26/May 4:47pm +03] wrote: > Sean, WDYT? Can you give me a few references to read that bring you to this conclusion? -- Sean Whitton
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 13:47:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 09:47:41 2026 Received: from localhost ([127.0.0.1]:32826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRs8D-00047v-2M for submit <at> debbugs.gnu.org; Tue, 26 May 2026 09:47:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42012) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wRs8A-00047Z-MC for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 09:47:39 -0400 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 <eliz@HIDDEN>) id 1wRs84-0000G5-45; Tue, 26 May 2026 09:47:32 -0400 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=yGmY3GjEIQ3iwVXif9KhtK04tDvw4IlPfnwJHjXczcE=; b=O0lEtQfCmrC/ ajNKU7zA3LY2Whh7b5GZKFjKngHxGwbb7V3Gr/xQppjVl0uXx9kE543vV3j6PL1OFv60Qq3ZQnfzW nELFiHiFLCWZ5OcQ5jxxNRScTT24KpqNZKJsAKd5rJt+fWIPohqPX2paWqDNbvILVMxdVxggLRhLX K5GN+FKFAsdrQiCHqzRy6y2Kuq/CArPbUAufSkT4WMXsJz8aMawsZl4lYNMoGv6oSOQmwD1i1/DGR +2nu8EFjC2MiIn6FdDEpBszIfghp9zJ3lRJJnpBYY7i/4mVIgcgz+RSMZOpjIpxSMssMaeKYzwIro ThhIb6OS0PCeW1IyqD4s2A==; Date: Tue, 26 May 2026 16:47:29 +0300 Message-Id: <86tsrup9ji.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN>, Sean Whitton <spwhitton@HIDDEN> In-Reply-To: <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> (message from Peter Oliver on Tue, 26 May 2026 13:59:50 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Tue, 26 May 2026 13:59:50 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > On Mon, 18 May 2026, Eli Zaretskii wrote: > > > There's a known solution for that, using the value of > > installation-directory. I'd leave the default value as nil when Emacs > > is run uninstalled. > > Updated patch attached. > > > Then let's not add to treesit-extra-queries-path there, for now, and > > address that in a separate bug. > > Raised as 81127. I'm beginning to have a bad feeling about treesit-generic-mode and its support code in treesit-x.el. It looks like it isn't ready for prime time, what with the amount of non-trivial changes it needs to make it work reasonably well for its users. And new bugs about this mode get filed all the time, with problems that are real and sometimes nasty, so we cannot leave them unsolved. But solving them nmeeds serious infrastructure changes or causes fallout issues that in turn must be solved. I expect this to continue for quite some time, because it seems the original code was not well-thought when it was installed more than a year ago. Dealing with all these bugs (which are real and IMO must be solved for the mode to work well) will keep us busy for a while, and will delay the pretest. So with a heavy heart I suggest that we consider removing treesit-x.el from the release branch, and leave it for Emacs 32. That will give us enough time to fix the code, add whatever user options and features are necessary, etc. I realize that people worked on this for quite some time, and the feature is very useful, but honestly, can we say this mode is in good enough shape to start a pretest? I don't think so. Sean, WDYT?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 12:59:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 08:59:56 2026 Received: from localhost ([127.0.0.1]:60662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRrO0-00046U-9P for submit <at> debbugs.gnu.org; Tue, 26 May 2026 08:59:56 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:50595) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wRrNx-00046L-Tx for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 08:59:54 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-49048e043e5so30204305e9.1 for <81025 <at> debbugs.gnu.org>; Tue, 26 May 2026 05:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1779800393; x=1780405193; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=6o2lBfA/NIRk5j7tu9rDInELNVCfN6gQAwfYekLT0XQ=; b=IgaEn+MkE0R40Bi0V/1A4imquj2mjCmEjFgrNxiaiiHul7+BRJOAaaYzGgWxK7cfkb lOpkaaZPgaBCafA9bivkfqgIOzcMKXHzWwsSrEbF+hWAhvu0PkukRgUKj09gXnopoekN OBmZfbNyeyMZ0N8DbPL7JonFqLRskTSOJfpdw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779800393; x=1780405193; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6o2lBfA/NIRk5j7tu9rDInELNVCfN6gQAwfYekLT0XQ=; b=W2Clwo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smeT1+3kUmKkBBuPEm3s8RM2jsq2rKP59/ 36aOs/t+fElVKJe2Rcw6uIwZUbD47ft6GiqOg== X-Received: by 2002:a05:600c:8207:b0:490:688b:ece5 with SMTP id 5b1f17b1804b1-490688bedbamr115134385e9.30.1779800392650; Tue, 26 May 2026 05:59:52 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454cfcaesm318701885e9.4.2026.05.26.05.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 05:59:51 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64QCxo1U031769 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 26 May 2026 13:59:50 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64QCxoW0031766; Tue, 26 May 2026 13:59:50 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Tue, 26 May 2026 13:59:50 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86ecj83fvo.fsf@HIDDEN> Message-ID: <7774b77c-b96d-ee47-74f1-97855805805e@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <86ecj83fvo.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-1769309362-1779800390=:5353" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-1769309362-1779800390=:5353 Content-Type: text/plain; charset=US-ASCII; format=flowed On Mon, 18 May 2026, Eli Zaretskii wrote: > There's a known solution for that, using the value of > installation-directory. I'd leave the default value as nil when Emacs > is run uninstalled. Updated patch attached. > Then let's not add to treesit-extra-queries-path there, for now, and > address that in a separate bug. Raised as 81127. -- Peter Oliver ---1463811584-1769309362-1779800390=:5353 Content-Type: text/plain; charset=UTF-8; name=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch Content-Transfer-Encoding: BASE64 Content-ID: <06534553-3135-96a2-3dfa-828f516f636d@HIDDEN> Content-Description: Content-Disposition: attachment; filename=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch RnJvbSAzOTZhYzA1ZDIxOTVlODUzYzg1NjgzNTFmYTUyZmJkNDUwN2VjNDU3 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogTW9uLCAxOCBNYXkgMjAyNiAx MzozNzo1NiArMDEwMA0KU3ViamVjdDogW1BBVENIXSBMb29rIGZvciBUcmVl LXNpdHRlciBoaWdobGlnaHRpbmcgcXVlcmllcyBpbiBtb3JlIHBsYWNlcw0K IChidWcjODEwMjUpDQpNSU1FLVZlcnNpb246IDEuMA0KQ29udGVudC1UeXBl OiB0ZXh0L3BsYWluOyBjaGFyc2V0PVVURi04DQpDb250ZW50LVRyYW5zZmVy LUVuY29kaW5nOiA4Yml0DQoNCk5vdGUgdGhhdCB0aGUgcXVlcmllcyBzdGls bCB3b27igJl0IGJlIGZvdW5kIGF1dG9tYXRpY2FsbHkgd2hlbg0KdHJlZXNp dC1hdXRvLWluc3RhbGwtZ3JhbW1hciBpcyBzZXQgdG8gJ2Fzay1kaXI7IHNl ZSBidWcjODExMjguDQoNCiogbGlzcC90cmVlc2l0LXguZWwgKHRyZWVzaXQt ZGF0YS1kaXJlY3RvcnkpOiBOZXcgdmFyaWFibGUsIHdpdGggZGVmYXVsdA0K cmVsYXRpdmUgdG8gZGF0YS1kaXJlY3RvcnkuDQoodHJlZXNpdC1leHRyYS1x dWVyaWVzLXBhdGgpOiBOZXcgdmFyaWFibGUuDQoodHJlZXNpdC1nZW5lcmlj LW1vZGUtZm9udC1sb2NrLX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ICAgICAgICAgICAgICAgICAgICAobWFwY2FyIChsYW1iZGEgKHBh dGgtZWx0KQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKGV4cGFuZC1maWxlLW5hbWUgKGZvcm1hdCAicXVlcmllcy8lcyINCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgbGFuZykNCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdGgtZWx0 KSkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXRo KSkpDQorICAgICAgICAgKHF1ZXJ5ICh3aGVuIGZpbGUNCiAgICAgICAgICAg ICAgICAgICAod2l0aC10ZW1wLWJ1ZmZlcg0KICAgICAgICAgICAgICAgICAg ICAgKGluc2VydC1maWxlLWNvbnRlbnRzIGZpbGUpDQogICAgICAgICAgICAg ICAgICAgICAoYnVmZmVyLXN1YnN0cmluZy1uby1wcm9wZXJ0aWVzIChwb2lu dC1taW4pIChwb2ludC1tYXgpKSkpKSkNCi0tIA0KMi41NC4wDQoNCg== ---1463811584-1769309362-1779800390=:5353--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 12:25:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 08:25:19 2026 Received: from localhost ([127.0.0.1]:60334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRqqU-000256-Th for submit <at> debbugs.gnu.org; Tue, 26 May 2026 08:25:19 -0400 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]:46315) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1wRqqR-00024u-VZ for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 08:25:16 -0400 Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-6313c800372so8296057137.0 for <81025 <at> debbugs.gnu.org>; Tue, 26 May 2026 05:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779798315; cv=none; d=google.com; s=arc-20240605; b=VVxQd13xsy3KVxDlWcXgYXp6jB0FSg8E75saQoNqOyoT0X1LqOsjAIeDp8SbuU3Jb9 mXjWWar745LxEOxKRcutiFi7MRRnsOiKmW1Mkj/jBOf7Mkd+NgXUPtNTMDKTRl1eKBEe 4mtCxxGyYxcBCFyAc9eAr+v4SoCDnXubPqFji11faVYyI95R3LdmcSjH83Ex/FsPgk7S ekp8GWP7/k+iWL/QTo/msK2x4kBMFzmYYqz1SAHzkQ970g7z+1G79Be7kkhMjQXfaFAp K2yL1ytMGPFShu5rfS1QYLd/eV0NhC/ynUmkU8DzFWUOSby5haSqWDTCr42tvteC8jD2 UE1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=oe/cc+LIfm7l7+h1cpvIot3T9kEHHwWd1dxLpmSJdD8=; fh=lT683QUB8upqOFKvUO5S5befc66l0yngPGexUxeJxSs=; b=MyW4JGKDFw86V0zsmU7peFrx64tIDFOcf2XYh74imzqJ7M/EejoQVCJmst/ChKEwCL Le6n3i6/RtvS4Kfz6JFY7EQ54LWyrx0PHZQgCJUm5hvfZKiuw1I0+tg+vON1SKfcWgI0 49Zxy+l1bLf/sjW3d0nr2ZWy+ls3NDON9cfhVdZKzEruAtxfn9/0bKZT25PVc+FBRFPa 452E05skW/EosuIgl7re+IZ0Ihri9FpYhQNq8rp0/S8OhVMmaoUX6WCtzkPETAF4Ghf2 skjvkkAt+0/hACLoIeXxEeely/dWFKDGtWOTWFiyNU143F0ulodj44phvKY0kpdOnXL7 4osg==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779798315; x=1780403115; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oe/cc+LIfm7l7+h1cpvIot3T9kEHHwWd1dxLpmSJdD8=; b=ThBuouD6D223VdJ27ndH+vbvAkiwxp+qlJS3C8AGVU+BE94dJL9zxaGahoIB5IIQKx xvoVANz1tPWtmfL0p5b40MFHi9nrZf/YYIxXmEvit7NccIkdWy1u8Q3oa+livoZLelnY uNd7CYdbfj8nmL18SYhoMSBSIdjpeSLepurgX86tH6vyVTMCW3Ql4MZ/ATEII7w0eiYo PeIema6n47OEXP2KQtR9PpXhSyjMUdnRjmifzcjxhv7hatMmqGi+TnkWcy3nc7IrL1oO XMJxPcZKb2XNz+Z8wvEBjlHe27Z3I+YpsRfCzJ1HENpslx4WqdgXYv6S9eLATyN22QHU Sfug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779798315; x=1780403115; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oe/cc+LIfm7l7+h1cpvIot3T9kEHHwWd1dxLpmSJdD8=; b=PRHkdiJfv93bTL2sSLL8OuPgRu4S2ZLlPrZDNgXHw6ZiEt2I0L212V9fTI+px6X130 VTJ8MySMeOEb7ZZRNrwinteY1/CNgbe7BqgabU7hWN7u4NMrav16HwvO0+zV68gB8C65 WRZA6aHqFVEAdSIYUDOZWwBSehAP7pnhKFcF2JV5gfoP3wbHq6AKp3KG397X92mZJ9C0 O/deOCaLWCWKX8AjQesCU5gKjC1by5Lbcb2b9W/dkD9MnmFEb/NlN4kqyn41GM1fGTio k9Y5wGzpsP/j9dV2dH0nTqbdHL46lbL4+IGHYnVDW5d3EmWrPeCkvW8umaceQ8yMMapX mCGA== X-Forwarded-Encrypted: i=1; AFNElJ+Jt2reqtFQMrQ7UQUmFLDyHaiBWZTrhdO7Mn8gXAyr0f7ul7aLBRg+aYW9Gk9qpnZIx90aAw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwPP+herjlUC74qNW16GLZ3SdCUXxqDbwtIdsTn8Nu6PZQhzrwo 9HSQVXvxd1LXLpqm/kmkN66Y0u4C2mI2RVW5OvDw6YYgSbrA/zZaGl/UG641pVP6fpkPgFlZHXY xt4YlK1rGOTK3n/2xsFaWLm2fuBtyvTw5v4p0 X-Gm-Gg: Acq92OHZcpgSPYGgsJV69zCqJy2IHsu8ar9DWsZKCC8wq1NuRvDpggzq06DeGVJITgZ nITCrNiNft72eDUWl861EWGeMyVljzPwJ4eY+8upnxgKfeOu4hw1Xxi33nGN+OcK2fGdjJ6OKIx pIE5eJYOG5cCzpzCd9kWrgP9YWWnyDq+XrJ6qtVjmIZI/8wa7Rjmq5clwxMJO8MKjtXX87LSPB6 ly8tSRa+BG5Es2++SxocUenq7g54ZAJGJJVbEFcVfxZHR+XWswWdcccIu9vbX9oE5mcPNSYtS35 dSIH06bM4861lEKv6FLjqsDyyV1VFWnSPTzENlnImNuRqExLQEMLTu1wi204Sy/ugf77DVwt/cd fdG9SYISSrboDW5gocE+lrczRfC+7B3AMxTmpfZq7XyjT7+OaXl1560vWkmc= X-Received: by 2002:a05:6102:5989:b0:631:2a82:111f with SMTP id ada2fe7eead31-67c7c076f2dmr9281275137.17.1779798314736; Tue, 26 May 2026 05:25:14 -0700 (PDT) MIME-Version: 1.0 References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN> <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN> <87ik8i85wc.fsf@HIDDEN> <dcd9d4cd-d2ad-3779-615f-e5533d3db0a3@HIDDEN> In-Reply-To: <dcd9d4cd-d2ad-3779-615f-e5533d3db0a3@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Tue, 26 May 2026 08:25:03 -0400 X-Gm-Features: AVHnY4IAEUHXdVzCH2wAbT4WN7Vp-hm0ziqAhL247j-9zo5dNNieF4VHHBEzVHo Message-ID: <CAN+1HbqVtPVYxXjBUKxoWfgzc3O6XYqkm9e2NcHpo1jopA4fjg@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ To: Peter Oliver <p.d.oliver@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000052603c0652b7963e" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.0 (/) --00000000000052603c0652b7963e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 26, 2026 at 8:14=E2=80=AFAM Peter Oliver <p.d.oliver@HIDDEN= uk> wrote: > On Wed, 20 May 2026, Juri Linkov wrote: > > >> Neovim packages bundle their own private copies of the parsers and > queries. > > > > Could 'treesit-extra-queries-path' that you proposed > > allow the users to customize it to point to nvim directories? > > Yes. With my patch, a working example would be: > > (progn > (require 'treesit-x) > (push "/usr/share/nvim/runtime" treesit-extra-queries-path) > (treesit-generic-mode-font-lock-query 'vimdoc)) > > I=E2=80=99m not sure how generally useful this is in practice, however, s= ince > presumably they will sometimes bundle an older, newer, or more customized > versions than the one we expect. > I noticed that in the https://github.com/emacs-tree-sitter/ <https://github.com/emacs-tree-sitter/tree-sitter-langs#highlighting-querie= s> repo which provides bundled pre-built grammars in this section https://github.com/emacs-tree-sitter/tree-sitter-langs#highlighting-queries they say "Most of [queries/<lang>/highlights.scm] are intentionally different from those from upstream repositories, which are more geared towards GitHub=E2= =80=99s use cases. We try to be more consistent with Emacs=E2=80=99s existing conve= ntions. (For some languages, this is WIP, so their patterns may look similar to upstream=E2=80=99s [sic].)" Perhaps this is a sign Emacs should not just accept nvim/github oriented queries and indents. I've experimented a bit with the markdown ones and those highlight (no pun intended) that the grammar is not aligned with robust parsing and editing, and is more aligned with rendering as is our experience leveraging the grammar in markdown-ts-mode. If you took a look at what repo above has done with query files, it might change your mind about how useful they are by default to Emacs users. Or you might not care perhaps in the hope that grammar authors are aware of and care about uses outside of nvim/github and will become more robust over time. --00000000000052603c0652b7963e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Tue, May 26, 2026 at 8:14=E2=80=AFAM Peter Oliver <<a href=3D"mailto:= p.d.oliver@HIDDEN">p.d.oliver@HIDDEN</a>> wrote:</span></div= ></div><div class=3D"gmail_quote gmail_quote_container"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex">On Wed, 20 May 2026, Juri Linkov wrote:<br= > <br> >> Neovim packages bundle their own private copies of the parsers and= queries.<br> ><br> > Could 'treesit-extra-queries-path' that you proposed<br> > allow the users to customize it to point to nvim directories?<br> <br> Yes.=C2=A0 With my patch, a working example would be:<br> <br> (progn<br> =C2=A0 =C2=A0(require 'treesit-x)<br> =C2=A0 =C2=A0(push "/usr/share/nvim/runtime" treesit-extra-querie= s-path)<br> =C2=A0 =C2=A0(treesit-generic-mode-font-lock-query 'vimdoc))<br> <br> I=E2=80=99m not sure how generally useful this is in practice, however, sin= ce presumably they will sometimes bundle an older, newer, or more customize= d versions than the one we expect.<br></blockquote><div><br></div><div clas= s=3D"gmail_default" style=3D"font-family:monospace">I noticed that in the= =C2=A0<a href=3D"https://github.com/emacs-tree-sitter/tree-sitter-langs#hig= hlighting-queries">https://github.com/emacs-tree-sitter/</a>=C2=A0repo whic= h provides bundled pre-built grammars in this section</div><div class=3D"gm= ail_default" style=3D"font-family:monospace"><br></div><div class=3D"gmail_= default" style=3D"font-family:monospace">=C2=A0=C2=A0<a href=3D"https://git= hub.com/emacs-tree-sitter/tree-sitter-langs#highlighting-queries">https://g= ithub.com/emacs-tree-sitter/tree-sitter-langs#highlighting-queries</a><br><= /div><div class=3D"gmail_default" style=3D"font-family:monospace"><br></div= ><div class=3D"gmail_default" style=3D"font-family:monospace">they say</div= ><div class=3D"gmail_default" style=3D"font-family:monospace"><br></div><di= v class=3D"gmail_default" style=3D"font-family:monospace">"Most of [qu= eries/<lang>/highlights.scm] are intentionally different from those f= rom upstream repositories, which are more geared towards GitHub=E2=80=99s u= se cases. We try to be more consistent with Emacs=E2=80=99s existing conven= tions. (For some languages, this is WIP, so their patterns may look similar= to upstream=E2=80=99s=C2=A0[sic].)"</div><div class=3D"gmail_default"= style=3D"font-family:monospace"><br></div><div class=3D"gmail_default" sty= le=3D"font-family:monospace">Perhaps this is a sign Emacs should not just a= ccept nvim/github oriented queries and indents.=C2=A0 I've experimented= a bit with the markdown ones and those highlight (no pun intended) that th= e grammar is not aligned with robust parsing and editing, and is more align= ed with rendering as is our experience leveraging the grammar in markdown-t= s-mode.</div><div class=3D"gmail_default" style=3D"font-family:monospace"><= br></div><div class=3D"gmail_default" style=3D"font-family:monospace">If yo= u took a look at what repo above has done with query files, it might change= your mind about how useful they are by default to Emacs users.=C2=A0 Or yo= u might not care perhaps in the hope that grammar authors are aware of and = care about uses outside of nvim/github and will become more robust over tim= e.</div></div></div> --00000000000052603c0652b7963e--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 26 May 2026 12:14:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 26 08:14:33 2026 Received: from localhost ([127.0.0.1]:60263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wRqg5-0001Lo-7Z for submit <at> debbugs.gnu.org; Tue, 26 May 2026 08:14:33 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:59396) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wRqg3-0001Lc-Bs for 81025 <at> debbugs.gnu.org; Tue, 26 May 2026 08:14:32 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4903997fcb5so49450175e9.2 for <81025 <at> debbugs.gnu.org>; Tue, 26 May 2026 05:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1779797670; x=1780402470; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=0zviP80o3ndizFZ5T7jqRuy6wFqfHO2AuNhVtYtiBCA=; b=Qos5i5EBDdZCP452KTmwS/5/3cWvNrasBGjXcF/Puurd4aqDRkzIRgmigfXKuA0dbA cFnhdGjIMLXr1ynr3RyVGyqzdHMVrF7Rj3jJHxbGQK/+QLcFxHbs4ZzvGJBzwwoE9q1D qkj9Fmew+7j8rOVyJdQwqJQFFbzSYqjt5gNmo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779797670; x=1780402470; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0zviP80o3ndizFZ5T7jqRuy6wFqfHO2AuNhVtYtiBCA=; b=TR+UeOIX623NcyyDJroKBMHOzWlDyDQGCho7SyuHOq3QtGrPFU3Tz8v/wiYKXWE0oI Akhz8SRl33ehvVYnS9IFKGXIUHcaoE8A7vHa8+yTt2NLjQyJVp+ztQxxYWwhk6fyTbRC COYiOz2jOzohTYrk4R80Nn73pFUboCE27+Y7FbJ97G9s+E3yv2suMWlSoOhVU13lUx1i Z027L3RCFK6u/rBUsKdkzXaORaxDJMYoBF24frO+rsqbF3yFnxsM5AaFbbuReH94Ws8E XUipxuBpeayaWnTdRFWCSAOpJ8IlmCXvcPp8KwEe1HtNd1Wdk3ZH4pOoRq0aE1Mbc6Rg Ke5Q== X-Forwarded-Encrypted: i=1; AFNElJ+TxuS77pN5X317Q1Z60sEfYl+mGco31Vz2VLfyRDcHXf/Pug9gMJ27Rstujcz9O7MXZ9Quvw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwYuThlnYFxpxn2MjpnIds1c1UTywtDyb+UPj0nR2r9yZJYiuSf Ehx1t1xlKvP+1XCr96qTAqWHXPV0qTBnjXd+rLhmDS9EgG40Yr7JiydHbaSEC4Xw+w== X-Gm-Gg: Acq92OEJg5u6lIdQMwnHGV6MQjOQSSV7Zo17oJEWmtXctfnisPCgCkkdDakIaZ7K9/O fAuc8RwT/CfWZ3okeRSvFval0vBP5Q8xriLmF5LMZkXDS2AMvPqKmvOqEaoiMOU/MYzhiEQ246u LjuLxuAWoASRJiLSKml5B9IF/FULzybx+YErpAIzMz8mg5YeriburfJloy+t7nR5wQdJLT5epnO pE8bZutxq9/+2Qn+NFWEEKYNTf90rP01ZiXk1ZBdM3v1hB0Vz5hXkHupS7Fm98LR2jyFB6nZgZO y75Hts6QALuAgS80y7Jy8BUnG8NpNeZSvDe1IB+s6/yyNGToNwTt1xmpFkHYIVTW62eh5aZiglL ZsLL/a3Y6Yc+kYDwaL2Wk7rkoNn+ATipl3+WkQoFQEbYynT51xF3WbRelgDmVmdWImjYyo/M0bv 4jP7Yzqa17E/UMQMrxoWAYiLd0E5kEHbyyFz2hvBFX0Ctu6Fhgiw/cPMAm3WyJgdH3g2CtcD514 P87VjOL97uw0vn1w5bPEn4w1TTemA4uo3epVg== X-Received: by 2002:a05:600c:8b41:b0:490:4a1b:d8d4 with SMTP id 5b1f17b1804b1-4904a1bd912mr269903605e9.27.1779797669752; Tue, 26 May 2026 05:14:29 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4904179826dsm143820355e9.2.2026.05.26.05.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 05:14:28 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64QCERGB009896 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 26 May 2026 13:14:27 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64QCEP8e009893; Tue, 26 May 2026 13:14:27 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Tue, 26 May 2026 13:14:25 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87ik8i85wc.fsf@HIDDEN> Message-ID: <dcd9d4cd-d2ad-3779-615f-e5533d3db0a3@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN> <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN> <87ik8i85wc.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-1591941931-1779797667=:5353" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, =?ISO-8859-15?Q?St=E9phane_Marks?= <shipmints@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-1591941931-1779797667=:5353 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 20 May 2026, Juri Linkov wrote: >> Neovim packages bundle their own private copies of the parsers and queries. > > Could 'treesit-extra-queries-path' that you proposed > allow the users to customize it to point to nvim directories? Yes. With my patch, a working example would be: (progn (require 'treesit-x) (push "/usr/share/nvim/runtime" treesit-extra-queries-path) (treesit-generic-mode-font-lock-query 'vimdoc)) I˘m not sure how generally useful this is in practice, however, since presumably they will sometimes bundle an older, newer, or more customized versions than the one we expect. -- Peter Oliver ---1463811584-1591941931-1779797667=:5353--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 24 May 2026 05:18:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 24 01:18:13 2026
Received: from localhost ([127.0.0.1]:58676 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wR1Dx-00089Z-6s
for submit <at> debbugs.gnu.org; Sun, 24 May 2026 01:18:13 -0400
Received: from mail-dl1-x122d.google.com ([2607:f8b0:4864:20::122d]:43081)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <casouri@HIDDEN>) id 1wR1Du-00088t-H3
for 81025 <at> debbugs.gnu.org; Sun, 24 May 2026 01:18:04 -0400
Received: by mail-dl1-x122d.google.com with SMTP id
a92af1059eb24-132c338a537so5585122c88.0
for <81025 <at> debbugs.gnu.org>; Sat, 23 May 2026 22:18:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1779599881; x=1780204681; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=L4dMNLiiFw7nUKxNcFvlZzgWBtLuGr3wKMra3kYNVJI=;
b=duE5SbhFIsrIAFJebiqJbAx4gm+47ulFu9jcj+MZG1o9sYuctCRvlf9XLwKKpGzbqy
2wgTNXFQWUrKE/jGh9w7AqORmKOA81CK6gy6MDCsVEVIu/FhRHaMIqO62aZlUqmafUeA
7T/xUmHv3+fSU4oiDxYNm5U/w1+mqs/wBSh/cmQtv0tHA/WBeGt4NbHGE6l/59IIdqFi
q3AIfPRQ8Xi2BTyj+UXh290Mf0FfuMGCpNkXvs8375NMyG0sflQiv8Rs1dhNli1s3Sxe
BpiU32fhn/oV8Rpan2033bZkuSVzbDXBk9gUPu63AxgqU1N6B8Zp4ekygOEMBqctrguW
sIrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1779599881; x=1780204681;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=L4dMNLiiFw7nUKxNcFvlZzgWBtLuGr3wKMra3kYNVJI=;
b=BC/vYzUvzApLfmFQfiQkyr1Yx9cJ5JecVBhOG4fMvP7M/qaX+WZBBrExHJaMl2Xtx5
MhSJYr7OKp6sAU5a8ThSMldiUEdQIiO6utCiPUKCtwrWBE6H7oYbOg0/FEvwohBnk4lK
SPXmwL6dxVaodxsFhRsYr5TwIXEnKC0HpOimfJdNjakHhJpNBT6aj41gdma+jP7O3Rf4
41U8lXC7mS0uVYObEHeqmlo5W7lQq/BaA5qTlC3th7Iu/wq5bQQY3S//VC01Bq/MbsPq
EyW2W2++M990urGfXk7/IlPvcIdV0QTT0F8x7F0GE/fWVWhbBCDo/bcofl5gS8cgJJgP
Gc8Q==
X-Forwarded-Encrypted: i=1;
AFNElJ8V/X7BCVk2vQalr2L+r8sSc6pDIBH6BzJJXns1gpYDlcYZs5+7pos38SknvDYIFLD7qhWuyw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyXz1gdin7ZLGZvyLz4So9sp3w862US/ocbqcF/VyDeP5Zoye2i
/d8/0OubgsfhuPVKXHPulO7pWA1ZOZiyODspubqzCwwyfMGgigphWDeE
X-Gm-Gg: Acq92OFkLeeRnjKbDfxy0HjcC0YkAvTay5YttbMsnI0+6F/izJJm6LskaX3ekAt+d6p
YwYzrLvTgMRCE3tx2DXDOWxs8pmAgA6a4M3SdInsy0QvOl4CTT42HEPqAEMOBs2p72McoYU5xAz
pGA6JLz/B+FyIJhNEnGCb9Ls0Q2BUK5LpR4/uFVtvpRYQJj+XZngrLNE8mJ0WOkuhIK8or6CF5z
C+YW/rf4CueqgusPM6zBG3RvKJGZjv1afDQXHXNy2ApQD0sba1KN0drv6ZiJQJXNLr6bsAPA9uF
BUWyPeI2TxxYe04EpbWAnbVrZ8ybM0qASGHL4uOfe40d+QGZOgbfjX4yL9thk7AccuyiyJp0OgR
/R/YCcnsbl0XP9zWJzIodPnaw/VGCgiLZxOosAi8Gh+VYqtp4Y2/JNZXdk902tsioGhRtJdWuqP
d982CU0qbE3vnXv/+ZUQbmY1QrUpyB0Y9AqEOv3qyUmaN1dA==
X-Received: by 2002:a05:7300:7c10:b0:2df:498e:811b with SMTP id
5a478bee46e88-30430522ff5mr6125443eec.7.1779599881010;
Sat, 23 May 2026 22:18:01 -0700 (PDT)
Received: from smtpclient.apple ([2601:645:c686:b320:34b5:5eba:c339:b60c])
by smtp.gmail.com with ESMTPSA id
5a478bee46e88-3045245fbeesm4973207eec.30.2026.05.23.22.18.00
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 23 May 2026 22:18:00 -0700 (PDT)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\))
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
From: Yuan Fu <casouri@HIDDEN>
In-Reply-To: <CAN+1Hbr8ySUPoOuvVd7Nu8s5QCA8uS+qw1WAjaXvK-AehOdktg@HIDDEN>
Date: Sat, 23 May 2026 22:17:49 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <0C981299-26B5-4292-B67F-A01D73F9EED6@HIDDEN>
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<87ecjgd7is.fsf@HIDDEN>
<c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
<87a4u3nrl4.fsf@HIDDEN>
<14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN>
<87jyt60ydj.fsf@HIDDEN>
<5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN>
<ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN>
<e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN>
<66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN>
<1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN>
<CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN>
<1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN>
<CAN+1Hbr8ySUPoOuvVd7Nu8s5QCA8uS+qw1WAjaXvK-AehOdktg@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
X-Mailer: Apple Mail (2.3826.700.81)
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81025
Cc: Rahul Juliato <rahul.juliato@HIDDEN>,
Peter Oliver <p.d.oliver@HIDDEN>, 81025 <at> debbugs.gnu.org,
Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)
> On May 19, 2026, at 9:52=E2=80=AFAM, St=C3=A9phane Marks =
<shipmints@HIDDEN> wrote:
>=20
> On Tue, May 19, 2026 at 12:07=E2=80=AFPM Peter Oliver =
<p.d.oliver@HIDDEN> wrote:
> On Mon, 18 May 2026, St=C3=A9phane Marks wrote:
>=20
> > For people who use the same installed tree-sitter grammars across =
their
> > editor landscape, Emacs, neovim, etc. what is the recommended =
configuration
> > for that?
>=20
> I=E2=80=99m not sure that there are any such people. Neovim packages =
bundle their own private copies of the parsers and queries. E.g., on =
Fedora:
>=20
> $ rpm -ql neovim | egrep 'parser|queries'
> /usr/lib64/nvim/parser
> /usr/lib64/nvim/parser/c.so
> /usr/lib64/nvim/parser/lua.so
> /usr/lib64/nvim/parser/markdown.so
> /usr/lib64/nvim/parser/markdown_inline.so
> /usr/lib64/nvim/parser/query.so
> /usr/lib64/nvim/parser/vim.so
> /usr/lib64/nvim/parser/vimdoc.so
> /usr/share/nvim/runtime/queries
> /usr/share/nvim/runtime/queries/c
> /usr/share/nvim/runtime/queries/c/folds.scm
> /usr/share/nvim/runtime/queries/c/highlights.scm
> /usr/share/nvim/runtime/queries/c/injections.scm
> /usr/share/nvim/runtime/queries/lua
> /usr/share/nvim/runtime/queries/lua/folds.scm
> /usr/share/nvim/runtime/queries/lua/highlights.scm
> /usr/share/nvim/runtime/queries/lua/injections.scm
> /usr/share/nvim/runtime/queries/markdown
> /usr/share/nvim/runtime/queries/markdown/folds.scm
> /usr/share/nvim/runtime/queries/markdown/highlights.scm
> /usr/share/nvim/runtime/queries/markdown/injections.scm
> /usr/share/nvim/runtime/queries/markdown_inline
> /usr/share/nvim/runtime/queries/markdown_inline/highlights.scm
> /usr/share/nvim/runtime/queries/markdown_inline/injections.scm
> /usr/share/nvim/runtime/queries/query
> /usr/share/nvim/runtime/queries/query/folds.scm
> /usr/share/nvim/runtime/queries/query/highlights.scm
> /usr/share/nvim/runtime/queries/vim
> /usr/share/nvim/runtime/queries/vim/folds.scm
> /usr/share/nvim/runtime/queries/vim/highlights.scm
> /usr/share/nvim/runtime/queries/vim/injections.scm
> /usr/share/nvim/runtime/queries/vimdoc
> /usr/share/nvim/runtime/queries/vimdoc/highlights.scm
> /usr/share/nvim/runtime/queries/vimdoc/injections.scm
>=20
> > How does neovim resolve highlights.scm file locations?
>=20
> The Neovim documentation (https://neovim.io/doc/user/treesitter/) says =
that it searches the same directories as it does for the parser =
libraries. On this system, those are:
>=20
> { "/usr/share/nvim/site", "/usr/share/nvim/runtime", =
"/usr/share/nvim/runtime/pack/dist/opt/netrw", =
"/usr/share/nvim/runtime/pack/dist/opt/matchit", "/usr/lib64/nvim" }
>=20
> > How does the tree-sitter CLI highlight command resolve them?
>=20
> Curiously, it requires parts of the source code of the parser to =
function. =
https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#overv=
iew
>=20
> I suspect the Tree-sitter developers perceive the world as being one =
of custom-built single-purpose blobs, rather than one where everything =
is a potential component of a multipurpose operating system assembled =
from reusable packages.
>=20
> I can see that 'treesit-language-source-alist' supports a =
:copy-queries keyword that would install such files alongside the =
binaries. Should we be revising entries like this:
>=20
> (add-to-list
> 'treesit-language-source-alist
> '(markdown
> "https://github.com/tree-sitter-grammars/tree-sitter-markdown"
> :commit "413285231ce8fa8b11e7074bbe265b48aa7277f9"
> :source-dir "tree-sitter-markdown/src")
> t)
>=20
> To include :copy-queries to populate highlights.scm and =
injections.scm?
>=20
> Then we can rely on Emacs's own infrastructure the same way neovim =
does and without anything new?
IME those files that come with the grammar are very basic and not very =
useful for a full editing experience. OTOH the ones maintained by nvim =
and friends have a bunch of custom predicates like set! such that Emacs =
can=E2=80=99t make use of easily. Plus Emacs uses a different =
indentation pattern than their indent.scm does.
Yuan=
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 20 May 2026 15:51:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 20 11:51:15 2026 Received: from localhost ([127.0.0.1]:56328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wPjCU-00074O-Sd for submit <at> debbugs.gnu.org; Wed, 20 May 2026 11:51:15 -0400 Received: from mail-vk1-xa32.google.com ([2607:f8b0:4864:20::a32]:51663) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1wPjCS-000748-P4 for 81025 <at> debbugs.gnu.org; Wed, 20 May 2026 11:51:13 -0400 Received: by mail-vk1-xa32.google.com with SMTP id 71dfb90a1353d-57516e08474so3939342e0c.3 for <81025 <at> debbugs.gnu.org>; Wed, 20 May 2026 08:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779292272; cv=none; d=google.com; s=arc-20240605; b=QAO/RVhy9pIPAo3bOTCoBIOGJwNDrvqvD0iipS4dcIR+g35eGKbBFHEVbW9unAtA34 QjlaTOPlCy7c1QZIEHPuxZqTn1x6lV2Zo7lPxJ5XLwS8GDkImALEBN/5IDVxNnbzwg9z QcEI6IXglDSgYolso9tknrm42KpEK4uoxSHtokPDvRWrj9JpV+XxMJxYn+PvxoikXW2I uQG5bpRMGHOGeKAXjo2R2Rjjg+bxaubVYMr1umFH4wi0VYZO0VUSBTKZuJ7evuhb3SF3 f9cvoK4cqYP3mooF2A4HUbsHv4WgH8ShdrlFIvqsqlM5Z+o3Jld+B01jbCQGwprR4ZKw ZfiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=IH4edkzXOFnbn2k13icsY0xp2TRez1uhPAnZDxviqSM=; fh=WLo39SdDBRlFlmjuMiNXhl0QBWMTZXgR6myxFi0rBYA=; b=F3FLulDxo5M8oy2JaVfKHJXBOordlU/nG5p/xlfMos8Ay+Hgw3W8OuSJzs+Pg3FJjV y7Oncf4RhMzLdf2HBw4zBeDrkf+MlqEZO6Uzgb1SXRqAMiSnGqgFuargtZ82cM1EqgkM VY1iY7BwS5jNcBv+JbtEQbCQA+aCT7ElRnEyMPHxywYibq8ZlQQdRWU42w09HzmV2+gn jN/25kpqdQgxae2jsoXD2Wl0Jw/RM/fxo8EPhReDmABcRACMQgpG6prmobdUX7Pi5xZB UNjH5SILF8V5tY2vLSsDMwA3Og1ePq6T81BfsHSqdwF+q6CuX6ypnHlsS7ESGwNgqRyD l8MQ==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779292272; x=1779897072; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IH4edkzXOFnbn2k13icsY0xp2TRez1uhPAnZDxviqSM=; b=r0+PFU5tgrxvL+LA5tHm5r6J+iGfFj0IXlIsDf0NxOJPHOEJRs87Sr1HLGTlNrDzHa y0bpg/JmL/uDQnPXB/soHk5rFTR2pxWVVdzMIt7w/tWQmW9xginW5rEn/F5eerwqQtWj K5fO+ZZt3uEaCJS/JYMQEPht/wadqGqPICtyYjhRkrCJwmOWztA8jUnAg3+Zy3bqsUT8 ccyOOpkWfljkW4sH8z3UTfpcsF6lExCYvxCxrLMy5/cw9FZRMW7+ydD0hGXZJzDcWJSV hXQvm4S3sFbkS0sW9zpYO3TrxfU4Yay8PyN8TPNP9nzzfjyDCHSSnbbjoH7l48kaTEEo w1mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779292272; x=1779897072; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IH4edkzXOFnbn2k13icsY0xp2TRez1uhPAnZDxviqSM=; b=dL8XKC1frFtlFB55+3H6cldhwRx1N2qBnib+b1+qBytAJNc4MQJ14qu4KrMxrRty2h csr1LIoD1OvPAsluS42vtMKqCIS+ig2b2PXTtPBowdC11F8On+mfDXyk6z46DnOnAQO/ XROZYyUGmVcMVv51NAwSKZkdGj6E7v4FVnAnLi0udNyrnwT8LsM2b1x10ecYOZ5HR/Gn 5IXUAauNROq+lwU98SitVzX20EewS6DEpu4NCDu6TYFuFO2VSK/nGZkWOIn+yVZnBr7v AsBonjDnCBJ1j0+E9/lvkOLMjIYDr8bumTb6vnod8Q9t7XQrr0/gc3ekYoeILGxkXwlQ 3DHw== X-Forwarded-Encrypted: i=1; AFNElJ/xx+ZpHmQHlXjfLE44lJnsaNlbY+z1fU/a0XrMF3wKd5pxvT38rPgJ0ifc9GEo8RHY8Xeqgw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw10t4mB1s0+GD2A8nTG+HbnFrK61VgEum7+JpohDKYs1qjW45u xzNiuJS4m5Jk+tmNItwPMNLsRGLvLzxa9gAVWkD3Sb66ur15H0zEy+SQm3g7jHRjMFbpribSR5j OZO1bvedDO0bd6HIFwPC4bkD0GdULylw= X-Gm-Gg: Acq92OHD75ZBDgnI+hWETkPy72Cvb0WwvK4gALPSnaFyt0SKaGDZd7wrJG88mBOqxih /W5JIc352EmAPw83MBNaBIDsMbh6n4RyolQOQNcjZ4B3g3eZIzLtJ+EG1I740i3Z5L4p0nZdb9B J0HpE6t26/f0VBNi3YUo0WYndfmhxrAetBv7uK5xapBBpAujWXkLTIjEYSmJ6u6wS/X4odAgkQf /beCbHDHNj+hDHPcwH/ArpV2m+PEeIR+Xd7oq43ZpKNOnrsdsC1eh3R08albfKDW92kslTf7eft TdUz/A5FkIEb8LXUIwGW3hY4sR06nViIHRww8d5jpAvkdmUBHqZrcdNY2Y30Zs6E0MbMGol7Cbn vKKHy03LuAaj35qW1rtvhBt8a1Giy6mdYE/DYIumqZwI/KC7+ X-Received: by 2002:a05:6122:338f:b0:56d:31e1:2c9c with SMTP id 71dfb90a1353d-5760be39b65mr16276219e0c.3.1779292271842; Wed, 20 May 2026 08:51:11 -0700 (PDT) MIME-Version: 1.0 References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN> <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN> <CAN+1Hbr8ySUPoOuvVd7Nu8s5QCA8uS+qw1WAjaXvK-AehOdktg@HIDDEN> <87zf1u863h.fsf@HIDDEN> In-Reply-To: <87zf1u863h.fsf@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Wed, 20 May 2026 11:51:00 -0400 X-Gm-Features: AVHnY4I0SPSy2KEIykqdqrHkD5_xl5g-6qeakrEAVoCqgnKt2b_un6IL_PlalXE Message-ID: <CAN+1Hbp37cUJO2kSaat6HX86BED_j=_n2pxvq8g7uEbcpmwR_w@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ To: Juri Linkov <juri@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000d09916065241c30c" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 81025 Cc: Rahul Juliato <rahul.juliato@HIDDEN>, Yuan Fu <casouri@HIDDEN>, Peter Oliver <p.d.oliver@HIDDEN>, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.0 (/) --000000000000d09916065241c30c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 20, 2026 at 11:32=E2=80=AFAM Juri Linkov <juri@HIDDEN> wrot= e: > > I can see that 'treesit-language-source-alist' supports a :copy-queries > > keyword that would install such files alongside the binaries. Should w= e > be > > revising entries like this: > > > > (add-to-list > > 'treesit-language-source-alist > > '(markdown > > "https://github.com/tree-sitter-grammars/tree-sitter-markdown" > > :commit "413285231ce8fa8b11e7074bbe265b48aa7277f9" > > :source-dir "tree-sitter-markdown/src") > > t) > > > > To include :copy-queries to populate highlights.scm and injections.scm? > > > > Then we can rely on Emacs's own infrastructure the same way neovim does > and > > without anything new? > > markdown-ts-mode has an explicit list of font-lock rules > in 'markdown-ts--treesit-settings'. :copy-queries is intended > only for generic ts modes without a special package file with mode. > That wasn't my point. --000000000000d09916065241c30c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Wed, May 20, 2026 at 11:32=E2=80=AFAM Juri Linkov <<a href=3D"mailto:= juri@HIDDEN">juri@HIDDEN</a>> wrote:</span></div></div><div clas= s=3D"gmail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">> I can see that 'treesit-language-source-alist' = supports a :copy-queries<br> > keyword that would install such files alongside the binaries.=C2=A0 Sh= ould we be<br> > revising entries like this:<br> ><br> > (add-to-list<br> >=C2=A0 'treesit-language-source-alist<br> >=C2=A0 '(markdown<br> >=C2=A0 =C2=A0 "<a href=3D"https://github.com/tree-sitter-grammars/= tree-sitter-markdown" rel=3D"noreferrer" target=3D"_blank">https://github.c= om/tree-sitter-grammars/tree-sitter-markdown</a>"<br> >=C2=A0 =C2=A0 :commit "413285231ce8fa8b11e7074bbe265b48aa7277f9&qu= ot;<br> >=C2=A0 =C2=A0 :source-dir "tree-sitter-markdown/src")<br> >=C2=A0 t)<br> ><br> > To include :copy-queries to populate highlights.scm and injections.scm= ?<br> ><br> > Then we can rely on Emacs's own infrastructure the same way neovim= does and<br> > without anything new?<br> <br> markdown-ts-mode has an explicit list of font-lock rules<br> in 'markdown-ts--treesit-settings'.=C2=A0 :copy-queries is intended= <br> only for generic ts modes without a special package file with mode.<br></bl= ockquote><div><br></div><div class=3D"gmail_default" style=3D"font-family:m= onospace">That wasn't my point.</div></div></div> --000000000000d09916065241c30c--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 20 May 2026 15:32:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 20 11:32:50 2026 Received: from localhost ([127.0.0.1]:56137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wPiuf-00032S-Bu for submit <at> debbugs.gnu.org; Wed, 20 May 2026 11:32:49 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:39138) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wPiuc-00030x-Oc for 81025 <at> debbugs.gnu.org; Wed, 20 May 2026 11:32:47 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4gLFsg4Z6yz9vLy; Wed, 20 May 2026 17:32:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1779291159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YNMpZyOwW9WkFiWsaNDEYaz2e3/GsV2IvURDPd9w7sA=; b=pxw1PXFlWQG1XVD9hB/MX8Nm1AkVMwjMYk4iQG6xKo0ObXW4ACoaXA7kAId5MF6+wLf2uD qVHnMYKLk6GuNMoFeqpwdDwvfUdk1O9huz3AvqzKTp6wGxPyBxrc+UL+VSy10dY6VAYWgT vsMTSSQhj3gZV1MK07bDf8hyWgSOOYaS01qjHeD8mVeA2qF8tVIuI/zPX0Nj4mIWy+U6/0 +G2omml448Gb7vM3WD3/SYW2YB0p4m/nWQq3IoFd8kZywoQLox7J5exiOLVLenaQjRMJ0R ZFvFus/tGcRfwCMO132zSyxwQPOVzHbleueVkP54KANaatm9ZdoC6YmAKxOxRA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN From: Juri Linkov <juri@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN> <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN> Date: Wed, 20 May 2026 18:30:03 +0300 Message-ID: <87ik8i85wc.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4gLFsg4Z6yz9vLy X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, =?iso-8859-1?Q?St=E9phane?= Marks <shipmints@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Neovim packages bundle their own private copies of the parsers and queries. E.g., on Fedora: > [...] > /usr/share/nvim/runtime/queries/markdown > /usr/share/nvim/runtime/queries/markdown/folds.scm > /usr/share/nvim/runtime/queries/markdown/highlights.scm > /usr/share/nvim/runtime/queries/markdown/injections.scm > /usr/share/nvim/runtime/queries/markdown_inline > /usr/share/nvim/runtime/queries/markdown_inline/highlights.scm > /usr/share/nvim/runtime/queries/markdown_inline/injections.scm Could 'treesit-extra-queries-path' that you proposed allow the users to customize it to point to nvim directories? E.g. would this work: (push "/usr/share/nvim/runtime/queries/" treesit-extra-queries-path)
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 20 May 2026 15:32:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 20 11:32:49 2026 Received: from localhost ([127.0.0.1]:56135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wPiue-00032H-Jt for submit <at> debbugs.gnu.org; Wed, 20 May 2026 11:32:49 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:59186) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wPiua-00030X-7k for 81025 <at> debbugs.gnu.org; Wed, 20 May 2026 11:32:45 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4gLFsb4qbCz9v3c; Wed, 20 May 2026 17:32:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1779291155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YrcHbtWjcJ2ElG76QvsYTDKMZ0a0WPwAX95YFvHJZzI=; b=BgxFifMb1jIb3EatE9pSQoVumpNf4zFxYGRLsuaaTBWov4BpsvT/OY73F/8av5zB+bWuKA mDOauRKQkwcyu1DodXgMnCAkUtnPTS3M6a/XJhP4sLBtrYG/XKm5PoKj2yFpxglLWNlDAH t3v0ygLbCBKuKA1rHctYbxppjtFtHc4qAmUzjLoGBZnrarDGk4U5eGkxb7XhahNhJAZ4Am TtviEyyU7MXcgrh8U/0rZHLChbunHj0XImSMjwl3U3lRV6vJKJApw9EGYPweDp++UD36B3 MgHvKfnidkplwtIwJVHFqH9r2VKi/eg5rrwtAgob1hmF/8pmgMIBLOSJFffbfw== From: Juri Linkov <juri@HIDDEN> To: =?iso-8859-1?Q?St=E9phane?= Marks <shipmints@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <CAN+1Hbr8ySUPoOuvVd7Nu8s5QCA8uS+qw1WAjaXvK-AehOdktg@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN> <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN> <CAN+1Hbr8ySUPoOuvVd7Nu8s5QCA8uS+qw1WAjaXvK-AehOdktg@HIDDEN> Date: Wed, 20 May 2026 18:25:46 +0300 Message-ID: <87zf1u863h.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: Rahul Juliato <rahul.juliato@HIDDEN>, Yuan Fu <casouri@HIDDEN>, Peter Oliver <p.d.oliver@HIDDEN>, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > I can see that 'treesit-language-source-alist' supports a :copy-queries > keyword that would install such files alongside the binaries. Should we be > revising entries like this: > > (add-to-list > 'treesit-language-source-alist > '(markdown > "https://github.com/tree-sitter-grammars/tree-sitter-markdown" > :commit "413285231ce8fa8b11e7074bbe265b48aa7277f9" > :source-dir "tree-sitter-markdown/src") > t) > > To include :copy-queries to populate highlights.scm and injections.scm? > > Then we can rely on Emacs's own infrastructure the same way neovim does and > without anything new? markdown-ts-mode has an explicit list of font-lock rules in 'markdown-ts--treesit-settings'. :copy-queries is intended only for generic ts modes without a special package file with mode.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 19 May 2026 16:52:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 19 12:52:59 2026
Received: from localhost ([127.0.0.1]:46213 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wPNgc-0005Wp-7a
for submit <at> debbugs.gnu.org; Tue, 19 May 2026 12:52:59 -0400
Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]:48424)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1wPNgY-0005WZ-51
for 81025 <at> debbugs.gnu.org; Tue, 19 May 2026 12:52:52 -0400
Received: by mail-vs1-xe32.google.com with SMTP id
ada2fe7eead31-63124ac76f5so1052363137.1
for <81025 <at> debbugs.gnu.org>; Tue, 19 May 2026 09:52:50 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1779209569; cv=none;
d=google.com; s=arc-20240605;
b=GeOibCaHMw2SmcmjEur+NNaJpEq4i8zXWmhDUeA4OCwpdxxZNeCGEBpSxEgJturomJ
/uuS6DS15V0UXoJTftPw7YqmMUryUj4LQ63iqxeYJm5KHtQRa6buyNDNeN55DIoZ9BDK
JcA8ywrcTOr1esuQyWVyXw4lgOzICrFPozfHLvM3HaDexMO1F+73FbhYi+yj7GyoIwPn
Cap8V4hSfFCQs4YWilmb4vd77JyOi7M1maAHUW+hrg+69g68DXovOEAUXpf9LHBAWFc/
WjP8i4jso1PUo2KZ6lYAzm9B6sPCmU1czEqsWQ5PSWJKEBbvED31V/hcOZSgu3VGHLHb
ni7w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=dO5pZLMCKIpKNuYzcowduSrUkFVnKEYV/kFz4nZu0OI=;
fh=9+UxNTlYm6o1fFpqFptorfJK8/k8/QjzSgtMek18SRU=;
b=GO1DInmeGPxuSpLV5zu+qgl4wGSVRw4eQ7eW0i6PvZ9b10DEAOvCShXwWbjA0MNcU5
JZl8VCdLpB2fTNL6wgiRQGfyQSWg+iy9M9OuDuEPjjbF6OyA+YyVp+p2ykuZTSFnhDDD
uxfbf6nD/tri7OzLLDLNTlrG118s17AFwDJRpjmC37O1q1Av3+VFA64XFNNmXq0r6Ask
/hXV+9vos4bDMh5VCjKrDqgqZMlFHI+byTzI/r8v/1tAkbpu5Dk2lNGD8VQR8N5Wnrhj
B64lfz+tPcaEGu4Zwv6G5slQJJNjO81RBWM3+/jd/kqZfRR+OZKXE4TsJgqJyi3cMARy
79Pw==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1779209569; x=1779814369; darn=debbugs.gnu.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=dO5pZLMCKIpKNuYzcowduSrUkFVnKEYV/kFz4nZu0OI=;
b=PUFVstnov8ZG2JoLpLxch3IeoNKHw+xpQeOLnYgBznQITgOik05KjlmtsZ+aV5kKXI
OrxUpyhmxVVGVuAYVfi7kAbO4tV7g6RlkAdORnG/ifqBV0S/LxaayLon1nd0Ox4jOXR1
1iBommW1/3l5BmFcQH1zgRCHLlvgUoKz8McJdysnFQJDcDiH1PhYoDm3L1C5Z/NLttT/
0J6XvJf3mOVmSCzFbTs9gloJp21Rut8s983U401OAcMjFL+WlrqEZcMoDs549gs60sgD
eBd5kIAhsHDZyMhsUTa7SkuRTEtFpNQ+mhy/i5WflroiQqD9CFEXB2FAcT3zzQLtt8iA
ZLDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1779209569; x=1779814369;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=dO5pZLMCKIpKNuYzcowduSrUkFVnKEYV/kFz4nZu0OI=;
b=qeTR0IqwWnQys55ddul3HGhGatFBvfgZ6ZV7hftucabMgI/fnJB0YrPPVBb3UCYgJd
vb67QOegKFREPipu/MzKBHPV/ja0XCVCjMMHZZmQEzEv3v4rnOa8WNjtwlx5SQem52gY
j3qA8wapb+bm40CrtFyKm2yh4Tr2Rn1ZSOuJ5SnxIWES5UTlLTjn/kZXjqvKftDWtgVq
NpGj1teu6J5LaqPyYaHCHtzCVfJjgTZV5/+4rRrdZDA9ssTePAzGkeYB9wbiwTwLLvcx
pRgRLtWzdUnMflOT6L/Xwy4k+ocJ9NKu35AfnNfWFTjR55sCKccqs/+v7Sr/Oay+l69W
L6pA==
X-Gm-Message-State: AOJu0YxY9DCoJeKy6YTKi+8qC9yLSZNIdpIP0l9V5SFHlc1pZqQBlhdB
UPIT6fUn7w79/Rj4P7VIKETFupPp2RhnDvjBCv4KLpAttntBcumWCDvzo86eME4UVh6bbetP0WS
m/A79PCPmDQ7U2PTYoznngri27ooftPc=
X-Gm-Gg: Acq92OGmyZkZBZcO6oy2fY6a/l03HOQBRNPUJK9ms/5KiPuqZYl0GZza0GNaUda8+6h
68Cg4DyHMdBZvxsR/YlnqyDIEg5sMSmQtrB+N6kuoWN2C6Z3YUHwhXZrcVRBC51iw4hIHjrwH5c
zRxVRZhqoWq9IsDuH9c6xwrIivcg2mqmaxy0uCrQhqX9JlO6EAegtSuBmND7BRi8SBSpT0e43DH
OYpt42BbJgUYbgBsf5AeQdYEctflYaSCvEGvxk6dJ7ymw2gbd4e22RCN8kzK1JDr2HFpR9i5MZB
7yNfO6yXOuJdHOqeMUXC8iKZHaWmvZNZd/43U9dw8IgvqXrmvu2wSQzSwNU5rcLutaSoFp4JCcZ
XAlVyNVfRpE3hKDKSvNcNal4LPgIfugm1MRY/6lgj/Sl9rVR66N6Dnh1+hlw=
X-Received: by 2002:a05:6102:5806:b0:604:f849:462e with SMTP id
ada2fe7eead31-63a3f388109mr9646343137.25.1779209569179; Tue, 19 May 2026
09:52:49 -0700 (PDT)
MIME-Version: 1.0
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<87ecjgd7is.fsf@HIDDEN>
<c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
<87a4u3nrl4.fsf@HIDDEN>
<14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN>
<87jyt60ydj.fsf@HIDDEN>
<5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN>
<865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN>
<861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN>
<86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN>
<86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN>
<CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN>
<1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN>
In-Reply-To: <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Tue, 19 May 2026 12:52:37 -0400
X-Gm-Features: AVHnY4LybnfzMopcOTPSZsaBy7GALvW5rrBnW7ksbA_kbzWkFVJEXwRw9J37MkI
Message-ID: <CAN+1Hbr8ySUPoOuvVd7Nu8s5QCA8uS+qw1WAjaXvK-AehOdktg@HIDDEN>
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
To: Peter Oliver <p.d.oliver@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000005a1bb906522e8233"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81025
Cc: Rahul Juliato <rahul.juliato@HIDDEN>, Yuan Fu <casouri@HIDDEN>,
81025 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)
--0000000000005a1bb906522e8233
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Tue, May 19, 2026 at 12:07=E2=80=AFPM Peter Oliver <p.d.oliver@HIDDEN=
.uk>
wrote:
> On Mon, 18 May 2026, St=C3=A9phane Marks wrote:
>
> > For people who use the same installed tree-sitter grammars across their
> > editor landscape, Emacs, neovim, etc. what is the recommended
> configuration
> > for that?
>
> I=E2=80=99m not sure that there are any such people. Neovim packages bun=
dle their
> own private copies of the parsers and queries. E.g., on Fedora:
>
> $ rpm -ql neovim | egrep 'parser|queries'
> /usr/lib64/nvim/parser
> /usr/lib64/nvim/parser/c.so
> /usr/lib64/nvim/parser/lua.so
> /usr/lib64/nvim/parser/markdown.so
> /usr/lib64/nvim/parser/markdown_inline.so
> /usr/lib64/nvim/parser/query.so
> /usr/lib64/nvim/parser/vim.so
> /usr/lib64/nvim/parser/vimdoc.so
> /usr/share/nvim/runtime/queries
> /usr/share/nvim/runtime/queries/c
> /usr/share/nvim/runtime/queries/c/folds.scm
> /usr/share/nvim/runtime/queries/c/highlights.scm
> /usr/share/nvim/runtime/queries/c/injections.scm
> /usr/share/nvim/runtime/queries/lua
> /usr/share/nvim/runtime/queries/lua/folds.scm
> /usr/share/nvim/runtime/queries/lua/highlights.scm
> /usr/share/nvim/runtime/queries/lua/injections.scm
> /usr/share/nvim/runtime/queries/markdown
> /usr/share/nvim/runtime/queries/markdown/folds.scm
> /usr/share/nvim/runtime/queries/markdown/highlights.scm
> /usr/share/nvim/runtime/queries/markdown/injections.scm
> /usr/share/nvim/runtime/queries/markdown_inline
> /usr/share/nvim/runtime/queries/markdown_inline/highlights.scm
> /usr/share/nvim/runtime/queries/markdown_inline/injections.scm
> /usr/share/nvim/runtime/queries/query
> /usr/share/nvim/runtime/queries/query/folds.scm
> /usr/share/nvim/runtime/queries/query/highlights.scm
> /usr/share/nvim/runtime/queries/vim
> /usr/share/nvim/runtime/queries/vim/folds.scm
> /usr/share/nvim/runtime/queries/vim/highlights.scm
> /usr/share/nvim/runtime/queries/vim/injections.scm
> /usr/share/nvim/runtime/queries/vimdoc
> /usr/share/nvim/runtime/queries/vimdoc/highlights.scm
> /usr/share/nvim/runtime/queries/vimdoc/injections.scm
>
> > How does neovim resolve highlights.scm file locations?
>
> The Neovim documentation (https://neovim.io/doc/user/treesitter/) says
> that it searches the same directories as it does for the parser libraries=
.
> On this system, those are:
>
> { "/usr/share/nvim/site", "/usr/share/nvim/runtime",
> "/usr/share/nvim/runtime/pack/dist/opt/netrw",
> "/usr/share/nvim/runtime/pack/dist/opt/matchit", "/usr/lib64/nvim" }
>
> > How does the tree-sitter CLI highlight command resolve them?
>
> Curiously, it requires parts of the source code of the parser to
> function.
> https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#over=
view
>
> I suspect the Tree-sitter developers perceive the world as being one of
> custom-built single-purpose blobs, rather than one where everything is a
> potential component of a multipurpose operating system assembled from
> reusable packages.
>
I can see that 'treesit-language-source-alist' supports a :copy-queries
keyword that would install such files alongside the binaries. Should we be
revising entries like this:
(add-to-list
'treesit-language-source-alist
'(markdown
"https://github.com/tree-sitter-grammars/tree-sitter-markdown"
:commit "413285231ce8fa8b11e7074bbe265b48aa7277f9"
:source-dir "tree-sitter-markdown/src")
t)
To include :copy-queries to populate highlights.scm and injections.scm?
Then we can rely on Emacs's own infrastructure the same way neovim does and
without anything new?
--0000000000005a1bb906522e8233
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Tue, May 19, 2026 at 12:07=E2=80=AFPM Peter Oliver <<a href=3D"mailto=
:p.d.oliver@HIDDEN">p.d.oliver@HIDDEN</a>> wrote:</span></di=
v></div><div class=3D"gmail_quote gmail_quote_container"><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">On Mon, 18 May 2026, St=C3=A9phane Marks w=
rote:<br>
<br>
> For people who use the same installed tree-sitter grammars across thei=
r<br>
> editor landscape, Emacs, neovim, etc. what is the recommended configur=
ation<br>
> for that?<br>
<br>
I=E2=80=99m not sure that there are any such people.=C2=A0 Neovim packages =
bundle their own private copies of the parsers and queries.=C2=A0 E.g., on =
Fedora:<br>
<br>
$ rpm -ql neovim | egrep 'parser|queries'<br>
/usr/lib64/nvim/parser<br>
/usr/lib64/nvim/parser/c.so<br>
/usr/lib64/nvim/parser/lua.so<br>
/usr/lib64/nvim/parser/markdown.so<br>
/usr/lib64/nvim/parser/markdown_inline.so<br>
/usr/lib64/nvim/parser/query.so<br>
/usr/lib64/nvim/parser/vim.so<br>
/usr/lib64/nvim/parser/vimdoc.so<br>
/usr/share/nvim/runtime/queries<br>
/usr/share/nvim/runtime/queries/c<br>
/usr/share/nvim/runtime/queries/c/folds.scm<br>
/usr/share/nvim/runtime/queries/c/highlights.scm<br>
/usr/share/nvim/runtime/queries/c/injections.scm<br>
/usr/share/nvim/runtime/queries/lua<br>
/usr/share/nvim/runtime/queries/lua/folds.scm<br>
/usr/share/nvim/runtime/queries/lua/highlights.scm<br>
/usr/share/nvim/runtime/queries/lua/injections.scm<br>
/usr/share/nvim/runtime/queries/markdown<br>
/usr/share/nvim/runtime/queries/markdown/folds.scm<br>
/usr/share/nvim/runtime/queries/markdown/highlights.scm<br>
/usr/share/nvim/runtime/queries/markdown/injections.scm<br>
/usr/share/nvim/runtime/queries/markdown_inline<br>
/usr/share/nvim/runtime/queries/markdown_inline/highlights.scm<br>
/usr/share/nvim/runtime/queries/markdown_inline/injections.scm<br>
/usr/share/nvim/runtime/queries/query<br>
/usr/share/nvim/runtime/queries/query/folds.scm<br>
/usr/share/nvim/runtime/queries/query/highlights.scm<br>
/usr/share/nvim/runtime/queries/vim<br>
/usr/share/nvim/runtime/queries/vim/folds.scm<br>
/usr/share/nvim/runtime/queries/vim/highlights.scm<br>
/usr/share/nvim/runtime/queries/vim/injections.scm<br>
/usr/share/nvim/runtime/queries/vimdoc<br>
/usr/share/nvim/runtime/queries/vimdoc/highlights.scm<br>
/usr/share/nvim/runtime/queries/vimdoc/injections.scm<br>
<br>
> How does neovim resolve highlights.scm file locations?<br>
<br>
The Neovim documentation (<a href=3D"https://neovim.io/doc/user/treesitter/=
" rel=3D"noreferrer" target=3D"_blank">https://neovim.io/doc/user/treesitte=
r/</a>) says that it searches the same directories as it does for the parse=
r libraries.=C2=A0 On this system, those are:<br>
<br>
{ "/usr/share/nvim/site", "/usr/share/nvim/runtime", &q=
uot;/usr/share/nvim/runtime/pack/dist/opt/netrw", "/usr/share/nvi=
m/runtime/pack/dist/opt/matchit", "/usr/lib64/nvim" }<br>
<br>
> How does the tree-sitter CLI highlight command resolve them?<br>
<br>
Curiously, it requires parts of the source code of the parser to function.=
=C2=A0 <a href=3D"https://tree-sitter.github.io/tree-sitter/3-syntax-highli=
ghting.html#overview" rel=3D"noreferrer" target=3D"_blank">https://tree-sit=
ter.github.io/tree-sitter/3-syntax-highlighting.html#overview</a><br>
<br>
I suspect the Tree-sitter developers perceive the world as being one of cus=
tom-built single-purpose blobs, rather than one where everything is a poten=
tial component of a multipurpose operating system assembled from reusable p=
ackages.<br></blockquote><div><br></div><div class=3D"gmail_default" style=
=3D"font-family:monospace">I can see that 'treesit-language-source-alis=
t' supports a=C2=A0:copy-queries keyword that would install such files =
alongside the binaries.=C2=A0 Should we be revising entries like this:</div=
><div class=3D"gmail_default" style=3D"font-family:monospace"><br></div><di=
v class=3D"gmail_default" style=3D"font-family:monospace">(add-to-list<br>=
=C2=A0'treesit-language-source-alist<br>=C2=A0'(markdown<br>=C2=A0 =
=C2=A0"<a href=3D"https://github.com/tree-sitter-grammars/tree-sitter-=
markdown">https://github.com/tree-sitter-grammars/tree-sitter-markdown</a>&=
quot;<br>=C2=A0 =C2=A0:commit "413285231ce8fa8b11e7074bbe265b48aa7277f=
9"<br>=C2=A0 =C2=A0:source-dir "tree-sitter-markdown/src")<b=
r>=C2=A0t)<br></div><div class=3D"gmail_default" style=3D"font-family:monos=
pace"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace=
">To include :copy-queries to populate highlights.scm and injections.scm?</=
div><div class=3D"gmail_default" style=3D"font-family:monospace"><br></div>=
<div class=3D"gmail_default" style=3D"font-family:monospace">Then we can re=
ly on Emacs's=C2=A0own infrastructure the same way neovim does and with=
out anything new?</div></div></div>
--0000000000005a1bb906522e8233--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 19 May 2026 16:07:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 19 12:07:50 2026
Received: from localhost ([127.0.0.1]:45791 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wPMys-0001lU-9A
for submit <at> debbugs.gnu.org; Tue, 19 May 2026 12:07:49 -0400
Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:50391)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>)
id 1wPMyp-0001lF-LE
for 81025 <at> debbugs.gnu.org; Tue, 19 May 2026 12:07:41 -0400
Received: by mail-wm1-x32e.google.com with SMTP id
5b1f17b1804b1-48a563e4ef7so31497505e9.0
for <81025 <at> debbugs.gnu.org>; Tue, 19 May 2026 09:07:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1779206858; x=1779811658; darn=debbugs.gnu.org;
h=content-id:mime-version:references:message-id:in-reply-to:subject
:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;
bh=t/VR5nSCRCwv+1ouqRrLLrLmDCnODPavp8mbk+acVio=;
b=p+z4JH67oieeWmkw0pTxwmTdTSJmVDMVoOEMrolVHY3u8u4ZXMCYtNgiAwqX8/iXfc
WJFskxZe2ofMftcAXw6VRpm0GMPxcLlUxwbFurHSMmNzLMWzxYhTo+jcoarQqMJGIpSH
ayDiLPe52b3TLflZOZz6P+pQVY6YFyzSKOhfI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1779206858; x=1779811658;
h=content-id:mime-version:references:message-id:in-reply-to:subject
:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=t/VR5nSCRCwv+1ouqRrLLrLmDCnODPavp8mbk+acVio=;
b=A+AZcyzPDdkx4jGO84VXunvvrdP8eogn4vL56ZhrhGC8GuI3AT4FLIdrjqlFG1OjcG
XMPFcHIgOtoMGWB8AKCndDRY0KjB+zQrHekJpOs4uSk3SGpCf+3htUNkS86FVlWJzdfR
aHzTnif/HIijlSytONkS+elk61DGiiGsbLpDujsxb+2Q9gUVOrCKSsT29qHNnyvBn+Rr
5dN3nHNTkwc1tLQS5FSyNLlFXMezLHKLSLFLBw6zxcqad3A+KSIHCEvewWHTHLRgINfH
yQs2N3ANpjJW4vXJbUPW5oGF7GPA7E4XBuMI3VPKfnrP0qmwrV+N35o7o4DOVtpmUl5C
p95g==
X-Gm-Message-State: AOJu0YyysYlFLxki0K1TPA6vL2KKDwHeBuc3KaSxuIcG4ilk2+bIYdCY
yfpDNc+558D7xxAiYRkUZT/w/wI86iePxUKM+Fmr9K2BnWwFzv2N/WMNqca7Bnxemg==
X-Gm-Gg: Acq92OE13ovcyDFRguqxtjtFKRQH2TlNH/08/8PDMHlO9S4IHBSTxz8dZVyxDqVFfoy
d1VCwOlpP0N8+Yj0ObJpI2Bouo2N55K7XAXRoJdU98NxzxedBncn6xKAcJ5xLLwjHVNciM3h2TC
81jkNYUR+irwGeiK3sxGYnfBJ2V51S8CnUjP32AQazAYFTSFCqUg+K0/99hC3pUCXImVpyiz564
7uJfewGG4Lb+G5eKyHLHUcPj/rgDwj/KiwiPJ28ettqThLnSfIhz+9PTbnZdzpZ9/I1JcazD+lS
BpWccpJ2/sJ8OPfpesRQoH25YG2I/W6jpb1nSwREGHH62dDGRoCWGgdUyaJS3D1TGhKLf8kSCGd
gH9PJUi5MUoDITRRzU9gKSx3vITI6fu3gIhbHZoFm+j4lie2RBpLqkc/xJSXT7ZCkqr4tga6I7z
soe2KIgDbVX5xDGiDRgzxI0K7SHYPUs53cjg2pL+DMJnKNoush6ZjffhHG/SkLji41/bzlmFvfK
gtkn5TbdiRGakbhkK2M0dorgu/vBYmaUdHH0A==
X-Received: by 2002:a05:600c:4fcb:b0:488:a797:f0ac with SMTP id
5b1f17b1804b1-48fe6613ab3mr301879275e9.28.1779206857636;
Tue, 19 May 2026 09:07:37 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4900c16c62dsm147841015e9.11.2026.05.19.09.07.36
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 19 May 2026 09:07:36 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64JG7ZQb068142
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Tue, 19 May 2026 17:07:35 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id
64JG7Zpn068137; Tue, 19 May 2026 17:07:35 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Tue, 19 May 2026 17:07:35 +0100 (BST)
From: Peter Oliver <p.d.oliver@HIDDEN>
To: =?ISO-8859-15?Q?St=E9phane_Marks?= <shipmints@HIDDEN>
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
In-Reply-To: <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN>
Message-ID: <1cc715d4-2345-73b1-9742-a337eade15b7@HIDDEN>
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<87ecjgd7is.fsf@HIDDEN>
<c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
<87a4u3nrl4.fsf@HIDDEN>
<14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN>
<87jyt60ydj.fsf@HIDDEN>
<5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN>
<ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN>
<e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN>
<66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN>
<1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN>
<CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed;
BOUNDARY="-1463811584-740859080-1779205555=:5719"
Content-ID: <e090eab5-5457-feca-5b88-e497fddbe82a@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 81025
Cc: 81025 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-740859080-1779205555=:5719
Content-Type: text/plain; CHARSET=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
Content-ID: <0b8a1f13-6202-f5b3-0cee-c7bcccb67eac@HIDDEN>
On Mon, 18 May 2026, Stéphane Marks wrote:
> For people who use the same installed tree-sitter grammars across their
> editor landscape, Emacs, neovim, etc. what is the recommended configuration
> for that?
I’m not sure that there are any such people. Neovim packages bundle their own private copies of the parsers and queries. E.g., on Fedora:
$ rpm -ql neovim | egrep 'parser|queries'
/usr/lib64/nvim/parser
/usr/lib64/nvim/parser/c.so
/usr/lib64/nvim/parser/lua.so
/usr/lib64/nvim/parser/markdown.so
/usr/lib64/nvim/parser/markdown_inline.so
/usr/lib64/nvim/parser/query.so
/usr/lib64/nvim/parser/vim.so
/usr/lib64/nvim/parser/vimdoc.so
/usr/share/nvim/runtime/queries
/usr/share/nvim/runtime/queries/c
/usr/share/nvim/runtime/queries/c/folds.scm
/usr/share/nvim/runtime/queries/c/highlights.scm
/usr/share/nvim/runtime/queries/c/injections.scm
/usr/share/nvim/runtime/queries/lua
/usr/share/nvim/runtime/queries/lua/folds.scm
/usr/share/nvim/runtime/queries/lua/highlights.scm
/usr/share/nvim/runtime/queries/lua/injections.scm
/usr/share/nvim/runtime/queries/markdown
/usr/share/nvim/runtime/queries/markdown/folds.scm
/usr/share/nvim/runtime/queries/markdown/highlights.scm
/usr/share/nvim/runtime/queries/markdown/injections.scm
/usr/share/nvim/runtime/queries/markdown_inline
/usr/share/nvim/runtime/queries/markdown_inline/highlights.scm
/usr/share/nvim/runtime/queries/markdown_inline/injections.scm
/usr/share/nvim/runtime/queries/query
/usr/share/nvim/runtime/queries/query/folds.scm
/usr/share/nvim/runtime/queries/query/highlights.scm
/usr/share/nvim/runtime/queries/vim
/usr/share/nvim/runtime/queries/vim/folds.scm
/usr/share/nvim/runtime/queries/vim/highlights.scm
/usr/share/nvim/runtime/queries/vim/injections.scm
/usr/share/nvim/runtime/queries/vimdoc
/usr/share/nvim/runtime/queries/vimdoc/highlights.scm
/usr/share/nvim/runtime/queries/vimdoc/injections.scm
> How does neovim resolve highlights.scm file locations?
The Neovim documentation (https://neovim.io/doc/user/treesitter/) says that it searches the same directories as it does for the parser libraries. On this system, those are:
{ "/usr/share/nvim/site", "/usr/share/nvim/runtime", "/usr/share/nvim/runtime/pack/dist/opt/netrw", "/usr/share/nvim/runtime/pack/dist/opt/matchit", "/usr/lib64/nvim" }
> How does the tree-sitter CLI highlight command resolve them?
Curiously, it requires parts of the source code of the parser to function. https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html#overview
I suspect the Tree-sitter developers perceive the world as being one of custom-built single-purpose blobs, rather than one where everything is a potential component of a multipurpose operating system assembled from reusable packages.
--
Peter Oliver
---1463811584-740859080-1779205555=:5719--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 18 May 2026 15:19:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 18 11:19:11 2026 Received: from localhost ([127.0.0.1]:59212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOzkM-0007BD-Un for submit <at> debbugs.gnu.org; Mon, 18 May 2026 11:19:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36674) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wOzkK-0007Av-79 for 81025 <at> debbugs.gnu.org; Mon, 18 May 2026 11:19:09 -0400 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 <eliz@HIDDEN>) id 1wOzk6-0005Cs-4x; Mon, 18 May 2026 11:19:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=xdwlZR62vLrWsC2FjnwBzJUYps3i8yCqpQhcYNntjCg=; b=Eyo4q03Rk6/rve6y1qHg km5MkdIcw319Q+is1PEjmPl2ZoDEQxrylXrkRu1nFMcPS75yr5MX7G8hZYYm14FxIEZ9iDsFGnwGd eMDAw0CMYa95WUy1wwgXHg5fJ0LhjoPoZ4FA+tjh8oHKTEaQhsTffUTyqK0nnZN7zJqbQqloK1AEE Kr3u6zkBOQu2y5XEYSfqSaAFC2xevzkCbFzEjfiWbbImHZgOO7ak/SSXltGafzyxKkmWs35Ukr32k AHJZC4fnJfaGfmgCbfzTG+TcKA1RCpOUnneWyIJv1h+zTRyJXibdi3ELSpsokazqBWFWLnRrzCqsa NqwyPlneLHnBOQ==; Date: Mon, 18 May 2026 18:18:51 +0300 Message-Id: <86ecj83fvo.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> In-Reply-To: <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> (message from Peter Oliver on Mon, 18 May 2026 15:48:51 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 18 May 2026 15:48:51 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > > Yes, because the relation between data-directory and its parent > > (a.k.a. $datarootdir) is known in advance. data-directory is > > $datarootdir/emacs/VERSION/etc. > > In testing this, I noticed something non-ideal: I find that when I run "./src/emacs -Q" from a Git checkout in a directory called ~/src/emacs, I get a value of ~/src/emacs/etc/ for data-directory. I.e., if we base treesit-data-directory on data-directory, we won’t be able to find system Tree-sitter queries before we run "make install". There's a known solution for that, using the value of installation-directory. I'd leave the default value as nil when Emacs is run uninstalled. > > Should the data files live in the same directory > > as the grammar libraries? The latter are not > > architecture-independent, so this mixing sounds like maybe not the > > best idea? > > You are right that, with the existing implementation, users who share their ~/.emacs.d between systems of different architectures will run into difficulties when treesit-ensure-installed calls treesit-install-language-grammar and writes every library into the same directory regardless of architecture. I think it would be better to address that as a separate bug rather than try to tackle it here, though. Then let's not add to treesit-extra-queries-path there, for now, and address that in a separate bug.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 18 May 2026 15:09:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 18 11:09:22 2026 Received: from localhost ([127.0.0.1]:59112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOzaq-00067O-DK for submit <at> debbugs.gnu.org; Mon, 18 May 2026 11:09:22 -0400 Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]:51635) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1wOzam-00066h-3s for 81025 <at> debbugs.gnu.org; Mon, 18 May 2026 11:09:19 -0400 Received: by mail-vs1-xe2c.google.com with SMTP id ada2fe7eead31-6314287380bso1721176137.3 for <81025 <at> debbugs.gnu.org>; Mon, 18 May 2026 08:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779116955; cv=none; d=google.com; s=arc-20240605; b=Sh4r8DBKE3NSsv8YHB8E/KSjmQ6JUTZOUdm7RThZzTf1vU+8GxP3s4s1zJ/TEij8ue FJtWtj6fVkX2ceUukFBjSHM23p5QVDmeYGIQN58fQpR/fYgYLttBiT2rajApLGMMueik cMV7156crt006vHzUA1zXMiPFz5ctRBuNstQXQP5yz2d7Skzq1D83LL/dtyqmGk4FKvJ AeuJbc0GWWWo1ylV1N346pMR5ml40D30k+/8+5YNnM/bjUEzeLJdMG9grw9Qqg5Vvy86 yr5c/8A52UvyGELSDSwsok7Ab8/eMfaM+WvgM/CkGKP8iA9AUNdcOMTsmqd1cEfOxU4b ms4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=FQvKutL+YlNCfiPdjVy/hTwjLzTrIquG4qnbw0yiBxk=; fh=GQsjkTi26kBtyEmuKIaE2dt//7vy0aNAJ8EWYbHZf5g=; b=KaOcoywv+WHJW1TsBjXnwL3LWkoMs01XsWBvQEA86vKtyFBZO8izEHU+I6U4msQxBK xE2oBjbFsC/3ZwqbqBbrJZxB7U4mOBBb4gW1/izl1h5FR4pWxQSSQ63Du5EBiF/uuK4y kPr2kn87NcQeKWSqfuWfR3lhEme/R4ubWln84TFlQ3eN73M5xKyxGY/CPypp8NrYm+Ns gUPV4SRzH9kFuN8EtIB9eYTu5F3U/QQeukfIKxJkpdtxpXGVc3MoRZkrZuh8x7jmQS/9 8XgtDUw2qDBsSoDzG7Qa6ffGBCCWDe+GRe+/v9ko5cn1gAFrvoQBbY3v0aUcOGD2aF/X uGAA==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779116955; x=1779721755; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FQvKutL+YlNCfiPdjVy/hTwjLzTrIquG4qnbw0yiBxk=; b=Vu1mjQ1DZhJ0Aw8pb/D12fhuyYJ3tK2oFKVNo3qO2n8scBF5WFEVdu+oUfCd2tU92g 5XpvXfign8G7V3ju10AkV28tOneFBnPK/JEQKBfVr6dwdX2nqfLdn8dFsKHuscLgQL4i Veo26AwmDHuHj0WHqCEjM6JtHQtIkaWW3BiFkU3DXA6soWu2rF3QF0sltCp/yw0FBXy6 TxwkVh+XO7NxiIzbcCCH5z7y7T5JH5NXpPE7mVdwm9LPVEBFFvFWcubcl9uHOorUABLM n1ZOrvn4oDK866hKUA/g+atZF/FDzb0lzypDLjz2FrNPS7FQ+AnKuauCKWiRiXT/uSKk G5uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779116955; x=1779721755; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FQvKutL+YlNCfiPdjVy/hTwjLzTrIquG4qnbw0yiBxk=; b=SBeMcX1hS+gIg8/vpBGeuLYhMCmTJbUlOo5Ek1+VuPySZbWMXQJcWnXeXmyVECz6B7 eyMMZTKtf4jSiD8YhB7/ekVGP4XduukCQB+F5IudpGh5yCzwj6aocOmWaVbWMwPwV56F f8H7NPUHyxFJw87aTgZUzW7buRIi5j5ePrxitHVcAjWbfgmp/QNjxrUOf75y3DQuflur g+MbR19prVCTYy2O/Adw1usnJ/CBBnBWJNvKnqByYGFXOBNq7FgjNm991DLeQn9WnTAa d5RXo+7Zzcf/2OuU+b0HH8yPcBOJyxsLgNKknhp+VAUb3H10FV+mFBKziU/pJKp0UKGy CyzA== X-Forwarded-Encrypted: i=1; AFNElJ+cTvys481X8AjHPI40cjNSa2LbrxcBX/6iT9KNqO6AzFjFpnV31+iD6LSQEtbeobP2UQ6W3g==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxwmaRCFQO+OMCtb8b66oZCnOBz3dZpgC+k+kp9j3J3ADyvS7zb UTeiVi9HSzNvXfAbSWAakPuVjDlwH+CF5N+wPeDFxSUANmsaU4hsx5gH05OFsIwkXhr7DZ0sBuX Lo76sGHtDw8lDcVXGsCugo9NPWQ9R53cNsfx0 X-Gm-Gg: Acq92OEp36sh4IIw2MTQtOTDyPo0IeqDKjlqMOizoGL7yh5DQ/zQsNw9nJTuIbLQFNg dqusC/wAZ2W2v5FmXKnpxtEKcEXpud41NZSdqrb0ztbDsIhcIhYZlv9fujheZnXLDLpnhIus/3P 4pb4lbzEPO6MkDirfzRaIA3UyJPJkfEqnwN6yJ2hDofoLsmXYoh577kQXN4OmCglfxntGZYDZHf sm8gl9VIeL51VBla5w5+OZg+A9YeOYkKeTdjwnFEptOgN4hMsprAtYYP+wiQAfdicyeii7ERoVT eGOrvCIhfj7WhDrYomYUnwrlvTStcVsz3yr/8X4CN7syu7r8TjABKCFcxoyd1o5vmFrJrM63b1C hvcl2qhILGZJYILteENWr3mHIShEp61zrA9KXXwuxs0nMTOv2f0E6RghVk3Qpzd/LaJuL7g== X-Received: by 2002:a67:e104:0:b0:62a:1bba:64ee with SMTP id ada2fe7eead31-63a3c8016a5mr7571849137.6.1779116955140; Mon, 18 May 2026 08:09:15 -0700 (PDT) MIME-Version: 1.0 References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> In-Reply-To: <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Mon, 18 May 2026 11:09:03 -0400 X-Gm-Features: AVHnY4LRTrPXzdHVSh6BtMqUYhDQS362QcM3M0-FA_r0CWd7CouV-xoUvQh5zpw Message-ID: <CAN+1Hbp3XJoFJLDWpaZqRNW1MZOOS9iZPkT-8XnwOOgf6zMr6Q@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ To: Peter Oliver <p.d.oliver@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000200576065218f215" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 81025 Cc: Eli Zaretskii <eliz@HIDDEN>, 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.0 (/) --000000000000200576065218f215 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 18, 2026 at 10:49=E2=80=AFAM Peter Oliver <p.d.oliver@HIDDEN= .uk> wrote: > On Mon, 18 May 2026, Eli Zaretskii wrote: > > >> Date: Mon, 18 May 2026 13:46:30 +0100 (BST) > >> From: Peter Oliver <p.d.oliver@HIDDEN> > > >> Can we be sure of how many =E2=80=9C../=E2=80=9D we need? > > > > Yes, because the relation between data-directory and its parent > > (a.k.a. $datarootdir) is known in advance. data-directory is > > $datarootdir/emacs/VERSION/etc. > > In testing this, I noticed something non-ideal: I find that when I run > "./src/emacs -Q" from a Git checkout in a directory called ~/src/emacs, I > get a value of ~/src/emacs/etc/ for data-directory. I.e., if we base > treesit-data-directory on data-directory, we won=E2=80=99t be able to fin= d system > Tree-sitter queries before we run "make install". > > >> +*** New user option 'treesit-data-directory'. > >> +This system-wide directory stores syntax highlighting queries, provid= ed > >> +with Tree-sitter parsers, and used by 'define-treesit-generic-mode'. > > > > I would say "various Tree-sitter related data files, such as syntax > > highlighting queries" instead. > > My expectation was that if we started looking for other things here, that > would be the subject of a future NEWS entry, but sure, I=E2=80=99ll re-wr= ite it. > > >> +(defcustom treesit-extra-queries-path nil > > > > Wait: yet another list of directories? > > I think it=E2=80=99s worth it, for the symmetry with treesit-extra-load-p= ath. > > >> + (file (seq-some > >> + (lambda (dir) > >> + (let ((file (expand-file-name > >> + (format "queries/%s/highlights.scm" > lang) > >> + dir))) > >> + (when (file-exists-p file) > >> + file))) > > > > Can we use locate-file here? > > Juri wrote this part, but I don=E2=80=99t see why not, if you prefer it. > > I have addressed your other suggestions too, and a revised patch is > attached. > > > Should the data files live in the same directory > > as the grammar libraries? The latter are not > > architecture-independent, so this mixing sounds like maybe not the > > best idea? > > You are right that, with the existing implementation, users who share > their ~/.emacs.d between systems of different architectures will run into > difficulties when treesit-ensure-installed calls > treesit-install-language-grammar and writes every library into the same > directory regardless of architecture. I think it would be better to > address that as a separate bug rather than try to tackle it here, though. > For people who use the same installed tree-sitter grammars across their editor landscape, Emacs, neovim, etc. what is the recommended configuration for that? How does neovim resolve highlights.scm file locations? How does the tree-sitter CLI highlight command resolve them? I'd think we should not invent anything new if we can avoid it? --000000000000200576065218f215 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Mon, May 18, 2026 at 10:49=E2=80=AFAM Peter Oliver <<a href=3D"mailto= :p.d.oliver@HIDDEN">p.d.oliver@HIDDEN</a>> wrote:</span></di= v></div><div class=3D"gmail_quote gmail_quote_container"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex">On Mon, 18 May 2026, Eli Zaretskii wrote:<= br> <br> >> Date: Mon, 18 May 2026 13:46:30 +0100 (BST)<br> >> From: Peter Oliver <<a href=3D"mailto:p.d.oliver@HIDDEN" = target=3D"_blank">p.d.oliver@HIDDEN</a>><br> <br> >> Can we be sure of how many =E2=80=9C../=E2=80=9D we need?<br> ><br> > Yes, because the relation between data-directory and its parent<br> > (a.k.a. $datarootdir) is known in advance.=C2=A0 data-directory is<br> > $datarootdir/emacs/VERSION/etc.<br> <br> In testing this, I noticed something non-ideal: I find that when I run &quo= t;./src/emacs -Q" from a Git checkout in a directory called ~/src/emac= s, I get a value of ~/src/emacs/etc/ for data-directory.=C2=A0 I.e., if we = base treesit-data-directory on data-directory, we won=E2=80=99t be able to = find system Tree-sitter queries before we run "make install".<br> <br> >> +*** New user option 'treesit-data-directory'.<br> >> +This system-wide directory stores syntax highlighting queries, pr= ovided<br> >> +with Tree-sitter parsers, and used by 'define-treesit-generic= -mode'.<br> ><br> > I would say "various Tree-sitter related data files, such as synt= ax<br> > highlighting queries" instead.<br> <br> My expectation was that if we started looking for other things here, that w= ould be the subject of a future NEWS entry, but sure, I=E2=80=99ll re-write= it.<br> <br> >> +(defcustom treesit-extra-queries-path nil<br> ><br> > Wait: yet another list of directories?<br> <br> I think it=E2=80=99s worth it, for the symmetry with treesit-extra-load-pat= h.<br> <br> >> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file (seq-some<br> >> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (lambda (= dir)<br> >> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (l= et ((file (expand-file-name<br> >> +=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(format "queries/%s/hi= ghlights.scm" lang)<br> >> +=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=A0dir)))<br> >> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (when (file-exists-p file)<br> >> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 file)))<br> ><br> > Can we use locate-file here?<br> <br> Juri wrote this part, but I don=E2=80=99t see why not, if you prefer it.<br= > <br> I have addressed your other suggestions too, and a revised patch is attache= d.<br> <br> > Should the data files live in the same directory<br> > as the grammar libraries?=C2=A0 The latter are not<br> > architecture-independent, so this mixing sounds like maybe not the<br> > best idea?<br> <br> You are right that, with the existing implementation, users who share their= ~/.emacs.d between systems of different architectures will run into diffic= ulties when treesit-ensure-installed calls treesit-install-language-grammar= and writes every library into the same directory regardless of architectur= e.=C2=A0 I think it would be better to address that as a separate bug rathe= r than try to tackle it here, though.<br></blockquote><div><br></div><div c= lass=3D"gmail_default" style=3D"font-family:monospace">For people who use t= he same installed tree-sitter grammars across their editor landscape, Emacs= , neovim, etc. what is the recommended configuration for that?=C2=A0 How do= es neovim resolve highlights.scm file locations?=C2=A0 How does the tree-si= tter CLI highlight command resolve them?=C2=A0 I'd think we should not = invent anything new if we can avoid it?</div></div></div> --000000000000200576065218f215--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 18 May 2026 14:49:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 18 10:49:00 2026 Received: from localhost ([127.0.0.1]:58955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOzH9-0004c5-VS for submit <at> debbugs.gnu.org; Mon, 18 May 2026 10:49:00 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:43445) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wOzH6-0004bv-2C for 81025 <at> debbugs.gnu.org; Mon, 18 May 2026 10:48:57 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-488b3f8fa2bso26733235e9.1 for <81025 <at> debbugs.gnu.org>; Mon, 18 May 2026 07:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1779115734; x=1779720534; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=92frv4EDKkrPUu0GmhxCClKu1WyJp1FnMgrq8Kc5V8I=; b=qs/OHlLmw09Kn9voSHjHqtizl7JbgD0M2WNGahiLfj5WYUaGYuFXQcTdvATKkcTL9f 1Df2HHqeBcyPO87jueMg63DEbQ1uIYr1RG7b7r7n75CSnTAfu2gv56LsBMMMMPEaImQZ lhHsCSGqRowo3PlCXHWJFv/R8GnxT3GanHpkg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779115734; x=1779720534; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=92frv4EDKkrPUu0GmhxCClKu1WyJp1FnMgrq8Kc5V8I=; b=k6bx31hWZxDVOuCefrwossVUJM15XAsDTd1aaIdIhQXtu/a/V4N3WHeCBmLVaNTmRs rzR2c/Y3RkOCkytVW5YkWzqUSq8qzMJod35PJqkH+QwUb2UIWziryvGdBAutIwB6UNRR yd5IiTQ0F/QzRw79xQL6M6PXFVbbUXfS+aApK8642jgbbDKG4B/BQn9AeUrPv0QvpLDY BBCFfHBksJhNrh3mZiewSaL6YZTVcvlfz3tRbyQxFmFH/RjzwGbOIJ09xSBkOT1zL+X4 eI9W2mrXvhofOyfV385bj9YLKFZScH7cvnYyfz3nuE84n/9unrafI7GAxfPkQ51yj/IH 383A== X-Forwarded-Encrypted: i=1; AFNElJ9nFXizsTjVWj2eENcX+Mh36p6CCA3AGhuRsnzP2EZQUiKzjV6SmMPRphKTS7rZgwXVrrWgEA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwCAlbC8RF9uR/WMovQeRun1nP0JyNhrOHJNtYCbYAVC9nn+xd8 3AjGMjtOKGG6DU0bsKM1kjLiqE6oteszaeSweufraMGhQnChw6X1lJoR4/YQjt9HVQ== X-Gm-Gg: Acq92OFpz7HeOaWL6RTo42UsS6bP+e9udpMDpeNAE0puSZJVXGxeDH0TwAMiBA5PSMl 5Wv5dQ930ztj8ib1hAtZjfQiNj2S+9Fb2bntYM6my6c6G2nj7zEuUqdgPT6HwHm7KI5n0Lf2L06 mS+MMGyNDZCyzGz1V1TkdgNQj24zoPKYoSIDuCKqHYZZT33CCaIpdypKntHah8+j0FN546mehyC ZvL1r6LfbAh+2TFfgwH6GdSSoo1is2k4Dlq8TzLgrQViOHIuMpfTxQm6kutH849oO4FMP7+Y2gb 6G+f0S5xCCWXdftpXjYzzju4IRfqxxdAedRhcE3tzJ8VS5xd1qq4MrOk3jxdDo/x4M6DS1xV5gN dKXKoL4CCSdwDINSSxcLB+cKmvf3awVmhGcKOntlHvKJYOMdybTrGLboLkrHcWzOEEcnvcUsGlS PnFgxogwdBq+HtFg/+u45s/XqYqVWiS1J8AdWQP2OhXlLAc62RNLr4xjFnKoiVGxvcrapkklLfq 6AXq+8B9SWVqjuZSFmfSjgUVkTANafb2moSWLcuh3JBToUt X-Received: by 2002:a05:600c:a406:b0:489:32b:ac0b with SMTP id 5b1f17b1804b1-48fe4fa1902mr186894245e9.6.1779115733932; Mon, 18 May 2026 07:48:53 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe5ab527asm288485395e9.11.2026.05.18.07.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 07:48:53 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64IEmpUB101888 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 18 May 2026 15:48:52 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64IEmpBU101885; Mon, 18 May 2026 15:48:51 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Mon, 18 May 2026 15:48:51 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86lddg3lt6.fsf@HIDDEN> Message-ID: <1169edb6-54ba-e66b-a182-4a35ee96b3a3@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> <86lddg3lt6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-1295303856-1779115731=:5579" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-1295303856-1779115731=:5579 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 18 May 2026, Eli Zaretskii wrote: >> Date: Mon, 18 May 2026 13:46:30 +0100 (BST) >> From: Peter Oliver <p.d.oliver@HIDDEN> >> Can we be sure of how many “../” we need? > > Yes, because the relation between data-directory and its parent > (a.k.a. $datarootdir) is known in advance. data-directory is > $datarootdir/emacs/VERSION/etc. In testing this, I noticed something non-ideal: I find that when I run "./src/emacs -Q" from a Git checkout in a directory called ~/src/emacs, I get a value of ~/src/emacs/etc/ for data-directory. I.e., if we base treesit-data-directory on data-directory, we won’t be able to find system Tree-sitter queries before we run "make install". >> +*** New user option 'treesit-data-directory'. >> +This system-wide directory stores syntax highlighting queries, provided >> +with Tree-sitter parsers, and used by 'define-treesit-generic-mode'. > > I would say "various Tree-sitter related data files, such as syntax > highlighting queries" instead. My expectation was that if we started looking for other things here, that would be the subject of a future NEWS entry, but sure, I’ll re-write it. >> +(defcustom treesit-extra-queries-path nil > > Wait: yet another list of directories? I think it’s worth it, for the symmetry with treesit-extra-load-path. >> + (file (seq-some >> + (lambda (dir) >> + (let ((file (expand-file-name >> + (format "queries/%s/highlights.scm" lang) >> + dir))) >> + (when (file-exists-p file) >> + file))) > > Can we use locate-file here? Juri wrote this part, but I don’t see why not, if you prefer it. I have addressed your other suggestions too, and a revised patch is attached. > Should the data files live in the same directory > as the grammar libraries? The latter are not > architecture-independent, so this mixing sounds like maybe not the > best idea? You are right that, with the existing implementation, users who share their ~/.emacs.d between systems of different architectures will run into difficulties when treesit-ensure-installed calls treesit-install-language-grammar and writes every library into the same directory regardless of architecture. I think it would be better to address that as a separate bug rather than try to tackle it here, though. -- Peter Oliver ---1463811584-1295303856-1779115731=:5579 Content-Type: text/plain; charset=US-ASCII; name=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch Content-Transfer-Encoding: BASE64 Content-ID: <b40e500d-667e-6ef0-c77a-ed1458380def@HIDDEN> Content-Description: Content-Disposition: attachment; filename=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch RnJvbSBjY2VhM2UzZjRlNzBhNmFjNmMxNzgwMWRkNmU4NmJhODBmNGM1NGM5 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogTW9uLCAxOCBNYXkgMjAyNiAx MzozNzo1NiArMDEwMA0KU3ViamVjdDogW1BBVENIXSBMb29rIGZvciBUcmVl LXNpdHRlciBoaWdobGlnaHRpbmcgcXVlcmllcyBpbiBtb3JlIHBsYWNlcw0K IChidWcjODEwMjUpDQoNCiogbGlzcC90cmVlc2l0LXguZWwgKHRyZWVzaXQt ZGF0YS1kaXJlY3RvcnkpOiBOZXcgdmFyaWFibGUsIHdpdGggZGVmYXVsdA0K cmVsYXRpdmUgdG8gZGF0YS1kaXJlY3RvcnkuDQoodHJlZXNpdC1leHRyYS1x dWVyaWVzLXBhdGgpOiBOZXcgdmFyaWFibGUuDQoodHJlZXNpdC1nZW5lcmlj LW1vZGUtZm9udC1sb2NrLXF1ZXJ5KTogTG9vayBpbg0KdHJlZXNpdC1leHRy YS1xdWVyaWVzLXBhdGggYW5kIHRyZWVzaXQtZGF0YS1kaXJlY3RvcnkgZm9y IFRyZWUtc2l0dGVyDQpxdWVyaWVzLg0KKiBsaXNwL3RyZWVzaXQuZWwgKHRy ZWVzaXQtZW5zdXJlLWluc3RhbGxlZCk6IFdoZW4NCnRyZWVzaXQtYXV0by1p bnN0YWxsLWdyYW1tYXIgaXMgc2V0IHRvICdhc2stZGlyLCBhZGQgdGhhdCBk aXJlY3RvcnkgdG8NCnRyZWVzaXQtZXh0cmEtcXVlcmllcy1wYXRoLg0KKiBl dGMvTkVXUzogRGVzY3JpYmUgdHJlZXNpdC1kYXRhLWRpcmVjdG9yeSBhbmQg dHJlZXNpdC1leHRyYS1xdWVyaWVzLXBhdGguDQ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cm1hdCAicXVlcmllcy8lcy9oaWdobGlnaHRzLnNjbSIg bGFuZykNCi0gICAgICAgICAgICAgICAgKGxvY2F0ZS11c2VyLWVtYWNzLWZp bGUgInRyZWUtc2l0dGVyIikpKQ0KLSAgICAgICAgIChxdWVyeSAod2hlbiAo ZmlsZS1leGlzdHMtcCBmaWxlKQ0KKyAgIkZpbmQgdGhlIGZpbGUgXCJoaWdo bGlnaHRzLnNjbVwiIGZvciBMQU5HLCBhbmQgcmV0dXJuIGl0cyBxdWVyaWVz IGFzIGEgc3RyaW5nLg0KK0xvb2tzIGluIGB0cmVlc2l0LWV4dHJhLXF1ZXJp ZXMtcGF0aCcsIHRoZW4gdGhlIFwidHJlZS1zaXR0ZXJcIg0KK3N1YmRpcmVj dG9yeSBvZiBgdXNlci1lbWFjcy1kaXJlY3RvcnknLCB0aGVuIGB0cmVlc2l0 LWRhdGEtZGlyZWN0b3J5JywNCitpbiB0aGF0IG9yZGVyLiINCisgIChsZXQq ICgocGF0aA0KKyAgICAgICAgICAoYXBwZW5kDQorICAgICAgICAgICB0cmVl c2l0LWV4dHJhLXF1ZXJpZXMtcGF0aA0KKyAgICAgICAgICAgKGxpc3QNCisg ICAgICAgICAgICAobG9jYXRlLXVzZXItZW1hY3MtZmlsZSAidHJlZS1zaXR0 ZXIiKQ0KKyAgICAgICAgICAgIHRyZWVzaXQtZGF0YS1kaXJlY3RvcnkpKSkN CisgICAgICAgICAoZmlsZSAobG9jYXRlLWZpbGUgImhpZ2hsaWdodHMuc2Nt Ig0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAobWFwY2FyIChsYW1i ZGEgKHBhdGgtZWx0KQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgKGV4cGFuZC1maWxlLW5hbWUgKGZvcm1hdCAicXVlcmllcy8l cyINCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgbGFuZykNCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBh dGgtZWx0KSkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBwYXRoKSkpDQorICAgICAgICAgKHF1ZXJ5ICh3aGVuIGZpbGUNCiAgICAg ICAgICAgICAgICAgICAod2l0aC10ZW1wLWJ1ZmZlcg0KICAgICAgICAgICAg ICAgICAgICAgKGluc2VydC1maWxlLWNvbnRlbnRzIGZpbGUpDQogICAgICAg ICAgICAgICAgICAgICAoYnVmZmVyLXN1YnN0cmluZy1uby1wcm9wZXJ0aWVz IChwb2ludC1taW4pIChwb2ludC1tYXgpKSkpKSkNCmRpZmYgLS1naXQgYS9s aXNwL3RyZWVzaXQuZWwgYi9saXNwL3RyZWVzaXQuZWwNCmluZGV4IDUyNTM0 MzlhOWRkLi5iODA2N2QyMTk0NiAxMDA2NDQNCi0tLSBhL2xpc3AvdHJlZXNp dC5lbA0KKysrIGIvbGlzcC90cmVlc2l0LmVsDQpAQCAtNTgzMCw2ICs1ODMw LDcgQEAgdHJlZXNpdC1lbnN1cmUtaW5zdGFsbGVkDQogICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG91dC1kaXINCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg dHJlZXNpdC1leHRyYS1sb2FkLXBhdGgpKQ0KICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAoYWRkLXRvLWxpc3QgJ3RyZWVzaXQtZXh0cmEtbG9h ZC1wYXRoIG91dC1kaXIpDQorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIChhZGQtdG8tbGlzdCAndHJlZXNpdC1leHRyYS1xdWVyaWVzLXBhdGgg b3V0LWRpcikNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdCkp KSkNCiAgICAgICAgICAgICAodHJlZXNpdC1pbnN0YWxsLWxhbmd1YWdlLWdy YW1tYXIgbGFuZyBvdXQtZGlyKQ0KICAgICAgICAgICAgIDs7IENoZWNrIHRo YXQgdGhlIGdyYW1tYXIgd2FzIGluc3RhbGxlZCBzdWNjZXNzZnVsbHkNCi0t IA0KMi41NC4wDQoNCg== ---1463811584-1295303856-1779115731=:5579--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 18 May 2026 13:11:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 18 09:11:38 2026 Received: from localhost ([127.0.0.1]:57266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOxku-0004f5-Op for submit <at> debbugs.gnu.org; Mon, 18 May 2026 09:11:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38314) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wOxkq-0004dz-VO for 81025 <at> debbugs.gnu.org; Mon, 18 May 2026 09:11:34 -0400 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 <eliz@HIDDEN>) id 1wOxkk-0007DO-OF; Mon, 18 May 2026 09:11:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=px/+IxyFHqVzsk66gZEcfnM+cSKM7jisfAc+pDFG/6c=; b=NmWjAlG/RfBqL3IgDpcc sl9YWTDNwg2bHBC5K/pBcxICYcewtDh+quQ19IIj7iQrc5BG95oUqa1owE9RaMoUXMmlZ7dVRn0tI EzEUvdPb/b5XlR3BdC32F3KF3nQi3o4zImZLzaY1UVv1IODl9C9B++JkYi0lyLVdkx56xoHP3JAhk ABUa6EGGu74thYlPigkVJH4C5ZFraiOV+bGkWF65kLbzf+PfbqggXdAgr7SXSkq7kisCAuv4fEpA9 XtZFDuvaracPySZWhXZ8EKj3gncWZsLeQNNMAwjkwr9VIrvJ1Cfn13fCCOf6TPkGHkFV4AuIH1Tm9 BbRP2O9lK0UpCg==; Date: Mon, 18 May 2026 16:10:45 +0300 Message-Id: <86lddg3lt6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> In-Reply-To: <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> (message from Peter Oliver on Mon, 18 May 2026 13:46:30 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 18 May 2026 13:46:30 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > On Mon, 18 May 2026, Eli Zaretskii wrote: > > > computing treesit-data-directory's default value as > > > > (expand-file-name "../../../tree-sitter" data-directory) > > Can we be sure of how many “../” we need? Yes, because the relation between data-directory and its parent (a.k.a. $datarootdir) is known in advance. data-directory is $datarootdir/emacs/VERSION/etc. > How about the attached instead? See my comments below. > +*** New user option 'treesit-data-directory'. > +This system-wide directory stores syntax highlighting queries, provided > +with Tree-sitter parsers, and used by 'define-treesit-generic-mode'. I would say "various Tree-sitter related data files, such as syntax highlighting queries" instead. Because if this directory will hold only the queries, we should reflect that in its name. > +(defcustom treesit-data-directory > + (expand-file-name > + "tree-sitter" > + (replace-regexp-in-string (rx "/emacs" > + (or (seq "/" (zero-or-more anything)) > + string-end)) > + "" > + data-directory > + t)) I see no reason for the rx dance here, see above for why. > +(defcustom treesit-extra-queries-path nil > + "List of additional directories to search for Tree-sitter query files. > +Each directory should have the subdirectory \"queries\" used by > +`treesit-generic-mode-font-lock-query' to parse the file > +\"highlights.scm\"." Wait: yet another list of directories? If this is in addition to treesit-data-directory, the doc string should say whether these directories are searched before or after treesit-data-directory. > + "Find the file \"highlights.scm\" and return its queries as a string. > +Looks in the \"tree-sitter\" subdirectory of `user-emacs-directory', > +then `treesit-data-directory'. Use `treesit-extra-queries-path' to > +customize the path to search." Actually, all 3 could be used to customize the search, so I think the wording here should be amended to not imply differently. > + (file (seq-some > + (lambda (dir) > + (let ((file (expand-file-name > + (format "queries/%s/highlights.scm" lang) > + dir))) > + (when (file-exists-p file) > + file))) Can we use locate-file here? > --- a/lisp/treesit.el > +++ b/lisp/treesit.el > @@ -5830,6 +5830,7 @@ treesit-ensure-installed > out-dir > treesit-extra-load-path)) > (add-to-list 'treesit-extra-load-path out-dir) > + (add-to-list 'treesit-extra-queries-path out-dir) > t)))) Is this a good idea? Should the data files live in the same directory as the grammar libraries? The latter are not architecture-independent, so this mixing sounds like maybe not the best idea?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 18 May 2026 12:46:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 18 08:46:37 2026 Received: from localhost ([127.0.0.1]:57074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOxMj-0002k9-Bw for submit <at> debbugs.gnu.org; Mon, 18 May 2026 08:46:37 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:53614) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wOxMg-0002jy-7K for 81025 <at> debbugs.gnu.org; Mon, 18 May 2026 08:46:35 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-45297094718so1736786f8f.3 for <81025 <at> debbugs.gnu.org>; Mon, 18 May 2026 05:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1779108392; x=1779713192; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=BpD90S7zVLSKrS0nnXh13n/1y9UArA4YWDOn0pfW+nw=; b=ZJZq8nCLK71nBjWGFbTiV9+R+w4iFsc2TzdvOlrE4h4BP8qwpQ31J9K0fcCuc0Qcs2 Qn+sMq3+hMEzzMjTucDEhMuHtR2G9jLoWfWElFx+U2EN5lNGcSZKdhD7GPvSYZOmzMvq GMJ1Ij0ZfO2zUjvoM4LDbcvcB3c+JNIEE4zCc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779108392; x=1779713192; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BpD90S7zVLSKrS0nnXh13n/1y9UArA4YWDOn0pfW+nw=; b=DvLTw/XdVHgwiJaNRfiYF8ZvnjmU6BzdlZOQuKvx0cyJELSovU6CE/ewC9t4E2ZZzj wguQX2Egz32PNF7KZf8+E0ugCWC35wS2WAm7r7YVx3HnBTTVZmode8IoBhvYo6I/YtP2 deLf8LOARg+aMKePrt9o/CSXYXnMIZiNqKT2biC/0oS0xWbYaGywV0PiPdadQf70XrSN rSpF+vph/cyjGuga/YzX5gmXg97F9FeSirFCkjWg0we35cPQSfwcshXo5qIQm4PkAep5 n9bNSs8r0CryaD4q/SFtrzpyFA9lsfal6hBmRQ08jszU3nG1xtdiaa5OymTH+DoQas/m 7jmQ== X-Forwarded-Encrypted: i=1; AFNElJ+GmU99H4GZ7qY5l2ajDyyg2pfTeN8SOrYRYI2AcQwn3amgYRWEsZZQ292ARWzRov2ZJXGG3g==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yyo6U2qILU1kiIOveb7vhwUAhEJyMnTWgJuRK+Ycdnld6kHS67G uxpWXC3ZoTuhqJeYrJGoloU8vvK94k/0nuYx+rLPYUg7FYTzIxikMeAlX+dNi0hxsA== X-Gm-Gg: Acq92OHPqiiViu8KdCEzg1c0eyrTxg8r2+ICJCiOTQSdj3z2t5EMVIKdcEC2vP9Ykhi 1HLcLkbr7GDnj2aBJPWtHRW8bvBjZt8gsrcymEerP1AbExgKbsHRzQC4rt/ut04OL74HkgcG/Oq KmL6gNN6vhKMGIFhvyHh5a3XvSshwpD9Q5ORwzBnkrroJjEudlrco+y1PyfGMVrmx+lYj3BwQcP KXqkvN4DM00IKKApDrEH05Ou0CbosQtHEXmjj+ApU3h3sXxAYpEDkdJO9+RCi/wufDRWjOzsDEi JPSq/HsC/R6nFUiBAmDXE0kyY0mgtHag7F6ml6S1h5m9j9+RX7/tQ2GZYMEuHDborAqQh8AFka6 FSbL97hr7R5dXRD3Wam7jx6Q3jG5QaRaHvLeU71A7d4/VKIQ5DB61wBLOcDz3tH78Tq5NabtXUI aTvn9dEN+CLyUH4/dYMcq0ZQVUmHMvXFjUEMNDiwv5U5oyq/otsa+kvmxrhqskFgvfiyztIWtk9 jIqtkpU891zqLTxiRzoO8+RMD1/b0/JLLl5VQ== X-Received: by 2002:a05:6000:26c4:b0:43f:e99a:ff91 with SMTP id ffacd0b85a97d-45e5c362195mr23899687f8f.4.1779108392351; Mon, 18 May 2026 05:46:32 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9ec3ac86sm36748343f8f.14.2026.05.18.05.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 05:46:31 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64ICkUux046472 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 18 May 2026 13:46:30 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64ICkUIM046469; Mon, 18 May 2026 13:46:30 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Mon, 18 May 2026 13:46:30 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86tss52aui.fsf@HIDDEN> Message-ID: <66cc8fcf-8b2b-1a6b-c7ac-d16eeb48c2d1@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> <86tss52aui.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-822111022-1779108390=:5579" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-822111022-1779108390=:5579 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 18 May 2026, Eli Zaretskii wrote: > computing treesit-data-directory's default value as > > (expand-file-name "../../../tree-sitter" data-directory) Can we be sure of how many “../” we need? How about the attached instead? > This is cleaner than hard-coding the default value, IMO. Agreed. -- Peter Oliver ---1463811584-822111022-1779108390=:5579 Content-Type: text/plain; charset=US-ASCII; name=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch Content-Transfer-Encoding: BASE64 Content-ID: <e611965d-0731-1aab-7304-d24eacb98d63@HIDDEN> Content-Description: Content-Disposition: attachment; filename=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch RnJvbSAwZjQ3Mzg0NDM0YTZkYjFiMDkwNzU0YzQ0NzdmMWQ3MTY3YWMyMTZm IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogTW9uLCAxOCBNYXkgMjAyNiAx MzozNzo1NiArMDEwMA0KU3ViamVjdDogW1BBVENIXSBMb29rIGZvciBUcmVl LXNpdHRlciBoaWdobGlnaHRpbmcgcXVlcmllcyBpbiBtb3JlIHBsYWNlcw0K IChidWcjODEwMjUpDQoNCiogbGlzcC90cmVlc2l0LXguZWwgKHRyZWVzaXQt ZGF0YS1kaXJlY3RvcnkpOiBOZXcgdmFyaWFibGUsIHdpdGggZGVmYXVsdA0K cmVsYXRpdmUgdG8gZGF0YS1kaXJlY3RvcnkuDQoodHJlZXNpdC1leHRyYS1x dWVyaWVzLXBhdGgpOiBOZXcgd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KGxl dCogKChwYXRoDQorICAgICAgICAgIChhcHBlbmQNCisgICAgICAgICAgIHRy ZWVzaXQtZXh0cmEtcXVlcmllcy1wYXRoDQorICAgICAgICAgICAobGlzdA0K KyAgICAgICAgICAgIChsb2NhdGUtdXNlci1lbWFjcy1maWxlICJ0cmVlLXNp dHRlciIpDQorICAgICAgICAgICAgdHJlZXNpdC1kYXRhLWRpcmVjdG9yeSkp KQ0KKyAgICAgICAgIChmaWxlIChzZXEtc29tZQ0KKyAgICAgICAgICAgICAg ICAobGFtYmRhIChkaXIpDQorICAgICAgICAgICAgICAgICAgKGxldCAoKGZp bGUgKGV4cGFuZC1maWxlLW5hbWUNCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgKGZvcm1hdCAicXVlcmllcy8lcy9oaWdobGlnaHRzLnNjbSIg bGFuZykNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyKSkp DQorICAgICAgICAgICAgICAgICAgICAod2hlbiAoZmlsZS1leGlzdHMtcCBm aWxlKQ0KKyAgICAgICAgICAgICAgICAgICAgICBmaWxlKSkpDQorICAgICAg ICAgICAgICAgIHBhdGgpKQ0KKyAgICAgICAgIChxdWVyeSAod2hlbiBmaWxl DQogICAgICAgICAgICAgICAgICAgKHdpdGgtdGVtcC1idWZmZXINCiAgICAg ICAgICAgICAgICAgICAgIChpbnNlcnQtZmlsZS1jb250ZW50cyBmaWxlKQ0K ICAgICAgICAgICAgICAgICAgICAgKGJ1ZmZlci1zdWJzdHJpbmctbm8tcHJv cGVydGllcyAocG9pbnQtbWluKSAocG9pbnQtbWF4KSkpKSkpDQpkaWZmIC0t Z2l0IGEvbGlzcC90cmVlc2l0LmVsIGIvbGlzcC90cmVlc2l0LmVsDQppbmRl eCA1MjUzNDM5YTlkZC4uYjgwNjdkMjE5NDYgMTAwNjQ0DQotLS0gYS9saXNw L3RyZWVzaXQuZWwNCisrKyBiL2xpc3AvdHJlZXNpdC5lbA0KQEAgLTU4MzAs NiArNTgzMCw3IEBAIHRyZWVzaXQtZW5zdXJlLWluc3RhbGxlZA0KICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdXQt ZGlyDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHRyZWVzaXQtZXh0cmEtbG9hZC1wYXRoKSkNCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKGFkZC10by1saXN0ICd0cmVlc2l0LWV4 dHJhLWxvYWQtcGF0aCBvdXQtZGlyKQ0KKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAoYWRkLXRvLWxpc3QgJ3RyZWVzaXQtZXh0cmEtcXVlcmll cy1wYXRoIG91dC1kaXIpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHQpKSkpDQogICAgICAgICAgICAgKHRyZWVzaXQtaW5zdGFsbC1sYW5n dWFnZS1ncmFtbWFyIGxhbmcgb3V0LWRpcikNCiAgICAgICAgICAgICA7OyBD aGVjayB0aGF0IHRoZSBncmFtbWFyIHdhcyBpbnN0YWxsZWQgc3VjY2Vzc2Z1 bGx5DQotLSANCjIuNTQuMA0KDQo= ---1463811584-822111022-1779108390=:5579--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 18 May 2026 11:53:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 18 07:53:30 2026 Received: from localhost ([127.0.0.1]:56601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOwXK-0006SV-DP for submit <at> debbugs.gnu.org; Mon, 18 May 2026 07:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33712) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wOwXH-0006SF-VZ for 81025 <at> debbugs.gnu.org; Mon, 18 May 2026 07:53:29 -0400 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 <eliz@HIDDEN>) id 1wOwXA-0006mF-Ha; Mon, 18 May 2026 07:53:22 -0400 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=0cVxRK2PIUXl7xyKSAZy+jOPFXt72rWp87AZBqs26kI=; b=Tkxw2iPtWvsC UTwSYMePnC0toWfHppDws8K3j+aoQgG4TJHbk64jPwYhIlZ6hkWCtGJ3RBbIgUWhLhmd0bRVnAAlh 3nuslGqbrpzOJ4yRCE9caGxaBLVCgGe8vhIQHKRSfuTXBUP8cSxQFdmJebEmtjqT9Yv0/T41QM7x2 1/KL5AS2UjJkXxVSr0NcCDFanIsLuUJ9bOrbEWgQe4R9QWRWkr00I/Z6r1ReODZFQiCTDvZ9Qlmvr qQ7AKK063A0biKaMl/4fAGLoHBe6bZ+5rB8eVF35lp0QhG8Bx+1hpH87tCB8dEn2SUKRWVuaTiRID mbULtftgpRLLkM2TVP3M4A==; Date: Mon, 18 May 2026 14:52:53 +0300 Message-Id: <86tss52aui.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> In-Reply-To: <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> (message from Peter Oliver on Sun, 17 May 2026 22:18:04 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sun, 17 May 2026 22:18:04 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > On Fri, 15 May 2026, Eli Zaretskii wrote: > > > having these file names in epaths.h is the > > wrong way to solve these problems. If the directory where these *scm > > files live is determined by distros unrelated to Emacs, the default > > value should either be nil or a directory relative to data-directory. > > >From the Fedora package, we could cope with either of those, like so: > > - If treesit-data-directory defaults to nil, we could install some lisp called from site-start.el to set it to "/usr/share/tree-sitter". > - If treesit-data-directory defaults to a sub-directory "tree-sitter" of data-directory, we could install a symlink "/usr/share/emacs/30.2/etc/tree-sitter" pointing at "../../../tree-sitter". > > Alternatively, in the Emacs source code, we could hard-code the default value of treesit-data-directory to "/usr/share/tree-sitter", which was the behaviour that Juri proposed. Hard coding a path makes me uncomfortable, but, pragmatically, it would be right most of the time and, when it was wrong, it would be no more wrong than the above alternatives. > > Do you have a preference for any of these? The 2nd one, i.e. computing treesit-data-directory's default value as (expand-file-name "../../../tree-sitter" data-directory) This is cleaner than hard-coding the default value, IMO.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 17 May 2026 21:18:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 17 17:18:16 2026 Received: from localhost ([127.0.0.1]:47623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wOisH-00052C-Rc for submit <at> debbugs.gnu.org; Sun, 17 May 2026 17:18:16 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:46252) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wOisD-000517-Ab for 81025 <at> debbugs.gnu.org; Sun, 17 May 2026 17:18:11 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so17593335e9.0 for <81025 <at> debbugs.gnu.org>; Sun, 17 May 2026 14:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1779052688; x=1779657488; darn=debbugs.gnu.org; h=content-id:mime-version:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wwwDkE51b3EidMJWfmtdIaUzLJN6Q/L6VZa1Hyn+KWg=; b=G4SHtjsvhfXWwab703wLZD+JRZuFhFMfh4NMdtU1rtgS6hUwNwaesckZtFc4aSwPJF mQGlAwO8+utZ3o5uPlkwsGH2XeTdFR/1Sll8knawud340+HRWx1Q0MFVN4VMwugAouA3 7f/JOQP+aqskZ5xyFXc+2u8Q0ogmaCVjIJhgQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779052688; x=1779657488; h=content-id:mime-version:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wwwDkE51b3EidMJWfmtdIaUzLJN6Q/L6VZa1Hyn+KWg=; b=kWGqYkpokZVOjux/UH/SKqRTE57vZ/EcRuuzFOLxiEJVrFET3AvKM+LQSG3K8o6FOd Lu1YQXJoijUhir5kia2uXypZoiBme9Pdmm+LaHnuYQ6Iy+sHuNxazedXgwd2I+or8VYJ TFeoopp3l8+ijflMKvAU2ypI/9gMsHpmHPN2Fe6EVeKNhLSmRNBsrS3daKVfulCy8VcY NV27Dd9g4335WCxMgrL3c1yquHje9M9vLpVPROko0wzz/My1smqsc37tUmAXCF0qBK35 KYd81zXl5goEwibEG6iUipCVTaJibG8bkc8PSlPYCbTUXXcg7vJaSF+s430OsFqRr7MQ KXAw== X-Forwarded-Encrypted: i=1; AFNElJ986k1hApdYgj1RW6btfwEPpbrnURho5Jud7m5BxEMu+cYFp58nGY2UN+7zKbVrE7bHzi4SzA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yzg03elJBBGHbmV2tr9YNkcV+ASL89JWUiLAcT1RCfpmUt8A5Tw AggRnchysar9Z63nYa+3fLQGKfWvNY8gd+nBD5IqWtJwMDNR6whNIPanTfll2dsBgw== X-Gm-Gg: Acq92OFI5WRbRHWsqihhwu6kf/P4IyDOO+2r4/AWdyJsZqpAOMxWbab9FQSg+FN1hK2 m4xHV8BrD5DJW3fg6SF7qXq8VZ84b4FxetAXdjfPrB8jGSnjWMG8Ty1+uBxcIGQYZRVqPCjrWPy TV6Aq3EayhaNF9RgpYcN+5ffKncoQqo3jZ/6N/dH4A77/78gZcHV5VgOXraRdX2uKHq6u7olECe t/4a2g1+iAytlDtlyg5t9rXa4wBUTs5Um+5fjXg6SxohPWcQwyPivS5TJWLgcq7Hvy0P9PdQove lwqn0TZJjJTk3veU1X9GrrQ1OlHFAqv5C45knIC3APVmFXoBEVwvmwkoVeNlF6pD0kgqpHMCx39 RlXZTl0QM4corbLvfNScEQUfI1mvpD1fDo0SUkrrYL5p16GEJbo2c+2own/M5lVr0jhMqICVtcL 6PoPE8OxjJjD9Z5ri7avtUwvc9Icc+Y/Ip7e3gSxmy59jHkFoOnDWO2sULOEZKMqX+VZtqRlDK+ 5/R35GMQpGyLYKJ3T1nwujBDQWLHmtL6HHjjg== X-Received: by 2002:a5d:584c:0:b0:446:db72:e8ec with SMTP id ffacd0b85a97d-45e5c587281mr18839615f8f.23.1779052687551; Sun, 17 May 2026 14:18:07 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9ec3ac86sm32014435f8f.14.2026.05.17.14.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2026 14:18:06 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64HLI5dd032852 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 17 May 2026 22:18:05 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64HLI4Lc032847; Sun, 17 May 2026 22:18:04 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sun, 17 May 2026 22:18:04 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <861pfc7nj3.fsf@HIDDEN> Message-ID: <e6a50eb6-4a79-3374-d106-c60a35604715@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII; format=flowed Content-ID: <000ad0b1-b51e-7273-c30e-94793bf78612@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Fri, 15 May 2026, Eli Zaretskii wrote: > having these file names in epaths.h is the > wrong way to solve these problems. If the directory where these *scm > files live is determined by distros unrelated to Emacs, the default > value should either be nil or a directory relative to data-directory. From the Fedora package, we could cope with either of those, like so: - If treesit-data-directory defaults to nil, we could install some lisp called from site-start.el to set it to "/usr/share/tree-sitter". - If treesit-data-directory defaults to a sub-directory "tree-sitter" of data-directory, we could install a symlink "/usr/share/emacs/30.2/etc/tree-sitter" pointing at "../../../tree-sitter". Alternatively, in the Emacs source code, we could hard-code the default value of treesit-data-directory to "/usr/share/tree-sitter", which was the behaviour that Juri proposed. Hard coding a path makes me uncomfortable, but, pragmatically, it would be right most of the time and, when it was wrong, it would be no more wrong than the above alternatives. Do you have a preference for any of these? -- Peter Oliver
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 15 May 2026 14:44:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 10:44:30 2026 Received: from localhost ([127.0.0.1]:46199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNtm8-0004GQ-Bl for submit <at> debbugs.gnu.org; Fri, 15 May 2026 10:44:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51320) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wNtm5-0004Es-9W for 81025 <at> debbugs.gnu.org; Fri, 15 May 2026 10:44:26 -0400 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 <eliz@HIDDEN>) id 1wNtlz-0007HD-8P; Fri, 15 May 2026 10:44:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+1QCdF7oUwRAoymkvmyP3ieEZlTmsazKnBCysruUgUU=; b=YkU3qq2/z9azYCEfGh/P 1kpL7hTIfYQncXhkbE9o/7SFrgbv5QVGQhXKsSm2HdHCk44OUmE2Dlwpjc6v+O2HlrWXjwrSYtdFv SF4iRHMt9Fovjc+Xc8Etl4rslJ6iOmdOXX2tws7pRVWLd5CxMo4ZfuCx2QWwN1qBrHNkc4BgCWv6k uUEtIhpAHbjnEviwnYNoXegIKiGUfRiSuUBGkblYukk0f8Cv9aoVDbn5guCqKikkKwMXijnogEqlO W0E/LkrL9nPT/AhWbOCOfAhOIBMYgLUSbmkhZn6K19uyWt5YIYucSjkoOTIIs6HibWVV+bKngWqSz e6/xUB/xCe+w1w==; Date: Fri, 15 May 2026 17:44:17 +0300 Message-Id: <86zf2068ce.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: p.d.oliver@HIDDEN In-Reply-To: <861pfc7nj3.fsf@HIDDEN> (message from Eli Zaretskii on Fri, 15 May 2026 17:30:56 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> <861pfc7nj3.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN > Date: Fri, 15 May 2026 17:30:56 +0300 > From: Eli Zaretskii <eliz@HIDDEN> > > > Date: Fri, 15 May 2026 14:40:53 +0100 (BST) > > From: Peter Oliver <p.d.oliver@HIDDEN> > > cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > > > On Fri, 15 May 2026, Eli Zaretskii wrote: > > > > > What is the rationale to do this in epaths.h? That way has serious > > > disadvantages in that it produces file names at build time, rather > > > than at run time. So the result will be only correct on the > > > same system where Emacs was built. > > > > > > (Btw, "/usr/local/share/tree-sitter" sounds > > > wrong to me, because it should be under "/usr/local/share/emacs/".) > > > > The queries files we˘re looking for are not a part of Emacs. They are installed by the Makefiles included with Tree-sitter parsers, so their location is fixed at build time of the parsers. See, e.g., https://github.com/tree-sitter-grammars/tree-sitter-gitattributes/blob/master/Makefile#L81 > > > > Let me explain what I˘m trying to achieve, here. > > > > When we install the RPM package of Emacs 31 on Fedora, it will detect the presence of gitattributes-generic-ts-mode, and optionally pull in the libtree-sitter-gitattributes RPM, containing the following files: > > > > /usr/lib64/libtree-sitter-gitattributes.so.14 > > /usr/lib64/libtree-sitter-gitattributes.so.14.0 > > /usr/share/doc/libtree-sitter-gitattributes/README.md > > /usr/share/licenses/libtree-sitter-gitattributes/LICENSE > > /usr/share/tree-sitter/queries/gitattributes/highlights.scm > > > > Before the patch, Emacs successfully finds /usr/lib64/libtree-sitter-gitattributes.so.14 when activating gitattributes-generic-ts-mode. However, it fails to find /usr/share/tree-sitter/queries/gitattributes/highlights.scm, so syntax highlighting is missing. This patch aims to fix that. > > I understood all that, but having these file names in epaths.h is the > wrong way to solve these problems. If the directory where these *scm > files live is determined by distros unrelated to Emacs, the default > value should either be nil or a directory relative to data-directory. > That is a much better implementation than hard-coding directories in > build-time code. Just to give you more context on this: epaths.h is for directories that Emacs needs to find during the earliest stages of the startup, when the variables like data-directory, doc-directory, and others like these are not yet set up. Later, including during the rest of the startup process, there's no justification for hard-coding directories at build time. And Tree-sitter queries definitely do not belong to something Emacs needs during startup. So there's no reason to add these directories to epaths.h. They should instead be found when the relevant features are loaded, by using the existing variables which point to the places where these queries could be found.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 15 May 2026 14:31:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 10:31:53 2026 Received: from localhost ([127.0.0.1]:46062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNtZu-0002jt-J9 for submit <at> debbugs.gnu.org; Fri, 15 May 2026 10:31:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40294) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wNtZr-0002ia-8F for 81025 <at> debbugs.gnu.org; Fri, 15 May 2026 10:31:48 -0400 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 <eliz@HIDDEN>) id 1wNtZk-0003CU-R6; Fri, 15 May 2026 10:31:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=xBkvISnW2aLeJpiNVWNOWg3Qfi7f5xU/vNrNx1Rryes=; b=nVj6Zg+kyQTEyVsSEqBQ bME9aLrj5Y/exxeGAlQu7Cvd6ZB2lfyn2NSOD2T4xGqD186AnKMUBeKeJ1KqFv1SIkN2BuIwkvZgv EmaqH78L3nzF95Zx/AOQjIrqbNL/LybQPwocJmddmzYUDDpmgqSuHE8hv6x+u8jQJVWCK4ZADcgeO hTGESGyJXKnhPcHtxf76cZoQGZ0gFR7r8SIkkVYsXBmH1L+t+DRvPFzQSF2YZiW7DlqFPz81Hc2Wg Kew0rFPysb3g50pmXMdTjmor363wLTSDqoba2GYz/TcnT5vCZZy4HNCWYmhakzlJpLEjtSku1hpFo 2s3PNZcYkXGQew==; Date: Fri, 15 May 2026 17:30:56 +0300 Message-Id: <861pfc7nj3.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> In-Reply-To: <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> (message from Peter Oliver on Fri, 15 May 2026 14:40:53 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN> <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 15 May 2026 14:40:53 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > cc: juri@HIDDEN, 81025 <at> debbugs.gnu.org > > On Fri, 15 May 2026, Eli Zaretskii wrote: > > > What is the rationale to do this in epaths.h? That way has serious > > disadvantages in that it produces file names at build time, rather > > than at run time. So the result will be only correct on the > > same system where Emacs was built. > > > > (Btw, "/usr/local/share/tree-sitter" sounds > > wrong to me, because it should be under "/usr/local/share/emacs/".) > > The queries files we˘re looking for are not a part of Emacs. They are installed by the Makefiles included with Tree-sitter parsers, so their location is fixed at build time of the parsers. See, e.g., https://github.com/tree-sitter-grammars/tree-sitter-gitattributes/blob/master/Makefile#L81 > > Let me explain what I˘m trying to achieve, here. > > When we install the RPM package of Emacs 31 on Fedora, it will detect the presence of gitattributes-generic-ts-mode, and optionally pull in the libtree-sitter-gitattributes RPM, containing the following files: > > /usr/lib64/libtree-sitter-gitattributes.so.14 > /usr/lib64/libtree-sitter-gitattributes.so.14.0 > /usr/share/doc/libtree-sitter-gitattributes/README.md > /usr/share/licenses/libtree-sitter-gitattributes/LICENSE > /usr/share/tree-sitter/queries/gitattributes/highlights.scm > > Before the patch, Emacs successfully finds /usr/lib64/libtree-sitter-gitattributes.so.14 when activating gitattributes-generic-ts-mode. However, it fails to find /usr/share/tree-sitter/queries/gitattributes/highlights.scm, so syntax highlighting is missing. This patch aims to fix that. I understood all that, but having these file names in epaths.h is the wrong way to solve these problems. If the directory where these *scm files live is determined by distros unrelated to Emacs, the default value should either be nil or a directory relative to data-directory. That is a much better implementation than hard-coding directories in build-time code.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 15 May 2026 13:41:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 09:41:00 2026
Received: from localhost ([127.0.0.1]:44256 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wNsmi-0004eZ-94
for submit <at> debbugs.gnu.org; Fri, 15 May 2026 09:41:00 -0400
Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:54553)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>)
id 1wNsmf-0004eI-Ov
for 81025 <at> debbugs.gnu.org; Fri, 15 May 2026 09:40:59 -0400
Received: by mail-wr1-x430.google.com with SMTP id
ffacd0b85a97d-43d7645adbdso5071064f8f.1
for <81025 <at> debbugs.gnu.org>; Fri, 15 May 2026 06:40:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1778852456; x=1779457256; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=GvyK34VUKj2AS7TFFCn4iU/PuZF1yp9Uw8P/VnlX5Eo=;
b=PSjmkk65FztcxelYAjTyLti38YIfouwqzNH5jEQynd41ZqWmRM5u+D/XjtJsRqFH5P
R5xESzvy4O4DrbKaluhAWPcsaTW3FGP1IfjEJUyBWs7O3e99/vMf1SCw22ccIhmdkZI/
mdrnH8+tF1ugPr01o6NsjXRm8qz7zLtsiERdo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1778852456; x=1779457256;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=GvyK34VUKj2AS7TFFCn4iU/PuZF1yp9Uw8P/VnlX5Eo=;
b=jp6cOYnRNsD39wgLuaD/aksOPYqzrLGx8fLJ3XLeN1POeUNw3xpDStvtolW7fGse3X
I2M9zy0zNugeK7DunlRjvniE65gkBrRbc5kgkpEDd0xkGIP+X+0sgLINbBqdXo3jB0ZN
hGB6ynr+/IFzRalUFc5wAEtfE644uCpa9j1NYdanPrpyDH8rLCkWG2ouj3dbi1s3RVin
Zm51ijmssMThUpDnANFEX0qXgEVzOx4OTxgKIIU+F4PbGFK0Kv2ONjos0NJUBRYSLbE6
QGUSV71u1eAmY1t9BOkoi7xmkY5A7M0A2SVNgDhjXgwhqwfTgnqTNbRsu/Gg2fyRc1hC
U1Lg==
X-Forwarded-Encrypted: i=1;
AFNElJ99HYY47W85o2PN/rS8W4+KPk/IqIN333bpY6B6qdFR/WTxFHmvy8EFd9pGG9nQMgU2VIaQSg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwUi59ygZTyQSd1AeAfc/CmXl3JrriTd5nEjEMxZ4OniDHbFJB8
2VY45dcNWOd3p3S6vs3xH+qCHzo7Tr+joyrEs2lwd/5vaY5gY4SHgvEiA4DPytNr+eKULfWwjnf
biyAEfw==
X-Gm-Gg: Acq92OEKq8rHaG8wMubNzRbuEBzaqxpvuMBblCo7ihCGoAQlpH6bizAyuHwksGykft1
m7dL6StMvxG1CfVS+ekt6OCa+5mPJeTTQc1ONSXrXYJRygu6nsvaEVFK0eYORyLvpliPG7TwRld
Qojo/SjT5A2jAWwJSzrgQofkf9NUeiOnQV9rI8wun5AdB6blZJX9/zkd7moYE2GNts4gZfa3DdB
1VMF8Swio/bhSUcMC9e4qNCgUtVCNddN//TJZjMAlYRWkj366KeYRb/w43gDmHfgUOza8rUVTX8
rRpjjqxYzNsgBRfHYZtZTM/FYkVNGRogDK6dzchDdtE40OlCAY4nHQoXFmoVsJpwMb9VitW/f+t
sJIPprViOp/Lxyfpyrx9+88ZXUjp+R58dvul5eqCViskFnrGXQ/ZvcGBfCZGLdXVQcU/gd7jV8W
BBwUKMZqalYHeueNdufh2oskeZ+oxJJyMtfTqXfSuEDq5LXZ9Q3L00rHKclVjPo3zcTqY6x4gh3
sWdqMLa3Dwlcdy1p9br+puUlSNl/bajU/+GRw==
X-Received: by 2002:a5d:588f:0:b0:43c:ef4f:79e4 with SMTP id
ffacd0b85a97d-45e5c5a5575mr5115304f8f.37.1778852456265;
Fri, 15 May 2026 06:40:56 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-45da15a6454sm14664147f8f.34.2026.05.15.06.40.54
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 15 May 2026 06:40:55 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64FDesh4068241
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 15 May 2026 14:40:54 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id
64FDerZV068238; Fri, 15 May 2026 14:40:53 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Fri, 15 May 2026 14:40:53 +0100 (BST)
From: Peter Oliver <p.d.oliver@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
In-Reply-To: <865x4o7sha.fsf@HIDDEN>
Message-ID: <ed5629e0-5b47-04b1-834d-1ad8f93985b6@HIDDEN>
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<87ecjgd7is.fsf@HIDDEN>
<c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
<87a4u3nrl4.fsf@HIDDEN>
<14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN>
<87jyt60ydj.fsf@HIDDEN>
<5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> <865x4o7sha.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-1538150366-1778852454=:5502"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 81025
Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-1538150366-1778852454=:5502
Content-Type: text/plain; charset=ISO-8859-7; format=flowed
Content-Transfer-Encoding: 8BIT
On Fri, 15 May 2026, Eli Zaretskii wrote:
> What is the rationale to do this in epaths.h? That way has serious
> disadvantages in that it produces file names at build time, rather
> than at run time. So the result will be only correct on the
> same system where Emacs was built.
>
> (Btw, "/usr/local/share/tree-sitter" sounds
> wrong to me, because it should be under "/usr/local/share/emacs/".)
The queries files we˘re looking for are not a part of Emacs. They are installed by the Makefiles included with Tree-sitter parsers, so their location is fixed at build time of the parsers. See, e.g., https://github.com/tree-sitter-grammars/tree-sitter-gitattributes/blob/master/Makefile#L81
Let me explain what I˘m trying to achieve, here.
When we install the RPM package of Emacs 31 on Fedora, it will detect the presence of gitattributes-generic-ts-mode, and optionally pull in the libtree-sitter-gitattributes RPM, containing the following files:
/usr/lib64/libtree-sitter-gitattributes.so.14
/usr/lib64/libtree-sitter-gitattributes.so.14.0
/usr/share/doc/libtree-sitter-gitattributes/README.md
/usr/share/licenses/libtree-sitter-gitattributes/LICENSE
/usr/share/tree-sitter/queries/gitattributes/highlights.scm
Before the patch, Emacs successfully finds /usr/lib64/libtree-sitter-gitattributes.so.14 when activating gitattributes-generic-ts-mode. However, it fails to find /usr/share/tree-sitter/queries/gitattributes/highlights.scm, so syntax highlighting is missing. This patch aims to fix that.
--
Peter Oliver
---1463811584-1538150366-1778852454=:5502--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 15 May 2026 12:47:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 08:47:52 2026 Received: from localhost ([127.0.0.1]:43695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNrxI-0008Kf-Gz for submit <at> debbugs.gnu.org; Fri, 15 May 2026 08:47:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35142) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wNrxG-0008KO-N9 for 81025 <at> debbugs.gnu.org; Fri, 15 May 2026 08:47:51 -0400 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 <eliz@HIDDEN>) id 1wNrxA-00049L-Rw; Fri, 15 May 2026 08:47:45 -0400 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=e2tU1dsuX2fe6qATbUcOy1kDeD2CksbxcZKSVDVmLBE=; b=IFlVn5WD1ON0 ++SJF8Eo4cCDlqQiHLP726cKU6E2jHjwo3RnbtJSgmj4EgrgfP0FMk4GdmPQFu2AaBdSFIuk5A1e4 iAbt1pic+3Md1MT6Rpe4dMvg4yCRaM/5AwL+Tm+Mz2dhcPt6XJCQWk5w/tLgytttnu89v4HwzpSZ2 2jIPkdPJw5g/QXpjRtjDPGYtcS2/CuUREYooC28f0hfoCfSao79wX2Iv9THOgH9ET0K3zZno+Qlnr eL0BMss9yAy19rvVntwZEbFzNpM1fsSLB6vhHyd+naSCKKh7ce04SYcxPn4zzQLAH+mXkgmw1eeX3 UQYOb7sIl+vFWrvwJCjZJQ==; Date: Fri, 15 May 2026 15:47:21 +0300 Message-Id: <864ik87sbq.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> In-Reply-To: <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> (message from Peter Oliver on Fri, 15 May 2026 12:47:17 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 81025 <at> debbugs.gnu.org > Date: Fri, 15 May 2026 12:47:17 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > > On Thu, 14 May 2026, Juri Linkov wrote: > > > Thanks for suggestions. Does this look better? > > Yes, but attached is what I had in mind. What is the rationale to do this in epaths.h? That way has serious disadvantages in that it produces file names at build time, rather than at run time. So the result will be only correct on the same system where Emacs was built. By contrast, using locate-user-emacs-file for files under the home directory and data-directory for files under /usr/local/share doesn't have this disadvantage. (Btw, "/usr/local/share/tree-sitter" sounds wrong to me, because it should be under "/usr/local/share/emacs/".) As a nice side effect, if we use the above approach, the issue with epaths.nt goes away.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 15 May 2026 12:44:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 08:44:12 2026 Received: from localhost ([127.0.0.1]:43651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNrtk-00084K-BI for submit <at> debbugs.gnu.org; Fri, 15 May 2026 08:44:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53330) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wNrth-000845-N5 for 81025 <at> debbugs.gnu.org; Fri, 15 May 2026 08:44:11 -0400 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 <eliz@HIDDEN>) id 1wNrtb-00024v-Il; Fri, 15 May 2026 08:44:03 -0400 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=e2tU1dsuX2fe6qATbUcOy1kDeD2CksbxcZKSVDVmLBE=; b=FECH6bNcGzxS ZbhsAP1FUi0S+zwwW+kotTiyHcjZTn1FNAogl/BcPLW+ROMdeJ4nG+TZhC4ytOsminya442ty5xSh Tnt7TX2MmDlSmxaP9rGq4ShFFYW7q680Aktn9j6E8Q16UaHu4YW12S2NBphcoYFi3neXI6Z1C2dEG Ow0J8fKGBlvS7IPIdEKd+lgyLloMTuqAvQ87RMtzd2T13WkxHY7UDtrDwqmi0xARsD1CluUoq0/4M BOZaYWzTr2NDXJJT1CN8QLMApEPeXZyWr/MAus3wq/h6abC2HBMKwHQETp9lCsqP2GGJoibHSmyzd y1KWrC4PXfx334qch6hMtA==; Date: Fri, 15 May 2026 15:44:01 +0300 Message-Id: <865x4o7sha.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> In-Reply-To: <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> (message from Peter Oliver on Fri, 15 May 2026 12:47:17 +0100 (BST)) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 81025 <at> debbugs.gnu.org > Date: Fri, 15 May 2026 12:47:17 +0100 (BST) > From: Peter Oliver <p.d.oliver@HIDDEN> > > On Thu, 14 May 2026, Juri Linkov wrote: > > > Thanks for suggestions. Does this look better? > > Yes, but attached is what I had in mind. What is the rationale to do this in epaths.h? That way has serious disadvantages in that it produces file names at build time, rather than at run time. So the result will be only correct on the same system where Emacs was built. By contrast, using locate-user-emacs-file for files under the home directory and data-directory for files under /usr/local/share doesn't have this disadvantage. (Btw, "/usr/local/share/tree-sitter" sounds wrong to me, because it should be under "/usr/local/share/emacs/".) As a nice side effect, if we use the above approach, the issue with epaths.nt goes away.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 15 May 2026 11:47:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 07:47:31 2026 Received: from localhost ([127.0.0.1]:42939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNr0p-0002Lt-I8 for submit <at> debbugs.gnu.org; Fri, 15 May 2026 07:47:31 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:46149) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wNr0k-0002Ka-As for 81025 <at> debbugs.gnu.org; Fri, 15 May 2026 07:47:26 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so106716215e9.0 for <81025 <at> debbugs.gnu.org>; Fri, 15 May 2026 04:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1778845640; x=1779450440; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=ETY9FfeYnpHNoYd6llaRGAOeYO85ukbXWF9KrEJs8FE=; b=RD/lJI9p95KjFMLMKz77tkJixL+MJEfyDjvK6rnGWE48dhwLKKkD1M9J3UK8eedHS9 f3VDzL+L3tHIWLgS/82EsVlgelLPPhswNw5NSLK3sK7VbxQ0jeUNXJ2cxGCbl7tBxo4r c/eVMMXV1zOVcjG696V7/qYJ4CB+un2OyHesY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778845640; x=1779450440; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ETY9FfeYnpHNoYd6llaRGAOeYO85ukbXWF9KrEJs8FE=; b=maEl/GwQ4oneBhf+Jfj+2+xKAjsH7hpZN+H625FAtVylPwQPjtVCabMYZueJyYIzn9 /I2301PXZmE1jeOkNe8Ud9sHRVoAITFj7f886sGoaBelN8JB87HUWsMRvXbqhxi6aFvq /sUVvgcbBQt9AnuDqz+QXGwZoMm3INZS2qwn2wo1tejQV8W3kjqjF2jDFIJ9KEN+K77y 5QyT2pxml+grvOEqQAw4pNzQg/Wfcux6HHBSBY35LQ1s9AZntXgmtQ0QkMji1AEKIAzT vKlK0f36MNqkva4csVJ/28Hokyq+dtc4dUWr+W2lZRDnSXAYpzqxP935jjYVpNgFNIRl EnEA== X-Gm-Message-State: AOJu0YxaqdGfyHAzXGnQaYwFK15nkgXawdlj/jiDargOd8yYEnrHZ/tB YDqRNT8NUrIWV2er8MTV9a59zEoZ7Jv5bIg1xJAaWfzCu7/cUYL4oFxKvzTM/3wArg== X-Gm-Gg: Acq92OGwvEbwoq6OtKuh7hdZ8Aib3S7AfP8DNROpsQKkt098UECi20vauA+gCwwJLwL vk36UlUWoZ3/2wx3FdiyhyVWHXsn96H9jObOEFWiVmox/ZjzIjmu7g8FnOn5j/l7tHaglwSp0XH Ijkof2pPKD2NP7Fpl5erGUTyIBnMGK3Az9RwmlziDotatmFDJbLves2uyctu08xgIe7X9hDduvh Be8JBqbGH/4BaGvENJu0B1VEvEI5rQ06C5Hdx3DJ9LaKze2Hp0M708ldj1h0fuLMq3fQplXj9cg mvBw9AWscKnYq1NwqTt/xfjZi5eQvt92Ci/9j5/YYBAN4tarw5FHCRbLrrv1cUyC0nmZznH96QB zX8SE/7uVBLOJheN7RGt+/GdZI4a6VzAqArM1ZU7GQ9JYB62ZPcCJ7oAQB5dTw1Zc3T2cW7y971 HLgBZgSGQxmk9nh0Jrswv7TgrqK/94edefKMI/ulJkkpV7/YwywPmcmTQdVe1jNjsTWLwQqSZXE j1wqYXlwuYvO/6V+qT0bvQlWQ7/MkrX6YcOaA== X-Received: by 2002:a05:600c:4e46:b0:488:bc6a:528d with SMTP id 5b1f17b1804b1-48fe632243cmr51796945e9.22.1778845640215; Fri, 15 May 2026 04:47:20 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9e767ee0sm13393347f8f.1.2026.05.15.04.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 04:47:19 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64FBlH9B050917 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 15 May 2026 12:47:17 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64FBlHI7050913; Fri, 15 May 2026 12:47:17 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Fri, 15 May 2026 12:47:17 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87jyt60ydj.fsf@HIDDEN> Message-ID: <5be3c439-f7ab-c73f-e71f-9d9336b709e4@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> <87jyt60ydj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-1593411961-1778845637=:5502" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-1593411961-1778845637=:5502 Content-Type: text/plain; charset=US-ASCII; format=flowed On Thu, 14 May 2026, Juri Linkov wrote: > Thanks for suggestions. Does this look better? Yes, but attached is what I had in mind. -- Peter Oliver ---1463811584-1593411961-1778845637=:5502 Content-Type: text/plain; charset=UTF-8; name=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch Content-Transfer-Encoding: BASE64 Content-ID: <ae2c5195-4df7-a5f4-c0fb-3ea53fadec5d@HIDDEN> Content-Description: Content-Disposition: attachment; filename=0001-Look-for-Tree-sitter-highlighting-queries-in-more-pl.patch RnJvbSBiZjAxODFkYmE1Mjk5NGEzNjcwZmU5NDc4YTlkZjVkNTU5ZDk4N2Rj IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogRnJpLCAxNSBNYXkgMjAyNiAx Mjo0MjozNCArMDEwMA0KU3ViamVjdDogW1BBVENIXSBMb29rIGZvciBUcmVl LXNpdHRlciBoaWdobGlnaHRpbmcgcXVlcmllcyBpbiBtb3JlIHBsYWNlcw0K IChidWcjODEwMjUpDQpNSU1FLVZlcnNpb246IDEuMA0KQ29udGVudC1UeXBl OiB0ZXh0L3BsYWluOyBjaGFyc2V0PVVURi04DQpDb250ZW50LVRyYW5zZmVy LUVuY29kaW5nOiA4Yml0DQoNCkZpbGVzIG5hbWVkICJoaWdobGlnaHRzLnNj bSIgYXJlIGJ1bmRsZWQgd2l0aCBUcmVlLXNpdHRlciBwYXJzZXJzLCBhbmQN CnVzZWQgYnkgZ2VuZXJpYyBUcmVlLXNpdHRlciBtb2RlcyB0byBwcm92aWRl IHN5bnRheCBoaWdobGlnaHRpbmcuICBXZQ0Kc2hvdWxkIGxvb2sgZm9yIHRo ZW0gaW4gYWxsIG9mIHRoZSBwbGFjZXMgdGhhdCB0aGV54oCZcmUgbGlrZWx5 IHRvIGJlDQppbnN0YWxsZWQuDQoNCkNhdXRpb24hICBGaWxlIG50L2VwYXRo cy5udCBuZWVkcyBhdHRlbnRpb24gZnJvbSBzb21lb25lIHdobyB1bmRlcnN0 YW5kcw0Kd2hhdCBhIHNlbnNpYmxlIHZhbHVlIGZvciBQQVRIX1RSRUV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lIChzZXEtc29tZQ0K KyAgICAgICAgICAgICAgICAobGFtYmRhIChkaXIpDQorICAgICAgICAgICAg ICAgICAgKGxldCAoKGZpbGUgKGV4cGFuZC1maWxlLW5hbWUNCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgKGZvcm1hdCAicXVlcmllcy8lcy9o aWdobGlnaHRzLnNjbSIgbGFuZykNCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgZGlyKSkpDQorICAgICAgICAgICAgICAgICAgICAod2hlbiAo ZmlsZS1leGlzdHMtcCBmaWxlKQ0KKyAgICAgICAgICAgICAgICAgICAgICBm aWxlKSkpDQorICAgICAgICAgICAgICAgIHBhdGgpKQ0KKyAgICAgICAgIChx dWVyeSAod2hlbiBmaWxlDQogICAgICAgICAgICAgICAgICAgKHdpdGgtdGVt cC1idWZmZXINCiAgICAgICAgICAgICAgICAgICAgIChpbnNlcnQtZmlsZS1j b250ZW50cyBmaWxlKQ0KICAgICAgICAgICAgICAgICAgICAgKGJ1ZmZlci1z dWJzdHJpbmctbm8tcHJvcGVydGllcyAocG9pbnQtbWluKSAocG9pbnQtbWF4 KSkpKSkpDQpkaWZmIC0tZ2l0IGEvbGlzcC90cmVlc2l0LmVsIGIvbGlzcC90 cmVlc2l0LmVsDQppbmRleCA1MjUzNDM5YTlkZC4uYjgwNjdkMjE5NDYgMTAw NjQ0DQotLS0gYS9saXNwL3RyZWVzaXQuZWwNCisrKyBiL2xpc3AvdHJlZXNp dC5lbA0KQEAgLTU4MzAsNiArNTgzMCw3IEBAIHRyZWVzaXQtZW5zdXJlLWlu c3RhbGxlZA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICBvdXQtZGlyDQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHRyZWVzaXQtZXh0cmEtbG9hZC1wYXRo KSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGFkZC10by1s aXN0IC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IEdOVSBFbWFjcy4NCiBUaGlz IGlzIHVzdWFsbHkgdGhlIHNhbWUgYXMgYGRhdGEtZGlyZWN0b3J5Jy4gICov KTsNCmRpZmYgLS1naXQgYS9zcmMvZXBhdGhzLmluIGIvc3JjL2VwYXRocy5p bg0KaW5kZXggYWFmYjlmZDE3YzguLjY2MmJiYWMxZTBlIDEwMDY0NA0KLS0t IGEvc3JjL2VwYXRocy5pbg0KKysrIGIvc3JjL2VwYXRocy5pbg0KQEAgLTc1 LDYgKzc1LDEwIEBAIGFsb25nIHdpdGggR05VIEVtYWNzLiAgSWYgbm90LCBz ZWUgPGh0dHBzOi8vd3d3LmdudS5vcmcvbGljZW5zZXMvPi4gICovDQogICAg bWFjcm8sIGFuZCBpcyB0aGVuIHVzZWQgdG8gc2V0IHRoZSBJbmZvLWRlZmF1 bHQtZGlyZWN0b3J5LWxpc3QuICAqLw0KICNkZWZpbmUgUEFUSF9JTkZPICIv dXNyL2xvY2FsL3NoYXJlL2luZm8iDQogDQorLyogV2hlcmUgRW1hY3Mgc2hv dWxkIGxvb2sgZm9yIFRyZWUtc2l0dGVyJ3MgYXJjaGl0ZWN0dXJlLWluZGVw ZW5kZW50DQorICAgZGF0YSBmaWxlcywgc3VjaCBhcyBxdWVyaWVzLiAgKi8N CisjZGVmaW5lIFBBVEhfVFJFRVNJVF9EQVRBICIvdXNyL2xvY2FsL3NoYXJl L3RyZWUtc2l0dGVyIg0KKw0KIC8qIFdoZXJlIEVtYWNzIHNob3VsZCBzdG9y ZSBnYW1lIHNjb3JlIGZpbGVzLiAgKi8NCiAjZGVmaW5lIFBBVEhfR0FNRSAi L3Vzci9sb2NhbC92YXIvZ2FtZXMvZW1hY3MiDQogDQotLSANCjIuNTQuMA0K DQo= ---1463811584-1593411961-1778845637=:5502--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 14 May 2026 16:15:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 12:15:09 2026 Received: from localhost ([127.0.0.1]:38192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNYiK-000689-Mo for submit <at> debbugs.gnu.org; Thu, 14 May 2026 12:15:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38742) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wNYiH-00066J-Ra for 81025 <at> debbugs.gnu.org; Thu, 14 May 2026 12:15:06 -0400 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 <eliz@HIDDEN>) id 1wNYiB-0005C8-55; Thu, 14 May 2026 12:14:59 -0400 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=65gTVd8hAyndOUb1rooTrjlpfiN2WlpkcA0c75nSfto=; b=LUvojOIMKsOM XmqLTPgIrhRiYSjQAxVFT3mE86l2snA3THAyGCrNMTe5n9LWRkj39zGzF4j4c/iO3CE7mUJjut0tA Ua32IrsYbo6LIccPiUi8LVK8lNozzLagQVzhkRPeqQj5hAwElohC9aO3q2LvMdTWqqv5nOsPUiz80 NJnjyMOSznaA5tde7g6rCc9hofDP8aAGVD2sp52/tNRsA+E+GXWQU3nUVGf5yYWuKcK+kbvP6urn3 SbskIarPj+j5j0AAAbdwcik2dJYngiTmVB2ViX96gkL2/jQ7G9A6/YVAymlK3e7YlSY4+8X0TOUFv u8igjfOT+IVle/ezIr3gbA==; Date: Thu, 14 May 2026 19:14:56 +0300 Message-Id: <86zf226k8v.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87o6ii0zb5.fsf@HIDDEN> (message from Juri Linkov on Thu, 14 May 2026 18:46:06 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <86wlx789sv.fsf@HIDDEN> <87o6ii0zb5.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Juri Linkov <juri@HIDDEN> > Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org > Date: Thu, 14 May 2026 18:46:06 +0300 > > >> +(defcustom treesit-generic-queries-path > >> + (list (locate-user-emacs-file "tree-sitter")) > >> + "List of directories to search for query files." > > > > The doc string should preferably say something about when will these > > query files be needed in Emacs. > > Ok. > > > Also, this needs a NEWS entry. > > This file is new in Emacs 31. I meant the new user option. The file might be new, but Tree-sitter support isn't.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 14 May 2026 16:07:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 12:07:43 2026
Received: from localhost ([127.0.0.1]:38135 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wNYb8-0005mr-Tk
for submit <at> debbugs.gnu.org; Thu, 14 May 2026 12:07:43 -0400
Received: from mout-p-101.mailbox.org ([80.241.56.151]:33860)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wNYb6-0005mi-2i
for 81025 <at> debbugs.gnu.org; Thu, 14 May 2026 12:07:41 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org
[IPv6:2001:67c:2050:b231:465::1])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
(No client certificate requested)
by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4gGZwd3lRDz9t14;
Thu, 14 May 2026 18:07:29 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001;
t=1778774849;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
in-reply-to:in-reply-to:references:references;
bh=iQDIMBTPj3o/YHSZ5ENXd87Jo25eUVLL6/M0nM6s3c0=;
b=bLcOSV6E2RSqNCxrhqIm4/lSEke215+WgPscoz5E4ZJpJwKgIPxgnNye6G8pbjKeufS5q3
sfzmGX3a4AVmWeX3tNtOfrnUOyNq2lCfVoZC/YTyI7jcrsA7wt+U72RvuQrSzGuTUsL4KF
eV1eGhoCvtcjYRyTBJu0d+gisOMLsj+ZOgTD1x/ofaZB4f1HW6rfho+LiabmV7OBn1TqUQ
iHakoR7TX97MU9Ab7InpRJxD8gjtt+p9W8cvtIqMYncgpbYe2ZKLB89gzVrqExczbflpQg
QuoJ35LC+RPhV+Z4h1V5+gqyXDyrYZ2/di0wnEkWE68i4cbKVMOYeSWOnH9Twg==
Authentication-Results: outgoing_mbo_mout; dkim=none;
spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Peter Oliver <p.d.oliver@HIDDEN>
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
In-Reply-To: <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN>
Organization: LINKOV.NET
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<87ecjgd7is.fsf@HIDDEN>
<c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
<87a4u3nrl4.fsf@HIDDEN>
<14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN>
Date: Thu, 14 May 2026 19:06:16 +0300
Message-ID: <87jyt60ydj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4gGZwd3lRDz9t14
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81025
Cc: 81025 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
--=-=-=
Content-Type: text/plain
> For symmetry with treesit-extra-load-path, would it be better to have the
> default value be nil, and have treesit-generic-mode-font-lock-query always
> look in ~/.emacs.d/tree-sitter/ and /usr/share/tree-sitter/ (or whatever
> those directories are named for a given user and system)?
>
> If not, I still think we should look in the system queries directory by
> default. I can install something into
> /usr/share/emacs/site-lisp/site-start.d/ from the Fedora packages to change
> the default value of this new variable, but I would prefer not to have to.
>
> Are we sure this will only ever be used with generic modes? Might, say, treesit-extra-queries-path be a better name?
Thanks for suggestions. Does this look better:
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=treesit-extra-queries-path.patch
diff --git a/lisp/treesit-x.el b/lisp/treesit-x.el
index 9d0541b458c..cce5739f0b6 100644
--- a/lisp/treesit-x.el
+++ b/lisp/treesit-x.el
@@ -196,12 +198,34 @@ treesit-generic-mode-font-lock-map
)
"A mapping from default capture names to font-lock faces.")
+(defcustom treesit-extra-queries-path nil
+ "List of directories to search for query files.
+Each directory should have the subdirectory \"queries\"
+used by `treesit-generic-mode-font-lock-query'
+to parse the file \"highlights.scm\"."
+ :type '(repeat (directory :format "%v"))
+ :group 'treesit
+ :version "31.1")
+
(defun treesit-generic-mode-font-lock-query (lang)
- "Find the file highlights.scm and return its queries as a string."
- (let* ((file (expand-file-name
- (format "queries/%s/highlights.scm" lang)
- (locate-user-emacs-file "tree-sitter")))
- (query (when (file-exists-p file)
+ "Find the file highlights.scm and return its queries as a string.
+Use `treesit-extra-queries-path' to customize the path to search."
+ (let* ((path
+ (append
+ treesit-extra-queries-path
+ (list
+ (locate-user-emacs-file "tree-sitter")
+ "/usr/share/tree-sitter/"
+ "/usr/share/emacs/site-lisp/site-start.d/")))
+ (file (seq-some
+ (lambda (dir)
+ (let ((file (expand-file-name
+ (format "queries/%s/highlights.scm" lang)
+ dir)))
+ (when (file-exists-p file)
+ file)))
+ path))
+ (query (when file
(with-temp-buffer
(insert-file-contents file)
(buffer-substring-no-properties (point-min) (point-max))))))
--=-=-=--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 14 May 2026 15:46:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 11:46:46 2026 Received: from localhost ([127.0.0.1]:37933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNYGs-00045J-Hc for submit <at> debbugs.gnu.org; Thu, 14 May 2026 11:46:46 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:49918) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wNYGq-000451-Gf for 81025 <at> debbugs.gnu.org; Thu, 14 May 2026 11:46:44 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4gGZSY2GCwz9v6P; Thu, 14 May 2026 17:46:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1778773597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j5nO31AAi3KkgvTQhbfWlj3csRWkelJwBSLv6M3RNzM=; b=HorTa8oVpAkcyOYgkbPFDvlcRowEQ6AoQZTypzXkDSt3FV4DmWHhK6aXvgVPUEaDUbMj8u eCdhfIVzcxgV0+wpqCDBjgIF6kHc3AKcBq/y4mW9R9RAdMUIVBaXHptEI2DpYC2SQU2G9B ifXIH5dErLoW8mlQr4gvY6DS5jEkGdHJFZp/B1CXVJWhny1K/uWQWHVwn+hpdGtuw2dOaX q5FopkQokowQxbxUjjPiAbehxzkd3Mib2ODNha4saC4ys7CHTJXkLQa2vBQ52JIFoK3tjr q3G4aHn0kuB/afQoX0VCMzxAhQ0DRLuRfP3SemXCQB1BMQTeE6RDZwmnpOShyA== From: Juri Linkov <juri@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <86wlx789sv.fsf@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> <86wlx789sv.fsf@HIDDEN> Date: Thu, 14 May 2026 18:46:06 +0300 Message-ID: <87o6ii0zb5.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> +(defcustom treesit-generic-queries-path >> + (list (locate-user-emacs-file "tree-sitter")) >> + "List of directories to search for query files." > > The doc string should preferably say something about when will these > query files be needed in Emacs. Ok. > Also, this needs a NEWS entry. This file is new in Emacs 31.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 14 May 2026 12:37:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 08:37:36 2026 Received: from localhost ([127.0.0.1]:36299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNVJn-0005oO-TC for submit <at> debbugs.gnu.org; Thu, 14 May 2026 08:37:36 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:50523) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wNVJh-0005nV-PP for 81025 <at> debbugs.gnu.org; Thu, 14 May 2026 08:37:32 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-45562c41ec7so3978833f8f.1 for <81025 <at> debbugs.gnu.org>; Thu, 14 May 2026 05:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1778762248; x=1779367048; darn=debbugs.gnu.org; h=content-id:mime-version:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vUwNmlLrkQyL3ALSOefO9uxZm8GK/r6+3gPZe26knQY=; b=ImiqTBshDWtqYMBdhPdLlsZ9/zkH3TPUg/l+KoM759a45ZK5AMLla2drwmQ7zby61I Rb2sdm+OYNCCLfW6HiiYejOkhjge5+EJgaCNtGpnPgGg6J+hN9ObU/cEAVarJDTl0gC2 2Zwl4VrRVA3Wxtcefn7yv9qMYSL/i7Ksl20Zw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778762248; x=1779367048; h=content-id:mime-version:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vUwNmlLrkQyL3ALSOefO9uxZm8GK/r6+3gPZe26knQY=; b=OJYP7CX4CWp9dCXQoHnohmrLk5Yyw+EFbusxHk9m/XcwjI1j1G3OwtmJjog9UkJyc6 Sv+DlRDi9hUEXVQC83BttYmUJCP5r60RXs9rkqEOiBj9PRESHxEMs4epREx96Df3fPe8 hxYqOCpmQlKL0psg1KvYnUuUbqsbO6hWhLySCp8WBaOXxvzXSg/IrQi9BoZNA3Z8pHyb rIuFVzu+esdt8zJqx/Chkz5ojrdR5Ce6qCcihbquzRtXPV5O+U5/A6jvNqL8zSlJG86x 32jYJ2wdVohBOKrz7fVmTcoxAtDCYQIwiQ/fJMsa1hs71kQWncQFEoP53c7VuDWV7993 j2Og== X-Gm-Message-State: AOJu0YyUYASMYTjKN7C2Rq5ZCRD0LxrFMmE9F5n0HkMcFRSsXBC9ALMf 9hFGoYTn74DrbqEVBNlK0sSkGNiDbA7gbwE+w1lP118/BO3qfdAKrVprc/E0hZ7MpIwDBQCAT1s FUk0qGw== X-Gm-Gg: Acq92OEsoSw0JcPASFR3H6nst/ZVafXVdFtLR4KE0PyA0taVOpY6Ehw15eKxxY3mVId 4QH16ySgjVT3ixFb2WFE3IXfLqRf3dZG3sOoEIyA7RhpEwGIzRMpgGGL0J3r4QhRIXO27TJ3Jif kpIQCGAWK0puD8r1XRkSjPx0dhbV5T+OLOEusYaJC39AVBup56fWMxo0+VYZEajy5CVbVlAbsY+ RX3xKQMQLI93gRGW3dax5Gh6fb3xcLQMGk18lhyGCDalHajacnxU0kENSm0QmuDl/a4YSSMtqa9 OQmokF1Nfk8LYyuUXu9d3vnroCQlWjMRmSvZjkAJvpkA2AleL0P+Q4shvAHmAozDOWBmaR3rnkF FW9vcJgePFbKRgsY5T62pZcWxp7rWxdPgTjO6xaiHiEwrTE6PN5TXynCX7ejQXKIF4kezQ0P+9W kAMVCxlN7eeqhUe5BRgLRM0c2r7u+vR4fSkS60h+01+Q5QKHyTcxMqlu5nrlPnH+a8RH6qi65l3 l8M1u02d8NFfZrXyFfklplKZ1F/udbqzry4HQ== X-Received: by 2002:a05:6000:2f83:b0:43d:73d4:b2f with SMTP id ffacd0b85a97d-45c5a67fbacmr11850429f8f.39.1778762247896; Thu, 14 May 2026 05:37:27 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9ec3acf7sm6512931f8f.12.2026.05.14.05.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 05:37:26 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64ECbPM2049815 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 14 May 2026 13:37:25 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64ECbPWN049806; Thu, 14 May 2026 13:37:25 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Thu, 14 May 2026 13:37:25 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87a4u3nrl4.fsf@HIDDEN> Message-ID: <14a0ffa4-baa2-a65d-b274-0a028bfa4775@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1463811584-1082976867-1778761526=:5548" Content-ID: <af039d31-3db2-d13c-568b-defde89171f2@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-1082976867-1778761526=:5548 Content-Type: text/plain; CHARSET=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: <93fdedda-7200-63d5-1a4c-8d02688ee917@HIDDEN> On Wed, 13 May 2026, Juri Linkov wrote: >> However, that doesn˘t cover the system installation situation, where the >> grammar library will be installed into, say, /usr/lib64/ (which isn˘t in >> treesit-extra-load-path), and the queries into, say, >> /usr/share/tree-sitter/queries/. Both of these directories will vary >> depending on compile options, of course, so perhaps we need a new entry in >> src/epaths.h for /usr/share/tree-sitter/queries/? > > Ok, let's add a new user option that will be possible > to set to any dir: > > (defcustom treesit-generic-queries-path > (list (locate-user-emacs-file "tree-sitter")) > "List of directories to search for query files." > :type '(repeat (directory :format "%v")) > :group 'treesit > :version "31.1") For symmetry with treesit-extra-load-path, would it be better to have the default value be nil, and have treesit-generic-mode-font-lock-query always look in ~/.emacs.d/tree-sitter/ and /usr/share/tree-sitter/ (or whatever those directories are named for a given user and system)? If not, I still think we should look in the system queries directory by default. I can install something into /usr/share/emacs/site-lisp/site-start.d/ from the Fedora packages to change the default value of this new variable, but I would prefer not to have to. Are we sure this will only ever be used with generic modes? Might, say, treesit-extra-queries-path be a better name? -- Peter Oliver ---1463811584-1082976867-1778761526=:5548--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 13 May 2026 18:05:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 13 14:05:38 2026 Received: from localhost ([127.0.0.1]:53993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wNDxi-0004f4-Ee for submit <at> debbugs.gnu.org; Wed, 13 May 2026 14:05:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33980) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wNDxf-0004e4-IR for 81025 <at> debbugs.gnu.org; Wed, 13 May 2026 14:05:36 -0400 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 <eliz@HIDDEN>) id 1wNDxX-0001U8-DC; Wed, 13 May 2026 14:05:28 -0400 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=ROdvkHoAupZpLOdR1ngyiCqcPWiEt8+3akZSkh0BF+s=; b=p8Vyxu1zePh0 MxJrlnecssoZqSeVQKAMW1INdo6UrJAQNiinGziSWQOCp7PJvQj3AyGFvQuQfuSvbrWl361tzVlet KjzeoIPLnKkWnDWzE4tgU23M0AAcnj+FYzo8nZoVpJJIG7dabq6FgYzpaYcU7+FVlvben9f0dVYKl AOZRIDfUJwFzxS6mreL7RETrGnPlAhM48czlxfnJsk3vhM0TNsICPplfQUEj03Mi2rlAAII1gYqh+ lP3/CrU0uyifmdtRjLhxtZg7DWEXrLYny0K2i9axD/nBV7gnV1wLMfpavL/XMTm5yMuIJFLUBgDRf sVBmfAku2v2X9244oOlvYA==; Date: Wed, 13 May 2026 21:05:20 +0300 Message-Id: <86wlx789sv.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Juri Linkov <juri@HIDDEN> In-Reply-To: <87a4u3nrl4.fsf@HIDDEN> (message from Juri Linkov on Wed, 13 May 2026 20:32:07 +0300) Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> <87a4u3nrl4.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 81025 Cc: p.d.oliver@HIDDEN, 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 81025 <at> debbugs.gnu.org > From: Juri Linkov <juri@HIDDEN> > Date: Wed, 13 May 2026 20:32:07 +0300 > > +(defcustom treesit-generic-queries-path > + (list (locate-user-emacs-file "tree-sitter")) > + "List of directories to search for query files." The doc string should preferably say something about when will these query files be needed in Emacs. Also, this needs a NEWS entry. Thanks.
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
Received: (at 81025) by debbugs.gnu.org; 13 May 2026 17:35:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 13 13:35:07 2026
Received: from localhost ([127.0.0.1]:53670 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wNDUA-0000fk-ET
for submit <at> debbugs.gnu.org; Wed, 13 May 2026 13:35:06 -0400
Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:54898)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wNDTz-0000dD-3o
for 81025 <at> debbugs.gnu.org; Wed, 13 May 2026 13:34:58 -0400
Received: from smtp102.mailbox.org (smtp102.mailbox.org
[IPv6:2001:67c:2050:b231:465::102])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
(No client certificate requested)
by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4gG0vp6g6yz9v0Y;
Wed, 13 May 2026 19:34:46 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001;
t=1778693687;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
in-reply-to:in-reply-to:references:references;
bh=4ALUTXKmrPvaXf+WB79XhWjsOIzGAvbrlcjuhWeK2iQ=;
b=K3F7Y54fcDd26n8uRnhEKdqzz0bAFHcvgp6ibJYvkyhQrImPHs9BSyU9DqNqZthPSzmnxt
areiGtdnpvkB5dgs0Of7Y/Dd663yRhNynacfPGuFkW3ZAF2c2ZQw6lzFyFoJso7IGyzA4q
te0RIS8u2pd1T4H+s2R+cDZo6MsM5w19ySjJt7dDCYW+AEZAmHoshK9CN4ixL1vq9+MHo1
SrGEQIjr94WAlyFnO2asPlKdpGBIvGU+U4CaTfocvlw6oAyQlKvUVrI73MMXZHQxLebI72
MpHpFwJ8DpUBAPhpxjQ6m/TXtaA8ZswA6KLrxcNSXgZTHzXQcnyhnSO3TUZhmw==
Authentication-Results: outgoing_mbo_mout; dkim=none;
spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
2001:67c:2050:b231:465::102 as permitted sender)
smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Peter Oliver <p.d.oliver@HIDDEN>
Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should
look in /usr/share/tree-sitter/queries/
In-Reply-To: <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
Organization: LINKOV.NET
References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN>
<87ecjgd7is.fsf@HIDDEN>
<c58bec2d-c504-47f7-f470-759700337a66@HIDDEN>
Date: Wed, 13 May 2026 20:32:07 +0300
Message-ID: <87a4u3nrl4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4gG0vp6g6yz9v0Y
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 81025
Cc: 81025 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
> However, that doesn’t cover the system installation situation, where the
> grammar library will be installed into, say, /usr/lib64/ (which isn’t in
> treesit-extra-load-path), and the queries into, say,
> /usr/share/tree-sitter/queries/. Both of these directories will vary
> depending on compile options, of course, so perhaps we need a new entry in
> src/epaths.h for /usr/share/tree-sitter/queries/?
Ok, let's add a new user option that will be possible
to set to any dir:
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=treesit-generic-queries-path.patch
diff --git a/lisp/treesit-x.el b/lisp/treesit-x.el
index 9d0541b458c..1baf3297ba1 100644
--- a/lisp/treesit-x.el
+++ b/lisp/treesit-x.el
@@ -196,12 +198,24 @@ treesit-generic-mode-font-lock-map
)
"A mapping from default capture names to font-lock faces.")
+(defcustom treesit-generic-queries-path
+ (list (locate-user-emacs-file "tree-sitter"))
+ "List of directories to search for query files."
+ :type '(repeat (directory :format "%v"))
+ :group 'treesit
+ :version "31.1")
+
(defun treesit-generic-mode-font-lock-query (lang)
"Find the file highlights.scm and return its queries as a string."
- (let* ((file (expand-file-name
- (format "queries/%s/highlights.scm" lang)
- (locate-user-emacs-file "tree-sitter")))
- (query (when (file-exists-p file)
+ (let* ((file (seq-some
+ (lambda (dir)
+ (let ((file (expand-file-name
+ (format "queries/%s/highlights.scm" lang)
+ dir)))
+ (when (file-exists-p file)
+ file)))
+ treesit-generic-queries-path))
+ (query (when file
(with-temp-buffer
(insert-file-contents file)
(buffer-substring-no-properties (point-min) (point-max))))))
--=-=-=--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 12 May 2026 16:34:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 12 12:34:36 2026 Received: from localhost ([127.0.0.1]:37244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wMq43-0007JF-Vp for submit <at> debbugs.gnu.org; Tue, 12 May 2026 12:34:36 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:45139) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wMq3z-0007IN-GY for 81025 <at> debbugs.gnu.org; Tue, 12 May 2026 12:34:34 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-48d102471a4so57465875e9.2 for <81025 <at> debbugs.gnu.org>; Tue, 12 May 2026 09:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1778603670; x=1779208470; darn=debbugs.gnu.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=3uj0/FfcblwIKiBvwENq+jZtS2xH5q7BBotizuICxnY=; b=MFcpreQy/e5LdbL4pTkdsDuPhIspR8H9457gO3OJKH9XeEF/pv0fQPIhXPahcssn5j ITsLTXSSQ78vkTC2Ug/ZPuGG5Ahix/wmrlf05ij92Wr10BWR/UgaBr3vK0cwmSGCDUww XV37SwBlY9kegdzkXrJa+hUqsVoOcjf1QqUjs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778603670; x=1779208470; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3uj0/FfcblwIKiBvwENq+jZtS2xH5q7BBotizuICxnY=; b=MhCDHSf0RyQeH62f0UA5249Xpq4FsKaUQXh3l+KM+Du5UG5O1ZtEheGsbWqfPuebxA BPw639BjXN3KYMT33hpM7Xb0MehZ3K9BrM27JwZGOAF1X/L9DE9lvB+QQ6QdnReIRnbC YfmDUgvW4FW2qCm8SfXIloxdzlKpgqFTuy7aGDstsm1blQWXn+1Yc3lbJVEzoYDq7d4d eVXAfMrdzcS5VvKohEcpNBWIfD8KYMXrUe+pYIe16arpW6dbgcBXdpAWZQKWPrW7gmmQ 8FopeJTXbWllCsjcTkNbWbph2+0hIrT/kTMJxHRzO7plbxGerX+L8FjjBHYzWcqdTOvX eOzA== X-Gm-Message-State: AOJu0YxPwR5ZeLydvDON2xExAKoQiWNwIc00piGJgS7PmvJdN7+m+uK/ LOR4G7TJFUjWd2YEWQxcTGPD2FiLbjVDQ8w0Pd4veOyaVaIPb5sWPChCysFmhgpx8sTHqBcSsyF ICW7aww== X-Gm-Gg: Acq92OF+6LEsjFGhLH92QxzaeBg3g9XnCc65d6Trf6yJVdXqmWGO9MY2l5C8Cz6MzP6 U/3l3cfnzjwaFfzxmbGdtXU2F+ZSsDUKbWOZzqwTbVqmVu18yH/tDgxSyYyu3Eoi+Ub5Zm0r7+9 cl0SsQYTrsticY8VR/L0avIELoypdR2uHobRuRGdZgPPFS6Dj/BHYKdrxtYKefycymHFRmC7/ha 8u/9ItOM+urw94I8hpHdwUnAj3vGGdct3R9f9V0K5keWGPPI3G7hkm9NO0F9UssVGMa1vknE8nY VqYiIO6qXIEgmliOFID2mTRvmRvvvjQbIHdD96GLW1DS+iqfq9o8gv6qB08lJqsD2HgKXbVQXYH FNhSDz7oHrFdHX1xRWMtcU4OoCdsfxgW1us81G+UBd38lrl3U+75MLvcywLm1ycm2om89+0gjUz NXAb37Y7euInkaQ1rEpMTeyq3EG43y9J6iWnRMX0fBiSgroEmj6GiEagUjG9y8FD8r9aicypy5t cmauOEHIljxtN4Yb2kktSh+2HHrfHpKJLhW4Q== X-Received: by 2002:a05:600c:1908:b0:489:1cd2:610a with SMTP id 5b1f17b1804b1-48e6767dfa2mr315758475e9.9.1778603669405; Tue, 12 May 2026 09:34:29 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fc8d624fbsm22624365e9.10.2026.05.12.09.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 09:34:28 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTPS id 64CGYRtk138781 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 12 May 2026 17:34:27 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64CGYRux138778; Tue, 12 May 2026 17:34:27 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Tue, 12 May 2026 17:34:27 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <87ecjgd7is.fsf@HIDDEN> Message-ID: <c58bec2d-c504-47f7-f470-759700337a66@HIDDEN> References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> <87ecjgd7is.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811584-2095379039-1778603667=:5782" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-2095379039-1778603667=:5782 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8BIT On Tue, 12 May 2026, Juri Linkov wrote: >> Tree-sitter query files are currently found by function >> treesit-generic-mode-font-lock-query only if they are stored under >> ~/.emacs.d/tree-sitter/queries/ (or equivalent). However, recent >> Tree-sitter grammars ship with a Makefile that installs the query files >> under /usr/share/tree-sitter/queries/, so we should look there too. > > Do you think it's possible to derive the correct path for query files > from 'treesit-extra-load-path'? If we want treesit-auto-install-grammar when set to 'ask-dir to work with treesit-generic-mode-font-lock-query, then we˘ll need to do that. For that use case, it˘s perhaps as simple as looking in a queries/ subdirectory of each element of treesit-extra-load-path. However, that doesn˘t cover the system installation situation, where the grammar library will be installed into, say, /usr/lib64/ (which isn˘t in treesit-extra-load-path), and the queries into, say, /usr/share/tree-sitter/queries/. Both of these directories will vary depending on compile options, of course, so perhaps we need a new entry in src/epaths.h for /usr/share/tree-sitter/queries/? -- Peter Oliver ---1463811584-2095379039-1778603667=:5782--
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at 81025) by debbugs.gnu.org; 12 May 2026 15:37:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 12 11:37:56 2026 Received: from localhost ([127.0.0.1]:36587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wMpBD-0000PQ-Gq for submit <at> debbugs.gnu.org; Tue, 12 May 2026 11:37:56 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:35144) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1wMpB8-0000NZ-Ba for 81025 <at> debbugs.gnu.org; Tue, 12 May 2026 11:37:52 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4gFLMB0pq1z9tgK; Tue, 12 May 2026 17:37:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1778600262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PhordVsY0k6VpnFyy0n4PIaufQQiAwKEG3jGM5Vb9Fg=; b=TOoBCx3RTn6nYmat0SExfc38cBmtzhwxQn8uttJrpuiK89M4uT1yPWL+VE7TrY7jVrdTtS Ff5Jqi+fl/lWpM+oh+A/cpzemm7x2ivkBL/A62drf5RDUtA1hp2CLw+sCSiTg/cyCzsz6b TKaGdZ7jDNc3DCyAz8E4q1UbGyRnydBwGDueJ49QP6ru+zjuVpdQcG/JxWd6aW4Qx3zeLt ZeOKLxT86Bg6JB2khyqfQPNykTe4KQOQWMaEvzY4/AR+u4HI4aLP3eb4DNYYYGVqn/J7Q6 8vijhO4Mmc27ANjGLEpEfVjhrYMeP69HOS9d41c+Go53rUGvSNC6BbJM9SlXAg== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@HIDDEN From: Juri Linkov <juri@HIDDEN> To: Peter Oliver <p.d.oliver@HIDDEN> Subject: Re: bug#81025: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ In-Reply-To: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> Organization: LINKOV.NET References: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> Date: Tue, 12 May 2026 18:31:07 +0300 Message-ID: <87ecjgd7is.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4gFLMB0pq1z9tgK X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81025 Cc: 81025 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Tree-sitter query files are currently found by function > treesit-generic-mode-font-lock-query only if they are stored under > ~/.emacs.d/tree-sitter/queries/ (or equivalent). However, recent > Tree-sitter grammars ship with a Makefile that installs the query files > under /usr/share/tree-sitter/queries/, so we should look there too. Do you think it's possible to derive the correct path for query files from 'treesit-extra-load-path'?
bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.Received: (at submit) by debbugs.gnu.org; 12 May 2026 14:20:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 12 10:20:19 2026 Received: from localhost ([127.0.0.1]:35773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wMny5-0007yB-De for submit <at> debbugs.gnu.org; Tue, 12 May 2026 10:20:18 -0400 Received: from lists1p.gnu.org ([2001:470:142::17]:58266) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <p.d.oliver@HIDDEN>) id 1wMny0-0007rw-Io for submit <at> debbugs.gnu.org; Tue, 12 May 2026 10:20:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <p.d.oliver@HIDDEN>) id 1wMnxc-0005hc-1a for bug-gnu-emacs@HIDDEN; Tue, 12 May 2026 10:19:48 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <p.d.oliver@HIDDEN>) id 1wMnxW-0000dt-Kg for bug-gnu-emacs@HIDDEN; Tue, 12 May 2026 10:19:47 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-488ab2db91aso61200315e9.3 for <bug-gnu-emacs@HIDDEN>; Tue, 12 May 2026 07:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1778595579; x=1779200379; darn=gnu.org; h=mime-version:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=5/O+gYhKMuKTFJtZjQAKxVwsx+sGTHzLb+1JpsM+IX8=; b=imGr5+FhxC/tK4UZ3d0sRwNJkYd6HO0OMq3kmiQrox5NyiHisg32yhWk3DrAGgTwY/ pfN8pPng/lTB6H5B2IE0BwpLK6evskAUcM3+lM+12/I7RbHZFalbKhZUYgvBHgOaFQlh C0UK7OI0cZotsIrgQ5I3hth36twkUX8lJ20YU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778595579; x=1779200379; h=mime-version:message-id:subject:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5/O+gYhKMuKTFJtZjQAKxVwsx+sGTHzLb+1JpsM+IX8=; b=bWvXvKatS/iST/WHuGnRTKZX0fLnUhNkEiAePtln5UsPSQMedAIS8yCHQF6zGRDoS6 WfgYiQ5FVaHh9vL5XbcOuZAhkRuXqMn8KExgVtuN1eeUR7SRttklTIvKfFoCB8/zkRog YrSIJWSO5lA4n3Al5IQcfOvnGPKjEJGIWh9N/h6KqAl7t2fRraCQF2EI2BfbugJxh+SA uY7IysPBbXschf9voA9YQQUvim28eq/mMDlRuVKFwYXBGzrkM/eKJD3cjXRolSl3R1VZ HTYzjhAR9UYYeFB/Iv8ViMTTMnkSBNO0tiqnapk3teCKfPiZxVfCfo3HwYoLSJLoRiC+ lbAg== X-Gm-Message-State: AOJu0YzNeUW3bd6+zMn8pxEcxPJhOQ3x2Yf7BTiP96VeM+7PfBJaa0Pj papS5xHg0cDRsFRVdLBmCdCNwzA4aKX9SJuFBzvKPFTtQIBc03Vx/UfKKtkz/bBbujOzF/udTiC x3PpcMg== X-Gm-Gg: Acq92OG2jKyywoCI32IE8PrERJzZmsi3W2eXiwc5WE2s+RUkEwf+tHDLl5GM6xv6wcR RP/9jxBWfDVA+rO9wh6xH1kVv08pw0Ul8SU7FXcdYSoqWRpBcNUGkw1i1qri+U8SF0mYNXAEujL H0W9B0f3XuHZ0hBumUJz7zL+SRQx2TpcyVpXmXq7IXOlgZbwD3AGR/0Iti85QJT/iezRno1tJwi WuwhJtieUvaggmDp1/w8HRVK477PEcuNTDCi47cuHNd+o8KPE/Ypg7DZD/jwQJGjHkpN/SV4LFs 8WrLg5ubg7zVAMMo9rzcKO5T8n0o/p9Ye4CdLLvlKhlZY3ZK0cV/xYu+nTKFy9c6yaBAfe/8elu sNrWIJkspSxdjlSMNeQMIFCTirwr/9c0C1NtW+Th7v8tVkrjfxThrjTX5GXcvX+qytNkUdM+17X +3ag33TbnkON1Z9xSDRI9w48GfATVZ41kKICunBtQwM0ki5IElFmFIaBBiIIP9LP6yLO3K7YqQd q+tPWjq6SdVYG6TJOFHgV3Omyz/xWz1ZYLcyQ== X-Received: by 2002:a05:600c:3b17:b0:489:e696:836f with SMTP id 5b1f17b1804b1-48e51e15718mr429675615e9.10.1778595579044; Tue, 12 May 2026 07:19:39 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e8e566cf7sm34963505e9.0.2026.05.12.07.19.37 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 07:19:37 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.18.2/8.18.2) with ESMTP id 64CDDsLp050407 for <bug-gnu-emacs@HIDDEN>; Tue, 12 May 2026 14:13:54 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.18.2/8.18.2/Submit) with ESMTP id 64CDDsMO050404 for <bug-gnu-emacs@HIDDEN>; Tue, 12 May 2026 14:13:54 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Tue, 12 May 2026 14:13:54 +0100 (BST) From: Peter Oliver <p.d.oliver@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; treesit-generic-mode-font-lock-query should look in /usr/share/tree-sitter/queries/ Message-ID: <3b2568d6-40d8-280e-eb7f-34b12e711b6e@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=p.d.oliver@HIDDEN; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.3 (/) Tree-sitter query files are currently found by function treesit-generic-mode-font-lock-query only if they are stored under ~/.emacs.d/tree-sitter/queries/ (or equivalent). However, recent Tree-sitter grammars ship with a Makefile that installs the query files under /usr/share/tree-sitter/queries/, so we should look there too. -- Peter Oliver
Peter Oliver <p.d.oliver@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#81025; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.