GNU bug report logs - #68824
treesitter support for outline-minor-mode

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 30 Jan 2024 17:42:02 UTC

Severity: wishlist

Tags: patch

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 68824 <at> debbugs.gnu.org, juri <at> linkov.net
Subject: Re: bug#68824: treesitter support for outline-minor-mode
Date: Fri, 02 Feb 2024 09:34:36 +0200
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Thu, 1 Feb 2024 23:27:50 -0800
> Cc: Juri Linkov <juri <at> linkov.net>,
>  68824 <at> debbugs.gnu.org
> 
> 
> 
> > On Feb 1, 2024, at 11:05 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > 
> >> Cc: 68824 <at> debbugs.gnu.org
> >> From: Yuan Fu <casouri <at> gmail.com>
> >> Date: Thu, 1 Feb 2024 16:34:47 -0800
> >> 
> >> Instead of using treesit-search-forward, can you use treesit-beginning-of-thing or treesit--navigate-thing to do what you want? They handle the “child before parent” problem for you, and handles some other edge cases.
> > 
> > If the above helps Juri accomplish his goal, I think we should reflect
> > that somehow in the ELisp manual, at least.  I see that
> > treesit-beginning-of-thing is not even documented in the ELisp manual,
> > and treesit--navigate-thing is an internal function that is not
> > supposed to be called from outside of treesit.el.
> > 
> > Thanks.
> 
> The whole “things” feature [1] is not documented right now, since I was experimenting with them. If we think it’s time we can make the functions public and document them. Personally I think we can wait for a bit longer.

Doesn't the fact that you suggested to Juri to use that tell us it's
time to make these facilities public?




This bug report was last modified 1 year and 176 days ago.

Previous Next


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