* Interactive tag native compilation function in emacs-lisp-mode

* lisp/progmodes/elisp-mode.el
	(emacs-lisp-native-compile-and-load): Tag it for `emacs-lisp-mode'.
This commit is contained in:
Andrea Corallo 2021-02-26 19:57:41 +01:00
parent 5c922cc3a4
commit b84c1727ea

View file

@ -212,7 +212,7 @@ Load the compiled code when finished.
Use `emacs-lisp-byte-compile-and-load' in combination with
`comp-deferred-compilation' set to `t' to achieve asynchronous
native compilation."
(interactive)
(interactive nil emacs-lisp-mode)
(emacs-lisp--before-compile-buffer)
(load (native-compile buffer-file-name)))