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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: winkler <at> gnu.org
Cc: 78798 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, pRoMMMModE <at> outlook.com
Subject: bug#78798: bibtex-font-lock-url-regexp should re-eval after setting bibtex-generate-url-list
Date: Sun, 20 Jul 2025 09:17:13 +0300
> Cc: 78798 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, pRoMMMModE <at> outlook.com
> Date: Sun, 20 Jul 2025 09:08:28 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Roland Winkler <winkler <at> gnu.org>
> > Cc: MAN ONE <pRoMMMModE <at> outlook.com>,  78798 <at> debbugs.gnu.org,
> >   monnier <at> iro.umontreal.ca
> > Date: Sun, 20 Jul 2025 01:03:49 -0500
> > 
> > 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.
> 
> The usual way of working around that is to have
> 
>   (defvar foo)
> 
> before defining the set-function.

There's also another way: the set-function gets as its 1st argument
the symbol of the variable, so it doesn't need to refer to the
variable by its explicit name, it could do that via the symbol
instead.




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.