diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-07 14:50:16 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-09 17:24:08 -0800 |
commit | ebef8905b0df9572e80e20fdc8da7829b9270e3f (patch) | |
tree | 05f3b264babb0edf4d1a4d6985eca3f7aac1ed3d /admin/notes/tree-sitter/starter-guide | |
parent | 8f53fa10d9453f36aa601e5943cb903adeacc7fe (diff) | |
download | emacs-ebef8905b0df9572e80e20fdc8da7829b9270e3f.tar.gz emacs-ebef8905b0df9572e80e20fdc8da7829b9270e3f.tar.bz2 emacs-ebef8905b0df9572e80e20fdc8da7829b9270e3f.zip |
Make indirect buffers use tree-sitter parsers of their base buffer
Fix the problem described in bug#59693.
* src/treesit.c (treesit_record_change): Always use the base buffer.
(Ftreesit_parser_create): Always use the base buffer. Also change the
for loop into FOR_EACH_TAIL (stylistic change).
(Ftreesit_parser_list): Always use the base buffer.
* doc/lispref/parsing.texi (Using Parser): Update manual.
* test/src/treesit-tests.el (treesit-indirect-buffer): New test.
Diffstat (limited to 'admin/notes/tree-sitter/starter-guide')
0 files changed, 0 insertions, 0 deletions