GNU bug report logs -
#49507
28.0.50; macOS: Symbol’s value as variable is void: lock-file-name-transforms
Previous Next
Reported by: Naofumi Yasufuku <naofumi <at> yasufuku.dev>
Date: Sat, 10 Jul 2021 17:13:01 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Naofumi Yasufuku <naofumi <at> yasufuku.dev>, 49507 <at> debbugs.gnu.org
> Date: Sun, 11 Jul 2021 13:52:24 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Lars, why did you use this :initialize tag here?
>
> I was just cargo-culting from the defcustom of
> auto-save-file-name-transforms above.
The initial value of auto-save-file-name-transforms uses
temporary-file-directory, so it's reasonable to delay its
initialization until Emacs starts up, as opposed to initializing it
when Emacs is dumped (which could be on a different system). But
lock-file-name-transforms's initial value is a constant, so we can
safely initialize it at dump time.
So I think we should simply remove the :initialize tag from that
variable.
However, given this incident, I'm worried that others could trip on
this subtlety. So I wonder whether we should describe it in the ELisp
manual. I think we should generally advise against using this tag for
defcustom's that might affect the startup code itself. For 100%
safety, one should probably use it only with variables defined in C.
Stefan, do you agree?
This bug report was last modified 3 years and 304 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.