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
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
Tad <tadfisher <at> gmail.com> writes:
> 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)))
Wouldn't EMACS_NATIVE_LOAD_PATH be more idiomatic?
Andrea
This bug report was last modified 4 years and 171 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.