From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Naofumi Yasufuku 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 07:42:15 +0900 Message-ID: References: <87h7h2lz7w.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 27.2 Cc: 49507@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 11 00:43:29 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 1m2Lh2-0007VN-OQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Jul 2021 00:43:28 +0200 Original-Received: from localhost ([::1]:34294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2Lh1-0008Vc-7a for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Jul 2021 18:43:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Lgc-0008V6-HS for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 18:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2Lgc-0007Wn-AY for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 18:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2Lgc-0008LB-26 for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 18:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Naofumi Yasufuku Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jul 2021 22:43: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.162595695132020 (code B ref 49507); Sat, 10 Jul 2021 22:43:02 +0000 Original-Received: (at 49507) by debbugs.gnu.org; 10 Jul 2021 22:42:31 +0000 Original-Received: from localhost ([127.0.0.1]:33608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2Lg7-0008KO-3J for submit@debbugs.gnu.org; Sat, 10 Jul 2021 18:42:31 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:20109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2Lg5-0008KA-A1 for 49507@debbugs.gnu.org; Sat, 10 Jul 2021 18:42:29 -0400 Original-Received: (Authenticated sender: naofumi@yasufuku.dev) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id D6045240007; Sat, 10 Jul 2021 22:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yasufuku.dev; s=gm1; t=1625956943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xPsXWck7pQpyTPzVmjWbtQlzODNUAkdxfh9NlOPV5qM=; b=py4Z4JXmx3+IJvz0S6LHTp+JrWWu9LtRz24fIjiqhXp7UHrWj5Vd0iAVtfR/+wXvK40osO kGn9Otfi0z3IhuZIuSZLl2mlhfGI5OjfqJVP3B9DpoQBDgQpaAaK3y1xnvAW4nToYfXpjn CNp1z7xDBhQ/EBbe4wH5q0yYuqn1hBXAe44qol+V+bKt8Uzgq6HnRT6dYmPW5vs3JqOM/N 5liwlKrgzlNzImj7IMG3r+voxHc7FHrfYNJMkIzFuONrpVYVua8WYvUSBAlAYXZ+6r1D60 8E79VLZSz5twfjOE15pcjC9DaHeE7Y/k0RHFzXpC3RxMBuAUwRPVZhuNuCXeWA== In-reply-to: <87h7h2lz7w.fsf@gnus.org> 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:209776 Archived-At: Lars Ingebrigtsen writes: > Naofumi Yasufuku writes: > >> Precondition: >> - Repository revision: 9ce6541ac9710933beca7f9944087fe4849d5ae9 >> - macOS >> - $ mv ~/.emacs.d/eln-cache ~/.emacs.d/eln-cache.old >> >> Emacs doesn't start due to the following error: >> $ ./src/emacs -Q >> Symbol’s value as variable is void: lock-file-name-transforms >> $ > > [...] > >> - return call1 (Qmake_lock_file_name, Fexpand_file_name (fn, Qnil)); >> + Lisp_Object func = intern ("make-lock-file-name"); >> + if (NILP (Fboundp (func))) >> + return Qnil; >> + return call1 (func, Fexpand_file_name (fn, Qnil)); > > Well, that code was buggy (as Michael pointed out) -- Fboundp doesn't > work on interned symbols, apparently? > > But in any case, make-lock-file-name and lock-file-name-transforms are > defined in the same file ("files.el"), so what you're seeing here just > shouldn't be possible -- it should complain about make-lock-file-name > being undefined, not the variable. > I found that the following simple `lock-file-name-transforms' change can also avoid this error: ---- lisp/files.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 0dfcab8f89..894a06e6e7 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -424,7 +424,6 @@ lock-file-name-transforms :type '(repeat (list (regexp :tag "Regexp") (string :tag "Replacement") (boolean :tag "Uniquify"))) - :initialize 'custom-initialize-delay :version "28.1") (defvar auto-save--timer nil "Timer for `auto-save-visited-mode'.") ---- > So I think this points to there being something odd going on in your > build tree. Are you sure you have no private modifications in the tree? > Do you still see this issue from a freshly checked out tree? I've tested with fresh build of new checked out under both macOS and linux (Ubuntu 21.04). The result is same.