Function: emacs-lisp-native-compile-and-load
emacs-lisp-native-compile-and-load is an interactive and byte-compiled
function defined in elisp-mode.el.gz.
Signature
(emacs-lisp-native-compile-and-load)
Documentation
Native-compile the current buffer's file (if it has changed), then load it.
This invokes a synchronous native-compilation of the file that is visited by the current buffer, then loads the compiled native code when the compilation is finished.
Use emacs-lisp-byte-compile-and-load in combination with
native-comp-jit-compilation set to t to achieve asynchronous
native compilation of the current buffer's file.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun emacs-lisp-native-compile-and-load ()
"Native-compile the current buffer's file (if it has changed), then load it.
This invokes a synchronous native-compilation of the file that is
visited by the current buffer, then loads the compiled native code
when the compilation is finished.
Use `emacs-lisp-byte-compile-and-load' in combination with
`native-comp-jit-compilation' set to t to achieve asynchronous
native compilation of the current buffer's file."
(interactive nil emacs-lisp-mode)
(when-let* ((byte-file (emacs-lisp-native-compile)))
(load (file-name-sans-extension byte-file))))