Subject: bug#78798: bibtex-font-lock-url-regexp should re-eval after setting bibtex-generate-url-list

From: Eli Zaretskii <[email-masked]>
Date: Sun, 20 Jul 2025 09:08:28 +0300

> From: Roland Winkler <[email-masked]>
> Cc: MAN ONE <[email-masked]>,  [email-masked],
>   [email-masked]
> 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.