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

Fix xenops-src-parse-at-point for Org 9.7 #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fnussbaum
Copy link

@fnussbaum fnussbaum commented Sep 30, 2024

Fixes #73. The error seems to come from org-element-context containing references to the killed temp buffer created by the xenops-src-do-in-org-mode macro, and org-babel-get-src-block-info feeding those references into with-current-buffer. Hence this fix just includes the call to org-babel-get-src-block-info in the scope of the xenops-src-do-in-org-mode macro.

As I do not use xenops-mode myself, and thus do not know the expected behaviour, it is not very well tested.

Fixes dandavison#73. The error seems to come from `org-element-context` containing
references to the killed temp buffer created by the `xenops-src-do-in-org-mode`
macro, and `org-babel-get-src-block-info` feeding those references into
`with-current-buffer`. Hence this fix just includes the call to
`org-babel-get-src-block-info` in the scrope of the `xenops-src-do-in-org-mode`
macro.

As I do not use xenops-mode myself, and thus do not know the expected behaviour
well, it is not very thoroughly tested.
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.

xenops not working with org mode 9.7.11 (Emacs 29.3)
1 participant