Skip to content

Support hs-find-next-block-function for treesit - #17

Open
ayyess wants to merge 1 commit into
sheijk:mainfrom
ayyess:main
Open

ayyess wants to merge 1 commit into
sheijk:mainfrom
ayyess:main

Conversation

@ayyess

@ayyess ayyess commented Aug 29, 2026 •

Copy link
Copy Markdown

Treesit sets (https://github.com/emacs-mirror/emacs/blob/4593aa14177da9894c4e5471c221b7f2e1f833d0/lisp/treesit.el#L4799)

(setq-local hs-block-start-regexp nil
            hs-find-next-block-function #'treesit-hs-find-next-block)

resulting in

Failed to toggle ‘hideshowvis-minor-mode’: (wrong-type-argument stringp nil)

from

(search-forward-regexp nil nil t)

Treesit sets

    (setq-local hs-block-start-regexp nil
                hs-find-next-block-function #'treesit-hs-find-next-block)

resulting in

    Failed to toggle ‘hideshowvis-minor-mode’: (wrong-type-argument stringp nil)

from

    (search-forward-regexp nil nil t)
@sheijk

sheijk commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Sorry for the lack of response so far! I took a look at it and it looks good and worked for me. I didn't find time to properly test it so I can merge it yet, though. As soon as that happened I intend to merge it. Thanks for your patience and for the bugfix

@ayyess

ayyess commented Oct 9, 2026

Copy link
Copy Markdown
Author

No problem! Thanks for taking a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants