-
Notifications
You must be signed in to change notification settings - Fork 3
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
follow-minor-mode stops working after free motion #182
Comments
dekrueger
pushed a commit
to dekrueger/pygn-mode
that referenced
this issue
May 12, 2023
…owing Addresses some of the issues causing failure of pygn-mode-follow-minor-mode. See dwcoates#182 This commit address the following issues: 1. pygn-mode-pgn-at-pos-as-if-variation can return nil, causing an error when attempting to insert that into the buffer. 2. pygn-mode-pgn-at-pos-as-if-variation does not append a game termination marker to the pgn, but pygn-mode-display-board-at-pos seems to need one. 3. pygn-mode-display-board-at-pos does not show the final position when the point is at the termination marker. These changes allow follow-minor-mode to function in the main line of games. But, it still fails when inside variations.
I added the above commit to get following semi-working. It still doesn't function in variations, probably due to errors in |
@dekrueger Hi! Please PR if that's a partial fix. My assumption is that the tree-sitter port broke navigation, and that navigation could now be simplified. |
dekrueger
pushed a commit
to dekrueger/pygn-mode
that referenced
this issue
Jun 5, 2023
Updated pygn-mode-pgn-at-pos and pygn-mode-pgn-at-pos-as-if-variation to create PGN strings by walking tree-sitter nodes. This change allows pygn-mode-follow-minor-mode to operate correctly after free movement. See dwcoates#182
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From #174 :
We need to
The text was updated successfully, but these errors were encountered: