Closed philohistoria closed 9 months ago
It sounds like (org-ref-get-bibtex-key-under-cursor) is not working right. I don't know what would cause that, other than font-lock is not working right in some files and not others. You might check Messages for things related to that.
I use Emacs 28, and don't see issues like this so far. Are you doing anything with native compiling?
In an org file where things are working, with your cursor on a cite link, you can type M-x describe-text-properties. You should see something like:
There are text properties here:
cite-key "gelžinytė-2023-python-toolk"
face org-ref-cite-face
font-lock-multiline t
fontified t
help-echo org-ref-cite-tooltip
htmlize-link (:uri "cite:gelžinytė-2023-python-toolk")
isearch-open-invisible org-fold-core--isearch-show
isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
keymap [Show]
mouse-face highlight
org-fold--spec-org-link-description-global org-link-description
org-fold--spec-org-link-global org-link
And in a file where it does not work I guess you will see something different. If that is the case, then it is almost certainly a font-lock issue.
Thanks! @jkitchin I have tried and don't think that's the font-lock issue
the below is a working link
Text content at position 143145:
There are text properties here:
face org-ref-cite-face
font-lock-multiline t
fontified t
help-echo org-ref-cite-tooltip
htmlize-link (:uri "cite:law_take_2019")
keymap [Show]
line-prefix [Show]
mouse-face highlight
wrap-prefix [Show]
The below is a link that does not work (but with exact the same citation key)
There are text properties here:
face org-ref-cite-face
font-lock-multiline t
fontified t
help-echo org-ref-cite-tooltip
htmlize-link (:uri "cite:law_take_2019")
keymap [Show]
line-prefix [Show]
mouse-face highlight
wrap-prefix [Show]
I think this suggests to me it is a font-lock issue. neither one is as complete as the example I shared, e.g. it is missing the cite-key property most critically, which is what is used to get the key. This is normally done in the org-ref-cite-activate
function, which suggests to me your cite links are not getting activated correctly.
In your org files do you have mixed cite link syntaxes, e.g. cite:key and cite:&key?
Also, can you see what you have the variable org-ref-activate-cite-links
set to? It should be t.
@jkitchin setting org-ref-activate-cite-links
to t solves the problem for me. Thanks a lot for everything you have done for making this fantastic package!
I have been using Emcas 26 and org-ref-20191023 without a problem. After upgrading to Emacs 29.1 and org-ref-20230921, strange things begin to occur:
paper_summary.org
), only is in some org files, but not other org-files. The weird thing is that I don't know why some files recognize cite:XXX link while others cannot.bibtex-completion-get-entry1
org-ref-cite-insert-helm
or just manually typed in), then the error has always been "Error showing ther eis problem inbibtex-completion-get-entry1
", and I cannot create a new entry in the existing note file.backtrace shows:
------ here is my setup in
init.el
(I am using spacemacs; I have always been using one file to store my notes; and I prefer the old org-ref syntax simply because I have many old files that used the old syntex without &).I appreciate any thing that may be helpful! Below is the output of
org-ref-debug