From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49507: 28.0.50; macOS: =?UTF-8?Q?Symbol=E2=80=99s?= value as variable is void: lock-file-name-transforms Date: Sun, 11 Jul 2021 12:42:49 -0400 Message-ID: References: <87h7h2lz7w.fsf@gnus.org> <83im1hbcbg.fsf@gnu.org> <87sg0lkqyv.fsf@gnus.org> <83a6mtavas.fsf@gnu.org> <838s2cc3ay.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31273"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: larsi@gnus.org, 49507@debbugs.gnu.org, naofumi@yasufuku.dev To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 11 18:44:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2cYt-0007xh-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jul 2021 18:44:11 +0200 Original-Received: from localhost ([::1]:36068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2cYs-0005dz-Nl for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jul 2021 12:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2cYk-0005dr-SI for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2021 12:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2cYk-0001Cz-Kt for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2021 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2cYk-0006Gd-Fl for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2021 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Jul 2021 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 49507-submit@debbugs.gnu.org id=B49507.162602178224003 (code B ref 49507); Sun, 11 Jul 2021 16:44:02 +0000 Original-Received: (at 49507) by debbugs.gnu.org; 11 Jul 2021 16:43:02 +0000 Original-Received: from localhost ([127.0.0.1]:35794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2cXl-0006Ey-SZ for submit@debbugs.gnu.org; Sun, 11 Jul 2021 12:43:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2cXg-0006Eg-Rk for 49507@debbugs.gnu.org; Sun, 11 Jul 2021 12:43:00 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5AF9A80D51; Sun, 11 Jul 2021 12:42:51 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 307DD80926; Sun, 11 Jul 2021 12:42:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1626021770; bh=oxfmL4VytBFYsfTuglGAFt1ogEGEc/Z8M1Qzq0BNh6U=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=X+cf73Po1LWVo+dWvEtgjmqh5cu5ObZs1NunFk2NRNTBPs7Z6fwXLAoFyHnEWLVy0 jdRwfVAou91BeKKf8sm+Ahqt2Bb/N3h59icegL8cNRXO80WjbKI/o5dUP3z01he31T sgvwZGfIbas4edGDB6QEITmrTARTTv1nA0LZtSoYJDAnw2tRwyDNB9+77hy25B51L/ 3z6mHRnw/fhY4Ly+IzqB5nHQMAJlounnAItToLgQcQVt6ET1CkLUjbPhXNj8HHZoyI Ct+MtKfypJR2JU5wJfoHrXnyR74+ZGqmhTnh0ADCUr9qgJCI4OSiN2U8fnMg2X00Td HQkZ0BGi+tdQQ== Original-Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EAA511201AF; Sun, 11 Jul 2021 12:42:49 -0400 (EDT) In-Reply-To: <838s2cc3ay.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 11 Jul 2021 17:50:45 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209806 Archived-At: >> I don't see why being defined in C would be relevant, no. > Because those are always defined when the startup code runs. By > contrast, if you define them in some preloaded Lisp file, the > defcustom form could run before the preloaded Lisp is restored from > the pdumper file. The error indeed came from the fact that the var is not defined when `defcustom` is executed but instead only later on, when the predumped Emacs is executed (in `startup.el`). But to some extent it's only a side effect of the current implementation of `custom-initialize-delay`. We could change it to also define the variable when the `defcustom` is executed. [ AFAICT that should be mostly painless, but past experience with this functionality tells me that this change would inevitably introduce some unforeseen change which we'd only discover a few months later ;-) ] The underlying functionality is needed for any variable that's predefined in the dump and yet whose default value can't be precomputed when we dump Emacs. A `grep` shows that the vast majority of those variables are defined in ELisp. Stefan