From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: David Hull Newsgroups: gmane.emacs.bugs Subject: bug#41379: 27.0.91; load-history gets bad entries when loading $HOME/.emacs.d/elpa autoload files Date: Mon, 18 May 2020 13:20:51 -0700 Message-ID: <5FBD7712-9C72-4628-ADA6-D838D82B067F@davidhull.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64971"; mail-complaints-to="usenet@ciao.gmane.io" To: 41379@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 18 22:31:23 2020 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 1jamPy-000GoC-Oc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 May 2020 22:31:22 +0200 Original-Received: from localhost ([::1]:48426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jamPx-0007lJ-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 May 2020 16:31:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jamPf-0007iy-AS for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 16:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jamPe-0008Om-VP for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 16:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jamPd-0008TG-S1 for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 16:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Hull Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2020 20:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41379 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158983385432547 (code B ref -1); Mon, 18 May 2020 20:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 May 2020 20:30:54 +0000 Original-Received: from localhost ([127.0.0.1]:48351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jamPW-0008St-8n for submit@debbugs.gnu.org; Mon, 18 May 2020 16:30:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jamOw-0008Rx-Gi for submit@debbugs.gnu.org; Mon, 18 May 2020 16:30:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jamOw-0006uX-1b for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 16:30:18 -0400 Original-Received: from 066-214-031-090.biz.spectrum.com ([66.214.31.90]:39160 helo=smtp.hullabaloo.us) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jamOu-00086a-CM for bug-gnu-emacs@gnu.org; Mon, 18 May 2020 16:30:17 -0400 Original-Received: from air.lan (Air.lan [192.168.1.217]) by smtp.hullabaloo.us (Postfix) with ESMTPSA id 992748069EDF; Mon, 18 May 2020 13:20:52 -0700 (PDT) X-Mailer: Apple Mail (2.3445.104.14) Received-SPF: softfail client-ip=66.214.31.90; envelope-from=home@davidhull.org; helo=smtp.hullabaloo.us X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/18 16:20:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, TVD_RCVD_IP=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Mon, 18 May 2020 16:30:53 -0400 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:180558 Archived-At: It seems that Emacs 20.0.91 gets bad entries in the load-history variable when loading autoloads at startup from the $HOME/.emacs.d/elpa directory. I cannot reproduce the problem when I start emacs as `emacs-q`, however the problem does occur with a minimal startup environment. cat /dev/null >$HOME/.emacs rm -rf ~HOME/.emacs.d emacs Now, if I show the variable load-history it has a `nil` entry: = (("/Users/david/Downloads/Emacs.app/Contents/Resources/lisp/thingatpt.elc"= (provide . thingatpt) (t . forward-thing) [ elided lots of lines here ] (autoload . cl-tree-equal) (provide . cl-loaddefs)) nil = ("/Users/david/Downloads/Emacs.app/Contents/Resources/lisp/subdirs.el") = ("/Users/david/Downloads/Emacs.app/Contents/Resources/site-lisp/subdirs.el= ") [ elided the rest of the load-history value here ] ) With real autoload files, I usually end up with `((require . info))` or `((require . finder-inf))` instead of `nil` in load-history, but still missing the filename as the car of the list, for example: [...] (t . help-bookmark-jump) (defun . help-bookmark-jump) (provide . help-mode)) ((require . info)) = ("/Users/david/Downloads/Emacs.app/Contents/Resources/lisp/info.elc" = Info-history Info-history-forward Info-history-list = Info-history-skip-intermediate-nodes Info-enable-active-nodes (defface . info-node) (defface . info-title-1) [...] In GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin18.7.0, NS = appkit-1671.60 Version 10.14.6 (Build 18G4032)) of 2020-05-18 built on Air.lan Windowing system distributor 'Apple', version 10.3.1671 System Description: Mac OS X 10.14.6 Recent messages: Loading cus-start...done Loading tooltip...done Loading = /Users/david/Downloads/Emacs.app/Contents/Resources/lisp/leim/leim-list.el= (source)...done Finding pointers to doc strings...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading loadup.el (source)...done Type C-x 1 to delete the help window, C-M-v to scroll help. Mark saved where search started Mark set Quit Quit Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS PDUMPER Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Help Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch cl-extra seq byte-opt gv bytecomp byte-compile cconv pp cl-print thingatpt help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib tooltip cus-start eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 276201 20318) (symbols 48 20810 1) (strings 32 57642 2002) (string-bytes 1 2401036) (vectors 16 51209) (vector-slots 8 1407957 64410) (floats 8 200 40) (intervals 56 235 6) (buffers 1000 13))