[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31
From: |
Eli Zaretskii |
Subject: |
bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31 |
Date: |
Wed, 20 Nov 2024 20:53:07 +0200 |
> Cc: "74412@debbugs.gnu.org" <74412@debbugs.gnu.org>,
> "liaotx2@gmail.com" <liaotx2@gmail.com>
> From: Juri Linkov <juri@linkov.net>
> Date: Wed, 20 Nov 2024 19:18:41 +0200
>
> > 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?
I don't see a need for an option at all. All tree-sitter based modes
use these search functions, so treesit.el simply acts on their behalf
here. It makes no sense to let users control how a major mode
customizes outline-minor-mode, because the major mode is supposed to
know how to adapt outlines with its main syntax, and what a heading
means in the context of that mode.
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, (continued)
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Juri Linkov, 2024/11/20
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Taka Obsid, 2024/11/20
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Juri Linkov, 2024/11/20
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Juri Linkov, 2024/11/20
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Taka Obsid, 2024/11/20
- bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Eli Zaretskii, 2024/11/21
bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Daan Ro, 2024/11/20
bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Eli Zaretskii, 2024/11/20
bug#74412: 31.0.50; Treesit-outline conflict with outli in Emacs 31, Juri Linkov, 2024/11/21