diff options
author | Lin Jian <me@linj.tech> | 2023-08-26 14:25:11 +0800 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-28 15:46:04 +0000 |
commit | 2d324ed8f96721b74c3a232ffd4bf5af1497405b (patch) | |
tree | d449dc8ad6659e0a75a1d3c3b8052631f811ad52 | |
parent | 6505082e724da1906003aa17ae9fc9e550e86ef6 (diff) |
emacs: fix the detection of native compilation for Emacs 29
In Emacs 29, feature comp does not load early enough. We use native-compile instead. This is also what Emacs uses[1]. [1]: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/startup.el?id=3685387e609753293c4518be75e77c659c3b2d8d#n586
-rw-r--r-- | pkgs/applications/editors/emacs/site-start.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/emacs/site-start.el b/pkgs/applications/editors/emacs/site-start.el index 668b76cfd3e80..731b42c637e1c 100644 --- a/pkgs/applications/editors/emacs/site-start.el +++ b/pkgs/applications/editors/emacs/site-start.el @@ -40,7 +40,7 @@ least specific (the system profile)" (mapconcat 'identity new-env-list ":")))))) ;;; Set up native-comp load path. -(when (featurep 'comp) +(when (featurep 'native-compile) ;; Append native-comp subdirectories from `NIX_PROFILES'. (setq native-comp-eln-load-path (append (mapcar (lambda (profile-dir) |