GNU bug report logs -
#56475
28.1.50; bibtex-parse-entry disregards @string substitutions
Previous Next
Reported by: Ihor Radchenko <yantar92 <at> gmail.com>
Date: Sun, 10 Jul 2022 07:15:02 UTC
Severity: normal
Found in version 28.1.50
Done: Roland Winkler <winkler <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 56475 <at> debbugs.gnu.org (full text, mbox):
Roland Winkler <winkler <at> gnu.org> writes:
>> Thanks for the pointer!
>> I tried my reproducer by running
>> M-: (let ((bibtex-expand-strings t)) (bibtex-parse-entry))
>> instead of
>> M-: (bibtex-parse-entry)
>>
>> Unfortunately, the journal field is still not substituted.
>
> The variable bibtex-string-files tells bibtex.el where it can find the
> string definitions (which are then stored in the variable
> bibtex-strings). This complements bibtex-files that tells bibtex.el
> where it can find the BibTeX entries. A command like
> bibtex-search-entry searches the entries in the files in bibtex-files.
I am wondering why bibtex-string-files is not documented inside the
docstring of bibtex-expand-strings. Same for bibtex-expand-strings not
being documented in bibtex-parse-entry.
As for using bibtex-string-files in my specific scenario, I cannot make
it work as well.
I tried the following simple test:
M-: (let ((bibtex-string-files `(,(buffer-file-name))) (bibtex-expand-strings t)) (bibtex-parse-entry))
The journal field is still not handled: ("journal" . "jgr")
Also, note that bibtex-string-files cannot help with situations when the
BibTeX buffer does not have an associated file.
Best,
Ihor
This bug report was last modified 2 years and 147 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.