From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 15:28:59 +0300 Message-ID: <83a6mtavas.fsf@gnu.org> References: <87h7h2lz7w.fsf@gnus.org> <83im1hbcbg.fsf@gnu.org> <87sg0lkqyv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31258"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49507@debbugs.gnu.org, naofumi@yasufuku.dev To: Lars Ingebrigtsen , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 11 14:30:16 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 1m2YbA-0007yx-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jul 2021 14:30:16 +0200 Original-Received: from localhost ([::1]:44712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2Yb9-0003HQ-MN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jul 2021 08:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Yaw-0003HI-T4 for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2021 08:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2Yaw-0003mu-LJ for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2021 08:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2Yaw-00082h-BJ for bug-gnu-emacs@gnu.org; Sun, 11 Jul 2021 08:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Jul 2021 12:30: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.162600656030848 (code B ref 49507); Sun, 11 Jul 2021 12:30:02 +0000 Original-Received: (at 49507) by debbugs.gnu.org; 11 Jul 2021 12:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:34121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2YaG-00081T-9B for submit@debbugs.gnu.org; Sun, 11 Jul 2021 08:29:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2YaE-00081G-7t for 49507@debbugs.gnu.org; Sun, 11 Jul 2021 08:29:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45122) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2Ya7-0003PI-DE; Sun, 11 Jul 2021 08:29:11 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1633 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Ya6-0007Xi-EQ; Sun, 11 Jul 2021 08:29:11 -0400 In-Reply-To: <87sg0lkqyv.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 11 Jul 2021 13:52:24 +0200) 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:209796 Archived-At: > From: Lars Ingebrigtsen > Cc: Naofumi Yasufuku , 49507@debbugs.gnu.org > Date: Sun, 11 Jul 2021 13:52:24 +0200 > > Eli Zaretskii 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?