aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2020-11-20 00:59:00 +0100
committerAndrea Corallo2020-11-20 00:59:00 +0100
commita55415af7ea8ddc09dfda32ccb866c6556bb71c1 (patch)
tree30734725d9c377f01568c5dce7255578201ba036
parent3ae309bd59c608b4262209e225b963a8f73450e6 (diff)
downloademacs-a55415af7ea8ddc09dfda32ccb866c6556bb71c1.tar.gz
emacs-a55415af7ea8ddc09dfda32ccb866c6556bb71c1.zip
Add 'EMACSNATIVELOADPATH' env variable support (bug#44726)
* lisp/startup.el (normal-top-level): Read 'EMACSNATIVELOADPATH' and add entries too `comp-eln-load-path'. * lisp/mail/emacsbug.el (report-emacs-bug): Dump also 'EMACSNATIVELOADPATH'.
-rw-r--r--lisp/mail/emacsbug.el2
-rw-r--r--lisp/startup.el10
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index d524b26f1b9..4af8780d980 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -313,7 +313,7 @@ usually do not have translators for other languages.\n\n")))
313 (lambda (var) 313 (lambda (var)
314 (let ((val (getenv var))) 314 (let ((val (getenv var)))
315 (if val (insert (format " value of $%s: %s\n" var val))))) 315 (if val (insert (format " value of $%s: %s\n" var val)))))
316 '("EMACSDATA" "EMACSDOC" "EMACSLOADPATH" "EMACSPATH" 316 '("EMACSDATA" "EMACSDOC" "EMACSLOADPATH" "EMACSNATIVELOADPATH" "EMACSPATH"
317 "LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES" 317 "LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES"
318 "LC_MONETARY" "LC_NUMERIC" "LC_TIME" "LANG" "XMODIFIERS")) 318 "LC_MONETARY" "LC_NUMERIC" "LC_TIME" "LANG" "XMODIFIERS"))
319 (insert (format " locale-coding-system: %s\n" locale-coding-system)) 319 (insert (format " locale-coding-system: %s\n" locale-coding-system))
diff --git a/lisp/startup.el b/lisp/startup.el
index 89b1d59ce0a..2beeaa195d0 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -534,9 +534,13 @@ It is the default value of the variable `top-level'."
534 (setq user-emacs-directory 534 (setq user-emacs-directory
535 (startup--xdg-or-homedot startup--xdg-config-home-emacs nil)) 535 (startup--xdg-or-homedot startup--xdg-config-home-emacs nil))
536 536
537 (when (boundp 'comp-eln-load-path) 537 (when (featurep 'nativecomp)
538 (setq comp-eln-load-path (cons (concat user-emacs-directory "eln-cache/") 538 (let ((path-env (getenv "EMACSNATIVELOADPATH")))
539 comp-eln-load-path))) 539 (when path-env
540 (dolist (path (split-string path-env ":"))
541 (unless (string= "" path)
542 (push path comp-eln-load-path)))))
543 (push (concat user-emacs-directory "eln-cache/") comp-eln-load-path))
540 ;; Look in each dir in load-path for a subdirs.el file. If we 544 ;; Look in each dir in load-path for a subdirs.el file. If we
541 ;; find one, load it, which will add the appropriate subdirs of 545 ;; find one, load it, which will add the appropriate subdirs of
542 ;; that dir into load-path. This needs to be done before setting 546 ;; that dir into load-path. This needs to be done before setting