emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default value of native-comp-eln-load-path


From: Eli Zaretskii
Subject: Re: Default value of native-comp-eln-load-path
Date: Thu, 13 Jan 2022 11:19:58 +0200

> From: Lele Gaifax <lele@metapensiero.it>
> Date: Thu, 13 Jan 2022 08:52:21 +0100
> 
> on a self-compiled one-week old GNU/Emacs (commit 808f69bf), I see
> the following:
> 
>   $ cd $HOME; emacs --batch --execute "(print native-comp-eln-load-path)"
> 
>   ("/home/lele/.emacs.d/eln-cache/" "/home/native-lisp/")
> 
>   $ cd /tmp; emacs --batch --execute "(print native-comp-eln-load-path)"
> 
>   ("/home/lele/.emacs.d/eln-cache/" "/native-lisp/")

Is this an installed Emacs, i.e. did you "make install" after building
it?

Anyway, I cannot reproduce this here.

> Indeed, that variable is defined in src/comp.c as
> 
>   /* Temporary value in use for bootstrap.  We can't do better as
>      `invocation-directory' is still unset, will be fixed up during
>      dump reload.  */
>   Vnative_comp_eln_load_path = Fcons (build_string ("../native-lisp/"), Qnil);
> 
> What is the purpose of that relative "native-lisp" entry?

It's complicated to explain (but the reasons are valid).  In any case,
as the comment says, the value is supposed to be resolved when Emacs
loads the .pdmp file.  Why it didn't happen in your case requires more
investigation.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]