GNU bug report logs - #74412
31.0.50; Treesit-outline conflict with outli in Emacs 31

Previous Next

Package: emacs;

Reported by: Taka Obsid <liaotx2 <at> gmail.com>

Date: Mon, 18 Nov 2024 05:05:03 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 74412 <at> debbugs.gnu.org (full text, mbox):

From: Daan Ro <daanturo <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: "74412 <at> debbugs.gnu.org" <74412 <at> debbugs.gnu.org>,
 "liaotx2 <at> gmail.com" <liaotx2 <at> gmail.com>
Subject: Re: bug#74412: 31.0.50; Treesit-outline conflict with outli in
 Emacs 31
Date: Thu, 21 Nov 2024 00:51:12 +0700
[Message part 1 (text/plain, inline)]
> 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.
Daanturo

On Nov 21 2024, at 12:18 am, Juri Linkov <juri <at> linkov.net> wrote:
> > 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))
[Message part 2 (text/html, inline)]

This bug report was last modified 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.