From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.devel Subject: Re: How does Emacs load a non-existent .el file? Date: Fri, 01 Mar 2024 23:57:31 +0300 Message-ID: References: <0036123ac52383e6a4dc7bc3d76ec2941168b011.camel@yandex.ru> <86r0guqgyt.fsf@gnu.org> <3787c36325de4bcfbd7084d3a581c4de3157fc8c.camel@yandex.ru> <87y1b1g7p1.fsf@igel.home> <87sf19fzko.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4406"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.50.4 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 01 21:58:48 2024 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 1rg9xv-0000zK-WF for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Mar 2024 21:58:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg9wz-0004HY-KQ; Fri, 01 Mar 2024 15:57:49 -0500 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 1rg9ww-0004H6-SZ for emacs-devel@gnu.org; Fri, 01 Mar 2024 15:57:46 -0500 Original-Received: from forward501a.mail.yandex.net ([178.154.239.81]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rg9wr-0001vr-U0; Fri, 01 Mar 2024 15:57:45 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-64.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-64.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:1492:0:640:cd24:0]) by forward501a.mail.yandex.net (Yandex) with ESMTPS id 2C0EE6153D; Fri, 1 Mar 2024 23:57:33 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-64.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id VvipotDXn0U0-vo5joduY; Fri, 01 Mar 2024 23:57:32 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1709326652; bh=nv8xK0TJKZoajCkJW3CSf0EZK4Y/ia02V39rQE1yb0k=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=QnE51DU6aQ5kgYTGQkGuhIuILjPNa5k6FMjYmWRLweK9moK/fFmrfpNbDL9UUxtOf c0UJ+Lo/M+wPF4tCn/8O9DPmiXOe2nnub1/A+qQshftNvx2+BUB1/yFWn+ID8QDi6e 4QMKyjh+E0lRwAjodP2HJBgbUWItHij0k0ErkaTU= Authentication-Results: mail-nwsmtp-smtp-production-main-64.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <87sf19fzko.fsf@igel.home> Received-SPF: pass client-ip=178.154.239.81; envelope-from=Hi-Angel@yandex.ru; helo=forward501a.mail.yandex.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316681 Archived-At: On Fri, 2024-03-01 at 21:48 +0100, Andreas Schwab wrote: > On M=C3=A4r 01 2024, Konstantin Kharlamov wrote: >=20 > > processing is defined. As Eli explained elsewhere in the thread, > > it's > > compiled into something else, so Emacs have to be rebuilt for the > > file > > changes to have effect. >=20 > No, you can just load it like any other lisp file. Well, it may be possible to override a few functions but certainly not all of them from the file. The earliest I see it's possible to make Emacs to load an el file would be done by `emacs -q -l my-override.el`, but that implies that Emacs has processed command line args, whereas command-line processing is exactly the part of `startup.el` file that I want to override.