]> git.eshelyaron.com Git - emacs.git/commit
Make treesit-query-compile compile compiled-query eagerly
authorYuan Fu <casouri@gmail.com>
Tue, 3 Dec 2024 04:14:55 +0000 (20:14 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 6 Dec 2024 15:42:44 +0000 (16:42 +0100)
commit8c96c5ef08114299c4c91926419520aacd5c008f
treec9ee6dd676539671db8320ccb30bbabc0c51442c
parent305a2818750865586801cbae72ee794a3a0852de
Make treesit-query-compile compile compiled-query eagerly

* src/treesit.c (treesit_ensure_query_compiled_signal): Extrat
out into a function.
(Ftreesit_query_compile): If EAGER is non-nil and QUERY is a
lazily compiled query, compile it eagerily.

(cherry picked from commit 4ecd1639b19345786020c0f7a5f3672129dae466)
src/treesit.c