From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 Date: Wed, 20 Nov 2024 19:18:41 +0200 Organization: LINKOV.NET Message-ID: <87serlzuvi.fsf@mail.linkov.net> References: <9e9fcc46-e6ca-42e6-bb0e-6770ae65f150@gmail.com> <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@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="36581"; 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" To: Daan Ro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 20 18:25:26 2024 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 1tDoSD-0009Im-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Nov 2024 18:25:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDoRs-0004ES-0G; Wed, 20 Nov 2024 12:25:04 -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 1tDoRq-0004Dk-Uq for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 12:25: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 ) id 1tDoRq-0004A2-LH for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 12:25:02 -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=/DvkLTX/kOyM/GYs+bYQiIIvbuq/g6redIoZ9Zw65ik=; b=ScJCjgVVxkRiwYENClSpDL3TfQKK7oJmr0LctUf5D1AuK4ps/iNGpX1rrCaSQv0+jvRqZW9Kb+k/JFVE/R3kNWLdzC5f/cQGQUij9zoxDe8mPVllQ56EuvK+LGPaGgoJzxXe3pFTI64GG9OQfrOqDQPLogC0aX9Si8kbiiyxmU46spOMcscMBkWj1Ssi5rZh6uxbKYWgID578Qbi3NJpZ4xe/1QO9XeGCVHPeVgQMcFtUQ8yn//cTWz2Nd+BZbPuG7WtziE25VV1uYuNNAurZNLX6V1fp2p+FqxOEJH0AXKD7phsDRl8bHiuYgKzXg/tg/810wvfq3zJR4FIMoqpdw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDoRq-00078D-GY for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 12:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Nov 2024 17:25:02 +0000 Resent-Message-ID: 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.173212346927362 (code B ref 74412); Wed, 20 Nov 2024 17:25:02 +0000 Original-Received: (at 74412) by debbugs.gnu.org; 20 Nov 2024 17:24:29 +0000 Original-Received: from localhost ([127.0.0.1]:47621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoRJ-00077G-6s for submit@debbugs.gnu.org; Wed, 20 Nov 2024 12:24:29 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:41623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDoRH-000773-Ap for 74412@debbugs.gnu.org; Wed, 20 Nov 2024 12:24:27 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id B589E40004; Wed, 20 Nov 2024 17:23:58 +0000 (UTC) In-Reply-To: <8316FFB6-1373-4EC5-9EFB-5B05A1DE0F72@getmailspring.com> (Daan Ro's message of "Thu, 21 Nov 2024 00:06:41 +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" 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:295685 Archived-At: > 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))