summary refs log tree commit diff
diff options
context:
space:
mode:
authorLin Jian <me@linj.tech>2023-08-25 10:50:05 +0800
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-08-25 17:42:21 +0000
commit3e025f13938264d3e9ba1ae443485100a674985a (patch)
treeb082a06489f66574d39a35e4ba07675dce7c9f51
parent7f8cd3d8f98524e5609788e4fdda16c3a2ea0bc7 (diff)
downloadnixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.tar
nixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.tar.gz
nixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.tar.bz2
nixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.tar.lz
nixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.tar.xz
nixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.tar.zst
nixpkgs-3e025f13938264d3e9ba1ae443485100a674985a.zip
emacsWithPackages: add a note for EMACSNATIVELOADPATH
-rw-r--r--pkgs/build-support/emacs/wrapper.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/emacs/wrapper.sh b/pkgs/build-support/emacs/wrapper.sh
index c18960c06fc..44762bd4582 100644
--- a/pkgs/build-support/emacs/wrapper.sh
+++ b/pkgs/build-support/emacs/wrapper.sh
@@ -23,6 +23,11 @@ else
     newLoadPath+=("")
 fi
 
+# NOTE: Even though we treat EMACSNATIVELOADPATH like EMACSLOADPATH in
+# this wrapper, empty elements in EMACSNATIVELOADPATH have no special
+# meaning for Emacs.  Only non-empty elements in EMACSNATIVELOADPATH
+# will be prepended to native-comp-eln-load-path.
+# https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/startup.el?id=3685387e609753293c4518be75e77c659c3b2d8d#n599
 if [[ -n $EMACSNATIVELOADPATH ]]
 then
     while read -rd: entry