GNU bug report logs - #70789
treesit navigate for outlines at bobp

Previous Next

Package: emacs;

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

Date: Sun, 5 May 2024 16:57:01 UTC

Severity: normal

Fixed in version 30.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 70789 <at> debbugs.gnu.org
Subject: bug#70789: treesit navigate for outlines at bobp
Date: Sun, 5 May 2024 20:11:56 -0700

> On May 5, 2024, at 9:52 AM, Juri Linkov <juri <at> linkov.net> wrote:
> 
> 'treesit-outline-search' didn't match outlines at the beginning of
> the buffer because unlike 're-search-forward' (used by outline-mode)
> that matches the text that immediately follows point,
> 'treesit-navigate-thing' misses text at point and stars the search
> after point.
> 
> So there is a need to handle this difference specially.  Therefore this
> patch adds such special-handling of bobp to 'treesit-outline-search’:

Thanks. Just for me to understand it better, could you show an example where treesit-navigate-thing misses text at point? If it does, that should be a bug that treesit-navigate-thing should fix, right?

Yuan






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

Previous Next


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