From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Juri Linkov <juri@linkov.net>
Newsgroups: gmane.emacs.bugs
Subject: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31
Date: Wed, 20 Nov 2024 20:25:59 +0200
Organization: LINKOV.NET
Message-ID: <87bjy9wymg.fsf@mail.linkov.net>
References: <87serlzuvi.fsf@mail.linkov.net>
 <EA496E38-B53D-4EDC-A972-DD693E36FEF1@getmailspring.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="26985"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org>,
 "liaotx2@gmail.com" <liaotx2@gmail.com>, Daan Ro <daanturo@gmail.com>
To: Yuan Fu <casouri@gmail.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 20 19:31:26 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1tDpU5-0006lu-Hu
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Nov 2024 19:31:25 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1tDpTq-0007Ts-DR; Wed, 20 Nov 2024 13:31:11 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1tDpTj-0007TO-AS
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 13:31:03 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1tDpTj-00006i-26
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 13:31:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=MIME-Version:Date:References:In-Reply-To:From:To:Subject;
 bh=tsH4ejs5xxHww0D1ixVmm4oma70DtA/E88oXWqBu04M=; 
 b=FVXKUaeLJT0w5CU4+7tCoZ6Kxh4yrWs4t/AEQrDG2zvImrdISi1uYCyXBVjNBWB2WmjoJX2LA1tx8D/nGRwU/2Nx8HBSd+ZH3N2WRjwjfQmg2wHaTQffl/dwd5tYvPxi/Cd8tjLby64S8yau+xDkrJCiZuMTtw8c90hItFpzPSXTL+UXSgyuYWI0124PTbzOsRGzL45pRR1JDL1eQYC8sbHcbyLF7PczQHSbE4j9zA1REshCpPDqcH7a5EQJ9nRUawq5Tebvbm8qa40BtRTemtIYkLDtCdT3sndkS23g17uwx96pF2Q4nXejoxQg0p+eh3B0eD6XYrTDGkq678sCmQ==;
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tDpTi-0001fy-TJ
 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 13:31:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Juri Linkov <juri@linkov.net>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 20 Nov 2024 18:31:02 +0000
Resent-Message-ID: <handler.74412.B74412.17321274096185@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 74412
X-GNU-PR-Package: emacs
Original-Received: via spool by 74412-submit@debbugs.gnu.org id=B74412.17321274096185
 (code B ref 74412); Wed, 20 Nov 2024 18:31:02 +0000
Original-Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 18:30:09 +0000
Original-Received: from localhost ([127.0.0.1]:47716 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1tDpSr-0001ax-51
 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:09 -0500
Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:45179)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>) id 1tDpSn-0001WZ-L8
 for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 13:30:06 -0500
Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 9F5CE20004;
 Wed, 20 Nov 2024 18:29:57 +0000 (UTC)
In-Reply-To: <EA496E38-B53D-4EDC-A972-DD693E36FEF1@getmailspring.com> (Daan
 Ro's message of "Thu, 21 Nov 2024 00:51:12 +0700")
X-GND-Sasl: juri@linkov.net
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=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:295690
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/295690>

Yuan, what do you think about adding a new option
that will allow disabling some features?

>>> Personally I also find treesit's decision to set outline variables
>>> somewhat intrusive. I have to advice `treesit-major-mode-setup` to
>>> disable that. If only there is an easier way to do it like the
>>> attached patch.
>>>
>>> +(defcustom treesit-enable-outline-settings t
>>> + "Non-nil means Tree sitter-based outline settings are enabled."
>>> + :type 'boolean
>>> + :version "31.1")
>> 
>> Should such an option be more general and allow
>> disabling some other features too?
>> 
>> There is already 'treesit-font-lock-recompute-features'.
>> So a new option could have a similar name, e.g.
>> 'treesit-disable-features' that the users could set to e.g.
>>
>> (setopt treesit-disable-features '(outline imenu))

>> So a new option could have a similar name, e.g.
>> 'treesit-disable-features' that the users could set to e.g.
>> 
>> (setopt treesit-disable-features '(outline imenu))
>
> That's much better, indeed.