Subject: bug#56475: 28.1.50; bibtex-parse-entry disregards @string substitutions

From: Roland Winkler <[email-masked]>
Date: Mon, 11 Jul 2022 12:12:59 -0500

On Mon, Jul 11 2022, Lars Ingebrigtsen wrote:
> Ihor Radchenko <[email-masked]> writes:
>
>> Org currently relies on built-in bibtex.el to parse bibliography files.
>> However, the built-in parser does not appear to be complete.
>
> Perhaps Roland has some comments; added to the CCs.

The arg CONTENT of bibtex-parse-entry is passed on to
bibtex-text-in-field-bounds that gives you a more complete description
of what it does.  So I believe binding bibtex-expand-strings to t while
calling bibtex-parse-entry with arg CONTENT non-nil should do the job.

The parser in bibtex.el goes through some effort to deal with BibTeX
constructs such as

    title = "Foo " # BAR # {Baz},

correctly.