On Wednesday, 23 July 2025 at 23:12, Paul Nelson <ultr...@gmail.com> wrote:
> On Wed, 23 Jul 2025 at 13:36, Kai Bagley <kaibag...@pm.me> wrote: > > > > > After keys is set, and getting it's value from the messages buffer after > > running edebug-eval-expression RET keys RET: > > > > #("fathurahmanGeographicallyWeightedMultivariate2020" 0 49 (face > > (font-lock-constant-face) fontified t)) > > > > This is with LaTeX macro > > \cite{fathurahmanGeographicallyWeightedMultivariate2020} > > > > I assume the citation name doesn’t have a newline, and what I see here is > just formatting from your mail client? If there’s really a newline, then the > folding won’t work. It must be my client (proton mail web), but I don't see the newline so i may not be able to prevent it happening, sorry! > > My next question is whether TeX-fold—bib-abbrev gets called with the expected > citation name. You can see this by instrumenting that function with edebug. > The default bond in edebug is “e” for inspecting variables. Please let me > know if that function gets called and what the “key” argument is. This will > determine whether we need to understand what happens in that function or in > its caller. Alright I must have swapped to biblatex format at some stage from bibtex... I'm using Zotero with betterbibtex extension, and automatic updates on the file. When TeX-fold--bib-abbrev-entry-at-point is called from TeX-fold--bib-abbrev, it tries to find the "year" field, but biblatex appears to prefer the "date" over "year", so Zotero at some point updated the file accordingly and stopped the function working (it exits the when-let* when year becomes nil). Deleting the bib file and recreating with Zotero as a better bibtex file solves the problem completely. Is there a way to set tex-fold to use biblatex fields? I know there's a bibtex-dialect that can be set to biblatex, however TeX-fold--bib-abbrev-entry-at-point evaluates specifically (year (bibtex-text-in-field "year" entry)). _______________________________________________ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex