bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68824: treesitter support for outline-minor-mode


From: Eli Zaretskii
Subject: bug#68824: treesitter support for outline-minor-mode
Date: Mon, 12 Feb 2024 14:59:03 +0200

> From: Yuan Fu <casouri@gmail.com>
> Date: Sun, 11 Feb 2024 17:07:00 -0800
> Cc: Juri Linkov <juri@linkov.net>,
>  68824@debbugs.gnu.org
> 
> >>> Then maybe just move the text about outline-search-function to the
> >>> place where you describe treesit-outline-predicate?
> >> 
> >> 'outline-search-function' is unsuitable for "Tree-sitter Major Modes".
> > 
> > All of this thread clearly indicates otherwise.
> 
> The real problem is probably that outline-minor-mode’s api wasn’t described 
> in the Elisp manual (Imenu, OTOH, has a node in Elisp manual). I think we can 
> create a node for outline in (elisp)Modes (that’s where the node for Imenu 
> is). We can start out with only outline-search-function in there, and over 
> time populate it with outline-level, outline-regexp, etc.

That'd be fine by me.  But since Juri said he was uncomfortable with
such a short node, I tried to suggest alternative ideas.  If having a
short new node is deemed our best option, then let's do that.

We could also have a node for importand minor modes (as opposed to
having a separate node for each such minor mode).

> If in the future we add language-agnostic features similar to outline and 
> imenu, which needs major mode integration, (elisp)Modes would be a good place 
> to document them.

Right.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]