dwcoates / pygn-mode

An Emacs major-mode for chess PGN files, powered by Python
BSD 2-Clause "Simplified" License
10 stars 3 forks source link

Generate PGN at position using tree-sitter allowing follow-minor-mode to work #208

Closed dekrueger closed 1 year ago

dekrueger commented 1 year ago

These changes are intended to produce an appropriate PGN string at any position in the buffer.

Also, they append a * to each PGN, which seems to work around issues that occur when a result code is absent from the tree-sitter parse.

This appears to allow follow-minor-mode to function correctly.

But it does cause failure in the ert tests.

My apologies in advance for any elisp obtuseness. It's not something I've worked with often.

rolandwalker commented 1 year ago

Appreciated! Not obtuse! Would you like to comment out the failing tests in this PR? We can deal with them later.