all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* native compilation sets user-init-file to .eln file
@ 2022-11-17  3:46 Juanma Barranquero
  2022-11-17  6:57 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Juanma Barranquero @ 2022-11-17  3:46 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

# byte-compile your init.el, then
emacs     # init.el is compiled to native code, and user-init-file =>
init.el
C-x C-c
emacs     # user-init-file => points to init-*-*.eln

Which I imagine is unintended, as there are other places in the code (for
example, custom) that expect user-init-file to point to an .el.

Note: The above recipe is entirely reproducible in my system, as long as
running Emacs native-compiles init.el. I add this caveat because I suppose
there's some size/complexity threshold to trigger the native compilation (a
one-line init.el[c] is not native-compiled, for example).

[-- Attachment #2: Type: text/html, Size: 740 bytes --]

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

end of thread, other threads:[~2022-11-17  7:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17  3:46 native compilation sets user-init-file to .eln file Juanma Barranquero
2022-11-17  6:57 ` Eli Zaretskii
2022-11-17  7:08   ` Juanma Barranquero
2022-11-17  7:27     ` Stefan Kangas

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.