Subject: bug#73318: 31.0.50; with-native-compilation=aot breaks exec -a emacs

From: Eli Zaretskii <[email-masked]>
Date: Fri, 04 Oct 2024 22:16:57 +0300

> From: Spencer Baugh <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked],
>    [email-masked],  [email-masked]
> Date: Fri, 04 Oct 2024 12:51:59 -0400
> 
> Yes.  I suggest that if installation_state == INSTALLED, and we fail to
> find an eln file in emacs_execdir, we fall back to look in PATH_EXEC (or
> some other path compiled into the Emacs binary).

Btw, this is a misunderstanding of the code's logic: you must do this
when installation_state == UNKNOWN.  When it's INSTALLED, it means we
already found the first .eln file we needed to load in the
installation tree.