]> git.eshelyaron.com Git - emacs.git/commit
Switch buffer in Ftreesit_query_capture
authorYuan Fu <casouri@gmail.com>
Fri, 24 Mar 2023 19:25:19 +0000 (12:25 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 24 Mar 2023 19:29:34 +0000 (12:29 -0700)
commitdb7e95531ac36ae842787b6c5f2859d0642c78cc
tree4c89ffb1722fb5f4451b81b0b82d4c1ea9a4b095
parenta37f19b14a6b51fa794178095cf56c112a1396e8
Switch buffer in Ftreesit_query_capture

This way both #pred and #match predicates runs in the node's buffer by
default.

* src/treesit.c:
(treesit_predicate_match): No need to switch buffer anymore.
(Ftreesit_query_capture): Switch buffer.

* doc/lispref/parsing.texi (Pattern Matching): Update manual.
doc/lispref/parsing.texi
src/treesit.c