Function: emacs-lisp-byte-compile-and-load

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

Signature

(emacs-lisp-byte-compile-and-load)

Documentation

Byte-compile the current file (if it has changed), then load compiled code.

Probably introduced at or before Emacs version 28.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun emacs-lisp-byte-compile-and-load ()
  "Byte-compile the current file (if it has changed), then load compiled code."
  (interactive nil emacs-lisp-mode)
  (emacs-lisp--before-compile-buffer)
  (require 'bytecomp)
  (byte-recompile-file buffer-file-name nil 0)
  (load (byte-compile-dest-file buffer-file-name)))