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

Previous Next

Package: emacs;

Reported by: Tad <tadfisher <at> gmail.com>

Date: Wed, 18 Nov 2020 21:06:01 UTC

Severity: normal

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andrea Corallo <akrl <at> sdf.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#44726: closed (28.0.50; [feature/native-comp] Provide a
 mechanism to populate comp-eln-load-path from the environment)
Date: Mon, 30 Nov 2020 23:26:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 30 Nov 2020 23:25:25 +0000
with message-id <xjfblfe4eca.fsf <at> sdf.org>
and subject line Re: bug#44726: 28.0.50; [feature/native-comp] Provide a mechanism to populate comp-eln-load-path from the environment
has caused the debbugs.gnu.org bug report #44726,
regarding 28.0.50; [feature/native-comp] Provide a mechanism to populate comp-eln-load-path from the environment
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
44726: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44726
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tad <tadfisher <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Andrea Corallo <akrl <at> sdf.org>
Subject: 28.0.50; [feature/native-comp] Provide a mechanism to populate
 comp-eln-load-path from the environment
Date: Wed, 18 Nov 2020 13:05:29 -0800
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


[Message part 3 (message/rfc822, inline)]
From: Andrea Corallo <akrl <at> sdf.org>
To: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: Tad <tadfisher <at> gmail.com>, 44726-done <at> debbugs.gnu.org
Subject: Re: bug#44726: 28.0.50; [feature/native-comp] Provide a mechanism
 to populate comp-eln-load-path from the environment
Date: Mon, 30 Nov 2020 23:25:25 +0000
Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> 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


This bug report was last modified 4 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.