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#65222: 29.1; Packages initialize but package--initialize is nil Date: Sat, 19 Aug 2023 12:24:32 +0300 Message-ID: <83ttsvz8of.fsf@gnu.org> References: <837cpr1m8r.fsf@gnu.org> <87fs4fxv40.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34388"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65222@debbugs.gnu.org, dalanicolai@gmail.com To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 19 11:25:16 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 1qXICp-0008mz-K1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 11:25:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXICc-00023P-QX; Sat, 19 Aug 2023 05:25:02 -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 1qXICb-000230-Mm for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 05:25:01 -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 1qXICb-000897-DW for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 05:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXICb-0006Kh-QH for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2023 05:25: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: Sat, 19 Aug 2023 09:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65222 X-GNU-PR-Package: emacs Original-Received: via spool by 65222-submit@debbugs.gnu.org id=B65222.169243706924288 (code B ref 65222); Sat, 19 Aug 2023 09:25:01 +0000 Original-Received: (at 65222) by debbugs.gnu.org; 19 Aug 2023 09:24:29 +0000 Original-Received: from localhost ([127.0.0.1]:49468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXIC4-0006Jg-M6 for submit@debbugs.gnu.org; Sat, 19 Aug 2023 05:24:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXIC2-0006JS-Em for 65222@debbugs.gnu.org; Sat, 19 Aug 2023 05:24:27 -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 1qXIBw-00086l-3g; Sat, 19 Aug 2023 05:24:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QB3h1o6fS7dFRReFtAkYKlZ4+uJlTDVEDtzpMVO3mtA=; b=fxBtn1NHqifN XAxLGqIKYTtf9KFmu7vIH3U+5QTKNIp9MCUH/UEGMwmk0fzQiHEwHi7l0bzIN0hrck4xGW9mJOlgi h51wxAB4iVoiKmuoh2FOa/6uT2f+JRz2oolcwJQIjFK4fhHZxyM4QUGmFM9YJ3r6wGPxshXyY+Xvz Np5qa0qabziepWyxP/+IXJ+l85VRZZEVMrsrMk24kALNhkBPkgBKW/AdOHIJkkuW0250dTvlKcRv7 7ob/bevHTSs8c07I1aeN4tJMdoc+b370mAJYGQOSzEyl0mgD31Nge/WBMTC1jALZYUdWsGjULmqzv osjSG3J4iCRGKbnkoV5YQQ==; In-Reply-To: <87fs4fxv40.fsf@posteo.net> (message from Philip Kaludercic on Sat, 19 Aug 2023 09:02:55 +0000) 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:267835 Archived-At: > From: Philip Kaludercic > Cc: dalanicolai , 65222@debbugs.gnu.org > Date: Sat, 19 Aug 2023 09:02:55 +0000 > > I can reproduce the issue, but this isn't an issue, since > `package-enable-at-startup' is related to the activation of packages at > startup, not the initialisation of package.el. In startup.el we find > > --8<---------------cut here---------------start------------->8--- > ;; If any package directory exists, initialize the package system. > (and user-init-file > package-enable-at-startup > (not (bound-and-true-p package--activated)) > (catch 'package-dir-found > ...) > (package-activate-all)) > --8<---------------cut here---------------end--------------->8--- > > And it makes sense, when we consider the difference between > `package-activate-all' and `package-initialize'. The former goes > through all available packages ensures they can be used, the former sets > up package.el-internal variables in addition to what > `package-activate-all' does, which is not necessary at startup if we > just want the packages to be made available for the user. > > So south I understand the confusion, I believe the behaviour is correct. > What we could do is to extend the documentation at some places to avoid > this confusion in the future. Please suggest documentation patches you think are in order, and thanks.