GNU bug report logs - #31132
AUCTeX, RefTeX and biblatex's multicite commands

Previous Next

Package: auctex;

Reported by: gusbrs.2016 <at> gmail.com

Date: Thu, 12 Apr 2018 06:06:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: gusbrs <gusbrs.2016 <at> gmail.com>
Cc: 31132 <at> debbugs.gnu.org
Subject: bug#31132: AUCTeX, RefTeX and biblatex's multicite commands
Date: Tue, 09 Apr 2024 14:39:29 +0200
[Message part 1 (text/plain, inline)]
Hi Gustavo,

gusbrs <gusbrs.2016 <at> gmail.com> writes:

> Oh, reading the old thread was a little embarrassing. I didn't even
> know how to reply to a mailing list (full html contents at the end,
> etc., sigh... ;-).

Wait another year or two, and you'll be writing Mails within Emacs ;-)

> I did test things and the TL;DR is: looks good to me.

Thanks, I installed that change on Emacs master, commit 7236010d2e.

> I did not attempt to test for possible side effects in other areas,
> given that `reftex-move-to-previous-arg' and `reftex-what-macro' are
> general purpose utility functions. But I think the patch at hand is
> pretty careful in changing the syntax of the parentheses only locally.
> That's what I'd do too and my assessment is that I see no reason it
> shouldn't be safe.

Thanks, this is/was also my impression; hopefully no side-effects.

> The only other thing of note I observed is that the mcite-like
> citation commands are not fontified as reference/citation commands
> (they get only the generic `font-latex-sedate-face'). I had agreed
> with you that the case is tricky and arguably not worth the trouble on
> RefTeX's side of things. But fontification for them should be trivial.
> So, why not?

Ok, I had another look, and biblatex manual says on page 120:

  In contrast to that, a biblatex entry set is an entity in its own
  right.

So I think the change attached gives sort of support for mcite-like
macros, incl. fontification.  Do you want to give it a roll?  Please
ignore the re-indent changes.

> Nice, perhaps something useful comes out of it. I'll share the code
> first and comment later.

Thanks, I will read through it later.  I'd like to address the issues in
this report and close it before we proceed.

> I'm using `el-patch' in my config, but it should be easy enough to
> read, even if you are not acquainted with it.

Yes, I think I get the message.

> Net of this kind of stuff are some things which accumulated over time,
> to add support to specific packages, or fixing things I didn't like.
> In hindsight, my general take on those is that RefTeX seems to presume
> that only the standard, or very traditional, reference and citation
> commands exist and, hence, chooses to hard-code most of the relevant
> behavior, making it very hard to extend and tweak. Inaccessible to the
> less daring users and, more importantly, to AUCTeX style files.

Yes, this is true: RefTeX hardcodes plenty of stuff.

> I recall you questioning somewhat the relevance of this peculiar
> notation of biblatex's citation lists
> (https://lists.gnu.org/archive/html/auctex-devel/2023-05/msg00015.html)
> so, as a regular user of them, I'm glad and thankful to see you soften
> a little your stance in this regard.

TBH, I still don't want to touch font-latex.el in order to make
fontification for cite-lists work, but we have an imperfect solution in
place which hopefully is enough for you and other users :-)

Again, thank you for your support.

Best, Arash
[biblatex.el.diff (text/x-patch, attachment)]

This bug report was last modified 1 year and 46 days ago.

Previous Next


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