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.devel Subject: Re: How does Emacs load a non-existent .el file? Date: Fri, 01 Mar 2024 15:45:44 +0200 Message-ID: <86il26qd4n.fsf@gnu.org> References: <0036123ac52383e6a4dc7bc3d76ec2941168b011.camel@yandex.ru> <86r0guqgyt.fsf@gnu.org> <3787c36325de4bcfbd7084d3a581c4de3157fc8c.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Konstantin Kharlamov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 01 14:47:08 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 1rg3EC-0002Mp-Fh for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Mar 2024 14:47:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg3DQ-0005a1-8J; Fri, 01 Mar 2024 08:46:20 -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 1rg3D9-00057O-Ee for emacs-devel@gnu.org; Fri, 01 Mar 2024 08:46:04 -0500 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 1rg3D8-0005NY-Ta; Fri, 01 Mar 2024 08:46:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=c7uXE/1HSl87mCImhUBAGq4iJbmX0gMOCXfpbw4A+Ns=; b=XoEgjsGRBUIQHqgGofR1 WB4qvbULZ4s1ZzScp2P/0Jug1SjkC1jzukqRniImiuhrmqbXi4kTYyauEdGVNDTD2GFu/lRMD+JQb hhGIrkY3Dw3FJa0VZX3WKLEzt4IRwrvMHoNfvXNh3P0/Im2xSqfhFI50QQ6qLgkJS6ZZCHSERHKc7 gQNF+O4XzQLh9t6Ntrmnktm6Xxa1WMFXmwT2f/R0kMscP0RHq8kQf6brtYxgHpHpAmOBeEZM3idE1 Suy2soxp4sR1SLqpWrIsro3cqNZBODVt1DCn4Qc6e2PNBAoDs3eADYpHJJLJgOfpiiAUzwgcclrkU z2EBl+3SRl2XqQ==; In-Reply-To: <3787c36325de4bcfbd7084d3a581c4de3157fc8c.camel@yandex.ru> (message from Konstantin Kharlamov on Fri, 01 Mar 2024 16:30:07 +0300) 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:316659 Archived-At: > From: Konstantin Kharlamov > Cc: emacs-devel@gnu.org > Date: Fri, 01 Mar 2024 16:30:07 +0300 > > > Yes: startup.el is preloaded, see lisp/loadup.el.  So if you change > > it, you need to rebuild Emacs to let the changes have their effect at > > startup.  You can also load startup.el manually into a running > > session, and then invoke functions you've changed, but that will only > > be useful if what you are changing is not some special behavior that > > happens only at startup. > > Okay, I see, so the `startup.el` is a dummy file that's not being read. It isn't a "dummy file". It is not being read in your scenario, but that's not all there is to it. > I wonder if it's too hard to add to `*Help*` buffer mention that > certain functions are not being read from the file where the buffer > claims that they reside. That claim is correct, so why change it? > > There are a few answers there that solve the problem, so I'm not sure > > what else are you trying to do, and why. > > I see only one answer that is more or less convenient, which is `emacs > --insert <(echo 123)`. No, there's also an answer using --script, for example. > I agree with the opinion of one of the commenters here: this is > absolutely basic feature that most editors have. Not having it in Emacs > is very strange. I actually find it strange that someone wants it. The need was never explained. The fact that we don't have it speaks volumes about the need (or lack thereof). Of course, if this is your itch, feel free to scratch it, regardless. Don't mind me.