GNU bug report logs - #78798
bibtex-font-lock-url-regexp should re-eval after setting bibtex-generate-url-list

Previous Next

Package: emacs;

Reported by: MAN ONE <pRoMMMModE <at> outlook.com>

Date: Sun, 15 Jun 2025 12:09:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


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

From: Roland Winkler <winkler <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78798 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca,
 MAN ONE <pRoMMMModE <at> outlook.com>
Subject: Re: bug#78798: bibtex-font-lock-url-regexp should re-eval after
 setting bibtex-generate-url-list
Date: Sun, 20 Jul 2025 01:03:49 -0500
On Sat, Jul 19 2025, Eli Zaretskii wrote:
>> From: MAN ONE <pRoMMMModE <at> outlook.com>
>> CC: "78798 <at> debbugs.gnu.org" <78798 <at> debbugs.gnu.org>, Eli Zaretskii
>> 	<eliz <at> gnu.org>, "monnier <at> iro.umontreal.ca" <monnier <at> iro.umontreal.ca>
>> Date: Wed, 9 Jul 2025 03:43:40 +0000
>> 
>> Perhaps this one is better?
>
> Roland?

I installed a patch, but I was surprised that it turned out rather
complicated.  Maybe I am missing something.

If the value of a user variable foo is used to initialize a helper
variable bar, then defcustom for foo can define a setfunction that will
set bar.  But this function must be defined before the defcustom.  But
this makes the compiler complain that the setfunction uses the undefined
var foo.  And if bar is declared after foo, this gives more warnings.

Also, for bibtex-generate-url-list it makes sense to have a buffer-local
value, so that the setfunction (when called "by hand") should either set
the default or the buffer-local value of bibtex-font-lock-url-regexp.




This bug report was last modified 22 days ago.

Previous Next


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