From: Sun Lin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 52199@debbugs.gnu.org
Subject: bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
Date: Tue, 30 Nov 2021 16:21:06 +0000 (UTC) [thread overview]
Message-ID: <355245563.6748106.1638289266076@mail.yahoo.com> (raw)
In-Reply-To: 355245563.6748106.1638289266076.ref@mail.yahoo.com
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Hi,
It seems native-comp-async always store the *.eln files in to the ~/.emacs.d/eln-cache/.
We can switch the EMACSNATIVELOADPATH values to the head of native-comp-eln-load-path,
then the *.eln will be stored in EMACSNATIVELOADPATH.
This patch try to enable custom the eln cache directory.
$ export EMACSNATIVELOADPATH=/tmp/eln-cache
$ emacs
B.R.
Lin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-startup.el-normal-top-level.patch --]
[-- Type: text/x-patch, Size: 1209 bytes --]
From 13a71a3eed3412e78297f8f9deb34a40bb355c95 Mon Sep 17 00:00:00 2001
From: Lin Sun <lin.sun@zoom.us>
Date: Tue, 30 Nov 2021 16:01:18 +0000
Subject: [PATCH] * lisp/startup.el (normal-top-level):
Custom native-comp eln cache with EMACSNATIVELOADPATH.
---
lisp/startup.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/startup.el b/lisp/startup.el
index 505d7b8..999bab0 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -539,13 +539,13 @@ normal-top-level
(when (featurep 'native-compile)
;; Form `native-comp-eln-load-path'.
+ (push (expand-file-name "eln-cache/" user-emacs-directory)
+ native-comp-eln-load-path)
(let ((path-env (getenv "EMACSNATIVELOADPATH")))
(when path-env
(dolist (path (split-string path-env path-separator))
(unless (string= "" path)
(push path native-comp-eln-load-path)))))
- (push (expand-file-name "eln-cache/" user-emacs-directory)
- native-comp-eln-load-path)
;; When $HOME is set to '/nonexistent' means we are running the
;; testsuite, add a temporary folder in front to produce there
;; new compilations.
--
2.7.0
next parent reply other threads:[~2021-11-30 16:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <355245563.6748106.1638289266076.ref@mail.yahoo.com>
2021-11-30 16:21 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-11-30 16:31 ` bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH Andrea Corallo
2021-11-30 17:22 ` Eli Zaretskii
2021-12-15 21:09 ` Stefan Kangas
2021-12-01 1:34 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-01 3:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=355245563.6748106.1638289266076@mail.yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=52199@debbugs.gnu.org \
--cc=sunlin7@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).