diff options
| author | Yuan Fu | 2025-03-14 22:56:18 -0700 |
|---|---|---|
| committer | Yuan Fu | 2025-03-17 22:49:13 -0700 |
| commit | 72f6cf8e77f3eac8fe2e5fc6ad29c2348314b84b (patch) | |
| tree | b532ce7842e02ddf10d9f700aa84725aac53452d /src/treesit.c | |
| parent | d708ebe401a2001e764821b7e43d9e9aaa23ea95 (diff) | |
| download | emacs-72f6cf8e77f3eac8fe2e5fc6ad29c2348314b84b.tar.gz emacs-72f6cf8e77f3eac8fe2e5fc6ad29c2348314b84b.zip | |
Update tree-sitter subroutine in Fsubst_char_in_region
Some explanation: Fsubst_char_in_region used to have a branch,
one branch path calls replace_range, one branch path modifies
the buffer directly. replace_range already calls
treesit_record_change within it, so we needed to make sure we
only call treesit_record_change in the other branch path.
After I added the call to treesit_record_change, some changes
are made to Fsubst_char_in_region, and the branch was removed.
So no wonder Stefan had the confusion and wrote the FIXME note.
Now that the branch is gone, we can indeed call
treesit_record_change in the end like signal_after_change.
* src/editfns.c (Fsubst_char_in_region): Move to end.
Diffstat (limited to 'src/treesit.c')
0 files changed, 0 insertions, 0 deletions