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: Yuan Fu
Subject: bug#68824: treesitter support for outline-minor-mode
Date: Mon, 5 Feb 2024 23:21:28 -0800


> On Feb 4, 2024, at 11:22 PM, Juri Linkov <juri@linkov.net> wrote:
> 
>>> Also a remaining question: why treesit-parent-until simply calls
>>> ‘(funcall pred node)’ instead of supporting the standard format
>>> that includes a regexp by using treesit-node-match-p?
>>> 
>>> This causes such an inconvenience that for treesit-outline-level
>>> that uses treesit-parent-until there is a need to wrap a regexp
>>> in a lambda such as for html-ts-mode below.
>> 
>> Nothing other than my oversight :-)
>> I pushed a change to master that fixes this.
> 
> Thanks.  It seems you forgot to replace 'funcall'
> in 'treesit-parent-while' as well?  ;-)

Ah, yes. For some reason I thought it calls treesit-parent-until. Fixed it on 
master.

Yuan




reply via email to

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