From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cIHoB9OTgWK5GgEAbAwnHQ (envelope-from ) for ; Mon, 16 May 2022 01:59:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gFXnBtOTgWKyXgEAG6o9tA (envelope-from ) for ; Mon, 16 May 2022 01:59:15 +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 2EA51171DB for ; Mon, 16 May 2022 01:59:14 +0200 (CEST) Received: from localhost ([::1]:57952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqO8m-00049U-Ne for larch@yhetil.org; Sun, 15 May 2022 19:59:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqO8U-00049K-Iq for help-guix@gnu.org; Sun, 15 May 2022 19:58:54 -0400 Received: from mx1.riseup.net ([198.252.153.129]:54030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqO8S-000518-9o for help-guix@gnu.org; Sun, 15 May 2022 19:58:53 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4L1fVK0hWJzDrbl; Sun, 15 May 2022 16:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1652659129; bh=JA4u/LMTQ/ee4nDdq3nBMNHmYh3NfYycLRbi7xgJK4g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VJwnhFpSNXNj64dRgA7GS8cB2xe88k7z+68D9O1xeQWD9l41dUcncXniipt1Nf6Tp z2Cxk+mY3CcD4nkEtWukfcdaUJIjVQJAL5VtiHfDzPn/6gK1kNe0jzdYDGQjAmp7Vt xWaahZ/tR7p987sI2//7zwdktuNu/JKMr8pXNCzs= X-Riseup-User-ID: C2B46FA9ECE2D021FFEA916C648B2B893D40E97C1185AA036F2429B88ABC0108 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4L1fVJ0dX0z1yPT; Sun, 15 May 2022 16:58:47 -0700 (PDT) Date: Mon, 16 May 2022 01:58:31 +0200 From: raingloom To: Akib Azmain Turja Cc: help-guix@gnu.org Subject: Re: Why Emacs is echoing message for each installed Emacs package while startup Message-ID: <20220516015831.577e652f@riseup.net> In-Reply-To: <874k1qejtg.fsf@disroot.org> References: <874k1qejtg.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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=1652659154; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Bq7fAXyklDcOdxzokj+5eXGVq1JVjk7AaUjicOG+PMQ=; b=n7ZBt51xaFAc/AjI/gpscxPQFowE/7PnSH35ihsJI151K+CRIe61lfvXQaP0oATuZ1alx2 BflJtIsLkV1ozbNfbn1KjRH8GZ/2kK0sLwVGcdsxf7DNq9oO2XXwhfZJTf38xn0w8Z6gMg MF4A5rN09lIpAkVc4vUnnXYfZr6QnogWyqGJzUzP07S4Mrs7z+ArLZiT8whZD3piWIpvTZ AslljFjpgwQoflWPorc3DbWq+yHhwLQoNmi50Tboklw3DEX4He7Ysl1OwDIdcO0R6da3gK 5pObF4xYoBIaOPkTLKTb3i/keEVBouYkJBwQmHoaT/0VZYNSpO0GC98cjiRl7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652659154; a=rsa-sha256; cv=none; b=mt7HR70MB+mDrACtyq4DDzEh8PpYz7JW28qHFmE20kP9gAVmqp6973EYbYGLLGqSy9TV2C sOJtnT8ivPW0NZCmAQf/7mBZ6/SfeeYNsCPyYBF4GeBW5N+7PzrdP9fgrlTTyfbOPM5Zf5 O4XSkv4ieYuhtdSDTemOiW9sQ58Qk8DKTYiuWgKvtVQC6FGMIgV2UvcxseAwxdMDqKDBpk LOCttwjkdkDymzoyABiTXfth2/V6dSNDxmMbAOFsQxPJRkDFMFtZBlI1TLLKa7R18sB4Dx BOFeQM/RGSKTra9E6NWh9rt+Eo87BBtoz+d6oZfW4UxRPyqzZSqIBtPqR5WWag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VJwnhFpS; dmarc=pass (policy=none) header.from=riseup.net; 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: -8.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VJwnhFpS; dmarc=pass (policy=none) header.from=riseup.net; 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: 2EA51171DB X-Spam-Score: -8.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: c03GwWY9+Ion 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: > > (defun guix-emacs-autoload-packages () > "Autoload Emacs packages found in EMACSLOADPATH. > > '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))) > > 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. > 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.