-
Notifications
You must be signed in to change notification settings - Fork 54
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
Use a more performant org-cite activate processor by default #845
Use a more performant org-cite activate processor by default #845
Conversation
citar-org-cite-basic-activate is an org-cite activate processor meant to be a more performant version of `org-cite-basic-activate`
… by default Previously, `citar-org-activation-functions` used the built-in `org-cite-basic-activate` processor. Now, we use `citar-org-cite-basic-activate` by default instead.
6d165af
to
cb4166a
Compare
Thanks! The CI has picked up a linting error. Can you see about fixing that? Come to think about it, it may be related to an earlier issue. I'll check back later today though. EDIT: looks like recently org devs moved Seems like maybe: (if (require 'org-element-ast nil 'noerror)
(require 'org-element)
(message "Loaded org-element")) ... and: (if (featurep 'org-element-ast)
(declare-function org-element-property "org-element-ast")
(declare-function org-element-property "org-element")) |
So, to be clear, should I be waiting for a resolution on main? |
I don't think it matters. I was partly just updating to add notes for myself. If I update it on main before merging, do you think it will be a problem for you? |
Nope, no problem for me 👍 |
I ended up merging this first, as I haven't yet figured out how to fix the issue with Emacs Master. |
Sounds good. Thank you! |
As described in #842, citar uses the built-in
org-cite-basic-activate
which can cause significant slowdowns. This PR defines our own activate function,citar-org-cite-basic-activate
, and uses it by default (replacesorg-cite-basic-active
incitar-org-activation-functions
). This new activate function is identical to the built-in basic activate function but uses citar functions to speed up the expensive operations of the built-in activate function.