From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62767: 29.0.90; [PATCH] *lisp/emacs-lisp/package.el: set variables after info package Date: Sat, 15 Apr 2023 13:58:05 +0300 Message-ID: <83leitcszm.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40363"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62767@debbugs.gnu.org, sunlin7@yahoo.com To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 15 12:59:22 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 1pndcn-000AJK-1y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Apr 2023 12:59:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pndcW-0006c3-Sj; Sat, 15 Apr 2023 06:59: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 1pndcV-0006bm-Ci for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 06:59:03 -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 1pndcU-00065E-S7 for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 06:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pndcU-0001Th-GB for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 06:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2023 10:59:02 +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.16815562925617 (code B ref 62767); Sat, 15 Apr 2023 10:59:02 +0000 Original-Received: (at 62767) by debbugs.gnu.org; 15 Apr 2023 10:58:12 +0000 Original-Received: from localhost ([127.0.0.1]:48352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pndbg-0001SW-7c for submit@debbugs.gnu.org; Sat, 15 Apr 2023 06:58:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pndbe-0001SI-JQ for 62767@debbugs.gnu.org; Sat, 15 Apr 2023 06:58:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 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==; Original-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 ) id 1pndbY-0007aq-Ga; Sat, 15 Apr 2023 06:58:04 -0400 In-Reply-To: <87ttxh4e9i.fsf@posteo.net> (message from Philip Kaludercic on Sat, 15 Apr 2023 10:43:21 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260026 Archived-At: > From: Philip Kaludercic > Cc: sunlin7@yahoo.com, 62767@debbugs.gnu.org > Date: Sat, 15 Apr 2023 10:43:21 +0000 > > Eli Zaretskii writes: > > >> From: Philip Kaludercic > >> Cc: 62767@debbugs.gnu.org, eliz@gnu.org > >> Date: Fri, 14 Apr 2023 20:07:54 +0000 > >> > >> lin Sun 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.