* 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.
This commit is contained in:
Andrea Corallo 2023-03-06 17:27:32 +01:00
commit 0e3c7ac13d

View file

@ -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.