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#66357: 29.1; malformed load-history entry when built --with-ns Date: Thu, 05 Oct 2023 09:01:27 +0300 Message-ID: <83pm1t4ngo.fsf@gnu.org> References: 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="8525"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66357@debbugs.gnu.org To: Aaron Ucko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 05 08:02:05 2023 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 1qoHQy-00020Z-Vs for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 08:02:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoHQg-0004Av-OT; Thu, 05 Oct 2023 02:01:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoHQe-0004Ag-43 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 02:01:44 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoHQd-0004FY-RY for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 02:01:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoHQv-0002w3-Rd for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 02:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2023 06:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66357 X-GNU-PR-Package: emacs Original-Received: via spool by 66357-submit@debbugs.gnu.org id=B66357.169648570711261 (code B ref 66357); Thu, 05 Oct 2023 06:02:01 +0000 Original-Received: (at 66357) by debbugs.gnu.org; 5 Oct 2023 06:01:47 +0000 Original-Received: from localhost ([127.0.0.1]:45839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoHQh-0002vZ-1I for submit@debbugs.gnu.org; Thu, 05 Oct 2023 02:01:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoHQf-0002vL-T1 for 66357@debbugs.gnu.org; Thu, 05 Oct 2023 02:01:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoHQH-0004CZ-JU; Thu, 05 Oct 2023 02:01:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=BGKLKKl2OQX0495TJqHhQOHK0psIEtGcLFSS+8KwV6A=; b=qim4WBTQ7Th6l3KIzVyX ughu47zMHHj5sdm9LykEW5/0ya1Mj1ppNYI3QtwR7qpJ9SY8ho9tjWkyHSvyFMo42n0pMY1fHn+Mr 9hJnA3hjdXHZ866XLo7SB7OrwpFVCXAdClm1PsKI1ZkGdLkSqFv0zOQQLsl3uZbp3MprL4FaBOf74 ZEr5y2GNZZ7dgb9o28vXkM5s5bIXVfQXwLlnbVcTTaEbyDUWpFRFOxtHfu+TKfGq4/wo/lkNFON9N 39LdXyQZObl4ndmQJcTTwo6QYOYnIvLjrFN6mpPymGk269FsGvVjuNAETANkeUcZRzhNclbJbDN1v +r1RTMXThKszXA==; In-Reply-To: (bug-gnu-emacs@gnu.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271843 Archived-At: > Date: Wed, 04 Oct 2023 15:34:34 -0400 > From: Aaron Ucko via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > Immediately after startup, load-history starts with the malformed entry > > ((require . package) (require . info)) > > which in turn breaks e.g. eval-after-load, which reasonably expects > every entry to start with a filename. > > I encounter this behavior with an all-comments .emacs, but not with > emacs -q; with -q, load-history instead starts with nil, which is > irregular too but (mostly?) harmless. This Cocoa-enabled build exhibits > the same behavior in -nw mode, but an X11 build of the same sources > (unpatched 29.1) doesn't add any irregular entries in any mode. I cannot reproduce this (but I'm not on macOS). My guess is that you have packages installed via package.el, and some of your init files are executed (and load package.el) even though the .emacs is commented out. I don't have any packages installed, so I don't see this problem. In any case, the above value is non malformed, it is fully documented in the ELisp manual: -- Variable: load-history The value of this variable is an alist that associates the names of loaded library files with the names of the functions and variables they defined, as well as the features they provided or required. Each element in this alist describes one loaded library (including libraries that are preloaded at startup). It is a list whose CAR is the absolute file name of the library (a string). The rest of the list elements have these forms: ‘VAR’ The symbol VAR was defined as a variable. ‘(defun . FUN)’ The function FUN was defined. ‘(defun . FUN)’, which represents defining FUN as a function. ‘(defface . FACE)’ The face FACE was defined. ‘(require . FEATURE)’ The feature FEATURE was required.