emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 a338d46 2/2: Make emacs-lisp-byte-compile-and-load load the .el


From: Lars Ingebrigtsen
Subject: emacs-28 a338d46 2/2: Make emacs-lisp-byte-compile-and-load load the .elc file again
Date: Wed, 13 Oct 2021 07:41:38 -0400 (EDT)

branch: emacs-28
commit a338d46060a89ddeb476d030cd0e18a677db8506
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 lisp/progmodes/elisp-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index c7474b2..10a3794 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]