Skip to content

Commit c550a42

Browse files
committed
oc-basic: Parse @string entries in BiBTeX bibliographies
* lisp/oc-basic.el (org-cite-basic--parse-bibtex): Expand string abbreviations in the .bib bibliography files. Fixes https://list.orgmode.org/orgmode/25288.4658.491916.790389@gargle.gargle.HOWL/
1 parent 0583a0c commit c550a42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lisp/oc-basic.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ Return a hash table with citation references as keys and fields alist as values.
240240
(cons
241241
(intern (downcase field))
242242
(replace-regexp-in-string "[ \t\n]+" " " value)))))
243-
(bibtex-parse-entry t))
243+
;; Parse, substituting the @string replacements.
244+
;; See Emacs bug#56475 discussion.
245+
(let ((bibtex-string-files `(,(buffer-file-name)))
246+
(bibtex-expand-strings t))
247+
(bibtex-parse-entry t)))
244248
entries)))
245249
entries))
246250

0 commit comments

Comments
 (0)