[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: build: emacs-utils: Adjust ‘emacs-compile-directory’ for Emacs 29
From: |
guix-commits |
Subject: |
01/06: build: emacs-utils: Adjust ‘emacs-compile-directory’ for Emacs 29. |
Date: |
Sat, 9 Sep 2023 04:18:22 -0400 (EDT) |
lilyp pushed a commit to branch emacs-team
in repository guix.
commit 4a00fa9beaa671d6eb354e5e12826ae261e7e57b
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Sat Sep 2 00:15:29 2023 +0800
build: emacs-utils: Adjust ‘emacs-compile-directory’ for Emacs 29.
* guix/build/emacs-utils.scm (emacs-compile-directory): After native
compilation, write the bytecode file with ‘comp-write-bytecode-file’.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
---
guix/build/emacs-utils.scm | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/guix/build/emacs-utils.scm b/guix/build/emacs-utils.scm
index ac3dac57d1..8e12b5b6d4 100644
--- a/guix/build/emacs-utils.scm
+++ b/guix/build/emacs-utils.scm
@@ -139,7 +139,7 @@ If native code is not supported, compile to bytecode
instead."
(files (directory-files-recursively ,dir "\\.el$")))
(mapc
(lambda (file)
- (let (byte-to-native-output-file
+ (let (byte-to-native-output-buffer-file
;; First entry is the eln-cache of the homeless shelter,
;; second entry is the install directory.
(eln-dir (and (native-comp-available-p)
@@ -148,13 +148,9 @@ If native code is not supported, compile to bytecode
instead."
(native-compile file
(comp-el-to-eln-filename file eln-dir))
(byte-compile-file file))
- ;; Sadly, we can't use pcase because quasiquote works different in
- ;; Emacs. See `batch-byte+native-compile' in comp.el for the
- ;; actual shape of byte-to-native-output-file.
- (unless (null byte-to-native-output-file)
- (rename-file (car byte-to-native-output-file)
- (cdr byte-to-native-output-file)
- t))))
+ ;; After native compilation, write the bytecode file.
+ (unless (null byte-to-native-output-buffer-file)
+ (comp-write-bytecode-file nil))))
files))
#:dynamic? #t))
- branch emacs-team updated (506d6ce080 -> 6750c114e3), guix-commits, 2023/09/09
- 01/06: build: emacs-utils: Adjust ‘emacs-compile-directory’ for Emacs 29.,
guix-commits <=
- 05/06: gnu: emacs: Reload subdirs.el files in ‘guix-emacs-autoload-packages’., guix-commits, 2023/09/09
- 06/06: gnu: guix-emacs: Reword docstrings., guix-commits, 2023/09/09
- 02/06: gnu: emacs: Use lexical binding for guix-emacs.el startup library., guix-commits, 2023/09/09
- 03/06: gnu: emacs: Factorize a ‘guix-emacs--subdirs-files’ procedure., guix-commits, 2023/09/09
- 04/06: gnu: emacs: Allow producing verbose messages when loading autoloads., guix-commits, 2023/09/09