From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lin Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set variables after info package Date: Mon, 17 Apr 2023 15:27:09 +0000 Message-ID: References: <1181651021.466162.1581309285621.ref@mail.yahoo.com> <1181651021.466162.1581309285621@mail.yahoo.com> <87sfd2ns6d.fsf@posteo.net> <833551ecb2.fsf@gnu.org> <87ttxh4e9i.fsf@posteo.net> <87bkjmiqtz.fsf@posteo.net> Reply-To: lin Sun Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000b69f5805f989d381" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3405"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62767@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 17 17:28:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1poQm6-0000kW-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Apr 2023 17:28:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poQlw-0005Yu-C0; Mon, 17 Apr 2023 11:28:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poQlu-0005YN-DS for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2023 11:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1poQlu-0003St-1j for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2023 11:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1poQlt-0001CQ-L2 for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2023 11:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lin Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Apr 2023 15:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62767-submit@debbugs.gnu.org id=B62767.16817452554560 (code B ref 62767); Mon, 17 Apr 2023 15:28:01 +0000 Original-Received: (at 62767) by debbugs.gnu.org; 17 Apr 2023 15:27:35 +0000 Original-Received: from localhost ([127.0.0.1]:55805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1poQlT-0001BT-02 for submit@debbugs.gnu.org; Mon, 17 Apr 2023 11:27:35 -0400 Original-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 ) id 1poQlQ-0001BE-Ja for 62767@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.K7nHHv6gNwS5enblya0YeIu_72jRPGKQGpBnW1nt19PwFb.9sZr5_s2uc5dp.qcI bSfHWquTkA9aK5e_BwnHAJjpZIrn4eV.hTNIOnvRYhHv1dk5tw9g_4HcO4wN1q1fBsHT6CZRXj2H ByZwZpLY2o19LrApk6VFGV1TPZ.DyEBPfbZ2N5K0mLZDaWitfKs5_nOfBpA_2weUSMuM6Sljwgwp Ey47.VkyBOEmZboNybT2HmD3V3WGa6Zd8NMi7iNqI0RQ9ptjA22x0XczwMdgh_7aw9UwG.QLuH1_ TF2.99tFHxagMOYtBdWNDUg8Hp9pD_ojltwb0PfE6nMAi4Ov.fzV0OY81LGHpuZStbXQ8vIQsMDo 42qurr1yGgLdMqFoe2S5CtUTo.VZsGt6aVL7tg98QBX7croYs9TmKrqD86dpl3SlX3y9y3vyGmWb cmQHX1yJFx7frwN2dVt9tlBM.EaGp7htR3cVRq17.Dt0khv2EdvGnmgZ40NN1F4hIGN8ar2_qZ2c p7qEZ_XGuXOxdeQYnIH9f1wJKVjHDdkNEgkDbnKTuWuc4fJag2S6sKrCrN7vpmcApNb4CkrvF3B7 sqKhaIJpsfJ7Gjy9Cmv5wDeVYew1fGXU37bJHQavoh X-Sonic-MF: X-Sonic-ID: 82dc9367-4dfe-4622-bef1-0e93563397fa Original-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 Original-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) Original-Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-94a34a0b531so595365166b.1 for <62767@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) In-Reply-To: <87bkjmiqtz.fsf@posteo.net> X-Gmail-Original-Message-ID: X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260186 Archived-At: --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: X-Attachment-Id: f_lgkzoa360 RnJvbSA5MWE0YmRiY2NjNmYzMjEwZjQzZjQ2ODkxMDc3YzU3YWZkMTI4ODMwIE1vbiBTZXAgMTcg MDA6MDA6M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gICAgICAgICAgICAgICAoc2V0cSBJ bmZvLWRpcmVjdG9yeS1saXN0Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICAgKGFwcGVuZCAn LGluZm8tZGlycyBJbmZvLWRpcmVjdG9yeS1saXN0KSkpCisgICAgICAgICAgKHBwIGAod2l0aC1l dmFsLWFmdGVyLWxvYWQgJ2luZm8KKyAgICAgICAgICAgICAgICAgKGluZm8taW5pdGlhbGl6ZSkK KyAgICAgICAgICAgICAgICAgKHNldHEgSW5mby1kaXJlY3RvcnktbGlzdAorICAgICAgICAgICAg ICAgICAgICAgICAoYXBwZW5kICcsaW5mby1kaXJzIEluZm8tZGlyZWN0b3J5LWxpc3QpKSkKICAg ICAgICAgICAgICAgKGN1cnJlbnQtYnVmZmVyKSkpKQogICAgICAgOzsgVXNlIGBccycgaW5zdGVh ZCBvZiBhIHNwYWNlIGNoYXJhY3Rlciwgc28gdGhpcyBjb2RlIGNodW5rIGlzIG5vdAogICAgICAg OzsgbWlzdGFrZW4gZm9yIGFuIGFjdHVhbCBmaWxlLWxvY2FsIHNlY3Rpb24gb2YgcGFja2FnZS5l bC4KLS0gCjIuMjAuNQoK --000000000000b69f5805f989d381--