GNU bug report logs - #62767
29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set variables after info package

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: lin Sun <sunlin7@HIDDEN>; Keywords: patch; dated Tue, 11 Apr 2023 05:17:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 30 May 2023 10:25:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 30 06:25:38 2023
Received: from localhost ([127.0.0.1]:60147 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q3wXp-0007ps-Ue
	for submit <at> debbugs.gnu.org; Tue, 30 May 2023 06:25:38 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39764)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1q3wXn-0007pf-TQ
 for 62767 <at> debbugs.gnu.org; Tue, 30 May 2023 06:25:36 -0400
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 <eliz@HIDDEN>)
 id 1q3wXf-0003Ki-RQ; Tue, 30 May 2023 06:25:28 -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=fOjOG5iYqvZYab4L6PY7Lkwup6hzSCn21F0iw44FZFE=; b=KV8m4LhyxKj3
 hEAaJA7hKd5UpMku+/XywUqPqd3/YWi4yz7ZgGfsxeIxdgLgRzhOHG4A5cqNQo7f88ZbgiDIx93HS
 Cg4YREPfHsha1GVRPegbpnUh4clrBnoazhbzbf4Al2koLrOmPS0pL4AIQTP5Wb3ch0Ifg9y6Xkfyu
 n4htPUqQWhv6jB2LLTun8YZ5GhkiE0xlPW7RxQ7Yap3c2Ih0TLGa9roFVch7sK1pG4nrYCA7nVGBs
 EgnEeUbEnDjQee+Vs/8GLqJQIukWUIHJfNP266KvE4Sym6/wTU0Gr0DcTdcElRpH9pGCHbhvdEphs
 MOESJPL06/Xiww+7V3l+QA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1q3wXK-0000fX-Np; Tue, 30 May 2023 06:25:23 -0400
