Subject: bug#49507: 28.0.50; macOS: Symbol’s value as variable is void: lock-file-name-transforms

From: Naofumi Yasufuku <[email-masked]>
Date: Sun, 11 Jul 2021 07:35:46 +0900

Eli Zaretskii <[email-masked]> writes:

>> From: Naofumi Yasufuku <[email-masked]>
>> Date: Sun, 11 Jul 2021 04:17:24 +0900
>> Cc: [email-masked]
>> 
>> Lisp Backtrace:
>> "write-region" (0xefbfdd58)
>> "comp-run-async-workers" (0xefbfdf10)
>> "native--compile-async" (0xefbfe180)
>> "defalias" (0xefbfe250)
>> "set-language-environment" (0xefbfeac8)
>> "set-locale-environment" (0xefbfee88)
>> "normal-top-level" (0xefbfef30)
>> (gdb) s
>> Symbol’s value as variable is void: lock-file-name-transforms
>
> Any idea why Emacs needs to native-compile something at startup?
> Which Lisp file does it native-compile here?

It seems lisp/language/*-util.el autoloads can invoke this native-compile.

$ LANG=ja_JP.UTF-8 ./src/emacs -Q
Symbol’s value as variable is void: lock-file-name-transforms
$ LANG=zh_CN.UTF-8 ./src/emacs -Q
Symbol’s value as variable is void: lock-file-name-transforms
$ LANG=ko_KR.UTF-8 ./src/emacs -Q
Symbol’s value as variable is void: lock-file-name-transforms
$ LANG=ru_RU.UTF-8 ./src/emacs -Q
Symbol’s value as variable is void: lock-file-name-transforms
$ ls
BUGS                                  configure~
CONTRIBUTE                            doc
COPYING                               emacs-async-comp-china-util-LRUF4Q.el
ChangeLog.1                           emacs-async-comp-cyril-util-rr4O3Z.el
ChangeLog.2                           emacs-async-comp-japan-util-NCE2ge.el
ChangeLog.3                           emacs-async-comp-korea-util-V8cDm0.el
GNUmakefile                           etc
INSTALL                               info
INSTALL.REPO                          leim
Makefile                              lib
Makefile.in                           lib-src
README                                lisp
aclocal.m4                            lwlib
admin                                 m4
autogen.sh                            make-dist
autom4te.cache                        modules
build-aux                             msdos
config.bat                            native-lisp
config.log                            nextstep
config.log~                           nt
config.status                         oldXMenu
configure                             src
configure.ac                          test
$