From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#24467: 25.1; package Date: Sat, 03 Nov 2018 11:07:25 -0400 Message-ID: References: <87shspdja1.fsf@web.de> <877fa0zoi8.fsf@users.sourceforge.net> <87k2e0gkvd.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541257568 10571 195.159.176.226 (3 Nov 2018 15:06:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2018 15:06:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24467@debbugs.gnu.org, SK Kim , npostavs@users.sourceforge.net To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 03 16:06:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIxUx-0002dM-Li for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2018 16:06:03 +0100 Original-Received: from localhost ([::1]:55902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIxX3-0000jm-UB for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2018 11:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIxWx-0000jX-FA for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 11:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIxWs-0000SB-Dz for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 11:08:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIxWs-0000Qa-24 for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIxWr-0005wT-Pj for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2018 11:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Nov 2018 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24467 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 24467-submit@debbugs.gnu.org id=B24467.154125764922803 (code B ref 24467); Sat, 03 Nov 2018 15:08:01 +0000 Original-Received: (at 24467) by debbugs.gnu.org; 3 Nov 2018 15:07:29 +0000 Original-Received: from localhost ([127.0.0.1]:33081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIxWL-0005vi-09 for submit@debbugs.gnu.org; Sat, 03 Nov 2018 11:07:29 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIxWI-0005va-J4 for 24467@debbugs.gnu.org; Sat, 03 Nov 2018 11:07:27 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wA3F7PPN002073; Sat, 3 Nov 2018 11:07:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 211FA6A4BD; Sat, 3 Nov 2018 11:07:25 -0400 (EDT) In-Reply-To: <87k2e0gkvd.fsf@web.de> (Michael Heerdegen's message of "Sun, 25 Sep 2016 15:38:30 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6410=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6410> : inlines <6952> : streams <1803201> : uri <2743536> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151978 Archived-At: >> Ah, so the packages are "new" in the sense that they come from >> archives added after package-initialize was called. > > I'm not sure whether this is by design and if we would break something > if we changed it. I think the fix would be quite trivial: simply > speaking, we would change `package-read-all-archive-contents' to iterate > over "$package-user-dir/archives/*" instead of `package-archives'. It's clearly a bug, and it's made worse in Emacs-27 where package-initialize is called automatically before reading ~/.emacs. IOW, I think "this" needs to be fixed before Emacs-27.1. The fix you propose might work (tho with unintended side effects), but I don't see any reason why we need to package-read-all-archive-contents so early on anyway. More specifically, package-activate-all should be changed so it doesn't end up running package-read-all-archive-contents: it's already the case when a package-quickstart-file is found, but if there's no such file we call package-initialize which ends up calling package-read-all-archive-contents even though we're only interested in the package-load-all-descriptors part, really. Stefan