Juri Linkov writes: >> 1. Insert the following into a tsx-ts-mode buffer: >> >> function F() { >> return ( >> Delete >> ); >> } >> >> 2. Install tree-sitter-tsx v0.23.2 >> 3. M-x tsx-ts-mode RET >> 3. M-: (goto-char 39) RET (somewhere in the middle of "Delete") >> 4. M-b >> 5. Observe that point is not at the start of "Delete" > > This is fixed in bug#73978. Yes, seems fixed now. >> Following that, alter to be and hit RET at the start >> of "Delete", at this point you should see: >> >> function F() { >> return ( >> >> Delete >> ); >> } >> >> >> This is unusual. > > What indentation in your opinion would be correct? A shift level extra compared to the opening < of the Delete ); } Currently, the indentation engine prefers: function F() { return ( Delete ); } ... which looks odd. >> In addition, I just noticed one more thing; make a new file containing: >> >> function F() { >> return ( >> Delete >> ); >> } >> >> Navigate to the start of "Delete", run M-x treesit-explore RET, hit RET >> and tell the explorer to highlight the jsx_text corresponding to >> "Delete", you should see that the region highlighted is not aligned with >> the end of the word "Delete", and, in turn, all subsequent AST nodes are >> mispositioned too. Typing again fixes this issue. It seems that the >> buffer needs to be freshly-started for this to happen for some reason. >> >> I do not have any idea why this might be happening. > > I tried, but can't reproduce this treesit-explore issue. Hmm, yes, seems that this went away also. That's great! Thank you so much! -- Arsen Arsenović