Subject: bug#44726: closed (Re: bug#44726: 28.0.50; [feature/native-comp] Provide a mechanism to populate comp-eln-load-path from the environment)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 30 Nov 2020 23:26:02 +0000

Your bug report

#44726: 28.0.50; [feature/native-comp] Provide a mechanism to populate comp-eln-load-path from the environment

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
44726: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44726
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#44726: 28.0.50; [feature/native-comp] Provide a mechanism to populate comp-eln-load-path from the environment
From: Andrea Corallo <[email-masked]>
To: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]>
Cc: Tad <[email-masked]>, [email-masked]
Date: Mon, 30 Nov 2020 23:25:25 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <[email-masked]> writes:

> Hi Tad,
>
> a55415af7e should do what we want.
>
> Okay to close?
>
> Thanks
>
>   Andrea

Closing this as I think is fulfilled.

Happy to repopen in case it's not :)

  Andrea

Subject: 28.0.50; [feature/native-comp] Provide a mechanism to populate comp-eln-load-path from the environment
From: Tad <[email-masked]>
To: [email-masked]
Cc: Andrea Corallo <[email-masked]>
Date: Wed, 18 Nov 2020 13:05:29 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Emacs populates `load-path' at startup from `$EMACSLOADPATH' in the
process environment. It would be useful to have an
`$EMACSNATIVELOADPATH' or equivalent to populate `comp-eln-load-path'.

I have implemented a workaround in NixOS with some code in
`site-start.el', but it would probably be useful in other contexts as
well.

    ;; Append paths set via `EMACSNATIVELOADPATH', an environment
    ;; variable made up for this purpose.
    (when-let ((path-env (getenv "EMACSNATIVELOADPATH"))
               (paths-from-env (split-string path-env))
               (paths (seq-filter (lambda (path) (not (string= "" path)))
                                  paths-from-env)))
      (setq comp-eln-load-path
            (append paths comp-eln-load-path)))

Thanks,
Tad