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

ebib exports org2org in the "Note" fields? #158

Open
ghost opened this issue Jun 5, 2020 · 1 comment
Open

ebib exports org2org in the "Note" fields? #158

ghost opened this issue Jun 5, 2020 · 1 comment
Labels
Possible bug Might be a bug

Comments

@ghost
Copy link

ghost commented Jun 5, 2020

Maybe this is not a bug, but it does raise confusion :(.

This is my Note entry:

** Structure and Interpretation of Computer Programs, Second Edition
:PROPERTIES:
:Custom_ID: Abelson1996
:END:
[[bib:Abelson1996][Abelson1996-bib]]

[[ebib:Abelson1996][Harold Abelson and Gerald J. Sussman (1996)]]

So here I can put some notes about the SICP.
Well, finishing it was a huge task!

bib: link is an org-abbreviation for a custom-defined jump to the .bib file in bibtex, whereas ebib: link is an org-ebib link.

However, in the ebib-entry buffer, this is displayed like:

external note      [[rtcite:~/GDrive_vladimir_nikishkin_AT_phystech_edu/BibTeX_Bibliography/bibliography-bib.bib::Abelson1996][Abelson1996-bib]]
                   
                   [[ebib:Abelson1996][Harold Abelson and Gerald J. Sussman (1996)]]

                   So here I can put some notes about the SICP.
                   Well, finishing it was a huge task!

The "rtcite:" link comes from

(setq org-link-abbrev-alist
'(("note" . "rtcite:~/GDrive_vladimir_nikishkin_AT_phystech_edu/BibTeX_Bibliography/bibliography-bib.org::#%s")
	     ("bib" . "rtcite:~/GDrive_vladimir_nikishkin_AT_phystech_edu/BibTeX_Bibliography/bibliography-bib.bib::%s")))

Why does it get expanded in the Note field? I thought that link abbreviations are only expanded during export and/or internally when opening a link.

@joostkremers
Copy link
Owner

Honestly, I'm as surprised as you are... Ebib doesn't do such expansion itself, so it would have to be an Org function that Ebib uses to get the text of a note, but there's really only org-mark-subtree, which doesn't seem to expand links.

You could edebug ebib--extract-note-text and see if that tells you something. I'll put it on my todo list myself, but with low priority...

@joostkremers joostkremers added the Possible bug Might be a bug label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible bug Might be a bug
Projects
None yet
Development

No branches or pull requests

1 participant