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

Support hs-find-next-block-function for treesit#17
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)
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.

1 participant