diff options
author | Yuan Fu <casouri@gmail.com> | 2025-03-02 20:26:28 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2025-03-02 20:28:07 -0800 |
commit | a211a940a1e085d53172ceddf6bfc2391985e861 (patch) | |
tree | 0af6e785d23bb2c9abc0152d2e3260293e10d52e /lisp/emacs-lisp/lisp.el | |
parent | 76342efe9d758a6ca66cdc0ed197381664a6fbbd (diff) | |
download | emacs-a211a940a1e085d53172ceddf6bfc2391985e861.tar.gz emacs-a211a940a1e085d53172ceddf6bfc2391985e861.tar.bz2 emacs-a211a940a1e085d53172ceddf6bfc2391985e861.zip |
Don't process function range settings in treesit--update-range-1
This fixes a bug where we call treesit-query-language on a
function, which happens before the QUERY in a range setting can
be either a function or a query, but we call it with
treesit-query-language before knowing whether it's a query or
function.
* lisp/treesit.el:
(treesit--update-range-1): Skip function range settings.
(treesit-update-ranges): Handle function range settings here.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions