Function: elisp-byte-compile-file
elisp-byte-compile-file is an interactive and byte-compiled function
defined in elisp-mode.el.gz.
Signature
(elisp-byte-compile-file &optional LOAD)
Documentation
Byte compile the file the current buffer is visiting.
If LOAD is non-nil, load the resulting .elc file. When called interactively, this is the prefix argument.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun elisp-byte-compile-file (&optional load)
"Byte compile the file the current buffer is visiting.
If LOAD is non-nil, load the resulting .elc file. When called
interactively, this is the prefix argument."
(interactive "P")
(unless buffer-file-name
(error "This buffer is not visiting a file"))
(byte-compile-file buffer-file-name)
(when load
(load (funcall byte-compile-dest-file-function buffer-file-name))))