GNU bug report logs -
#59693
29.0.50; treesitter in base buffer doesn't respond to modifications in indirect buffer correctly
Previous Next
Reported by: miha <at> kamnitnik.top
Date: Tue, 29 Nov 2022 20:21:01 UTC
Severity: normal
Found in version 29.0.50
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 59693 <at> debbugs.gnu.org (full text, mbox):
On December 5, 2022 5:49:14 AM GMT+02:00, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>
> Don't bother, please.
> Instead, I recommend you disallow the use of tree sitter in indirect
> buffers. And we should probably try and change `insdel.c` so it always
> runs the `after/before-change-functions` in the base buffer (this should
> fix the worst part of the problems).
Will this "hold water" vis-a-vis the expectations of various features that would like to use tree sitter related capabilities? Regardless of your opinion on indirect buffers, many 3rd party packages and features use indirect buffers as the backbone of their implementation. We don't currently have any alternatives to that, AFAIK. So I'd expect a lot of disappointment if we declare that indirect buffers will not be supported by tree sitter as a matter of design decision.
Changing insdel.c to run stuff in base buffer could be a solution, but I don't feel we can make such changes on the release branch. But maybe we can do that now only for treesit.c functions. Yuan, would tgat solve this particular problem?
This bug report was last modified 2 years and 163 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.