* 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:
parent
4a7e657389
commit
0e3c7ac13d
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue