Make emacs-lisp-byte-compile-and-load load the .elc file again

* lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile-and-load):
Load the compiled file instead of the source (bug#51180).
This commit is contained in:
Lars Ingebrigtsen 2021-10-13 13:41:21 +02:00
parent 3eac7dc780
commit a338d46060

View file

@ -210,7 +210,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
(emacs-lisp--before-compile-buffer)
(require 'bytecomp)
(byte-recompile-file buffer-file-name nil 0)
(load buffer-file-name))
(load (byte-compile-dest-file buffer-file-name)))
(declare-function native-compile "comp")
(defun emacs-lisp-native-compile-and-load ()