From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#60559: 29.0.60; "Cannot activate tree-sitter" spam Date: Thu, 5 Jan 2023 15:17:36 +0200 Message-ID: References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 60559@debbugs.gnu.org, mardani29@yahoo.es, epg@pretzelnet.org To: Eli Zaretskii , Fu Yuan , Stefan Monnier , Lars Ingebrigtsen , Theodor Thornhill , Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 14:18:34 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 1pDQ8b-0006ZY-QL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 14:18:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDQ8E-0005oh-AI; Thu, 05 Jan 2023 08:18:06 -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 1pDQ8A-0005lv-Gf for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 08:18: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 1pDQ8A-0006hW-83 for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 08:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDQ89-0006i9-MO for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 08:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 13:18:01 +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.167292466625777 (code B ref 60559); Thu, 05 Jan 2023 13:18:01 +0000 Original-Received: (at 60559) by debbugs.gnu.org; 5 Jan 2023 13:17:46 +0000 Original-Received: from localhost ([127.0.0.1]:50508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDQ7u-0006hh-Hb for submit@debbugs.gnu.org; Thu, 05 Jan 2023 08:17:46 -0500 Original-Received: from mail-ej1-f45.google.com ([209.85.218.45]:43652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDQ7s-0006hS-Mx for 60559@debbugs.gnu.org; Thu, 05 Jan 2023 08:17:45 -0500 Original-Received: by mail-ej1-f45.google.com with SMTP id kw15so89851076ejc.10 for <60559@debbugs.gnu.org>; Thu, 05 Jan 2023 05:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=KLJtk9LJlXjsWmm+dyOFY5yHsYLh5llyzjx5A2qcJYk=; b=OFT1+D1Y2PE3dd827Lh4Fp5KILjXIwn0/Sz4Qouzz8NHkcGog112dwVeiT1Vq4EK24 /canLHCyuUgjB8Jzw0eQLv9ttuj7Uw/JRssCpv1AbuA5otG3bcGJIHYitaIjevOJu2ms rncQXwxuQ2v2pS/hAAbM5jxCOJ60mfAPnR+fDCng5CqHNtHgIS8hJVPKVFyAjxL/vEAo MwbJR1qadM2gQFbEfsWay1uUVasPB1j/tpnK6AucesNvLIGffP+IdjWVG/WfO84blDz3 3zklFIga8GZBcHAOBFWOVRFo6XRIy3dILRy7uum4juvRcPZzEqoJq5qRIiinM+Ilo9+8 4rjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KLJtk9LJlXjsWmm+dyOFY5yHsYLh5llyzjx5A2qcJYk=; b=poKtxoR+BvVQL2kU6cNsx4Z957KF+KF6+NWEt333kOZWCwrKA0Yq1Y1KHBgqTW32kX RkQ/WlzQe/koPsECX9T8gWijstYQxHJ1kdcHtLCdHEMIH1oqdqMyD4Ja08+bjpK4FTMR 6sxnRcLTdu6Z+I7rMK1G6TvDsr7+oFriIuQR3CL+OmUZDiG50b+hFQ6m5c1OnnkxRjm7 dFEFOxJKaqJMW7FRJH8xARsNYdE5+dNETrCD0j1r5EmyTJQkFh/iNFwn+21soLCZ17lK IrY4UpThKwCf8vpJSWB/jK8KXqTOIUesG4SEQOu7ZIRTGZ0YvJLbdROyODf32Cf2W/2a Ut/g== X-Gm-Message-State: AFqh2kpB6J75kX3d77ppH+qsDanIELMHwwQ8c9n/NBXBuLU0x2cjOV3g uv4VW2OTs9Xwbpuy2uNKRnE= X-Google-Smtp-Source: AMrXdXsQXrJ2JK1dpegErfKMThBilBkxuFw65PBcwaQKurUz1lf5/AHRWPEIaC5F0ISLnmfCWD9DDw== X-Received: by 2002:a17:906:700f:b0:7c0:d1cb:2165 with SMTP id n15-20020a170906700f00b007c0d1cb2165mr44286031ejj.56.1672924658807; Thu, 05 Jan 2023 05:17:38 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b22-20020a170906d11600b007c09d37eac7sm16510462ejz.216.2023.01.05.05.17.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 05:17:38 -0800 (PST) Content-Language: en-US In-Reply-To: <83h6x5xym7.fsf@gnu.org> 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:252598 Archived-At: On 05/01/2023 08:51, Eli Zaretskii wrote: > So here's a suggestion for such a solution: we make all the > *-ts-mode's optional. That is, we don't add any of them to > auto-mode-alist unless the file *-ts-mode.el is loaded, and we > document them all in NEWS and the user manual as optional. users who > want them will have to manually activate them. This way, the original > use case that started this bug report is automatically solved, and the > other use case, where the user intends to activate one of these modes, > is also served by showing the warning, which in that case is perfectly > justified: the user asked for something that we cannot do, so we warn > him/her. Personally, I'd rather the users be made aware that they can install such-and-such grammars and enjoy good support for the file types they just visited. I understand that it can be a bother for people who are used to just editing such files using fundamental-mode, but they could similarly complain if we added a major mode (for a given file type) that is functional but still different from the "last 25 years". So I agree with your original assessment that it's not a bug. What we could do here, though, to reduce the aggravation: - Move the warning to *Messages*. It will be slightly less noticeable, but won't occupy "half the screen" either. and/or - Add a new defcustom which would allow people to silence the tree-sitter related warnings altogether. tree-sitter major modes without available grammars work more or less like fundamental-mode. Or we can just recommend such users edit their auto-mode-alist to associate fundamental-mode with those file types. That only takes a few minutes.