From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam Date: Thu, 05 Jan 2023 08:41:59 +0200 Message-ID: <83ilhlxz2g.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <877cy2841j.fsf@gmx.net> <83mt6yxdq0.fsf@gnu.org> <87358q82fx.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27757"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60559@debbugs.gnu.org, epg@pretzelnet.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 07:42:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDJxA-0006zP-Ts for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 07:42:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDJwz-0005my-40; Thu, 05 Jan 2023 01:42:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDJwx-0005mV-8Y for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 01:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDJww-0006Eu-Lw for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 01:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDJww-0005vK-AZ for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 01:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 06:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix notabug Original-Received: via spool by 60559-submit@debbugs.gnu.org id=B60559.167290091622759 (code B ref 60559); Thu, 05 Jan 2023 06:42:02 +0000 Original-Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 06:41:56 +0000 Original-Received: from localhost ([127.0.0.1]:50064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJwq-0005v0-AR for submit@debbugs.gnu.org; Thu, 05 Jan 2023 01:41:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDJwo-0005ul-Nk for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 01:41:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDJwi-0006Ci-RP; Thu, 05 Jan 2023 01:41:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DDEHl3WNE+1RC0qG4rMTfHzPq4jrXLf8WsTTlp8ukaQ=; b=iUn/gp3lFKl3 WxSYBksw4ajbiY9MP0F0Ywcm9wm6FvPflwi4D4eMFck9xRx6Mk1mT1IodR5wPdS7ynBYB/zFqG3dj flZEztr2vrG0KRR8cKez42PEpAh0OnTmERBGZbbyIoNdKpcKouiWOEtsDJoJgSyr1oDKScxSyVVB6 Gei0Y03f3vqo+vqT0xgkQH/15MW2WMuvqj/1R4JRFfgceZhY65+XSkTjLMmB63ArHuuch1I4K3Nhv IPAHxHlxxt7ol9o1WjCYoL2g3W1/UCFrW0LTkZ1eIUiXjJ8DVyK5MSJuP8yez7SeCBORqepnMNkUE 0gai8gCwcUtZ6sly+VhVFw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDJwf-00024j-3W; Thu, 05 Jan 2023 01:41:47 -0500 In-Reply-To: <87358q82fx.fsf@gmx.net> (message from Stephen Berman on Wed, 04 Jan 2023 21:33:38 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252556 Archived-At: > From: Stephen Berman > Cc: epg@pretzelnet.org, 60559@debbugs.gnu.org > Date: Wed, 04 Jan 2023 21:33:38 +0100 > > On Wed, 04 Jan 2023 22:10:47 +0200 Eli Zaretskii wrote: > > >> From: Stephen Berman > >> Cc: Eric Gillespie , 60559@debbugs.gnu.org > >> Date: Wed, 04 Jan 2023 20:59:04 +0100 > >> > >> >> Warning (treesit): Cannot activate tree-sitter, because > >> >> tree-sitter library is not compiled with Emacs > >> > > >> > This is not a bug. Emacs 29 comes with major modes for TOML files and > >> > for Dockerfiles, and those new major modes require that you build > >> > Emacs with the tree-sitter library (and install the corresponding > >> > parser grammar libraries). If you don't want to do that, you can > >> > instead customize auto-mode-alist to make Emacs use Fundamental mode > >> > (or any other mode you like) for these two file types. > >> > >> Emacs 28 already has conf-toml-mode for TOML files, so shouldn't > >> toml-ts-mode be handled like e.g. c-ts-mode instead of being added to > >> auto-mode-alist? (The default value of that variable in Emacs 29 still > >> contains an entry for conf-toml-mode, lower down than the entry for > >> toml-ts-mode.) > > > > We could indeed do that for TOML files, but I believe the problem > > raised here is more general. > > That may be, but the TOML case appears to be a regression, since > visiting a TOML file in Emacs 28 displays various faces but visiting a > TOML file in Emacs 29 without having the tree-sitter TOML grammar > library installed displays only the default face. I've now made toml-ts-mode an optional one, leaving conf-toml-mode as the default.