[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 0e3c7ac13da: * Fix `emacs-lisp-native-compile-and-load' for (bu
From: |
Andrea Corallo |
Subject: |
emacs-29 0e3c7ac13da: * Fix `emacs-lisp-native-compile-and-load' for (bug#61917) |
Date: |
Mon, 6 Mar 2023 11:32:52 -0500 (EST) |
branch: emacs-29
commit 0e3c7ac13da7039d873fdd0f879c2bea75fe7d5a
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Fix `emacs-lisp-native-compile-and-load' for (bug#61917)
* lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load):
Don't load if no compialtion happened.
---
lisp/progmodes/elisp-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index b2709616d22..6fbb87fa3a8 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -224,7 +224,8 @@ Use `emacs-lisp-byte-compile-and-load' in combination with
native compilation."
(interactive nil emacs-lisp-mode)
(emacs-lisp--before-compile-buffer)
- (load (native-compile buffer-file-name)))
+ (when-let ((out (native-compile buffer-file-name)))
+ (load out)))
(defun emacs-lisp-macroexpand ()
"Macroexpand the form after point.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 0e3c7ac13da: * Fix `emacs-lisp-native-compile-and-load' for (bug#61917),
Andrea Corallo <=