all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How does Emacs load a non-existent .el file?
@ 2024-03-01 10:52 Konstantin Kharlamov
  2024-03-01 12:22 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Konstantin Kharlamov @ 2024-03-01 10:52 UTC (permalink / raw)
  To: emacs-devel

I was just looking whether it's too hard to add an option for reading
from stdin (a very requested feature¹). Long story short, I presume
command line parsing happens in `lisp/startup.el`, function `(command-
line-1)`. That's where the weirdness starts. Since it is an ELisp file,
I figured to avoid recompiling I can move its `.elc` file out of the
way and just do edits to `startup.el` directly. Turned out though, not
only Emacs does not notice these edits, it somehow manages to load the
file when it does not exist!

So e.g. I did a `sudo rm /usr/share/emacs/30.0.50/lisp/startup*`, so no
.el or elc files. But starting up `emacs -Q` and asking it `C-h f
command-line-1` still results in Emacs answering that such function
exists, except the help buffer doesn't have a link to it.

I am thoroughly confused. Any idea what's going on here?

1:
https://superuser.com/questions/31404/how-to-make-emacs-read-buffer-from-stdin-on-start



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-01 20:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.