Date: Tue, 30 May 2023 13:25:46 +0300
Message-Id: <831qiyglp1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
In-Reply-To: <CABCREdoDetZiLFnpTGCef5jBtPFbj5EByr7yGstSSkj4P8XBvw@HIDDEN>
 (message from lin Sun on Tue, 30 May 2023 03:56:00 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
 <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
 <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
 <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
 <83edn6new6.fsf@HIDDEN>
 <CABCREdr2Kh=vzrXXboPxTp3JoBfWeBL7wQgeCSeJyN5yRpgFWQ@HIDDEN>
 <83bki7l9ge.fsf@HIDDEN>
 <CABCREdoDetZiLFnpTGCef5jBtPFbj5EByr7yGstSSkj4P8XBvw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: lin Sun <sunlin7@HIDDEN>
> Date: Tue, 30 May 2023 03:56:00 +0000
> Cc: monnier@HIDDEN, philipk@HIDDEN, 62767 <at> debbugs.gnu.org
> 
> The proposed mechanism will request info.el to reserve a variable that
> allows customer change outside of info.el, then info.el reads the
> variable and proceeds the paths before the info.el major function. So
> adding a new variable package-info-directory-list or using the current
> Info-directory-list are nearly equal, except that the new name is for
> package.el special.

Yes, that's the idea.  This way, we keep info.el and package.el very
loosely coupled, as they should be, and each one of them can apply its
own logic to its variable.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 30 May 2023 03:56:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 29 23:56:26 2023
Received: from localhost ([127.0.0.1]:59618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q3qTC-00034P-Ba
	for submit <at> debbugs.gnu.org; Mon, 29 May 2023 23:56:26 -0400
Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]:46138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1q3qTA-00034A-9J
 for 62767 <at> debbugs.gnu.org; Mon, 29 May 2023 23:56:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1685418978; bh=zUrkEryQLEve81hY0bXBiWg94PphuawH0+Wl4BM34V4=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=TNNEDb1vhKpid1J/jQfyB9AorZwEo4cuqXXuDLoBjshjGcVbUzeEe+tsUwEpMxtr7HfYbB42vLfzyKZiQ+UlS7EUOwPe3nXJQf+0H/8UIUvexul7PGM2A+lNxUZ0l+66D2moI7pNHH0a6wlBiAa2IRStJYrlTN6It+AJn+3xoHvVlthNgwmUBbfyltDq7zhSzE5t3fd3mVQn5cpRgGDuFVwdPapkwtxxct+Nl0RloUl6eePhi11ITiKIdWXvXz+QQWZtDhjjitTloNyfw/24Vezv5LS+GEcn4UHwJ5cbCtOz0K9W/0pOm5y42hXehAC1/JTmKBYIdLexsnGFXd4cmQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1685418978; bh=lITxL/IAHPIjALx41ZLZW3NJ0tmuaVey9/Yqv2ESwpv=;
 h=X-Sonic-MF:From:Date:Subject:To:From:Subject;
 b=fohD6ZF1/IVc+GY5FmEvNeiJK1URU+EqDk2Zx07LJdudnjAnPfqE3WtRK1NPnxQysofTJ5QcB/Oj48La2UV+2BZxkw4vsFDvAQ+9GK9wUBh14h8hOwSThTGc2eFzCA8cl27JU+SfvsXl+eIs8QkqMhd2Dfm7vzWwmFM4VDSWrPYkWY32Wjz+OTUnyupv0Y6TWRX7Cas8uaIGyXPvcJce6D6+J71w6QoweahHNWvdBoYfbEu+9TkiBzsraivUZoZZrMJi3dS1SNSDyCghmcBQJeiExyQB3SLJ4eSDX+4iECPaXq5WKHphzssAOgzgJvcYEcmocQ5AvOZ2+sqYl7vXDA==
X-YMail-OSG: 2.3iMuYVM1lCuGsKs6VeApWuy7e1X1oMH01NL.7Zw3K5DYXXeOgoGAW6MTnMRPn
 T9TQrYKCjCmRg3MH3cSuE56XXiL0q_19CIwD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prMBbDBv7YOWWtUdBFKs9mDu47moTABAIU80VoByApy.ju61VpdglGl7UDKDbr9VZrbtbY7
 QuRm.4Axtf8GIO51M0LVq5GOQGlD_Zf4lfP7OQYKH8k5Sk2u4k6caFH1pW5ydfOew5A--
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: 1bfaa6a7-6ef1-4eb3-828e-7a69be075918
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 30 May 2023 03:56:18 +0000
Received: by hermes--production-ir2-7867f454fc-z6m77 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 18b5a1acb94572d244e4bbb3f789fab9; 
 Tue, 30 May 2023 03:56:13 +0000 (UTC)
Received: by mail-ed1-f49.google.com with SMTP id
 4fb4d7f45d1cf-5149390b20aso4608042a12.3
 for <62767 <at> debbugs.gnu.org>; Mon, 29 May 2023 20:56:13 -0700 (PDT)
X-Gm-Message-State: AC+VfDyEMNb2gtBTkfL8aYWuzJr1w7VWy/w1xAIJPTNLEcIBUSA3g5KB
 h3xhSd/9IgAUbDUNzG9RP9wsS6zHFlgOWvBkd+0=
X-Google-Smtp-Source: ACHHUZ5DRGl8zyAbEXmtk0yhn8T4PlS6WDrOuKLI3ysiAvSAo9hMv6MpIlUdGOwWiAMWslrPW2H40caN7wtdkGYQ/S4=
X-Received: by 2002:a17:907:2684:b0:96a:246b:c65d with SMTP id
 bn4-20020a170907268400b0096a246bc65dmr1050215ejc.12.1685418972570; Mon, 29
 May 2023 20:56:12 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
 <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
 <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
 <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
 <83edn6new6.fsf@HIDDEN>
 <CABCREdr2Kh=vzrXXboPxTp3JoBfWeBL7wQgeCSeJyN5yRpgFWQ@HIDDEN>
 <83bki7l9ge.fsf@HIDDEN>
In-Reply-To: <83bki7l9ge.fsf@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Tue, 30 May 2023 03:56:00 +0000
X-Gmail-Original-Message-ID: <CABCREdoDetZiLFnpTGCef5jBtPFbj5EByr7yGstSSkj4P8XBvw@HIDDEN>
Message-ID: <CABCREdoDetZiLFnpTGCef5jBtPFbj5EByr7yGstSSkj4P8XBvw@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.21495
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2038
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

On Fri, May 26, 2023 at 9:37=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:
>  But I don't think it's TRT to have users or
> Lisp programs outside of info.el manipulate Info-directory-list and
> mutate it.  Instead, I think we should have a package.el-specific
> directory list of Info files, say, package-info-directory-list, and we
> should arrange for info.el to look in those directories _before_ it
> looks in the directories mentioned by Info-directory-list.  Then
> there'll be no need to play with info-initialize and the variable we
> use to indicate info-initialize was already called, and (more
> importantly), no code outside of info.el will mess with
> Info-directory-list.  And package.el will add directories to this new
> variable.
>
> OK?
Totally understand your concern.
The proposed mechanism will request info.el to reserve a variable that
allows customer change outside of info.el, then info.el reads the
variable and proceeds the paths before the info.el major function. So
adding a new variable package-info-directory-list or using the current
Info-directory-list are nearly equal, except that the new name is for
package.el special.

> > > > +      (when-let ((info-dirs (butlast Info-directory-list)))
> > > > +        (pp `(defvar Info-directory-list '()) (current-buffer))
> > > > +        (pp `(setq Info-directory-list
> > > > +                   (delete-dups
> > > > +                    (append ',info-dirs Info-directory-list)))
> > > > +            (current-buffer)))
> > >
> > > Using 'append' here could cause duplicate directories in
> > > Info-directory-list.
> > The `delete-dups' will avoid that.
>
> Yes, but why not use add-to-list in the first place?
`add-to-list' will be a good choice here.
The code is following its previous code lines, almost same format,
paste as follow,
>      (pp `(defvar package-activated-list) (current-buffer))
>      (pp `(setq package-activated-list
>                 (delete-dups
>                  (append ',(mapcar #'package-desc-name package--quickstar=
t-pkgs)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 26 May 2023 09:37:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 26 05:37:15 2023
Received: from localhost ([127.0.0.1]:48852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q2Tsp-00048s-Iu
	for submit <at> debbugs.gnu.org; Fri, 26 May 2023 05:37:15 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51030)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1q2Tsn-00048e-Dl
 for 62767 <at> debbugs.gnu.org; Fri, 26 May 2023 05:37:14 -0400
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 <eliz@HIDDEN>)
 id 1q2Tsh-0006V0-8S; Fri, 26 May 2023 05:37:07 -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=gSwlY5yce4sUDSxDHGDOvdzwg33aWG2KlOMTBBrq/6M=; b=HjCCNpXbgdgFj7Tw3Y1y
 eO/KdWTfPoiFvCwLOVA1inNx6+++/K+GQ7nBWCdEzEprwPhOH3hjlyo3JwyjOg1HBlwC+5B6DCfOl
 t/4nu4gF/iVV2C6xJSdAi9db9z94g9AA7p8F4WFMKHljNmHQbQ4wrAmoTGGpo1XNAxBVdkSBP+GYg
 T7DWJj31CAkJ4sf81/w/ddryraNpeXF1ZfY7qu5szO/r5tI2sEBxQ7NfNFGilD8uULZ/2s5Pkjc0o
 7OyyEtIoVORjZ+twb5RvWyt6BTw1EJhuaeF1bR6PuLiTpQVTFEr/iCn58X3o37p7yMuhC2ROoC1y6
 rEbYebhiIzSjXw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1q2Tsg-0001T6-Ly; Fri, 26 May 2023 05:37:07 -0400
Date: Fri, 26 May 2023 12:37:37 +0300
Message-Id: <83bki7l9ge.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
In-Reply-To: <CABCREdr2Kh=vzrXXboPxTp3JoBfWeBL7wQgeCSeJyN5yRpgFWQ@HIDDEN>
 (message from lin Sun on Thu, 25 May 2023 00:46:58 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
 <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
 <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
 <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
 <83edn6new6.fsf@HIDDEN>
 <CABCREdr2Kh=vzrXXboPxTp3JoBfWeBL7wQgeCSeJyN5yRpgFWQ@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: lin Sun <sunlin7@HIDDEN>
> Date: Thu, 25 May 2023 00:46:58 +0000
> Cc: 62767 <at> debbugs.gnu.org
> 
> On Wed, May 24, 2023 at 11:32 AM Eli Zaretskii <eliz@HIDDEN> wrote:
> > ...
> > Could you please describe how this makes sure Info-directory-list will
> > be set to a correct value, in the various scenarios that are relevant?
> >
> > In particular, Info-directory-list is not the right variable to tweak
> > here, as it is computed by info.el.  I think we need a separate
> > variable.
> In the original function `info-initialize', it will rely on the value
> `Info-directory-list' to indicate function initialization and parse
> the "INFOPATH" or get system info dirs as the initialized value.
> 
> The bug comes for: package.el will add several paths into
> `Info-directory-list', that maybe lead function `info-initialize'
> return without parsing the "INFOPATH" or getting the system info dires
> as initial value.
> 
> So package.el required the entire `info.el` and called function
> `info-initialize' to initialize the value first (by parsing the
> "INFOPATH" or get system info dir), then the package.el modify the
> `Info-directory-list'.
> 
> The patch  will allow users to set the `Info-directory-list' before
> calling function `info-initialize'; when info.el use the
> `Info-directory-list' variable to read plain *.info file, will call
> function `info-initialize' to add system info dirs.
> 
> Two functions `Info-insert-dir' and `Info-find-file', will use
> (get/read) the value of `Info-directory-list' to read the plain *.info
> files.
> In the patch file, both functions will call the function
> `info-initialize' at their entry to ensure the `Info-directory-list'
> is initialized with the "INFOPATH" env string.
> Users will just insert/remove dirs from/to `Info-directory-list', but
> won't use the list to read/get plain *.info files.
> So users can define the `Info-directory-list' and modify its value on
> their elisp files.

I understand that part.  But I don't think it's TRT to have users or
Lisp programs outside of info.el manipulate Info-directory-list and
mutate it.  Instead, I think we should have a package.el-specific
directory list of Info files, say, package-info-directory-list, and we
should arrange for info.el to look in those directories _before_ it
looks in the directories mentioned by Info-directory-list.  Then
there'll be no need to play with info-initialize and the variable we
use to indicate info-initialize was already called, and (more
importantly), no code outside of info.el will mess with
Info-directory-list.  And package.el will add directories to this new
variable.

OK?

> > > +      (when-let ((info-dirs (butlast Info-directory-list)))
> > > +        (pp `(defvar Info-directory-list '()) (current-buffer))
> > > +        (pp `(setq Info-directory-list
> > > +                   (delete-dups
> > > +                    (append ',info-dirs Info-directory-list)))
> > > +            (current-buffer)))
> >
> > Using 'append' here could cause duplicate directories in
> > Info-directory-list.
> The `delete-dups' will avoid that.

Yes, but why not use add-to-list in the first place?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 25 May 2023 00:47:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 24 20:47:28 2023
Received: from localhost ([127.0.0.1]:45484 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q1z8Z-0001jt-TQ
	for submit <at> debbugs.gnu.org; Wed, 24 May 2023 20:47:28 -0400
Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:46689)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1q1z8V-0001jY-Fh
 for 62767 <at> debbugs.gnu.org; Wed, 24 May 2023 20:47:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1684975637; bh=6F6SNu4SVfC4yvL2t4J9vnYBkFMun0FvPFmdZIyLNa0=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=MRZC5i9diU3tqomSJMox1PbuLzPHeitdkqwML3nd6/KyxanweBUHf4/RQvxXKoq0zKCnbxoRybCvX1gMp9hf0apKcq4D8lMzYq9tRr7EXuuq0JN4YnvkzgkHO568qLqRlYU9yze+D6gufvHY1lu8H4bflGACK7vqJIhZQaHhvfr5/TL+oQDD/f287jkQaUt+rsrR86g3UvFTkzjLvwX90Z28lkvkmUXilnsuB0N3K0CV+09OgDXcrA6qh7dvGzTh1Tok+yMljXBmrXtXCWWZNclUqSBfHVLwSXMCZs7lH49i8S0U1orqvAxMMLrmvdi+850w3uh6LwnpOIPn8ZGD3A==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1684975637; bh=BdaMq+QNlg6HH2AZi3rSZSCkXkWcC1/H4zrJF3Y1IhU=;
 h=X-Sonic-MF:From:Date:Subject:To:From:Subject;
 b=donE0jdM0q9kCevFvwLijRwgjtxN+kigLqtVAZMqAY4v/8kKAdELa32B6A7fU68By67ztDZ3LQASLTqYnuJmhQgSE4gzjXxUc23CCzO8+RBBE5T+o3KX9xBNzSq5lRwlW+MTtcnFpeM3mNLrXcJ1B7eKfrwaNwWMkYBx+IJFAdJK/Z54knBv2EnJ7we7qBYR5FBkE7WHnHQEFUYAmeGfFYBG0Dr1X/xM4W6VvsZwkNMEcH3NQk/ak3hzhTSCCqSKn+DzXmaSkEebw39Cc5Ik8E2XAaOrnPetkCnKK3UdWVKoB3NuhgFS2tvRUah3Ro5EnDRND4+QaHu17/+1pgMJ/w==
X-YMail-OSG: gdoJF1gV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osHBrinwu6SsgcZQgotXh
 jeGcAYQxdXvPojKTgyv4DznocNnCAZLU3zTkrdcWXzfyn7.WgW2bJuDo_tFXPCIcRvuET8vYQXA7
 YdNf16KyusWvPnoqKsIGF3_ZEkCWvai187IWaRlpFUWzDAUFuFMop2iOokVviuTzxpYb4b.CWwqz
 BgMj3srBoUCF7JKbmrlkHDIGRM2_IltnFTPfPHGpX83b1PK3CJ9qrYouUaBNBGF_5UDXH6IM.n5o
 jbg--
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: dbaf4d09-dd03-41ea-9999-310af48d3a78
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic310.consmr.mail.ne1.yahoo.com with HTTP; Thu, 25 May 2023 00:47:17 +0000
Received: by hermes--production-ir2-7867f454fc-ns8nf (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 3d9b90027af9fd27fb3047a618b75ace; 
 Thu, 25 May 2023 00:47:12 +0000 (UTC)
Received: by mail-ej1-f50.google.com with SMTP id
 a640c23a62f3a-96fb45a5258so268650966b.2
 for <62767 <at> debbugs.gnu.org>; Wed, 24 May 2023 17:47:12 -0700 (PDT)
X-Gm-Message-State: AC+VfDypSicoxLmmiZTUW6Pg8fhFf/oCFzyoJfSOQLn8yYtEG46si9rM
 7P3NDJ0p6bl9v6xVTEx8qfJB6Wx9S5QAryKYoXs=
X-Google-Smtp-Source: ACHHUZ7SxaXXog3U8MO4qH16ySa23RDMdXMNYFv5Int8uaYb0GQdCAW62CwehA1svlkJF66UFX6G6IHcqWeQpkyOnFA=
X-Received: by 2002:a17:906:ccd3:b0:96f:6a03:eca with SMTP id
 ot19-20020a170906ccd300b0096f6a030ecamr14856642ejb.48.1684975630677; Wed, 24
 May 2023 17:47:10 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
 <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
 <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
 <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
 <83edn6new6.fsf@HIDDEN>
In-Reply-To: <83edn6new6.fsf@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Thu, 25 May 2023 00:46:58 +0000
X-Gmail-Original-Message-ID: <CABCREdr2Kh=vzrXXboPxTp3JoBfWeBL7wQgeCSeJyN5yRpgFWQ@HIDDEN>
Message-ID: <CABCREdr2Kh=vzrXXboPxTp3JoBfWeBL7wQgeCSeJyN5yRpgFWQ@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Eli Zaretskii <eliz@HIDDEN>, monnier@HIDDEN, philipk@HIDDEN
Content-Type: multipart/mixed; boundary="000000000000ec52bc05fc79f5c7"
X-Mailer: WebService/1.1.21495
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 9921
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

--000000000000ec52bc05fc79f5c7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, May 24, 2023 at 11:32=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote=
:
> ...
> Could you please describe how this makes sure Info-directory-list will
> be set to a correct value, in the various scenarios that are relevant?
>
> In particular, Info-directory-list is not the right variable to tweak
> here, as it is computed by info.el.  I think we need a separate
> variable.
In the original function `info-initialize', it will rely on the value
`Info-directory-list' to indicate function initialization and parse
the "INFOPATH" or get system info dirs as the initialized value.

The bug comes for: package.el will add several paths into
`Info-directory-list', that maybe lead function `info-initialize'
return without parsing the "INFOPATH" or getting the system info dires
as initial value.

So package.el required the entire `info.el` and called function
`info-initialize' to initialize the value first (by parsing the
"INFOPATH" or get system info dir), then the package.el modify the
`Info-directory-list'.

The patch  will allow users to set the `Info-directory-list' before
calling function `info-initialize'; when info.el use the
`Info-directory-list' variable to read plain *.info file, will call
function `info-initialize' to add system info dirs.

Two functions `Info-insert-dir' and `Info-find-file', will use
(get/read) the value of `Info-directory-list' to read the plain *.info
files.
In the patch file, both functions will call the function
`info-initialize' at their entry to ensure the `Info-directory-list'
is initialized with the "INFOPATH" env string.
Users will just insert/remove dirs from/to `Info-directory-list', but
won't use the list to read/get plain *.info files.
So users can define the `Info-directory-list' and modify its value on
their elisp files.

> > +      (when-let ((info-dirs (butlast Info-directory-list)))
> > +        (pp `(defvar Info-directory-list '()) (current-buffer))
> > +        (pp `(setq Info-directory-list
> > +                   (delete-dups
> > +                    (append ',info-dirs Info-directory-list)))
> > +            (current-buffer)))
>
> Using 'append' here could cause duplicate directories in
> Info-directory-list.
The `delete-dups' will avoid that.

> > +(defvar Info--initialized nil
> > +  "Non-nil if `info-initialize' has been run.")
> There's no need to capitalize the first letter of the name of an
> internal variable.  We capitalize 'I' in "Info" so that it would be
> easier to type info.el commands with completion (other commands that
> begin with 'i' use lower-case 'i').  This is not a factor for internal
> variables.
Very helpful to understand the naming rules. And rename it to
`info--initialized', new patch attached, please review again.

Best Regards
Lin

--000000000000ec52bc05fc79f5c7
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-avoid-to-load-the-entire-info-package-V3.patch"
Content-Disposition: attachment; 
	filename="0001-avoid-to-load-the-entire-info-package-V3.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_li2eyfsq0>
X-Attachment-Id: f_li2eyfsq0

RnJvbSBhMTdmMzg5Y2U2YWY3NjAwNzE0ZDBjYWRmOTI1YTliY2Q1YTZjY2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UgdXNlZCBpdC4KLS0gCjIuMjAuNQoK
--000000000000ec52bc05fc79f5c7--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 24 May 2023 11:32:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 24 07:32:31 2023
Received: from localhost ([127.0.0.1]:42114 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q1mjE-0001Xf-01
	for submit <at> debbugs.gnu.org; Wed, 24 May 2023 07:32:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34672)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1q1mj8-0001XQ-DU
 for 62767 <at> debbugs.gnu.org; Wed, 24 May 2023 07:32:26 -0400
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 <eliz@HIDDEN>)
 id 1q1mj1-00029w-Vf; Wed, 24 May 2023 07:32:15 -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=S5UHdq9lZz2QcCnoeuk06FVT8z1jqT2JhTDNeAcW7ls=; b=ogUXhlzZo6nt
 RBNVtq0tDkEvOV3tTbyptofCUP4/LhVsYvMr6Nm9OqmFu0koJ0oPC4I4so/ONv+eHF4Dlfkdqby5Q
 SLsrJJGUlYsiIx01MjtGP+DZrh1TtGmDT1ZYvHe1g/AEfm9hAvH9NnNk24pLVgEjyFYkKRc/Ox1rg
 vAQzu2XkmajoIThWBGbdgY0/uG1gl6ozXG36sj1grr79oAfxaHaR1XrcAoFMzk+jlTlsIhTv/ec/3
 iwxh82oWClOL0lmE33mW9l4A0gKXbixOh2lxhXmpiJxfnorywVHg+U+LiZaexpbgqOOBC00TKr8pK
 h5wVQRWRBE0uQ7rFW8ykCQ==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1q1mj1-0003HB-8T; Wed, 24 May 2023 07:32:15 -0400
Date: Wed, 24 May 2023 14:32:41 +0300
Message-Id: <83edn6new6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
In-Reply-To: <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
 (message from lin Sun on Wed, 24 May 2023 02:53:08 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
 <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
 <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
 <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: lin Sun <sunlin7@HIDDEN>
> Date: Wed, 24 May 2023 02:53:08 +0000
> 
> > I am experimenting with a different approach to avoid the loading of
> > the entire info.el file using package.el.
> > Instead, I am adding the directories to the `Info-directory-list',
> > which will be utilized by other functions responsible for loading the
> > specific info files.
> > Please help review the patch I attached. Thanks.

Could you please describe how this makes sure Info-directory-list will
be set to a correct value, in the various scenarios that are relevant?

In particular, Info-directory-list is not the right variable to tweak
here, as it is computed by info.el.  I think we need a separate
variable.

> -      (let ((info-dirs (butlast Info-directory-list)))
> -        (when info-dirs
> -          (pp `(progn (require 'info)
> -                      (info-initialize)
> -                      (setq Info-directory-list
> -                            (append ',info-dirs Info-directory-list)))
> -              (current-buffer))))
> +      (when-let ((info-dirs (butlast Info-directory-list)))
> +        (pp `(defvar Info-directory-list '()) (current-buffer))
> +        (pp `(setq Info-directory-list
> +                   (delete-dups
> +                    (append ',info-dirs Info-directory-list)))
> +            (current-buffer)))

Using 'append' here could cause duplicate directories in
Info-directory-list.

> +(defvar Info--initialized nil
> +  "Non-nil if `info-initialize' has been run.")

There's no need to capitalize the first letter of the name of an
internal variable.  We capitalize 'I' in "Info" so that it would be
easier to type info.el commands with completion (other commands that
begin with 'i' use lower-case 'i').  This is not a factor for internal
variables.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 24 May 2023 02:53:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 23 22:53:33 2023
Received: from localhost ([127.0.0.1]:40791 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q1ed3-0003pk-Db
	for submit <at> debbugs.gnu.org; Tue, 23 May 2023 22:53:33 -0400
Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:38537)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1q1ed1-0003pX-LT
 for 62767 <at> debbugs.gnu.org; Tue, 23 May 2023 22:53:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1684896805; bh=kWkIWHuL7v/Zc0NF3JJM2aFSXJ+GAm3NVjxwXwNTWiM=;
 h=References:In-Reply-To:From:Date:Subject:To:From:Subject:Reply-To;
 b=q/xu3Z8xI1GeymqVZs78sdPihU1hURB9G6ShVH5SirWYQzyt7dOKYOFoO2mI0BhmJSUnD6PUnSHk9WYSwAwpVW5giP7H/u/EzZYTy989pFihLezHcft5fykt8VcbASkFhx2BF+87f7Cs0kFdK0YbHguGxvVU7UFBd177T1mQR4naQeKsgF1E3K3uYwut7QfAfAAj3cgA7zUpM8Q9hPT0j/UJVpQWU3ilyhuW8PZNDGdzfTiGZ1yLr0qvlrFKdOcIDGqN7vvRcR/GW8b03WAV8lw5NC4luCsOmCESQnFPIq3t0AFzWPT16s/XV5df3Mwn7ywub8BMY8eWKUtzGn3Jng==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1684896805; bh=2Pl+qjJHycnaa44ENv/NbE1mcoq9ZEFMCGOukzaNcuP=;
 h=X-Sonic-MF:From:Date:Subject:To:From:Subject;
 b=PLXcCLJ0u9W72K/IF8qr3e97uMy0uvs+TfPPxVUlhfX6pucnI54yYMYxyZ+IXa/3X2JUS06QcXab9vE+4m6oQWH83PZ+fJqLTt1r6GacvmKGeNw4E33YNXwXcrfnasBmGRc3EXlaDE18z1s0m3SKIbkGXgk4rBvTP6uhDd/So1+8vCIDn6y42SymxL89xcrKWNLCtvrd8QPQJRd4KUgd9UBb2mgOFJa04uopnfJ+5ZsJSlRgt8fINop69zxiN6bU5Zb0B6WwZ07nrH2E28WulpYYqWZSgmaYBjeK7dyhc2A3d9X0yw5R+xzitTHmsgnqvLQTkRettTxMRLc96bOw6w==
X-YMail-OSG: g1w5accVM1krhVFAfSX4AJ2bIwfcWz2Kwks8eHIrePbqMwsJ6xQT.GuYr9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O87UfyKgmQ3j
 yEiALc0bdeUZv3C7GhPV7gjV2_xLOJbIREEPq_Axp2Z0b0Mmj1cHJ7CIKamIG87.JXHBqeH6N14q
 7.DSBWTEcS4zZAiGnT0doiHvipb00P2djujExIGh_pGy8in4yC7L0V_qDfpkvkqakLmcD
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: fdc163e3-7ebd-4671-a61e-d00a0ae52d20
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ne1.yahoo.com with HTTP; Wed, 24 May 2023 02:53:25 +0000
Received: by hermes--production-ir2-7867f454fc-dskkf (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID d7aac154b33cbf18b8f65ca628280e78; 
 Wed, 24 May 2023 02:53:21 +0000 (UTC)
Received: by mail-ed1-f52.google.com with SMTP id
 4fb4d7f45d1cf-510f3db1cd8so1112124a12.1
 for <62767 <at> debbugs.gnu.org>; Tue, 23 May 2023 19:53:21 -0700 (PDT)
X-Gm-Message-State: AC+VfDxaRzjKhStbx7ze3MfwKvTUqhx8vjouzbEEkeTJUXz69BYKk9Uk
 mwz+yrM3IlcL5OaKBC4XamAiWkq6Q3kWyT9EaKg=
X-Google-Smtp-Source: ACHHUZ5EEgYK+NiYWJwOYstPJZmNLRuU7hRaq37Hu/jyPTQZgH2qDvjpiH4pQ4BqQ9KmFJFNOQ/ceElRErU2Y2t/FVc=
X-Received: by 2002:a17:907:6e0e:b0:966:40ad:3aec with SMTP id
 sd14-20020a1709076e0e00b0096640ad3aecmr14865948ejc.6.1684896799869; Tue, 23
 May 2023 19:53:19 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
 <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
 <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
In-Reply-To: <CABCREdpha5W_phrK8iLVN973-m5BjahNgMhpHDC=oA-X4Vvj9A@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Wed, 24 May 2023 02:53:08 +0000
X-Gmail-Original-Message-ID: <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
Message-ID: <CABCREdqWypPTS9iTP1fXrdu8UJf2hWtONruuW=fpb8V1_cLwmQ@HIDDEN>
Subject: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Stefan Monnier <monnier@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 
 Philip Kaludercic <philipk@HIDDEN>, 62767 <at> debbugs.gnu.org
Content-Type: multipart/mixed; boundary="0000000000003d646405fc679bd0"
X-Mailer: WebService/1.1.21495
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 7450
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 62767
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

--0000000000003d646405fc679bd0
Content-Type: text/plain; charset="UTF-8"

> Hi Eli,
> I am experimenting with a different approach to avoid the loading of
> the entire info.el file using package.el.
> Instead, I am adding the directories to the `Info-directory-list',
> which will be utilized by other functions responsible for loading the
> specific info files.
> Please help review the patch I attached. Thanks.

--0000000000003d646405fc679bd0
Content-Type: application/x-patch; 
	name="0001-avoid-to-load-the-entire-info-package-V2.patch"
Content-Disposition: attachment; 
	filename="0001-avoid-to-load-the-entire-info-package-V2.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_li0upg720>
X-Attachment-Id: f_li0upg720

RnJvbSA5ZTAzNjA4YTAzYjY3ZjM0NWEzZTVlMGQ5Njg3ODNkOGVjNDk4ZjFhIE1vb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CBpdC4KLS0gCjIuMjAuNQoK
--0000000000003d646405fc679bd0--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 23 May 2023 22:11:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 23 18:11:46 2023
Received: from localhost ([127.0.0.1]:40564 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1q1aEL-0004Yh-KZ
	for submit <at> debbugs.gnu.org; Tue, 23 May 2023 18:11:46 -0400
Received: from sonic304-22.consmr.mail.ne1.yahoo.com ([66.163.191.148]:44946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1q1aEJ-0004YG-0r
 for 62767 <at> debbugs.gnu.org; Tue, 23 May 2023 18:11:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1684879896; bh=WlXcI2IhhmI5pjWAGYedidQNAT6hZwQdmuw2Wu6ttvQ=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=TapUdw6AFd4SkazIu8AX+8rD+miRQp29Qlk94T2y3gcdBcP5a8+KEZZL1CfKU5kUYqHdodhC/s+i96Z2Osl8AB5SHbZNTsEjBmKHm9GFICGhOgdkjkETPTRQx4pJjj+8Gcf9dR4Ld15szdBI7aBxDC1jJAsXBmiLpdr/n3SXQ5pRSmi4pV98Nj8aCndPj+fxlRS3WCV6K0pnqpfkiWQnhN5Jd9op5fpHaUVsmLldbqGpMYpRQlPUx0D9XSJfISFZSafLUQmre30Fhvj0oieP/DvMGyMoAyVUg7w2rBlrzj/5PRnZp0/8ZfaxDddvP2sIYInCyfePYPE4tqDJU/NUJQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/rel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5BAuU
 NhSYsr7haICHKaxJwtP.w2zQ0wjkJLFWQFR7j432n7xe5T9MNz4pRTzRnnfqmwgOG_dwa9zOGtbY
 b5.FE685Co3lEBG46qIqQifLsWGtxlM0rL.MUlxqW2TQFBLAbL9_yr6yUbaI428OG9LD.yFV1YJq
 btnIIcbuJzg3TlkAlyNuod8hoGTZ4eOJZBbcO31jWQi4oQzx8b6Hewr9rEaxbSLjlapxMylaF9xK
 uTMGeapEQDy1Rv0Ijs7eANCyi3PZLoOr7dSTPe7orJEmODcvfyL8C4seSutELpDgGIMqcEl1bkkh
 Q3Y2wYcFi8trMgKtQGwlA5m6XjJClVNl4BwmJmQxNd0hYA9zIpX2X4shdA4IV50y_V8hv8TGR_By
 WMVPhZTWsA1jSMpQU4nCJsx5TRiJlDC81yPcQvswdmNYivNrr81hsEDBft8K4FBqjB1WpORnj_Ny
 _hQZi5chYgGlZJwV1xRbCT65w9P1y1NmhRXELeET7xtiaTXF49vhB73sYtd4rz3swd2ArBWUf1Lz
 L7_vYw752hsZBEU_0L5HNSWG1cOYaC0g.een7_QFM789rMb62s_JSR4tNZA5ztSidoHtwQmJZYuD
 VBMkrax7E8ToHubXDwtnDEmWD3n7.HumVKRn_9RSOrLSFw_hw.LWDZ.GWM9_uUR0ozA--
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: b77a1617-ac40-434c-bfeb-d131cfdf2e3e
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic304.consmr.mail.ne1.yahoo.com with HTTP; Tue, 23 May 2023 22:11:36 +0000
Received: by hermes--production-ir2-7867f454fc-z7775 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 59c41c0ebbc0c2ff717d934a1d546549; 
 Tue, 23 May 2023 22:11:34 +0000 (UTC)
Received: by mail-ed1-f48.google.com with SMTP id
 4fb4d7f45d1cf-510d1972d5aso698760a12.0
 for <62767 <at> debbugs.gnu.org>; Tue, 23 May 2023 15:11:34 -0700 (PDT)
X-Gm-Message-State: AC+VfDzspIHvA8hUyWj5VbYT4mDi0nkJyE5f4KnBHFUGKuG5bpyJ5zEc
 HQ7W8F9JEW3FDzwxCUl5XUbPHlLF7ZS1hh/3i5Y=
X-Google-Smtp-Source: ACHHUZ5RlgIejhTs3/a7MxJRyYrxkb14sKCxeLMy2iP6EOrQwTC5ixwdn5D6pXftxGNZocIUWbQ4rzDbMFmluPxPQtE=
X-Received: by 2002:a17:907:a42b:b0:96f:9cea:a346 with SMTP id
 sg43-20020a170907a42b00b0096f9ceaa346mr10421748ejc.1.1684879893161; Tue, 23
 May 2023 15:11:33 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
In-Reply-To: <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Tue, 23 May 2023 22:11:21 +0000
X-Gmail-Original-Message-ID: <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
Message-ID: <CABCREdqhbG1ZOjBvuNo7MmW02tD=Ch0yVyR4n7shT6ZkXCBwCQ@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: multipart/mixed; boundary="00000000000085868905fc63ab10"
X-Mailer: WebService/1.1.21495
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 7050
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

--00000000000085868905fc63ab10
Content-Type: text/plain; charset="UTF-8"

Hi Eli, Stefan,

I am experimenting with a different approach to avoid the loading of
the entire info.el file using package.el.
Instead, I am adding the directories to the `Info-directory-list',
which will be utilized by other functions responsible for loading the
specific info files.

Please help review the patch I attached. Thanks.

Best regards
Lin

--00000000000085868905fc63ab10
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-avoid-to-load-the-entire-info-package.patch"
Content-Disposition: attachment; 
	filename="0001-avoid-to-load-the-entire-info-package.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_li0tz5hs0>
X-Attachment-Id: f_li0tz5hs0

RnJvbSBlZmQzY2JkYjVjZTVkN2VlYjI2MDE1NTc3NzVmZjNmOTNlODZkNDc2IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBU
dWUsIDExIEFwciAyMDIzIDAwOjAwOjEzICswMDAwClN1YmplY3Q6IFtQQVRDSF0gYXZvaWQgdG8g
bG9hZCB0aGUgZW50aXJlIGluZm8gcGFja2FnZQoKKmxpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVs
OiBkb24ndCByZXF1aXJlIGluZm8gcGFja2FnZQoqbGlzcC9pbmZvLmVsOiB1c2UgZXhwbGljaXQg
bWFyayBgSW5mby0taW5pdGlhbGl6ZWQnCi0tLQogbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwg
fCAxNyArKysrKystLS0tLS0tLS0tLQogbGlzcC9pbmZvLmVsICAgICAgICAgICAgICAgfCAzMyAr
KysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tLS0KIDIgZmlsZXMgY2hhbmdlZCwgMjQgaW5z
ZXJ0aW9ucygrKSwgMjYgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9lbWFjcy1saXNw
L3BhY2thZ2UuZWwgYi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5ZXQhCiAgICAgICAgIChwYWNrYWdlLWFjdGl2YXRlZC1s
aXN0ICgpKQpAQCAtNDUyMSwxMyArNDUxNywxMiBAQCBwYWNrYWdlLXF1aWNrc3RhcnQtcmVmcmVz
aAogICAgICAgICAgICAgICAgICAgKGFwcGVuZCAnLChtYXBjYXIgIydwYWNrYWdlLWRlc2MtbmFt
ZSBwYWNrYWdlLS1xdWlja3N0YXJ0LXBrZ3MpCiAgICAgICAgICAgICAgICAgICAgICAgICAgIHBh
Y2thZ2UtYWN0aXZhdGVkLWxpc3QpKSkKICAgICAgICAgICAoY3VycmVudC1idWZmZXIpKQotICAg
ICAgKGxldCAoKGluZm8tZGlycyAoYnV0bGFzdCBJbmZvLWRpcmVjdG9yeS1saXN0KSkpCi0gICAg
ICAgICh3aGVuIGluZm8tZGlycwotICAgICAgICAgIChwcCBgKHByb2duIChyZXF1aXJlICdpbmZv
KQotICAgICAgICAgICAgICAgICAgICAgIChpbmZvLWluaXRpYWxpemUpCi0gICAgICAgICAgICAg
ICAgICAgICAgKHNldHEgSW5mby1kaXJlY3RvcnktbGlzdAotICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIChhcHBlbmQgJyxpbmZvLWRpcnMgSW5mby1kaXJlY3RvcnktbGlzdCkpKQotICAgICAg
ICAgICAgICAoY3VycmVudC1idWZmZXIpKSkpCisgICAgICAod2hlbi1sZXQgKChpbmZvLWRpcnMg
KGJ1dGxhc3QgSW5mby1kaXJlY3RvcnktbGlzdCkpKQorICAgICAgICAocHAgYChkZWZ2YXIgSW5m
by1kaXJlY3RvcnktbGlzdCkgKGN1cnJlbnQtYnVmZmVyKSkKKyAgICAgICAgKHBwIGAoc2V0cSBJ
bmZvLWRpcmVjdG9yeS1saXN0CisgICAgICAgICAgICAgICAgICAgKGRlbGV0ZS1kdXBzCisgICAg
ICAgICAgICAgICAgICAgIChhcHBlbmQgJyxpbmZvLWRpcnMgSW5mby1kaXJlY3RvcnktbGlzdCkp
KQorICAgICAgICAgICA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Ghlci13aW5kb3cgKCZvcHRpb25hbCBmaWxlLW9yLW5vZGUg
YnVmZmVyKQotLSAKMi4yMC41Cgo=
--00000000000085868905fc63ab10--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 20 Apr 2023 16:17:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 20 12:17:21 2023
Received: from localhost ([127.0.0.1]:38587 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ppWyG-0004PO-TG
	for submit <at> debbugs.gnu.org; Thu, 20 Apr 2023 12:17:21 -0400
Received: from sonic303-21.consmr.mail.ne1.yahoo.com ([66.163.188.147]:34844)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1ppWyF-0004PA-Jq
 for 62767 <at> debbugs.gnu.org; Thu, 20 Apr 2023 12:17:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1682007433; bh=NNkp6dvL0KCmgx+eEe80HLgHY8FqK/uI46HXJXtLXtU=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=tB1OT0hEApLQHALwhC1qMfohRcs2hFRjuD+hY8JOt3tFZPnt/yOVo4d0Kb0fDiJi4h4bSfEun1kW7uI3bqcyqGVESXsuedq8VMChvy7TalHv/k1PLaYRm14RNz+K7bAOzCCmqThWEaFUys/ywWBLH/n4c2pbKDd9udtPM3mHHvUU9f5UWyLPe+K8r1/YsjN9yZhIgZKe4LXYK4wQJOPtTRcH7Gnjmxu2sQlvqAtQm2edruyd8zNk+Ba4LnMHrrcLiiFM+TwRc2r99+gC2TBT/s1py/6qaeQoWBuiYyD7vkKGtXS9qI+Y6cQkeYwRzmmKrYjqSx3RqX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LuhQgNeff8DCNG9KD7S7yuyw9.SMW20zICOx8DqTHUCeJQD8.Q2wEk2bU5ZTH8phoun8PoklF7
 u1Z_omfbnLc0vU3YBMdbNsud53RrOUztc8wVotmrG1aeaGsLUYemnxH95mFmeC4o_Ivq_nHKcc47
 E.2bcJekIYP8xxAYEg7FtAt3ZCOtnXu8fQ_wfyvy_ypNEKs.iRG7SAabXdZ1mmPh94AxsncDjYBP
 asxTK_B2.VDe91QhXI4atad4Tu616vtHcgAMk7O9dVQEbHj5FJxsGP9hisos0iSQ53PkFKq3zKty
 NP1UYFagKD7oJAEL0Tsrd9bIXgJJRo978H1LR22BPkn.dqfQjIdQQxCnneqabXJJtB39wB62aqtu
 0Po9ElEKUOkXPM.Ezj.yTRF6jg3G8a6R4c3r.LSssoztFaidmflXq9B0k6s7X5suayGWklS.shgl
 DBs9BS5szCEr1z36rUCRgITcWsoV1M42BJRwOdyHwhuCmaEIw_jeIQiLI2tJZWqcvSLocWkxqAP7
 xKB3Va31QQQsyq1SHz_oS_avhMoe7JhZhkG6oQqg67aQVbZaFu0UqgdrcF9aSsCdH_T2qq.lk5Wq
 ypIUfHtF.pc2hK1esajmC4KS3nwXLtOEzdj1_538Zqw1pM5Vkw8mGx_EOz0QPFxKimgxdel1KQd_
 w_H66yLhJbP61kylWO4YkZES02YoH4Zb1OG5gw0WN5RKcrDobukXKV2eItg8B6jJXT7Hyq3c-
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: 4c706308-f9c9-48fe-8adf-b66e94944a7e
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Thu, 20 Apr 2023 16:17:13 +0000
Received: by hermes--production-ir2-74cd8fc864-s5qrx (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 1210cce903e2a816cb35ab626c1905e0; 
 Thu, 20 Apr 2023 16:17:08 +0000 (UTC)
Received: by mail-ed1-f42.google.com with SMTP id
 4fb4d7f45d1cf-50674656309so981332a12.0
 for <62767 <at> debbugs.gnu.org>; Thu, 20 Apr 2023 09:17:08 -0700 (PDT)
X-Gm-Message-State: AAQBX9eu+q2gknhVqIHCG6oiJi5niGWxhXWYLSTpoAZUDghCiy8x1WNx
 rCKBSJiwijqY2DkjWzT2nF0RTxg/4ACr4mTD9/w=
X-Google-Smtp-Source: AKy350ZzjRsBQWCVdBA+0s0dr2l/ODwS+n7tbqnoZLRWiwufy+NCHMmK2uDnOYpk2r2ZAi7jafS6eWVjnGVC5Edgfvs=
X-Received: by 2002:a05:6402:55a:b0:507:5e52:cdb0 with SMTP id
 i26-20020a056402055a00b005075e52cdb0mr2204430edx.9.1682007427356; Thu, 20 Apr
 2023 09:17:07 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
In-Reply-To: <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Thu, 20 Apr 2023 16:16:55 +0000
X-Gmail-Original-Message-ID: <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
Message-ID: <CABCREdoHpn+tfsbeFgtumz+jQ+f1gXqkFF=9FQP9C0nk4A_d9g@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: WebService/1.1.21365
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1372
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On Thu, 20 Apr 2023 12:12:29 +0300 Eli Zaretskii <eliz <at> gnu.org> wrote:
> Thanks, but we cannot possibly change Info-default-directory-list
> behind the user's back.  Info-default-directory-list is a user option,
> so Emacs itself cannot modify its value.
>
> Moreover, Info-default-directory-list is considered only once, when
> info.el is loaded and initialized for the first time.  Whereas
> package.el can be used for installing a package in the middle of a
> running Emacs session, when info.el was already loaded, and so
> modifying Info-default-directory-list will not have any effect until
> the next restart of Emacs.  Do we require users to restart Emacs after
> installing a package via package.el?
>
> Going back to the original problem, AFAIU you wanted to avoid loading
> info.el at startup, because that makes startup slower, is that right?
> Then how about adding a new variable, Info-packages-directory-list,
> say, to which package.el will add directories of the installed
> packages, and info.el will use when it first loads?  Would that solve
> the problem?
Totally, Info-default-directory-list is a customer variable, and it is
considered only once, not the perfect one.
And yes, the original motivation is to avoid loading info.el at startup.
With your comment, I'm going to search better way to avoid loading
info.el, thanks !

Best Regards
Lin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 20 Apr 2023 09:12:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 20 05:12:31 2023
Received: from localhost ([127.0.0.1]:36555 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ppQL8-0003Hd-N8
	for submit <at> debbugs.gnu.org; Thu, 20 Apr 2023 05:12:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ppQL3-0003HI-7A
 for 62767 <at> debbugs.gnu.org; Thu, 20 Apr 2023 05:12:28 -0400
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 <eliz@HIDDEN>)
 id 1ppQKw-0004iI-AS; Thu, 20 Apr 2023 05:12:18 -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=zPRrT3R8UhRiOcvf6zaLyrHjjvOK5KNH/BVl13NtVzc=; b=qI76C0Cg7ZH2
 fpDXtu1yvteDcq2TWj7I1miab0dJDBNv+tkQz2XTkyJfWwt1a/maOr4i4+oea1hic2gsE9PvdOiYt
 3dMTwNIs0NxyNZKOehy59p4H20CAuCzw6PtJt/qVGJqdilya3Dg6vwrGbootOM83hl+KWp/hZIvwi
 hvtiG6n6gmM/fM3J2kDN/YXpdHjhC70/8OlH8eDgQjWiZQr+x7UIjfFx++uXRG3YZ9c3hfHQq7wlE
 5YVimhP4M7IyvEBdDL+VnePJlpnAX97KZsvgQxu5CkCxtzGNNkGoruPMJeyIIEdnBQPuuJNQtTnAW
 Ps/fz5ZgTtBGxRC62auOsA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ppQKv-0005Po-I9; Thu, 20 Apr 2023 05:12:17 -0400
Date: Thu, 20 Apr 2023 12:12:29 +0300
Message-Id: <83wn266hoi.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
In-Reply-To: <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
 (message from lin Sun on Wed, 19 Apr 2023 05:11:03 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
 <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: lin Sun <sunlin7@HIDDEN>
> Date: Wed, 19 Apr 2023 05:11:03 +0000
> Cc: Philip Kaludercic <philipk@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 62767 <at> debbugs.gnu.org
> 
> I had researched the `info.el', and found the variable
> `Info-default-directory-list' is a more proper variable than the
> original `Info-directory-list', which is an autoload customer
> variable.
> 
> Then the patch can be simpler than the previous one, I attached the
> new patch, it avoided to require 'info. I verified it on my local.

Thanks, but we cannot possibly change Info-default-directory-list
behind the user's back.  Info-default-directory-list is a user option,
so Emacs itself cannot modify its value.

Moreover, Info-default-directory-list is considered only once, when
info.el is loaded and initialized for the first time.  Whereas
package.el can be used for installing a package in the middle of a
running Emacs session, when info.el was already loaded, and so
modifying Info-default-directory-list will not have any effect until
the next restart of Emacs.  Do we require users to restart Emacs after
installing a package via package.el?

Going back to the original problem, AFAIU you wanted to avoid loading
info.el at startup, because that makes startup slower, is that right?
Then how about adding a new variable, Info-packages-directory-list,
say, to which package.el will add directories of the installed
packages, and info.el will use when it first loads?  Would that solve
the problem?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 19 Apr 2023 05:11:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 19 01:11:30 2023
Received: from localhost ([127.0.0.1]:60890 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pp06M-00053S-H4
	for submit <at> debbugs.gnu.org; Wed, 19 Apr 2023 01:11:30 -0400
Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:33781)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1pp06J-00053D-RI
 for 62767 <at> debbugs.gnu.org; Wed, 19 Apr 2023 01:11:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681881082; bh=yqA9yUlNpb4zi0QJ73BuL/TGUJ62xIrD76B13T/s4cc=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=nZIqxx1GJrhNpbP3uiB8q4q+iodCO3lUZlx7WllZPAi3KlzBCoH7fuNPdWyu79wlA0INKKR00Csk4zEs/0VFq5rV6X1qsvvdLj351CpGhiJYCkjze57tZmqRzd5NQGOWjuN17XPHLeEK2tsb7gvkJ9En7+qtid25+Kp/vp1/ZQ63WSyt4yJyROZcDsY8elKI9U3wuEqRqK7jmTAkUqPSE3QjPU4GWR4Thn6TsJ38Tbdk4ZsVncZ7KcZxLKqjeI5ra/rA2AGw7kYEmoC+bP54JK4XnOXmKjv9IzX+bZ4h4gLw1aCIQhwK/yN3y6hZtPzgE0G4ocg/+Gpyiw3R45w/VA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681881082; bh=n68/f3PujGDRzL0HWMP5/aGtNgJqiNwBUEz3CxdcsxI=;
 h=X-Sonic-MF:From:Date:Subject:To:From:Subject;
 b=XdXfV1UiLp59jfRv8nhIALvKByKS2WufjKBW5oJKAxwF0V6v2szNO3dZflfdgyqFK99RI1uP42YRgLYkjZaaRMCTkUx0tpGVs6ENnJHfmt0FwevBNDrRVi/gGwxeeCUw36D20MWYdvkNR30Af7d7owF63U3afjV/3tYp1/Lom++HyY7QERYYeKSMyNyeAvmvu9RLxLJaKxdda0zMsqBwg/2keMkuoz5fEQkgnof2uuM+BKxmx4YwDXWUZTbpEptL9es2VPBEgD8kUdqd0LS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63YTbn2.ydj8sS9AkbplfzQJftx13pfO3JIJ0h
 unX_0OOVa_uh5k4MaDMsfS2BERc8MqWEBbpwfvj3MxmEEk9gTalafwwGcLurAOytJGJYlnx_mBsX
 ghaEgqFbk2RjSQMsvoT8tB.6Kw9VU8gMP.AmS8bQHE9cHU0ayhDvrHHG3Pge53uwwBDPE71wIZXu
 QRYoacK_HXmrcefvg3LLF_O.vpxM71RkinFPHbj.ipYZxxH_wpo57CXmraSS3Qy.FyRM78DGN8Jj
 XOQ5c0zPE1ii6GpmNERDgvlMMZDFX7OwPYZC19iU1YGdWN16xeyvsoVMNTYQxvz4sZQXwYWo-
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: 62dcdc05-ee2b-4f8c-b2ac-0a893fd20c83
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ne1.yahoo.com with HTTP; Wed, 19 Apr 2023 05:11:22 +0000
Received: by hermes--production-ir2-74cd8fc864-ggn56 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID e02188be47386765eec654992e9c67d1; 
 Wed, 19 Apr 2023 05:11:16 +0000 (UTC)
Received: by mail-ej1-f44.google.com with SMTP id u3so26589384ejj.12
 for <62767 <at> debbugs.gnu.org>; Tue, 18 Apr 2023 22:11:16 -0700 (PDT)
X-Gm-Message-State: AAQBX9etzQS2UzcM8kcr4pg+E9Nat5JNZGMoKOkZGh146aafn+BMU0di
 7ZxqAwRj6Kc0cMKv75vegKRjVvBwTzIlriKgSYo=
X-Google-Smtp-Source: AKy350ZMwihBe8fuFS/bcBeGrao134ymDRM+2xEwCdMvEHa/fmjhjHpol3sUcMgpQrr1Ns0dsIZyHlHcyO9U3gL2JDM=
X-Received: by 2002:a17:906:fac1:b0:94e:cf98:32f2 with SMTP id
 lu1-20020a170906fac100b0094ecf9832f2mr13656633ejb.33.1681881075093; Tue, 18
 Apr 2023 22:11:15 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN> <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
In-Reply-To: <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Wed, 19 Apr 2023 05:11:03 +0000
X-Gmail-Original-Message-ID: <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
Message-ID: <CABCREdpqVFNs+90sONO1NNoLvAL8f2wAWLSMZCEChirKE6Yp7Q@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000092a7d05f9a9740e"
X-Mailer: WebService/1.1.21365
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 4705
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

--000000000000092a7d05f9a9740e
Content-Type: text/plain; charset="UTF-8"

Hi Eli,

I had researched the `info.el', and found the variable
`Info-default-directory-list' is a more proper variable than the
original `Info-directory-list', which is an autoload customer
variable.

Then the patch can be simpler than the previous one, I attached the
new patch, it avoided to require 'info. I verified it on my local.

Please help review the change, thanks !

--000000000000092a7d05f9a9740e
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-lisp-emacs-lisp-package.el-avoid-to-load-the-entire-.patch"
Content-Disposition: attachment; 
	filename="0001-lisp-emacs-lisp-package.el-avoid-to-load-the-entire-.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lgn8k44e0>
X-Attachment-Id: f_lgn8k44e0

RnJvbSAxYjkzYzU0NjljOTgyNTRlMWM2YWI3NDk0MjcyNDAxYzVlOTdkZGY1IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3Vu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XRlZC4KICAgICAgICAgKHByaW50LWxlbmd0aCBuaWwpCiAgICAg
ICAgIChwcmludC1sZXZlbCBuaWwpCi0gICAgICAgIChJbmZvLWRpcmVjdG9yeS1saXN0ICcoIiIp
KSkKKyAgICAgICAgKEluZm8tZGVmYXVsdC1kaXJlY3RvcnktbGlzdCAnKCIiKSkpCiAgICAgKGRv
bGlzdCAoZWx0IHBhY2thZ2UtYWxpc3QpCiAgICAgICAoY29uZGl0aW9uLWNhc2UgZXJyCiAgICAg
ICAgICAgKHBhY2thZ2UtYWN0aXZhdGUgKGNhciBlbHQpKQpAQCAtNDUwMSwxMiArNDQ5NywxMSBA
QCBwYWNrYWdlLXF1aWNrc3RhcnQtcmVmcmVzaAogICAgICAgICAgICAgICAgICAgKGFwcGVuZCAn
LChtYXBjYXIgIydwYWNrYWdlLWRlc2MtbmFtZSBwYWNrYWdlLS1xdWlja3N0YXJ0LXBrZ3MpCiAg
ICAgICAgICAgICAgICAgICAgICAgICAgIHBhY2thZ2UtYWN0aXZhdGVkLWxpc3QpKSkKICAgICAg
ICAgICAoY3VycmVudC1idWZmZXIpKQotICAgICAgKGxldCAoKGluZm8tZGlycyAoYnV0bGFzdCBJ
bmZvLWRpcmVjdG9yeS1saXN0KSkpCisgICAgICAobGV0ICgoaW5mby1kaXJzIChidXRsYXN0IElu
Zm8tZGVmYXVsdC1kaXJlY3RvcnktbGlzdCkpKQogICAgICAgICAod2hlbiBpbmZvLWRpcnMKLSAg
ICAgICAgICAocHAgYChwcm9nbiAocmVxdWlyZSAnaW5mbykKLSAgICAgICAgICAgICAgICAgICAg
ICAoaW5mby1pbml0aWFsaXplKQotICAgICAgICAgICAgICAgICAgICAgIChzZXRxIEluZm8tZGly
ZWN0b3J5LWxpc3QKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAoYXBwZW5kICcsaW5mby1k
aXJzIEluZm8tZGlyZWN0b3J5LWxpc3QpKSkKKyAgICAgICAgICAocHAgYChkZWZ2YXIgSW5mby1k
ZWZhdWx0LWRpcmVjdG9yeS1saXN0KSAoY3VycmVudC1idWZmZXIpKQorICAgICAgICAgIChwcCBg
KHNldHEgSW5mby1kZWZhdWx0LWRpcmVjdG9yeS1saXN0CisgICAgICAgICAgICAgICAgICAgICAo
YXBwZW5kICcsaW5mby1kaXJzIEluZm8tZGVmYXVsdC1kaXJlY3RvcnktbGlzdCkpCiAgICAgICAg
ICAgICAgIChjdXJyZW50LWJ1ZmZlcikpKSkKICAgICAgIDs7IFVzZSBgXHMnIGluc3RlYWQgb2Yg
YSBzcGFjZSBjaGFyYWN0ZXIsIHNvIHRoaXMgY29kZSBjaHVuayBpcyBub3QKICAgICAgIDs7IG1p
c3Rha2VuIGZvciBhbiBhY3R1YWwgZmlsZS1sb2NhbCBzZWN0aW9uIG9mIHBhY2thZ2UuZWwuCi0t
IAoyLjIwLjUKCg==
--000000000000092a7d05f9a9740e--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 17:25:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 13:25:47 2023
Received: from localhost ([127.0.0.1]:55947 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poSbq-0004qQ-OI
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 13:25:47 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1poSbo-0004qB-CB
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 13:25:45 -0400
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 <eliz@HIDDEN>)
 id 1poSbi-0000ca-Jb; Mon, 17 Apr 2023 13:25:38 -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=hIvzYmy4JIOoz+bTyV8pe8AcSs3WKV1CmLAkizj9bIk=; b=Rm+VClPvrxrU
 5f0M5TKMTkTAJNWaKBlT+8WXIMlJWE0ibXcCngdUkKQ4coxC+nCz0mrPcTosrQIsIVNCB934sh1wX
 sey7UhxRY9aNdZdlK7i8giytfzGHAlIXoggPuBwIwPdsKFGm3x1fzjs32zsDCaVKI6yAY2VW76oh0
 baD1M/gvFHx3hkhsR9IAx0k24Wd6jEyIZOQjyBSa4BT5MZa/n0P7RR2UmMl2b5GSjTHsIwYIcLnwC
 vDNz24tbCUlEG1107Ivjtqt0CJ/+KIqPYSCmEUTDhlmIgW2q7V84wj66671sUBn3H/qYRq9p006UR
 yylP8907ME3JK9km1KmZ9w==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1poSbi-0004ls-3r; Mon, 17 Apr 2023 13:25:38 -0400
Date: Mon, 17 Apr 2023 20:25:43 +0300
Message-Id: <83cz42a0a0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
In-Reply-To: <CABCREdqYGqTRocmNagp7-uzjHQECD1YG5xNdn9mkHNtZLOO_3A@HIDDEN>
 (message from lin Sun on Mon, 17 Apr 2023 15:27:09 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN>
 <CABCREdqYGqTRocmNagp7-uzjHQECD1YG5xNdn9mkHNtZLOO_3A@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: lin Sun <sunlin7@HIDDEN>
> Date: Mon, 17 Apr 2023 15:27:09 +0000
> Cc: Eli Zaretskii <eliz@HIDDEN>, 62767 <at> debbugs.gnu.org, 
> 	Stefan Monnier <monnier@HIDDEN>
> 
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -892,10 +892,9 @@ package-activate-1
>          (add-to-list 'load-path (directory-file-name pkg-dir)))
>        ;; Add info node.
>        (when (file-exists-p (expand-file-name "dir" pkg-dir))
> -        ;; FIXME: not the friendliest, but simple.
> -        (require 'info)
> -        (info-initialize)
> -        (add-to-list 'Info-directory-list pkg-dir))
> +        (with-eval-after-load 'info
> +          (info-initialize)
> +          (add-to-list 'Info-directory-list pkg-dir)))
>        (push name package-activated-list)
>        ;; Don't return nil.
>        t)))
> @@ -4427,7 +4426,7 @@ package-quickstart-refresh
>    "(Re)Generate the `package-quickstart-file'."
>    (interactive)
>    (package-initialize 'no-activate)
> -  (require 'info)
> +  (require 'info) ; ensure Info-directory-list available for package-activate
>    (let ((package--quickstart-pkgs ())
>          ;; Pretend we haven't activated anything yet!
>          (package-activated-list ())
> @@ -4472,10 +4471,10 @@ package-quickstart-refresh
>            (current-buffer))
>        (let ((info-dirs (butlast Info-directory-list)))
>          (when info-dirs
> -          (pp `(progn (require 'info)
> -                      (info-initialize)
> -                      (setq Info-directory-list
> -                            (append ',info-dirs Info-directory-list)))
> +          (pp `(with-eval-after-load 'info
> +                 (info-initialize)
> +                 (setq Info-directory-list
> +                       (append ',info-dirs Info-directory-list)))
>                (current-buffer))))
>        ;; Use `\s' instead of a space character, so this code chunk is not
>        ;; mistaken for an actual file-local section of package.el.
> -- 
> 2.20.5

I don't know yet whether I'm okay with this change, but if this does
go in, this tricky/unusual code must have comments explaining why on
Earth we do it this way, and only with info.el.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 16:30:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 12:30:30 2023
Received: from localhost ([127.0.0.1]:55918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poRkL-0003GQ-Vi
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 12:30:30 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47374)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1poRkJ-0003G9-Jg
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 12:30:28 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E692F1000BF;
 Mon, 17 Apr 2023 12:30:21 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7AFC61000A3;
 Mon, 17 Apr 2023 12:30:20 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1681749020;
 bh=8qxFY6FQ0/M6AnWhjof28nGz3BZvMROZzZy+GFegSG0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=k7PGDm2S1luhPrppqEWdXS9hc1mjDXjzVpRK7vYYla8rLCdcHNqbmwe+nCx3aMkrT
 QYtqdbs8KmQJZ8ODStxZFJsitNKp6icGqnXZ1ilLtVkW7nfjYdT3B7S/UKPjPWq3xu
 teBsLMhXotXraZmtw5DyddWgff3kB+TefNYUdl8ifphdG3AvCD+wR/OnwNtDEH+B+y
 Z26dUV/PhDpoBC1478DZtqhY6blh5gR8Gwi1LvA6NjQJ+GTRyvsgzguFe8JAFiksij
 eWIh0Q9PyZAhniMRgw9iKQu29vcyoiusKNpMrpSdA9Da65quW6Di7p8ADdBLGYTGcD
 bxFCKbDbMMtMw==
Received: from alfajor (unknown [45.44.229.252])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 526951203D4;
 Mon, 17 Apr 2023 12:30:20 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Philip Kaludercic <philipk@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
In-Reply-To: <87bkjmiqtz.fsf@HIDDEN> (Philip Kaludercic's message of "Mon, 
 17 Apr 2023 13:24:56 +0000")
Message-ID: <jwv354y8p3p.fsf-monnier+emacs@HIDDEN>
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN>
Date: Mon, 17 Apr 2023 12:30:19 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.016 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, lin Sun <sunlin7@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> OK, then we still have to find out if these changes are safe.  As
> mentioned before, I hesitate in using `with-eval-after-load', probably
> because of the complicated history of `eval-after-load'.  I suppose that
> Stefan might know more (as it is due to him that I am careful here), so
> I have added him to the thread.

The problem with eval-after-load is not the history but the fact that
it has various corner-case caveats.

(with-eval-after-load "compile" ...) for example makes it unclear
exactly when it should be executed, e.g.:

   (load "compile")                          => yes clearly.
   (load "compile.el")                       => probably, yes.
   (load "srecode/compile.el")               => probably not.
   (load "/foo/bar/lisp/compile.el")         => hmm... yeah, I think so.
   (load "/foo/bar/lisp/srecode/compile.el") => hmm... nah, maybe not.

The next game is to try and guess what the code does, to see when it
matches expectations.

The use (with-eval-after-load 'info ...) is much better in this respect
because it's not linked to the file name but to the feature name, which
is precise.

But there's still the issue of exactly when this is executed.  Should it
be executed just the next time the file is loaded (usually what's
wanted), or every other time after that as well (what actually happens)?

Also the implementation for the good case where we provide a feature
name rather than a file name is a bit roundabout/fiddly.  This is an
internal problem, so any bug there can be fixed, thus it's probably not
a good reason not to use it, but it still makes me prefer to avoid it :-)

I wish there was an easier way to add to `Info-directory-list`.
That variable is set in a fairly delicate manner, so I think Eli would
be better placed to come up with a better long term solution.
Maybe we should just add a (preloaded) `Info-extra-directory-list`?

In the mean time, Lin Sun's patch is probably "as good as it gets" if
you want to load `info.el` lazily (which I obviously didn't bother to do
when I wrote that code :-)


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 16:03:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 12:03:35 2023
Received: from localhost ([127.0.0.1]:55876 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poRKJ-0002Wz-AN
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 12:03:35 -0400
Received: from mout02.posteo.de ([185.67.36.66]:45769)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1poRKG-0002WZ-5R
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 12:03:32 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id A7C45240242
 for <62767 <at> debbugs.gnu.org>; Mon, 17 Apr 2023 18:03:26 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1681747406; bh=KHKj4TgAjdbNwHpJYLvPY9h0hU0Dl+gXiofdg97YSU4=;
 h=From:To:Cc:Subject:Autocrypt:Date:From;
 b=NRoOEQv/DrE7yqRuaR+tlDdnlkLkY1yJvAqfsBn8gHHWRLRvO49DpZjDrwQSJ6Gq7
 Ach7vQYISULO8x3E1bS2eo8bDz0Ce6m19ji+K6D3MKOh8tw8QgRciD6ewEcrfL1Mq/
 685YxIE5sHXg6Hl+6ueNDEzi3bUaE0KWlaI/BQ1iO/qG8kfO9RFKxau0IyOnyhaC7j
 YOQXjBQ3NX6APjqLVl9CWAYmIvSTc4YB5xNqHi2Wvz5Uufy/+kI7/g8PoEv+QmFS4Q
 otoYKIcbY6asszR7iMw7/HaqPcQ997WI2w/1q1ZPgrvbd3IM45cuVqoUkMV9zau5l3
 B5F2DepGOhNEA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Q0X0F6sM1z6tyL;
 Mon, 17 Apr 2023 18:03:25 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
In-Reply-To: <CABCREdqYGqTRocmNagp7-uzjHQECD1YG5xNdn9mkHNtZLOO_3A@HIDDEN>
 (lin Sun's message of "Mon, 17 Apr 2023 15:27:09 +0000")
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@H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gWCAAmFiEE
 Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK
 NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof
 z4oM
Date: Mon, 17 Apr 2023 16:03:56 +0000
Message-ID: <87r0sih4wj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

lin Sun <sunlin7@HIDDEN> writes:

> Hi Philip,
>
>> How did you come to the conclusion about the second one?
> The 2nd one is necessary because the following lines will use the full
> `Info-directory-list` to print its values into the
> package-quickstart.el, whose value was modified by the function
> `package-activate'.
> If I comment out or use the `eval-after-load` on the 2nd one, the
> `Info-directory-list` will be empty, and missed in the
> package-quickstart.el file.

OK, I get it now.  I was confused because it seemed as though
`Info-directory-list' could just be bound and declared using a defvar
before the function, but if we do not load info then the
with-eval-after-load blocks in `package-activate-1' that are invoked for
the side effect of manipulating `Info-directory-list' do not get
evaluated, which is why we see that the value is empty.

But as the function `package-quickstart-refresh' is not invoked on
startup, but as `package-quickstart' says

    This requires the use of `package-quickstart-refresh' every time the
    activations need to be changed, such as when `package-load-list' is
    modified.

This should be fine.

> Hi Ruijie,
>
>> "insure" -> "ensure"?
> You're right.
> I had fixed my typo in the patch file (only typo in comment), and
> attached the new one, please help review again. Thanks

Again, assuming that there is no issue with `with-eval-after-load', the
code should be fine.  The commit message looks a bit distorted though?
Did you generate it using C-c C-w?  I get this template when I apply
your commit:

* lisp/emacs-lisp/package.el (package-activate-1):
(package-quickstart-refresh):

Also, it would make sense to motivate the changes in more detail.  What
do the changes improve?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 15:27:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 11:27:35 2023
Received: from localhost ([127.0.0.1]:55805 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poQlT-0001BT-02
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 11:27:35 -0400
Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]:45435)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1poQlQ-0001BE-Ja
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 11:27:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681745246; bh=spud8qIqYsAX8/5TNx3kjgZle005/U+PZm/GlS35y84=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=qUn7qsd+sDBvmy8yASwq+qFMu7FWJvcLMIsKS2YqEd5W/AdMQByE9R44vylhavWlT6sfo/72SAOxfEIF9lvvwmaDDNYhvPbWTmQYNHpohAtsRgf7OMfObOQxjC+dgasfqgN7KJZSK2WDcgvOJP/hQTLW1qZtS846q9T1T3b0/A8zndN0Eg8I4knj2EQIBorkF47Q41wEzFNMBHbJEhgF0611tzCDiu8xd6BDHiV9dhfEgSJEpocepzIoZVbstqGXnOIlHoScTMyGpwkQDOh7glhg+Ji9Ezrb16kYmmHZcK73BU8yACLvi1rbtd9lDSEoDSR/Bt0yFF8+V7kh4jZ7JQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681745246; bh=xzVg/5tIFKUXh4YUdTAUv7DQkKUQSxOd0EodnF579ix=;
 h=X-Sonic-MF:From:Date:Subject:To:From:Subject;
 b=o4lfsTZfCO0X/eiqem85xq/iog2Y1Fl0J0w/qnavpGk8wJ0Uyn8PA1gWfyHZ2CvU34W+yp/pNY12W/MeCpFxWU/hj3JTrqlBQME2WC3gDezfnlEOg59hQlQo0T7qr1IKgRZH3jiqIKH/rULOY1JzVEpJCkDKn73y6Y3BkQcPQ/LsLNI6BgArwwYjb/0k3gEIvmkiTu5GUPFIo5vlRV2eweg5mtmp18bQbuBq4Ve683waGaXws/wQD7+dx7raofCnqadVnATpIpQgbnixQjwCJG4LT2aXu9jL4fQRbimZ43JeCogPG7fJ1Ra779zeLC/OQu7+SZh3srQgfAa0C2cIhw==
X-YMail-OSG: 3s5G4XMVM1kNM0Z0IXvHbAdLh61nXLNTzSqHVxamjinMqLD7yWu_eYU7E.WSaI5
 JoQAjs6VTLQisqjqo3TjumV95AVhyO4cekaWz8gZqKA5TxRyNBVB7jP9kEnz9FhxM_OvXTKgCEl4
 cIkvMJ5zUXEjj4H36aFRNRE_oHI8fKj01D7X20aztJRDzyI4wVwiTrIHRaI7I7xvA70r82VrUzv9
 tISQEEX3ANd.K7nHHv6gNwS5enblya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1pPQ-
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: 82dc9367-4dfe-4622-bef1-0e93563397fa
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic316.consmr.mail.ne1.yahoo.com with HTTP; Mon, 17 Apr 2023 15:27:26 +0000
Received: by hermes--production-ir2-74cd8fc864-db5p9 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID b08d5e3af8683c9f7dc07e77744c3e26; 
 Mon, 17 Apr 2023 15:27:22 +0000 (UTC)
Received: by mail-ej1-f43.google.com with SMTP id
 a640c23a62f3a-94a34a0b531so595365166b.1
 for <62767 <at> debbugs.gnu.org>; Mon, 17 Apr 2023 08:27:22 -0700 (PDT)
X-Gm-Message-State: AAQBX9dEJtwH7ujMGUgC328Sev4q31ciLdhDUwhaQEBW3qq9QpGzZYwb
 RP2s0fuzFY8xGbrqdSTGGLk83PFT8PvJOwsGEVE=
X-Google-Smtp-Source: AKy350ZKMe41RFTGnjSOztIPWi9//xJv8em69obHjN9M5+azcf29edktK9A19Z1rMypNlAIrjFuHQ3yfkew0hERr/4Y=
X-Received: by 2002:a50:f696:0:b0:506:71e7:1b5c with SMTP id
 d22-20020a50f696000000b0050671e71b5cmr7373229edn.5.1681745241331; Mon, 17 Apr
 2023 08:27:21 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <87bkjmiqtz.fsf@HIDDEN>
In-Reply-To: <87bkjmiqtz.fsf@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Mon, 17 Apr 2023 15:27:09 +0000
X-Gmail-Original-Message-ID: <CABCREdqYGqTRocmNagp7-uzjHQECD1YG5xNdn9mkHNtZLOO_3A@HIDDEN>
Message-ID: <CABCREdqYGqTRocmNagp7-uzjHQECD1YG5xNdn9mkHNtZLOO_3A@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Philip Kaludercic <philipk@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000b69f5805f989d381"
X-Mailer: WebService/1.1.21365
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 4005
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--000000000000b69f5805f989d381
Content-Type: text/plain; charset="UTF-8"

Hi Philip,

> How did you come to the conclusion about the second one?
The 2nd one is necessary because the following lines will use the full
`Info-directory-list` to print its values into the
package-quickstart.el, whose value was modified by the function
`package-activate'.
If I comment out or use the `eval-after-load` on the 2nd one, the
`Info-directory-list` will be empty, and missed in the
package-quickstart.el file.

Hi Ruijie,

> "insure" -> "ensure"?
You're right.
I had fixed my typo in the patch file (only typo in comment), and
attached the new one, please help review again. Thanks

--000000000000b69f5805f989d381
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-lisp-emacs-lisp-package.el-better-way-to-load-the-in.patch"
Content-Disposition: attachment; 
	filename="0001-lisp-emacs-lisp-package.el-better-way-to-load-the-in.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lgkzoa360>
X-Attachment-Id: f_lgkzoa360

RnJvbSA5MWE0YmRiY2NjNmYzMjEwZjQzZjQ2ODkxMDc3YzU3YWZkMTI4ODMwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBU
dWUsIDExIEFwciAyMDIzIDAwOjAwOjEzICswMDAwClN1YmplY3Q6IFtQQVRDSF0gKmxpc3AvZW1h
Y3MtbGlzcC9wYWNrYWdlLmVsOiBiZXR0ZXIgd2F5IHRvIGxvYWQgdGhlIGluZm8KIHBhY2thZ2UK
Ci0tLQogbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwgfCAxNyArKysrKysrKy0tLS0tLS0tLQog
MSBmaWxlIGNoYW5nZWQ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AorICAgICAgICAgICAg
ICAgICAgICAgICAoYXBwZW5kICcsaW5mby1kaXJzIEluZm8tZGlyZWN0b3J5LWxpc3QpKSkKICAg
ICAgICAgICAgICAgKGN1cnJlbnQtYnVmZmVyKSkpKQogICAgICAgOzsgVXNlIGBccycgaW5zdGVh
ZCBvZiBhIHNwYWNlIGNoYXJhY3Rlciwgc28gdGhpcyBjb2RlIGNodW5rIGlzIG5vdAogICAgICAg
OzsgbWlzdGFrZW4gZm9yIGFuIGFjdHVhbCBmaWxlLWxvY2FsIHNlY3Rpb24gb2YgcGFja2FnZS5l
bC4KLS0gCjIuMjAuNQoK
--000000000000b69f5805f989d381--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 13:24:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 09:24:35 2023
Received: from localhost ([127.0.0.1]:54009 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poOqR-0001wc-54
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 09:24:35 -0400
Received: from mout02.posteo.de ([185.67.36.66]:40339)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1poOqP-0001wK-6C
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 09:24:33 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 481CF2401A0
 for <62767 <at> debbugs.gnu.org>; Mon, 17 Apr 2023 15:24:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1681737867; bh=x6d7xOeWo+hjqQFBqMTKrScxopMBSUUvPR3YGutYBOg=;
 h=From:To:Cc:Subject:Autocrypt:Date:From;
 b=VnISSvptvd8ssGkd6kX1MKFQdMqHd3QWdBIgB2SO4mwI1rPXEaaLN3Pk2/g1l1mJO
 owC3Ybc06KVHk59RZAR+TvsUFt4o4FeQn/GnJ7RmJt9ZD9LFUjasxTTM0sMMXWnwPK
 36VEaE1DRtaga9dOnGPRPKeBX3lDKl6U3vePU6DzvfuA7xELc6PJrtNHBY2yOhCin+
 QCGiDhpns1wk8KlEd/RPrbN7FAq/1UjbMkfRZc1akOuBDKc3Dp0CpZtSTcymf2hdwt
 tj9yssJb77Rg6n3RIBhwnX1QD+Liu6uZEN7d10GBcsLJLOuEkvM6VrQtXJSPuYluOW
 04eg2Q+I2n4Qg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Q0SSp4RPMz6txM;
 Mon, 17 Apr 2023 15:24:25 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
In-Reply-To: <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 (lin Sun's message of "Mon, 17 Apr 2023 06:13:16 +0000")
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; keydata=
 mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI
 BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0
 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB
 BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE
 Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK
 NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof
 z4oM
Date: Mon, 17 Apr 2023 13:24:56 +0000
Message-ID: <87bkjmiqtz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

lin Sun <sunlin7@HIDDEN> writes:

> Hi Philip,
>
> I had researched these three calls with the "require 'info", and
> updated the patch for better performance.
> The 1 th and 3rd can be rewritten with the new form, 

OK, then we still have to find out if these changes are safe.  As
mentioned before, I hesitate in using `with-eval-after-load', probably
because of the complicated history of `eval-after-load'.  I suppose that
Stefan might know more (as it is due to him that I am careful here), so
I have added him to the thread.

>                                                      but the 2nd one
> is necessary, and should not be changed.

How did you come to the conclusion about the second one?

> Please help review the new attached patch file. Thanks.
>
> Hi Eli,
>> And this is the only place in Emacs where we have (require 'FOO) and
>> FOO is not necessary for Emacs to start up?
> My configuration will load the package.el at startup, so I tracked the
> initial packages, and found the "require `info" will take ~1 seconds
> on my old PC.
> I didn't pay attention to other packages, if I found a heavy one, I'll
> post it on the mail list.
>
> From 91a4bdbccc6f3210f43f46891077c57afd128830 Mon Sep 17 00:00:00 2001
> From: Lin Sun <sunlin7@HIDDEN>
> Date: Tue, 11 Apr 2023 00:00:13 +0000
> Subject: [PATCH] *lisp/emacs-lisp/package.el: better way to load the info
>  package
>
> ---
>  lisp/emacs-lisp/package.el | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)
>
> diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
> index f92afe56b7..98153a49c7 100644
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -892,10 +892,9 @@ package-activate-1
>          (add-to-list 'load-path (directory-file-name pkg-dir)))
>        ;; Add info node.
>        (when (file-exists-p (expand-file-name "dir" pkg-dir))
> -        ;; FIXME: not the friendliest, but simple.
> -        (require 'info)
> -        (info-initialize)
> -        (add-to-list 'Info-directory-list pkg-dir))
> +        (with-eval-after-load 'info
> +          (info-initialize)
> +          (add-to-list 'Info-directory-list pkg-dir)))
>        (push name package-activated-list)
>        ;; Don't return nil.
>        t)))
> @@ -4427,7 +4426,7 @@ package-quickstart-refresh
>    "(Re)Generate the `package-quickstart-file'."
>    (interactive)
>    (package-initialize 'no-activate)
> -  (require 'info)
> +  (require 'info) ; insure Info-directory-list avaliable for package-activate
>    (let ((package--quickstart-pkgs ())
>          ;; Pretend we haven't activated anything yet!
>          (package-activated-list ())
> @@ -4472,10 +4471,10 @@ package-quickstart-refresh
>            (current-buffer))
>        (let ((info-dirs (butlast Info-directory-list)))
>          (when info-dirs
> -          (pp `(progn (require 'info)
> -                      (info-initialize)
> -                      (setq Info-directory-list
> -                            (append ',info-dirs Info-directory-list)))
> +          (pp `(with-eval-after-load 'info
> +                 (info-initialize)
> +                 (setq Info-directory-list
> +                       (append ',info-dirs Info-directory-list)))
>                (current-buffer))))
>        ;; Use `\s' instead of a space character, so this code chunk is not
>        ;; mistaken for an actual file-local section of package.el.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Apr 2023 07:00:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 03:00:14 2023
Received: from localhost ([127.0.0.1]:52987 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poIqU-0004Fb-A2
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 03:00:14 -0400
Received: from lists.gnu.org ([209.51.188.17]:59646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ruijie@HIDDEN>) id 1poIqI-0004Dg-Jf
 for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 03:00:12 -0400
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 <ruijie@HIDDEN>) id 1poIqH-0001pf-Lo
 for bug-gnu-emacs@HIDDEN; Mon, 17 Apr 2023 03:00:01 -0400
Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ruijie@HIDDEN>)
 id 1poIqG-0000tB-5S; Mon, 17 Apr 2023 03:00:01 -0400
Received: from fw.net.yu.netyu.xyz (<unknown> [222.248.4.98])
 by netyu.xyz (OpenSMTPD) with ESMTPSA id 74fa5049
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 17 Apr 2023 06:59:58 +0000 (UTC)
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <sdvy1mruhag.fsf@HIDDEN>
User-agent: mu4e 1.9.22; emacs 30.0.50
From: Ruijie Yu <ruijie@HIDDEN>
To: Ruijie Yu <ruijie@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
Date: Mon, 17 Apr 2023 14:59:00 +0800
In-reply-to: <sdvy1mruhag.fsf@HIDDEN>
Message-ID: <sdvttxfuh7n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@HIDDEN;
 helo=mail.netyu.xyz
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: 62767 <at> debbugs.gnu.org, lin Sun <sunlin7@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, Philip Kaludercic <philipk@HIDDEN>,
 bug-gnu-emacs@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)


Ruijie Yu <ruijie@HIDDEN> writes:

> lin Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes:
>
>>    (let ((package--quickstart-pkgs ())
>>          ;; Pretend we haven't activated anything yet!
>>          (package-activated-list ())
>> @@ -4472,10 +4471,10 @@ package-quickstart-refresh
>>            (current-buffer))
>>        (let ((info-dirs (butlast Info-directory-list)))
>>          (when info-dirs
>> -          (pp `(progn (require 'info)
>> -                      (info-initialize)
>> -                      (setq Info-directory-list
>> -                            (append ',info-dirs Info-directory-list)))
>> +          (pp `(with-eval-after-load 'info
>> +                 (info-initialize)
>> +                 (setq Info-directory-list
>> +                       (append ',info-dirs Info-directory-list)))
>>                (current-buffer))))
>
> I did some testing, and noticed that `with-eval-after-load' returns nil
> to its caller when the feature is not loaded.  That is, when `info' is
> not already loaded, you are effectively calling (pp nil).  This is not
> feature-equivalent to the original code, so this might require the
> `require' form.

Sorry, I misread the code.  Please ignore this portion of my previous
email.

-- 
Best,


RY




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 07:00:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 03:00:01 2023
Received: from localhost ([127.0.0.1]:52983 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poIqG-0004D2-W2
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 03:00:01 -0400
Received: from netyu.xyz ([152.44.41.246]:41042 helo=mail.netyu.xyz)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ruijie@HIDDEN>) id 1poIqF-0004Cs-13
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:59:59 -0400
Received: from fw.net.yu.netyu.xyz (<unknown> [222.248.4.98])
 by netyu.xyz (OpenSMTPD) with ESMTPSA id 74fa5049
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 17 Apr 2023 06:59:58 +0000 (UTC)
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
 <sdvy1mruhag.fsf@HIDDEN>
User-agent: mu4e 1.9.22; emacs 30.0.50
From: Ruijie Yu <ruijie@HIDDEN>
To: Ruijie Yu <ruijie@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
Date: Mon, 17 Apr 2023 14:59:00 +0800
In-reply-to: <sdvy1mruhag.fsf@HIDDEN>
Message-ID: <sdvttxfuh7n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, lin Sun <sunlin7@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, Philip Kaludercic <philipk@HIDDEN>,
 bug-gnu-emacs@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)


Ruijie Yu <ruijie@HIDDEN> writes:

> lin Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes:
>
>>    (let ((package--quickstart-pkgs ())
>>          ;; Pretend we haven't activated anything yet!
>>          (package-activated-list ())
>> @@ -4472,10 +4471,10 @@ package-quickstart-refresh
>>            (current-buffer))
>>        (let ((info-dirs (butlast Info-directory-list)))
>>          (when info-dirs
>> -          (pp `(progn (require 'info)
>> -                      (info-initialize)
>> -                      (setq Info-directory-list
>> -                            (append ',info-dirs Info-directory-list)))
>> +          (pp `(with-eval-after-load 'info
>> +                 (info-initialize)
>> +                 (setq Info-directory-list
>> +                       (append ',info-dirs Info-directory-list)))
>>                (current-buffer))))
>
> I did some testing, and noticed that `with-eval-after-load' returns nil
> to its caller when the feature is not loaded.  That is, when `info' is
> not already loaded, you are effectively calling (pp nil).  This is not
> feature-equivalent to the original code, so this might require the
> `require' form.

Sorry, I misread the code.  Please ignore this portion of my previous
email.

-- 
Best,


RY




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 06:58:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 02:58:23 2023
Received: from localhost ([127.0.0.1]:52975 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poIoh-00049u-0t
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:58:23 -0400
Received: from netyu.xyz ([152.44.41.246]:59552 helo=mail.netyu.xyz)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ruijie@HIDDEN>) id 1poIog-00049m-3W
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:58:22 -0400
Received: from fw.net.yu.netyu.xyz (<unknown> [222.248.4.98])
 by netyu.xyz (OpenSMTPD) with ESMTPSA id c4417944
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 17 Apr 2023 06:58:20 +0000 (UTC)
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
User-agent: mu4e 1.9.22; emacs 30.0.50
From: Ruijie Yu <ruijie@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
Date: Mon, 17 Apr 2023 14:53:50 +0800
In-reply-to: <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
Message-ID: <sdvy1mruhag.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>,
 bug-gnu-emacs@HIDDEN, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)


lin Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes:

> Hi Philip,
>
> I had researched these three calls with the "require 'info", and
> updated the patch for better performance.
> The 1 th and 3rd can be rewritten with the new form, but the 2nd one
> is necessary, and should not be changed.

> @@ -4427,7 +4426,7 @@ package-quickstart-refresh
>    "(Re)Generate the `package-quickstart-file'."
>    (interactive)
>    (package-initialize 'no-activate)
> -  (require 'info)
> +  (require 'info) ; insure Info-directory-list avaliable for package-activate

"insure" -> "ensure"?

>    (let ((package--quickstart-pkgs ())
>          ;; Pretend we haven't activated anything yet!
>          (package-activated-list ())
> @@ -4472,10 +4471,10 @@ package-quickstart-refresh
>            (current-buffer))
>        (let ((info-dirs (butlast Info-directory-list)))
>          (when info-dirs
> -          (pp `(progn (require 'info)
> -                      (info-initialize)
> -                      (setq Info-directory-list
> -                            (append ',info-dirs Info-directory-list)))
> +          (pp `(with-eval-after-load 'info
> +                 (info-initialize)
> +                 (setq Info-directory-list
> +                       (append ',info-dirs Info-directory-list)))
>                (current-buffer))))

I did some testing, and noticed that `with-eval-after-load' returns nil
to its caller when the feature is not loaded.  That is, when `info' is
not already loaded, you are effectively calling (pp nil).  This is not
feature-equivalent to the original code, so this might require the
`require' form.

-- 
Best,


RY




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Apr 2023 06:58:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 02:58:32 2023
Received: from localhost ([127.0.0.1]:52978 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poIoq-0004AN-Dd
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:58:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:53148)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ruijie@HIDDEN>) id 1poIoo-0004AF-L8
 for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:58:31 -0400
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 <ruijie@HIDDEN>) id 1poIoo-0001Z3-9q
 for bug-gnu-emacs@HIDDEN; Mon, 17 Apr 2023 02:58:30 -0400
Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ruijie@HIDDEN>)
 id 1poIok-0000V8-1H; Mon, 17 Apr 2023 02:58:29 -0400
Received: from fw.net.yu.netyu.xyz (<unknown> [222.248.4.98])
 by netyu.xyz (OpenSMTPD) with ESMTPSA id c4417944
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Mon, 17 Apr 2023 06:58:20 +0000 (UTC)
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
 <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
User-agent: mu4e 1.9.22; emacs 30.0.50
From: Ruijie Yu <ruijie@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
Date: Mon, 17 Apr 2023 14:53:50 +0800
In-reply-to: <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
Message-ID: <sdvy1mruhag.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@HIDDEN;
 helo=mail.netyu.xyz
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: 62767 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>,
 bug-gnu-emacs@HIDDEN, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)


lin Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes:

> Hi Philip,
>
> I had researched these three calls with the "require 'info", and
> updated the patch for better performance.
> The 1 th and 3rd can be rewritten with the new form, but the 2nd one
> is necessary, and should not be changed.

> @@ -4427,7 +4426,7 @@ package-quickstart-refresh
>    "(Re)Generate the `package-quickstart-file'."
>    (interactive)
>    (package-initialize 'no-activate)
> -  (require 'info)
> +  (require 'info) ; insure Info-directory-list avaliable for package-activate

"insure" -> "ensure"?

>    (let ((package--quickstart-pkgs ())
>          ;; Pretend we haven't activated anything yet!
>          (package-activated-list ())
> @@ -4472,10 +4471,10 @@ package-quickstart-refresh
>            (current-buffer))
>        (let ((info-dirs (butlast Info-directory-list)))
>          (when info-dirs
> -          (pp `(progn (require 'info)
> -                      (info-initialize)
> -                      (setq Info-directory-list
> -                            (append ',info-dirs Info-directory-list)))
> +          (pp `(with-eval-after-load 'info
> +                 (info-initialize)
> +                 (setq Info-directory-list
> +                       (append ',info-dirs Info-directory-list)))
>                (current-buffer))))

I did some testing, and noticed that `with-eval-after-load' returns nil
to its caller when the feature is not loaded.  That is, when `info' is
not already loaded, you are effectively calling (pp nil).  This is not
feature-equivalent to the original code, so this might require the
`require' form.

-- 
Best,


RY




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 06:13:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 17 02:13:43 2023
Received: from localhost ([127.0.0.1]:52960 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1poI7T-0002ho-4P
	for submit <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:13:43 -0400
Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:40803)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1poI7Q-0002hX-AF
 for 62767 <at> debbugs.gnu.org; Mon, 17 Apr 2023 02:13:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681712013; bh=q6nuOsu8RojezA/adn79sqyL7BWVjkSb+5DWGCVcTiY=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=fFCmCiHap9g1TXMm37o1fxRtMW7t6lStXtT2S8cysx6FlAuWNb+Wz0pyV+XZZRW1RdjJDKM49tMG9aW+/yMsQIheJsELayJHZfjlSgxpqf7wPUL9kgUJRbPTv2YLc4C0W89KG7OKaBv4JAwsXnxEtB8BOalu+oZ3S15ULBRYBEWsDjDjNFOFDWDgSd7zrb77K7tnKDh+QdREsqgxEVR+uuMvxLdGL04XwLO4NdA62Tk2X5H4WHn9hz/jmuSKy4v+RYtM5XlKcvYyZ1q7a3TfPvz2P2VuAX+ortH0lKeE8peT1gD3xwB0ageCGS9k+ha/5Ib6UT5YQR5u80SxGQR0bQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681712013; bh=9Ag1YvnvUO0r4qM4TDkXCfnp7DGT7z96UjvaCdM0E8W=;
 h=X-Sonic-MF:From:Date:Subject:To:From:Subject;
 b=TiBBcWZAq7mWFSj5WtaSCupjpFoE+JxxokrdxShfCbKTk0dnYmaZKr6MXiuHIEsb0zVuDYyHBSAI8swecu+M1adaf5sdNlhB3Wmtj2atjhkH8I0dTgnv2qtjSe/QdPeKbLkl3Aj6Me34lvVNO6GIjTTfef7Bq1N/PXReLXk/JYy0ND3m4gLCxsHDbvAhLB1vALr/6Q0/V7TGLS8T5t60qSdgRx97kIkw+L/6osYm3vNXWDhpY4Znytft7JySiOce6jhcB/8skek6AEhQ+qPv+hJwyq3znO/t9et67ab5NZCf17iXEQA5wfYBcysJ4u23vZRGQyIBzq+vOHgADTZbPg==
X-YMail-OSG: xfthARoVM1lgUdXUWsGrYenuA31clNijCipOfz4_NN9.f3QNDbWoZx3fdATI7o2
 exPhw7UiKOB4i227fH.5WbQz68C_qAW0XL26I0RkejS.3sjjwX79.4h464LyqTSesLWrHf548ZBz
 21gO80.CC6_iZCKTEkvlt4KuUwYyLgGoh.tGiengMDES7pT6IGNJH3EVYG9VPKS7tWTQWTUnNHd5
 Gn.Z1sje3ZTXTb4mCbhhHqJlk9M95jhrSRw20cXPBEiaJqJXGvNLQDBTg8n0wCsXUxibNAAluzRv
 8e0vheY0J8vZey4oghvl0wg_1pxHMgMzSL0klxPVVN93q.em4cvzvNJu9bOLBse5fgFCo4CB4wo2
 X9RqZDXYvLpzWKbzSGcyGndrdzqKPN9lHckZ2JRO7MmzbiC4qG4NNlkSV.RtMpWg6RT1vWCdTDq.
 ItrJsgeWKbfz3g3Id4beXp.WqLxXNZHL723D2wCrZ_aek6shQ.L1SBBj6R2ZquwLxg2ogdvilgi6
 K90BGYd.Gmgr5cFM_m_hkNGNHuTR_08SX7T0CWK2ILNZMIpTtrt8sklnuzG.VydGzcJ4My2t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F0.XniiPv2TnP
 9zZU5tO2lV7gc4HxvUgXDrwf0RlbCFSoH2aADjp.2j5tMWedLffpHF9zN26y9ecolDhdxYBvOhDJ
 te6PQQK4lmB4ei9uFQzYSr9V0Uv6DOwT6bSz9Vk8qQttIqVx_34iHwVmuiehSyMFUvzO405oOCXo
 4LPL78kOpLf7HDgvHu737Q4jY448fEBTnrSvsCO2HGNIPbGN1KO3bcy7xwV2bc1kRS7Hi2zkZarK
 C0.enDfgGUasUziSJOuceCMZnk9A1RFf8rW1N67P9VtdZTuK4eOPtkzehPXIIBS4dGtDMomDjLSE
 x3Y5miquV5X4PmTkvVUSBjvcWZnqotk_5nS_p8gNtayfiHL0uJlYtNnZ54xmQDC5hNPPj4Sfo8YY
 8yZHuVo5pJRBVDn3HlD.6qAU901B2BJfiCy0YmcSeMLgkCId4e_mtZVOPGs.iTM7dREKCXvvh0L8
 EgufVVrcQ_NPVuxRMCZqvlaRZDZ9qtDrKzx7vm6_zPBdoPE892dPD9WWEX1vXhYU3D_AGaTsd387
 tKE4PaU.u3bcerNx13n3voWVO9F..eJrx5XmhO8qEwO6GcYZSBR4_RFwqLZAtcTCNBfihgbS7ckL
 7OKdc7i5ZVNbzcaMf0xrLnym1h_xesAUnHo6KvBPqtU1gCafVzIqM.xvvg8vDWYxhKXqxTTo-
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: e90f5947-da21-450b-a28c-f42275ab53c6
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic307.consmr.mail.ne1.yahoo.com with HTTP; Mon, 17 Apr 2023 06:13:33 +0000
Received: by hermes--production-ir2-74cd8fc864-rnn7v (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 606bc5f2dff008ecbf65bf09adbd6612; 
 Mon, 17 Apr 2023 06:13:30 +0000 (UTC)
Received: by mail-ed1-f46.google.com with SMTP id
 4fb4d7f45d1cf-505934ccc35so3720912a12.2
 for <62767 <at> debbugs.gnu.org>; Sun, 16 Apr 2023 23:13:30 -0700 (PDT)
X-Gm-Message-State: AAQBX9dKXyzt1XGfkmLNzdXwASFhjKt+gOO3E8OtsxfvxZrvzd0qApUL
 Lj2gc/AbtnPqoi/QpYfMs81oG+xVJTc9Kpo2Wbw=
X-Google-Smtp-Source: AKy350bO3qSWtYShx1qVDEfMeKrzSczwOm5d5DQCiFITFMUT8XRQ9qChoc3ZWybS/63pedAec2nvUxMXGVhatKzjP7o=
X-Received: by 2002:a50:f696:0:b0:506:71e7:1b5c with SMTP id
 d22-20020a50f696000000b0050671e71b5cmr6612181edn.5.1681712008879; Sun, 16 Apr
 2023 23:13:28 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
In-Reply-To: <87ttxh4e9i.fsf@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Mon, 17 Apr 2023 06:13:16 +0000
X-Gmail-Original-Message-ID: <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
Message-ID: <CABCREdomqNHQ7Q018WEQ=X2-e1ZKdRCOBvtiof4yLKEzZXhVGw@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Philip Kaludercic <philipk@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000e78e0b05f982168c"
X-Mailer: WebService/1.1.21365
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 4069
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--000000000000e78e0b05f982168c
Content-Type: text/plain; charset="UTF-8"

Hi Philip,

I had researched these three calls with the "require 'info", and
updated the patch for better performance.
The 1 th and 3rd can be rewritten with the new form, but the 2nd one
is necessary, and should not be changed.
Please help review the new attached patch file. Thanks.

Hi Eli,
> And this is the only place in Emacs where we have (require 'FOO) and
> FOO is not necessary for Emacs to start up?
My configuration will load the package.el at startup, so I tracked the
initial packages, and found the "require `info" will take ~1 seconds
on my old PC.
I didn't pay attention to other packages, if I found a heavy one, I'll
post it on the mail list.

--000000000000e78e0b05f982168c
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-lisp-emacs-lisp-package.el-better-way-to-load-the-in.patch"
Content-Disposition: attachment; 
	filename="0001-lisp-emacs-lisp-package.el-better-way-to-load-the-in.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lgkfw9yo0>
X-Attachment-Id: f_lgkfw9yo0

RnJvbSA5MWE0YmRiY2NjNmYzMjEwZjQzZjQ2ODkxMDc3YzU3YWZkMTI4ODMwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBU
dWUsIDExIEFwciAyMDIzIDAwOjAwOjEzICswMDAwClN1YmplY3Q6IFtQQVRDSF0gKmxpc3AvZW1h
Y3MtbGlzcC9wYWNrYWdlLmVsOiBiZXR0ZXIgd2F5IHRvIGxvYWQgdGhlIGluZm8KIHBhY2thZ2UK
Ci0tLQogbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwgfCAxNyArKysrKysrKy0tLS0tLS0tLQog
MSBmaWxlIGNoYW5nZWQsIDggaW5zZXJ0aW9ucygrKSwgOSBkZWxldGlvbnMoLSkKCmRpZmYgLS1n
aXQgYS9saXNwL2VtYWNzLWxpc3AvcGFja2FnZS5lbCBiL2xpc3AvZW1hY3MtbGlzcC9wYWNrYWdl
LmVsCmluZGV4IGY5MmFmZTU2YjcuLjk4MTUzYTQ5YzcgMTAwNjQ0Ci0tLSBhL2xpc3AvZW1hY3Mt
bGlzcC9wYWNrYWdlLmVsCisrKyBiL2xpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVsCkBAIC04OTIs
MTAgKzg5Miw5IEBAIHBhY2thZ2UtYWN0aXZhdGUtMQogICAgICAgICAoYWRkLXRvLWxpc3QgJ2xv
YWQtcGF0aCAoZGlyZWN0b3J5LWZpbGUtbmFtZSBwa2ctZGlyKSkpCiAgICAg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ZC1saXN0ICgpKQpAQCAtNDQ3MiwxMCArNDQ3MSwxMCBAQCBwYWNrYWdlLXF1aWNrc3RhcnQt
cmVmcmVzaAogICAgICAgICAgIChjdXJyZW50LWJ1ZmZlcikpCiAgICAgICAobGV0ICgoaW5mby1k
aXJzIChidXRsYXN0IEluZm8tZGlyZWN0b3J5LWxpc3QpKSkKICAgICAgICAgKHdoZW4gaW5mby1k
aXJzCi0gICAgICAgICAgKHBwIGAocHJvZ24gKHJlcXVpcmUgJ2luZm8pCi0gICAgICAgICAgICAg
ICAgICAgICAgKGluZm8taW5pdGlhbGl6ZSkKLSAgICAgICAgICAgICAgICAgICAgICAoc2V0cSBJ
bmZvLWRpcmVjdG9yeS1saXN0Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICAgKGFwcGVuZCAn
LGluZm8tZGlycyBJbmZvLWRpcmVjdG9yeS1saXN0KSkpCisgICAgICAgICAgKHBwIGAod2l0aC1l
dmFsLWFmdGVyLWxvYWQgJ2luZm8KKyAgICAgICAgICAgICAgICAgKGluZm8taW5pdGlhbGl6ZSkK
KyAgICAgICAgICAgICAgICAgKHNldHEgSW5mby1kaXJlY3RvcnktbGlzdAorICAgICAgICAgICAg
ICAgICAgICAgICAoYXBwZW5kICcsaW5mby1kaXJzIEluZm8tZGlyZWN0b3J5LWxpc3QpKSkKICAg
ICAgICAgICAgICAgKGN1cnJlbnQtYnVmZmVyKSkpKQogICAgICAgOzsgVXNlIGBccycgaW5zdGVh
ZCBvZiBhIHNwYWNlIGNoYXJhY3Rlciwgc28gdGhpcyBjb2RlIGNodW5rIGlzIG5vdAogICAgICAg
OzsgbWlzdGFrZW4gZm9yIGFuIGFjdHVhbCBmaWxlLWxvY2FsIHNlY3Rpb24gb2YgcGFja2FnZS5l
bC4KLS0gCjIuMjAuNQoK
--000000000000e78e0b05f982168c--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 15 Apr 2023 10:58:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 06:58:12 2023
Received: from localhost ([127.0.0.1]:48352 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pndbg-0001SW-7c
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2023 06:58:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:49294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pndbe-0001SI-JQ
 for 62767 <at> debbugs.gnu.org; Sat, 15 Apr 2023 06:58:11 -0400
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 <eliz@HIDDEN>)
 id 1pndbZ-0005uB-8S; Sat, 15 Apr 2023 06:58:05 -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=lfy1OzvtlMOJRgdbteWZj5ZBU6AZJXIsgSaGO4kD/dU=; b=OH0Om21Gw2A+
 StiPBxTWS5sI6udICnTBJiJZIsePFqM/qTOJOKE+0FY8kMu/nIB/1KfmA/wn+5PwL9ttDmYtQldis
 Io3qG4fBsbL7MT+i6aq8I8miETzjzDdlKZ/lk0a72pdrkD9USOgxM5ytQiy+R9V07wSAStkSmTG5w
 5TAIoaYah4f2hh3Y0w/402ew4/YC8lw/7VcNv/ARbdGeaLBQM0c7fTOTRKJXNqWMaelTv7nP63lTg
 cTrNGLchClO1BKM7+HXyxS62GfKctZX1MUwDC0sYECBI1ir49+eFRJMoGOCYrrRYkfYZ0UYB7nw4x
 JQ+QFaR0xdSAKUm6mmy71g==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pndbY-0007aq-Ga; Sat, 15 Apr 2023 06:58:04 -0400
Date: Sat, 15 Apr 2023 13:58:05 +0300
Message-Id: <83leitcszm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Philip Kaludercic <philipk@HIDDEN>
In-Reply-To: <87ttxh4e9i.fsf@HIDDEN> (message from Philip Kaludercic on
 Sat, 15 Apr 2023 10:43:21 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
 <87ttxh4e9i.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, sunlin7@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Philip Kaludercic <philipk@HIDDEN>
> Cc: sunlin7@HIDDEN,  62767 <at> debbugs.gnu.org
> Date: Sat, 15 Apr 2023 10:43:21 +0000
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Philip Kaludercic <philipk@HIDDEN>
> >> Cc: 62767 <at> debbugs.gnu.org,  eliz@HIDDEN
> >> Date: Fri, 14 Apr 2023 20:07:54 +0000
> >> 
> >> lin Sun <sunlin7@HIDDEN> writes:
> >> 
> >> > Hi,
> >> >
> >> > The package.el will always require the entire `info.el` on its package
> >> > activating function.
> >> > Using the `with-eval-after-load` to arrange the work can avoid the
> >> > unnecessary loading the `info` package.
> >> 
> >> Note that this is not the only place where info is required.  If this is
> >> an acceptable solution (which I am not sure since `with-eval-after-load'
> >> is something I usually encounter in user configurations), then we should
> >> think about consistently addressing the issue:
> >
> > What exactly are the problems with requiring info.el?  We require
> > packages that define some function in gazillion other places, so what
> > makes this one case special?
> 
> Some people optimise the startup time of Emacs and want to avoid loading
> files that are not necessary for Emacs to start-up.

And this is the only place in Emacs where we have (require 'FOO) and
FOO is not necessary for Emacs to start up?  I'd be surprised.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 15 Apr 2023 10:43:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 06:43:29 2023
Received: from localhost ([127.0.0.1]:48332 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pndNR-0000ny-Ji
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2023 06:43:29 -0400
Received: from mout01.posteo.de ([185.67.36.65]:52857)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1pndNP-0000ng-OH
 for 62767 <at> debbugs.gnu.org; Sat, 15 Apr 2023 06:43:28 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 2827D240153
 for <62767 <at> debbugs.gnu.org>; Sat, 15 Apr 2023 12:43:21 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1681555402; bh=9cv9VfRJ1K0N74QPyT8D7Et/Y/yarWRi00EmAIlpucU=;
 h=From:To:Cc:Subject:Autocrypt:Date:From;
 b=fkVwHJWgrJb85TgNXaBtKhGEXYUVt1DYuXlESwSo+a1H4OPZcSrZrDbQjclCEgD/R
 DxTwltsXVqBmQBlt8ZYf0RxQ4amaRMpliTqUjJ7Dw9vjC8G/2Uz1Og0hHA8R2+TwNn
 3y8rPMZSJdHclhMQ6Xo//3HAqChvzYmyfSBwCS6tcqUsuawBrNQM2UD81LfS/jnEKC
 tuPSUiKedoL9y9KI/z3+FwZN2kGvOiE8lH9C0G3IlWwO/2rd0PeZeUzDDVizHF8AtZ
 ts/fxUURZ7cgzcD0u4HwbntbzVeZs42AD2gw/bshDjRfq9N3at+14zA6/ut+emDN23
 RnMA4prk1ZuRg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Pz8zs4QL6z9rxN;
 Sat, 15 Apr 2023 12:43:21 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
In-Reply-To: <833551ecb2.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 15 Apr
 2023 12:15:29 +0300")
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN> <833551ecb2.fsf@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; keydata=
 mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI
 BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0
 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB
 BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE
 Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK
 NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof
 z4oM
Date: Sat, 15 Apr 2023 10:43:21 +0000
Message-ID: <87ttxh4e9i.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, sunlin7@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Philip Kaludercic <philipk@HIDDEN>
>> Cc: 62767 <at> debbugs.gnu.org,  eliz@HIDDEN
>> Date: Fri, 14 Apr 2023 20:07:54 +0000
>> 
>> lin Sun <sunlin7@HIDDEN> writes:
>> 
>> > Hi,
>> >
>> > The package.el will always require the entire `info.el` on its package
>> > activating function.
>> > Using the `with-eval-after-load` to arrange the work can avoid the
>> > unnecessary loading the `info` package.
>> 
>> Note that this is not the only place where info is required.  If this is
>> an acceptable solution (which I am not sure since `with-eval-after-load'
>> is something I usually encounter in user configurations), then we should
>> think about consistently addressing the issue:
>
> What exactly are the problems with requiring info.el?  We require
> packages that define some function in gazillion other places, so what
> makes this one case special?

Some people optimise the startup time of Emacs and want to avoid loading
files that are not necessary for Emacs to start-up.

-- 
Philip Kaludercic




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 15 Apr 2023 09:15:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 05:15:38 2023
Received: from localhost ([127.0.0.1]:48229 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pnc0Q-0003wk-KX
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2023 05:15:38 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33150)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pnc0O-0003wW-GW
 for 62767 <at> debbugs.gnu.org; Sat, 15 Apr 2023 05:15:37 -0400
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 <eliz@HIDDEN>)
 id 1pnc0I-0000yn-5c; Sat, 15 Apr 2023 05:15:30 -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=UsKkkJRj1UUSucm9/O4sDItgnk+939Z7NLk+blDBbiM=; b=obMZkksUT49V
 FtUT7e+iGZgVwtfuX6e+5nhDuxRPhhiQ1oklmZLGtwvFXpDCh/LHhi/Q+uJZdyhpfGz40ozq8uDAq
 bHVP3Mb3smcRHr2I0I8bQUOEfTHh1jULtY39yRa6xBq/Ai1TDdK9xtpGPwliFA+/wrLGNQ1zhGTcR
 V2/DQnzjI6iRWMzx5K4TKLDAn6GlXIJ/b366HjuR3Vpq2HY8KT2Dw3p4rCgMscFqUUgTdEc4JnJXE
 YiYa2UDLjmQb5tr6Q5h6KxaZpWExnQ3QZN3kky7ehvITk3eHkjpkgC33Up5PXGf8Mxx3gdLZX4RNX
 60C0wTVh1jvmZIRACbhNeA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pnc0H-0001TX-DR; Sat, 15 Apr 2023 05:15:29 -0400
Date: Sat, 15 Apr 2023 12:15:29 +0300
Message-Id: <833551ecb2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Philip Kaludercic <philipk@HIDDEN>
In-Reply-To: <87sfd2ns6d.fsf@HIDDEN> (message from Philip Kaludercic on
 Fri, 14 Apr 2023 20:07:54 +0000)
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, sunlin7@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Philip Kaludercic <philipk@HIDDEN>
> Cc: 62767 <at> debbugs.gnu.org,  eliz@HIDDEN
> Date: Fri, 14 Apr 2023 20:07:54 +0000
> 
> lin Sun <sunlin7@HIDDEN> writes:
> 
> > Hi,
> >
> > The package.el will always require the entire `info.el` on its package
> > activating function.
> > Using the `with-eval-after-load` to arrange the work can avoid the
> > unnecessary loading the `info` package.
> 
> Note that this is not the only place where info is required.  If this is
> an acceptable solution (which I am not sure since `with-eval-after-load'
> is something I usually encounter in user configurations), then we should
> think about consistently addressing the issue:

What exactly are the problems with requiring info.el?  We require
packages that define some function in gazillion other places, so what
makes this one case special?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 14 Apr 2023 22:13:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 14 18:13:24 2023
Received: from localhost ([127.0.0.1]:47857 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pnRfL-0004xS-OP
	for submit <at> debbugs.gnu.org; Fri, 14 Apr 2023 18:13:24 -0400
Received: from sonic308-9.consmr.mail.ne1.yahoo.com ([66.163.187.32]:37972)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1pnRfJ-0004xG-Uu
 for 62767 <at> debbugs.gnu.org; Fri, 14 Apr 2023 18:13:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681510384; bh=hpOWrDdBMo8yChT5qKOUZ8vffdrGr27z6R2t+EloPbE=;
 h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To;
 b=sfOq/E5AFHo2gHvzBJm1otXJleJy6oRM3SzU3HlZGxiFSdrCQGoqN5YyqhGpV9XnZUUDwtl2N4UT1VD9tRk/mYjHcVvtd1VDQeuoUMwX6sw6v26qL6lNTsrp+ovYYyjYpEoopk2+1Uwq8O7Uz1J+tUxm4ZNfDMBDHZiX7uhyepZALu3Q0EmDv/toltvikaH5KHLj2o3REiij0FeBJIeQDImYhn8zBM5qsHVz0BFD4g6A8rhHbHY0KvhmdJt1wclrU85sOUr64Rtqnx+slIUt0nPcsGlgjB6dB7wkrDLw9CUB8e14v/b7V2RNFs4c6X/mK5QTVPK97bGNusx5xeZLRQ==
X-SONIC-DKIM-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RfZmCiI9kGarulrB.wbb7PptXlIGIXpzWnMO
 gKPV6_zBSgTsx_BgPoFVkK3FHAYFjgaiqJj91CiF68Yc3kYDnHZAE2l0F4R27_XintfhQbwLKcSO
 PEtkxz.hAHPmCJMyjbRtsVnJSXNoi7tDfzVsbQhIORdorCo2_RS4I9UgsKJSlmnZYxe2BHcLQ6ME
 HefnfMD4vqAI.rQiQYdGIBVbU8kYUZA0y0zbT1D9wPfVEmrhJ9O3thQSZJQOPZ6h7KZeexa6DwtB
 rVdFDV7FWMrglJMmgBJEkdNz1bH8imTXx_GQSdtCT5O3_fpGme_0Ap1z_.uAzgAq8ne3FdGIa.GA
 ovIgZ7RznbDn20MqWcZMRrXtJgF5sb_oi7WpyyYzt6gVQbx_6vBWv1oiMlFv3HosyH1o5wC.oFaC
 D1guAJidS6e6zleuGgI.eAa68swUCiYRelGkO3RveOxLPAoqOASduFAzdaT1c31CHSAlz1SaGqLs
 4GCHJZ4.J1fLQxEPZB5WN0C.yWJ7leZ6GzD.vQVYulgRVTeMgxgb7WDrW7tz0TSe8v0ER3XyLvWH
 ee0Zk75Ph3hZmkhR4CEACIuGTVKoPu2HX1E9a8Dt.07kpQrf5M6e7T0o0Om7jesEcFBVAPkHIgbp
 amQcBcdWdUN5gyqKbsVOJ4le1VarhWo9lbMa7aOMiCaqZ7hanGLRrgwYiOafOBJ0w9loS2LUL
X-Sonic-MF: <sunlin7@HIDDEN>
X-Sonic-ID: 891d9cf6-e592-4f5a-ba22-2531ccad0cfd
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic308.consmr.mail.ne1.yahoo.com with HTTP; Fri, 14 Apr 2023 22:13:04 +0000
Received: by hermes--production-ir2-74cd8fc864-4bl68 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID e41374705336fa21ea88409692a0666d; 
 Fri, 14 Apr 2023 22:13:01 +0000 (UTC)
Received: by mail-ej1-f43.google.com with SMTP id dx24so5074364ejb.11
 for <62767 <at> debbugs.gnu.org>; Fri, 14 Apr 2023 15:13:01 -0700 (PDT)
X-Gm-Message-State: AAQBX9cO0kuShw2x5fShwWxd7ywsvuJfAmV0KxxvMXTGp4xFuPqWmrCg
 ui1Kdzpjt+apmoMWaQIhNEUHTr/nxrVRmkGtXnE=
X-Google-Smtp-Source: AKy350buMmU98pBSkrza7ieQSQp7LO1nZRhxMY2IS+Y56HVGGQ8N1tuAspCYFWmNxXTJ//w22KGSusmriKIIbOknKVk=
X-Received: by 2002:a17:906:38d:b0:8df:dc64:30d2 with SMTP id
 b13-20020a170906038d00b008dfdc6430d2mr303870eja.1.1681510379697; Fri, 14 Apr
 2023 15:12:59 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 <87sfd2ns6d.fsf@HIDDEN>
In-Reply-To: <87sfd2ns6d.fsf@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Fri, 14 Apr 2023 22:12:48 +0000
X-Gmail-Original-Message-ID: <CABCREdq-QpiGWTVACEhJY_+U9O3EG1B2LadnoPAcd3yXmQO1Vg@HIDDEN>
Message-ID: <CABCREdq-QpiGWTVACEhJY_+U9O3EG1B2LadnoPAcd3yXmQO1Vg@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
To: Philip Kaludercic <philipk@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: WebService/1.1.21365
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 248
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, eliz@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Philip,

Thanks for the comment.

I'm tracking the startup performance issue on my local, and found the
line 896, after change to the patched lines, it works for me several
weeks without regression.

I'll check other lines you mentioned, thanks




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at 62767 <at> debbugs.gnu.org:


Received: (at 62767) by debbugs.gnu.org; 14 Apr 2023 20:07:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 14 16:07:33 2023
Received: from localhost ([127.0.0.1]:47790 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pnPhk-0000rK-NF
	for submit <at> debbugs.gnu.org; Fri, 14 Apr 2023 16:07:33 -0400
Received: from mout01.posteo.de ([185.67.36.65]:57407)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1pnPhi-0000r4-9m
 for 62767 <at> debbugs.gnu.org; Fri, 14 Apr 2023 16:07:30 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id C7CFE2401F7
 for <62767 <at> debbugs.gnu.org>; Fri, 14 Apr 2023 22:07:24 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1681502844; bh=gEg3YqnOm9/DNB3v4b6SNLsNOgj6/hEyxU8aKaC90ds=;
 h=From:To:Cc:Subject:Autocrypt:Date:From;
 b=neRv0IB2hJoAlex4vqQE7zDwMwZuOQB9BBhCIbNLQBXkMpGzDdVNS2KJXqLPBt7Ta
 kYfJJun2pC2lztBniicK6h6VT1Gjlu8ZH2YAhQRlLg2Doh6GXxCPTRECKpMFFBT4dG
 tFDe0EypruFlAhDr+vApNRaQChavnACfX/S2mFgNR3QMODIkOtLmv/nVMPhvIxBqSY
 N6M04EIxr1PjulesNUCgEASivaRtYA8RTfwYTl0RMaKHMKEncZIT5cunRLKwaYGpuQ
 oKZyTGVoy7nzisj10gVZkOJXEzDHFh1Mzbztg3dLmzETsaV5t6ny8yVQuwcXGILIk+
 tK+fenzqABPIQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4PynY82LxHz6tw5;
 Fri, 14 Apr 2023 22:07:24 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
To: lin Sun <sunlin7@HIDDEN>
Subject: Re: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set
 variables after info package
In-Reply-To: <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
 (lin Sun's message of "Tue, 11 Apr 2023 05:15:45 +0000")
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
 <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; keydata=
 mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI
 BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0
 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB
 BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE
 Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK
 NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof
 z4oM
Date: Fri, 14 Apr 2023 20:07:54 +0000
Message-ID: <87sfd2ns6d.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 62767
Cc: 62767 <at> debbugs.gnu.org, eliz@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain

lin Sun <sunlin7@HIDDEN> writes:

> Hi,
>
> The package.el will always require the entire `info.el` on its package
> activating function.
> Using the `with-eval-after-load` to arrange the work can avoid the
> unnecessary loading the `info` package.

Note that this is not the only place where info is required.  If this is
an acceptable solution (which I am not sure since `with-eval-after-load'
is something I usually encounter in user configurations), then we should
think about consistently addressing the issue:


--=-=-=
Content-Type: text/plain
Content-Disposition: inline

3 matches for "require 'info" in buffer: package.el
       :        (add-to-list 'load-path (directory-file-name pkg-dir)))
       :      ;; Add info node.
       :      (when (file-exists-p (expand-file-name "dir" pkg-dir))
       :        ;; FIXME: not the friendliest, but simple.
    896:        (require 'info)
       :        (info-initialize)
       :        (add-to-list 'Info-directory-list pkg-dir))
       :      (push name package-activated-list)
       :      ;; Don't return nil.
-------
       :(defun package-quickstart-refresh ()
       :  "(Re)Generate the `package-quickstart-file'."
       :  (interactive)
       :  (package-initialize 'no-activate)
   4444:  (require 'info)
       :  (let ((package--quickstart-pkgs ())
       :        ;; Pretend we haven't activated anything yet!
       :        (package-activated-list ())
       :        ;; Make sure we can load this file without load-source-file-function.
-------
       :                          package-activated-list)))
       :          (current-buffer))
       :      (let ((info-dirs (butlast Info-directory-list)))
       :        (when info-dirs
   4489:          (pp `(progn (require 'info)
       :                      (info-initialize)
       :                      (setq Info-directory-list
       :                            (append ',info-dirs Info-directory-list)))
       :              (current-buffer))))

--=-=-=
Content-Type: text/plain



> Please help review the patch. Thanks.
>
> Best regards
> Lin
>
> From 4908999eefa315cfa1a1434baf891ce98ee8d871 Mon Sep 17 00:00:00 2001
> From: Lin Sun <sunlin7@HIDDEN>
> Date: Tue, 11 Apr 2023 00:00:13 +0000
> Subject: [PATCH] *lisp/emacs-lisp/package.el: set variables after info package
>  be loaded
>
> ---
>  lisp/emacs-lisp/package.el | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
> index f92afe56b7..bb0491e509 100644
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -892,10 +892,9 @@ package-activate-1
>          (add-to-list 'load-path (directory-file-name pkg-dir)))
>        ;; Add info node.
>        (when (file-exists-p (expand-file-name "dir" pkg-dir))
> -        ;; FIXME: not the friendliest, but simple.
> -        (require 'info)
> -        (info-initialize)
> -        (add-to-list 'Info-directory-list pkg-dir))
> +        (with-eval-after-load 'info
> +          (info-initialize)
> +          (add-to-list 'Info-directory-list pkg-dir)))
>        (push name package-activated-list)
>        ;; Don't return nil.
>        t)))

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Apr 2023 05:16:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 11 01:16:13 2023
Received: from localhost ([127.0.0.1]:36330 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pm6MX-0004vm-9T
	for submit <at> debbugs.gnu.org; Tue, 11 Apr 2023 01:16:13 -0400
Received: from lists.gnu.org ([209.51.188.17]:35310)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sunlin7@HIDDEN>) id 1pm6MV-0004vf-M2
 for submit <at> debbugs.gnu.org; Tue, 11 Apr 2023 01:16:12 -0400
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 <sunlin7@HIDDEN>) id 1pm6MV-0003rx-Ce
 for bug-gnu-emacs@HIDDEN; Tue, 11 Apr 2023 01:16:11 -0400
Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <sunlin7@HIDDEN>) id 1pm6MS-0003am-U1
 for bug-gnu-emacs@HIDDEN; Tue, 11 Apr 2023 01:16:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1681190163; bh=pxyYeOBjPuKUVAON6E0FWQumeOzqYKOIe9gMAhrxwXo=;
 h=References:In-Reply-To:From:Date:Subject:To:From:Subject:Reply-To;
 b=TIQ+XZ+gmtvI83CqJiOEKzvX7IsfZae2bmteFs6tz7AoPcqPYOSIVApepc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lin7@HIDDEN>
X-Sonic-ID: 69dc2853-ab2e-45ef-afc1-5acb04e04035
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Tue, 11 Apr 2023 05:16:03 +0000
Received: by hermes--production-ir2-74cd8fc864-qfvhg (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID e0c3d3bdc5220d5fcd0fdb28f7d0595b; 
 Tue, 11 Apr 2023 05:15:58 +0000 (UTC)
Received: by mail-ej1-f53.google.com with SMTP id gb34so17503029ejc.12;
 Mon, 10 Apr 2023 22:15:58 -0700 (PDT)
X-Gm-Message-State: AAQBX9ea7CXFv2rW6OFZUWbtwI0e+unArEECnKyOWKdinQkf6c7IiV3J
 tQ54JdZhp59FwV3WPGWQ6ShTNDGZVdQJgEfdffA=
X-Google-Smtp-Source: AKy350ZHSC01gg+Qn93z1WrJvkjHoxHy+hf+y2oDPKsEbX4LaOiCkBgeK/FTk44cxJ6NvdF7KauN7sF/dwhigps04gI=
X-Received: by 2002:a17:906:a92:b0:931:c1a:b526 with SMTP id
 y18-20020a1709060a9200b009310c1ab526mr3752806ejf.5.1681190157385; Mon, 10 Apr
 2023 22:15:57 -0700 (PDT)
MIME-Version: 1.0
References: <1181651021.466162.1581309285621.ref@HIDDEN>
 <1181651021.466162.1581309285621@HIDDEN>
 <CABCREdqX-nrN+r48UxsAFKZY3CZXxnRtH4HS7bxqsh=EBYmn4g@HIDDEN>
 <CABCREdoM9Etd_yFa=ttGC6qMpNbN3otKt-WRzSFhdvo3XmXczA@HIDDEN>
 <CABCREdrzYXahFe2WnG_GcJZa22D-5_rLDS4jqu1uiAX5h5vXrA@HIDDEN>
 <CABCREdq6NP0cGxTJKO-v9iDkwoOAzP2xo0-p5qcXL9CARN=+kw@HIDDEN>
 <CABCREdq229_uR180WBrCHUqK20F9VDAsAXHWoTBQR654UiehTw@HIDDEN>
 <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
In-Reply-To: <CABCREdojDr56zAi62=pEoi-Oh5tAcCzTNoPFaNKRFVoJgVVVCA@HIDDEN>
From: lin Sun <sunlin7@HIDDEN>
Date: Tue, 11 Apr 2023 05:15:45 +0000
X-Gmail-Original-Message-ID: <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
Message-ID: <CABCREdp94_CzjVg3SxZUJeTdHpErQOpFmYWyP6AJV4=MiZqTRA@HIDDEN>
Subject: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set variables after
 info package
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/mixed; boundary="00000000000021aeae05f9089679"
X-Mailer: WebService/1.1.21365
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2164
Received-SPF: pass client-ip=66.163.188.146; envelope-from=sunlin7@HIDDEN;
 helo=sonic303-20.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.4 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

--00000000000021aeae05f9089679
Content-Type: text/plain; charset="UTF-8"

Hi,

The package.el will always require the entire `info.el` on its package
activating function.
Using the `with-eval-after-load` to arrange the work can avoid the
unnecessary loading the `info` package.

Please help review the patch. Thanks.

Best regards
Lin

--00000000000021aeae05f9089679
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-lisp-emacs-lisp-package.el-set-variables-after-info-.patch"
Content-Disposition: attachment; 
	filename="0001-lisp-emacs-lisp-package.el-set-variables-after-info-.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lgbt705a0>
X-Attachment-Id: f_lgbt705a0

RnJvbSA0OTA4OTk5ZWVmYTMxNWNmYTFhMTQzNGJhZjg5MWNlOThlZThkODcxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBU
dWUsIDExIEFwciAyMDIzIDAwOjAwOjEzICswMDAwClN1YmplY3Q6IFtQQVRDSF0gKmxpc3AvZW1h
Y3MtbGlzcC9wYWNrYWdlLmVsOiBzZXQgdmFyaWFibGVzIGFmdGVyIGluZm8gcGFja2FnZQogYmUg
bG9hZGVkCgotLS0KIGxpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVsIHwgNyArKystLS0tCiAxIGZp
bGUgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBh
L2xpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVsIGIvbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwK
aW5kZXggZjkyYWZlNTZiNy4uYmIwNDkxZTUwOSAxMDA2NDQKLS0tIGEvbGlzcC9lbWFjcy1saXNw
L3BhY2thZ2UuZWwKKysrIGIvbGlzcC9lbWFjcy1saXNwL3BhY2thZ2UuZWwKQEAgLTg5MiwxMCAr
ODkyLDkgQEAgcGFja2FnZS1hY3RpdmF0ZS0xCiAgICAgICAgIChhZGQtdG8tbGlzdCAnbG9hZC1w
YXRoIChkaXJlY3RvcnktZmlsZS1uYW1lIHBrZy1kaXIpKSkKICAgICAgIDs7IEFkZCBpbmZvIG5v
ZGUuCiAgICAgICAod2hlbiAoZmlsZS1leGlzdHMtcCAoZXhwYW5kLWZpbGUtbmFtZSAiZGlyIiBw
a2ctZGlyKSkKLSAgICAgICAgOzsgRklYTUU6IG5vdCB0aGUgZnJpZW5kbGllc3QsIGJ1dCBzaW1w
bGUuCi0gICAgICAgIChyZXF1aXJlICdpbmZvKQotICAgICAgICAoaW5mby1pbml0aWFsaXplKQot
ICAgICAgICAoYWRkLXRvLWxpc3QgJ0luZm8tZGlyZWN0b3J5LWxpc3QgcGtnLWRpcikpCisgICAg
ICAgICh3aXRoLWV2YWwtYWZ0ZXItbG9hZCAnaW5mbworICAgICAgICAgIChpbmZvLWluaXRpYWxp
emUpCisgICAgICAgICAgKGFkZC10by1saXN0ICdJbmZvLWRpcmVjdG9yeS1saXN0IHBrZy1kaXIp
KSkKICAgICAgIChwdXNoIG5hbWUgcGFja2FnZS1hY3RpdmF0ZWQtbGlzdCkKICAgICAgIDs7IERv
bid0IHJldHVybiBuaWwuCiAgICAgICB0KSkpCi0tIAoyLjIwLjUKCg==
--00000000000021aeae05f9089679--




Acknowledgement sent to lin Sun <sunlin7@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#62767; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 11 Sep 2023 23:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.