Subject: bug#59334: 29.0.50; loading native-compiled init file sets user-init-file to .eln

From: Eli Zaretskii <[email-masked]>
Date: Thu, 17 Nov 2022 14:07:46 +0200

> From: Juanma Barranquero <[email-masked]>
> Date: Thu, 17 Nov 2022 10:28:44 +0100
> 
> emacs -Q
> M-x byte-compile-file <RET> ~/.emacs.d/init.el <RET>
> C-x C-c
> emacs
> ;;; init.el is now native-compiled
> C-h v user-init-file <RET>
> ;;; => "d:/mypath/Home/.emacs.d/init.el"
> C-x C-c
> emacs
> C-h v user-init-file <RET>
> ;;; => "d:/mypath/Home/.emacs.d/native/29.0.50-a4a10996/init-7890dda9-d677a456.eln"

After the last step, what does the below produce:

  M-: (gethash "init-7890dda9-d677a456.eln" comp-eln-to-el-h) RET