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 synchronously the current file (if it has changed).

Load the compiled code when finished.

Use emacs-lisp-byte-compile-and-load in combination with native-comp-deferred-compilation set to t to achieve asynchronous native compilation.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun emacs-lisp-native-compile-and-load ()
  "Native-compile synchronously the current file (if it has changed).
Load the compiled code when finished.

Use `emacs-lisp-byte-compile-and-load' in combination with
`native-comp-deferred-compilation' set to t to achieve asynchronous
native compilation."
  (interactive nil emacs-lisp-mode)
  (emacs-lisp--before-compile-buffer)
  (load (native-compile buffer-file-name)))