From: Eli Zaretskii <eliz@gnu.org>
To: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: How does Emacs load a non-existent .el file?
Date: Fri, 01 Mar 2024 18:41:17 +0200 [thread overview]
Message-ID: <86frx9rjki.fsf@gnu.org> (raw)
In-Reply-To: <934ee5e7305339ca64122d78114a55c627481971.camel@yandex.ru> (message from Konstantin Kharlamov on Fri, 01 Mar 2024 17:15:21 +0300)
> From: Konstantin Kharlamov <Hi-Angel@yandex.ru>
> Cc: emacs-devel@gnu.org
> Date: Fri, 01 Mar 2024 17:15:21 +0300
>
> > > 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?
>
> What claim?
The claim you mention above.
> I'm pointing out the lack of information in *Help* buffer
> that certain functions are not read from the location where *Help*
> claims them to be.
The doc string doesn't say where the functions is read from, it says
where the function is defined in the source code. And it's true that
command-line-1 is defined in startup.el. Like it's true that, for
example, kill-buffer is defined in buffer.c, although it is built into
Emacs by way of compiling buffer.c into buffer.o, and then linking
buffer.o (together with other *.o files) into the Emacs executable.
the same happens with functions defined in startup.el: the code is
compiled into startup.elc or startup-xxx.eln, and then loaded into the
Emacs binary during dumping (actually, the *.eln files are only
recorded during dumping and then loaded anew at each startup).
next prev parent reply other threads:[~2024-03-01 16:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 10:52 How does Emacs load a non-existent .el file? Konstantin Kharlamov
2024-03-01 12:22 ` Eli Zaretskii
2024-03-01 13:30 ` Konstantin Kharlamov
2024-03-01 13:45 ` Eli Zaretskii
2024-03-01 14:15 ` Konstantin Kharlamov
2024-03-01 16:41 ` Eli Zaretskii [this message]
2024-03-01 17:53 ` Andreas Schwab
2024-03-01 18:36 ` Konstantin Kharlamov
2024-03-01 20:48 ` Andreas Schwab
2024-03-01 20:57 ` Konstantin Kharlamov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86frx9rjki.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=Hi-Angel@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).