Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: always turn on pygn-mode in PGN-containing temp buffers #174

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

rolandwalker
Copy link
Collaborator

Per #173, if we create a temp buffer containing PGN data, we must turn on pygn-mode if we expect pygn-mode-* defuns to be able to work in that buffer.

Without the tree-sitter parse tree to refer to, many defuns won't work, or will throw exceptions.

We actually should have noticed this issue back in #154, when the mode was set for the temp buffer in the tests.

Secondarily, as comments note throughout, this whole approach of creating and re-parsing is probably slow, and we should work on redesigning some of these to get the same functionality without temp buffers.

@rolandwalker rolandwalker self-assigned this Aug 28, 2021
@rolandwalker rolandwalker changed the title Always turn on pygn-mode in PGN-containing temp buffers Bugfix: always turn on pygn-mode in PGN-containing temp buffers Sep 9, 2021
@rolandwalker rolandwalker merged commit a453c13 into master Sep 9, 2021
@rolandwalker rolandwalker deleted the RW/activate-pygn-mode-in-all-pgn-temp-buffers branch September 9, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants