From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to print from/debug startup.el (normal-top-level) Date: Tue, 08 Mar 2022 10:52:42 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16341"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Emacs Devel To: dalanicolai Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 08 16:54:52 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nRcAm-0003xz-02 for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Mar 2022 16:54:52 +0100 Original-Received: from localhost ([::1]:37084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRcAk-0003Uy-Ky for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Mar 2022 10:54:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRc8o-0000b4-KL for emacs-devel@gnu.org; Tue, 08 Mar 2022 10:52:50 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRc8m-0002Ml-1R for emacs-devel@gnu.org; Tue, 08 Mar 2022 10:52:49 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7899480377; Tue, 8 Mar 2022 10:52:45 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9DCBB8004C; Tue, 8 Mar 2022 10:52:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1646754763; bh=IphPEXYPrNBqy12WGYvpcgV7bMH95N1rgsUJC/A8yts=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=aHN6bI+p9bVH8KoMoLPrVQ9dWUoP1zIpW1zaQiaIAgeps/e2USkHgPeqLSMpulDZm njwtGn5ZKI/w9WdqsrkbnIZOZNBL99ELKNA0yeM6EbHeDfNdwwWEV5dqSmK0xZy/oC c1nSJOzBZ7eXv9Ul2VlykINvhRRS+AOiG2l10JFmpzlRZDveCErWAyBCnV0d8uNYMG TGkj0azw90Tu/h36PSyQ0b6M7zzItQSAlpCA7GNcqBqq+dAwegZSqZkoNp3NHzE+G2 3qcgBGNo3zHP44rzKjpCpZE53hAiGN5YhveembNdVzymzFGBp9t5XV7ZeRWmS0gLrw hciD3jYHY3nQA== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 338F4120234; Tue, 8 Mar 2022 10:52:43 -0500 (EST) In-Reply-To: (dalanicolai@gmail.com's message of "Tue, 8 Mar 2022 16:37:00 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286930 Archived-At: > As, other than looking at the source code of `package-activate-1`, I am > unable to find what it > means to 'activate a package', Activate means to setup autoloads and add the package's directory to `load-path`. > So I was trying to inspect what happens in the `normal-top-level` function > but, when jumping to > its definition and changing it, it seems to have no effect (I have also > deleted the startup.elc file. And, as I don't know exactly if native > compiled files get priority over byte-compiled files, I have also tried > with an Emacs without native compilation, I am hoping to understand such > things at some point). Those files are preloaded into the "pdump" file (a file with name .pdmp) (you can see in `lisp/loadup.el` which are those files that are preloaded). Stefan