-
Notifications
You must be signed in to change notification settings - Fork 28
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
org-anki can't make ANKI_NOTE_ID
property correctly with with-current-buffer
#55
Comments
After some digging, I found the cause of this issue is that @eyeinsky Is there any other way to solve this? |
I thought adding sync buffer-local variables fix this issue simply. But I found that Actually Lines 434 to 443 in dda524d
In addition, I found this chuntaro/emacs-promise#13 According to the above issue, The below Lines 542 to 548 in dda524d
|
How did you come about in running in to this, do you run an elisp script to sync certain files without having the files themselves open? I think I did manage to reproduce it by having test.org closed, then running the test code above from the |
Yes. I'm writing the code to generate and sync anki cards from part of my org files which have
Yes. Ensure the test file is closed and call the test code from scratch buffer or |
I managed to handle this. In order to solve this issue, it needs the synchronous After applying #56, You can make an anki card using below code.
|
I'm running into the same problem: even though calling I'm on emacs 29, org-mode 9.6-??-bed47b4 |
test.org
Test code
The code makes an anki card but can't make
ANKI_NOTE_ID
property at the heading. Emacs shows theorg-fold-region: Calling ‘org-fold-core-region’ with missing SPEC
error. And:PROPERTY:\n:END:
is printed in the beginning of scratch buffer. I'm not sure. But My guess is that the message is that org seems to try parsing Users' current buffer which isscratch-buffer
.The text was updated successfully, but these errors were encountered: