-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
void function dnd-unescape-uri #812
Comments
I do not understand this issue. Are you saying |
I am sorry. My sentence was incomplete. |
I think this should be backward compatible, and work with future emacs versions. Apparently in emacs master dnd-unescape-uri is renamed to dnd--unescape-uri. Here I use an alias approach to keep the original code working with the same function name.
Ok. Thanks for the report. I have added a conditional defalias that I think will solve this. |
It may not be a good idea to warn if neither |
I added this in issue #812 , but it appears these functions are not autoloaded and so this creates a warning that is not helpful. For now I am commenting this out to avoid that. Later we will have to figure out a solution.
Indeed, I have already gotten an email about that. I have just pushed something that comments those out for now. |
@yangsheng6810: What I don't understand is that none of the other dnd functions called by org-ref are autoloaded. Only dnd-protocol-alist is, and dnd-unescape-uri is called before that anyway. Probably the reason @jkitchin received an email about the warning is because the current defalias would never take effect because dnd--unescape-uri is misspelled as dnd--escape-uri in org-ref-pdf.el and org-ref-url-utils.el. Correcting the typo should fix everything. In particular, I don't encounter the problem mentioned by @yangsheng6810 after correcting it. |
Ah, and in fact, the defalias in org-ref-url-utils is unnecessary (and unconditionally skipped, resulting in the warning being displayed), since that file requires doi-utils, which requires org-ref-utils, which requires org-ref-pdf, so dnd-unescape-uri is already defaliased and thus fboundp'd. |
Version: 20201013.1427
Commit: 2a91b6f
org-ref-pdf-to-bibtex calls which seems to be void.
I need to do this to make the function work:
(defalias 'dnd-unescape-uri 'dnd--unescape-uri)
The text was updated successfully, but these errors were encountered: