Function: emacs-lisp-native-compile

emacs-lisp-native-compile is an interactive and byte-compiled function defined in elisp-mode.el.gz.

Signature

(emacs-lisp-native-compile)

Documentation

Native-compile the current buffer's file (if it has changed).

This invokes a synchronous native-compilation of the file that is visited by the current buffer.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun emacs-lisp-native-compile ()
  "Native-compile the current buffer's file (if it has changed).
This invokes a synchronous native-compilation of the file that is
visited by the current buffer."
  (interactive nil emacs-lisp-mode)
  (emacs-lisp--before-compile-buffer)
  (let* ((byte+native-compile t)
         (byte-to-native-output-buffer-file nil)
         (eln (native-compile buffer-file-name)))
    (when eln
      (comp-write-bytecode-file eln))))