GNU bug report logs - #78841
reftex-get-bibfile-list fails to detect biblatex if there's no buffer for the main file

Previous Next

Package: auctex;

Reported by: Tim Ruffing <dev <at> real-or-random.org>

Date: Thu, 19 Jun 2025 19:29:04 UTC

Severity: normal

Full log


Message #50 received at 78841 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Tim Ruffing <dev <at> real-or-random.org>
Cc: 78841 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>,
 arne <at> arnested.dk
Subject: Re: bug#78841: reftex-get-bibfile-list fails to detect biblatex if
 there's no buffer for the main file
Date: Fri, 04 Jul 2025 15:07:12 +0200
Tim Ruffing <dev <at> real-or-random.org> writes:

> Independently of latexenc (which should be fixed, yes),

I installed my proposed change incl. comments from Stefan with commit
22daed7c.

Reg. your change and the scenarios:

>>  * latexenc-dont-use-TeX-master-flag is t

I think if people touch that, the know what they're doing.

>>  * latexenc will be removed or changed in the future

This is somewhat unlikely, but Emacs obsoleting process takes some
years, so I'd say let's think about this once it is imminent.

>>  * the \addbibresource commands is not in the same file as
>>    \usepackage{biblatex}

I think removing the check for `TeX-active-styles' is not a good idea.
This will effectively removes the scenario where you can do in your
main-file.tex:

  \usepackage{mypackages}

and mypackage.el contains:

  \RequirePackage{biblatex}

Currently, you can write an AUCTeX style mypackage.el which does:

  (TeX-run-style-hooks "biblatex")

and the current code works correctly.  Your proposed change kills this.

So overall, I tend to keep what we have now after fixing latexenc.el.

Best, Arash




This bug report was last modified 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.