From 3e025f13938264d3e9ba1ae443485100a674985a Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Fri, 25 Aug 2023 10:50:05 +0800 Subject: [PATCH] emacsWithPackages: add a note for EMACSNATIVELOADPATH --- pkgs/build-support/emacs/wrapper.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/build-support/emacs/wrapper.sh b/pkgs/build-support/emacs/wrapper.sh index c18960c06fc3..44762bd4582b 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