From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QKeDF9wLgmJJAwAAbAwnHQ (envelope-from ) for ; Mon, 16 May 2022 10:31:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CIJoF9wLgmKDEwAA9RJhRA (envelope-from ) for ; Mon, 16 May 2022 10:31:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 07DEC2ACAF for ; Mon, 16 May 2022 10:31:24 +0200 (CEST) Received: from localhost ([::1]:47188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqW8Q-0008KJ-MW for larch@yhetil.org; Mon, 16 May 2022 04:31:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqVua-0004Uq-7T for help-guix@gnu.org; Mon, 16 May 2022 04:17:05 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqVuX-0008HI-Pz for help-guix@gnu.org; Mon, 16 May 2022 04:17:03 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 91D4142A55; Mon, 16 May 2022 10:16:59 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hh7owgSVo3fi; Mon, 16 May 2022 10:16:58 +0200 (CEST) From: Akib Azmain Turja DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652689018; bh=dC035fDOqXzbK1D8I0tVUDK1FRiXA3AX6kQ/yS2crnc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=MS5ISWFD3NaayrSjpi/1azzliZR3hTClFJ5mzIoAJI2335AZvy9M7Z9nGa2JNdQDt HARaA2P2XHlc7sumgy0USnyLTM9sLelTLjVWq3JXlYuitBAGPz15VDnpGD0jBjMti9 VsWxuRYrEYvi80xsknfmy4to6BKpTgloQ7Yfx87zYhcQ1kt2ByFKcLdHcjxqpL0jU/ 9fmpTeNFWdaRHjmCB6mypzMbNTUMp7Ob87dC5cc0xNqkcdzQEpBA09to6eJJaQ46tm RIrrTopifLNxHmoAsZhUSiEYIoy0za5fnScUZqaJI+SdXvqNIyEIMnl0WH/7d7eEbf Ja34Sq20TxeZg== To: raingloom Cc: help-guix@gnu.org Subject: Re: Why Emacs is echoing message for each installed Emacs package while startup In-Reply-To: <20220516015831.577e652f@riseup.net> References: <874k1qejtg.fsf@disroot.org> <20220516015831.577e652f@riseup.net> Date: Mon, 16 May 2022 14:16:21 +0600 Message-ID: <87sfp9dh9m.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652689884; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Kc5xsxsNdhLVlIy0sTrKBLq8RzM6aP4asYYfdIve2xc=; b=K834E7puKqWTZMi8+B05zn5XsfWRIiSNvpMPWLQxMGdvpAo3vCf1l6HDAL5hSsvVGy39Kw u0kcFhcTi3mu5LVykYOyWA9T9Jv1Ied1sr3Bov06byLzb+llGsmBBRINHsVcdbg5rcYgDG hjJ24oref/sslaTCS6OSY77Hb4TJp6xZCFL8htOoYzPcxiMVxBULfP26kyMl+6WCRd3dre SYZmjMDP48caHC94r2k76t2qHN2Pj/1vbN4cFwu/Xlm179Gua6Nb8WqsVpHjAhOT7tawV8 6Lw2nEGiO+//oIxyHAQ4U0i/XU5Xqa2ccRbrMV1kl9Aft4g8XkigmbMWeCoP1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652689884; a=rsa-sha256; cv=none; b=tPIPr4T64KFuh06z4wSJsim66dlQW1GoZZKpsv5ZeRHR/lWsTPfTr7+ELmWj6uwq/HPbUD W+6jvXCIknJPDlWsKaDEI/uOJGSCV/fJyyOCeecikcVRyeF0EQFg1g8LP8IAvvlrNlABiy YqbG3SPaybR/6xQYYcY85dMY25Iht8yCT+ae2wgcK3UW4eSPtfrQtGNewugpCQDkVJXeGn ooxSy+R0S9ZZsM5rXC2Vobbq2ArWWFx2vy/d7NIK6INv5Iwd1217fpCUX0iAOMLQDG8F+x r57T+R+6l3wYRSYocsiguJgAVplw7uqOyfmwD/Ha9vJEAhgLa8YPUJckQj1H5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=MS5ISWFD; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=MS5ISWFD; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 07DEC2ACAF X-Spam-Score: -5.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: /gMWkkaj3OTn --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable raingloom writes: > On Mon, 16 May 2022 00:23:39 +0600 > Akib Azmain Turja wrote: > >> For each Emacs package I have installed, Emacs echoes "Loading >> /gnu/store/...-emacs-.../...-autoloads.el" while startup. This is >> very annoying. The reason is probably the function: >>=20 >> (defun guix-emacs-autoload-packages () >> "Autoload Emacs packages found in EMACSLOADPATH. >>=20 >> 'Autoload' means to load the 'autoloads' files matching >> `guix-emacs-autoloads-regexp'." >> (interactive) >> (let ((autoloads (mapcan #'guix-emacs-find-autoloads >> (guix-emacs--non-core-load-path)))) >> (mapc (lambda (f) >> (load f 'noerror)) ;; This should be (load f 'noerror >> 'nomessage) autoloads))) >>=20 >> And also I wonder why Guix loads each autoloads file. Can't it merge >> (concat) all autoloads into one file while making the profile and then >> load it afterwards? This would probably save a little time. >> package.el can do this (see "package-quickstart-file" variable), so >> Guix should be able to do this too. >>=20 > > Gonna speculate here a bit since I'm not sure if this pattern exists in > Elisp land, but I've certainly seen (and written) programs that > required to be run from a specific place, usually from next to other > submodules in the same package. If you were to concatenate (or even > just move) such a file, it would break, possibly silently. > You can't even rename a program and be sure that it will have the same > behaviour, see busybox for an example of this. It's a single binary > that checks what name it's run under and then acts like that executable. Yes, this may be a problem for ordinary Emacs Lisp file. But I'm talking about autoloads. It is a special file that defines autoloaded functions. Calling autoloaded functions will automatically load the file containing the actual definition. Autoloads files should not depend on there names, and if they does its probably a bug. All autoloads files are needed to load at runtime, so concatenating all of them should probably be a good idea. Emacs builtin package manager "package.el" and third party purely-functional package manager "straight.el" both support merging the autoloads into one file. But load many autoloads files is not a big problem, the main problem is the messages "Loading...", "Loading...", "Loading..."... =2D-=20 Akib Azmain Turja This message is signed by me with my GnuPG key. It's fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmKCCFUACgkQVTX89U2I YWuefg/+Oajgx/VWrFvGlFk6c6LgDttfh/gXfDfq/W8wfSpe8eJ3DxltKOPQtwTG slxSi8SQ3qCfJgPBM4uNSRt7cdVme/5SNo3k0WJeA3ecjcum7IQk9vNpBk8BUse4 WNbovw482ig0XfVEqLoVNGNYYEpsAx9B20T8qHJNNFIYnyquqUSwBuDC81PeBFDM E6dE/6xrMBfD+pWj7QUMmilVSC4tcKt87MdLxbJxDUOXUwe9AVED96ZGYlZEzIFt mEiOwhkS1FqZtg9XQL3KVDywXjNcOBJPWBUeKSWC0Pf4B0g9XlVhB7YA2Tt2LNuN a1n4Pv1mbotrNANMEw4RoGZq3Buh+fnGZDinwSJS+tYPOKOj1A18Cd2sh1XUsJ7/ 7V9GVVyIdQiqVDJlwSy3aRKJA6+25ta39zwWKU6/9xMCdUqDeM91TjYl2QAi2Nmi 2RUct/q6PpKDIzQq+q4fVMKYAKd9f7kEV76jeQFO+DoNOn/VcyQJ36LflMvkzmGU fXYzrapuTxNCp60gYBzAh2xecJEnbwZ+nip6MSPQ7IYPulZparlJ6Ldnjsap0r8A k+M8DvPGfA3EI6BKMxcxcUnHNCEud1t9PrYcHDsXduyR8ww6aG0Tou+vOwehTzrS 2uGk50XzPDAYzbnhmxjG6POcikC/aLrYSGfjxKIyCUkSy2NKdPQ= =mcnk -----END PGP SIGNATURE----- --=-=-=--