]> git.eshelyaron.com Git - emacs.git/commitdiff
Make emacs-lisp-byte-compile-and-load load the .elc file again
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 13 Oct 2021 11:41:21 +0000 (13:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 13 Oct 2021 11:41:32 +0000 (13:41 +0200)
* lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile-and-load):
Load the compiled file instead of the source (bug#51180).

lisp/progmodes/elisp-mode.el

index c7474b25a78237a0ab666d6949626ce2afefb88f..10a379425717f8d1db1e413caf46cab165061680 100644 (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 ()