aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-10-13 13:41:21 +0200
committerLars Ingebrigtsen2021-10-13 13:41:32 +0200
commita338d46060a89ddeb476d030cd0e18a677db8506 (patch)
tree2beade1bd26206af3f6e8cf140513bccfe25c16b
parent3eac7dc780433e2eab046e83315f1d90caf3cab9 (diff)
downloademacs-a338d46060a89ddeb476d030cd0e18a677db8506.tar.gz
emacs-a338d46060a89ddeb476d030cd0e18a677db8506.zip
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).
-rw-r--r--lisp/progmodes/elisp-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index c7474b25a78..10a37942571 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.")
210 (emacs-lisp--before-compile-buffer) 210 (emacs-lisp--before-compile-buffer)
211 (require 'bytecomp) 211 (require 'bytecomp)
212 (byte-recompile-file buffer-file-name nil 0) 212 (byte-recompile-file buffer-file-name nil 0)
213 (load buffer-file-name)) 213 (load (byte-compile-dest-file buffer-file-name)))
214 214
215(declare-function native-compile "comp") 215(declare-function native-compile "comp")
216(defun emacs-lisp-native-compile-and-load () 216(defun emacs-lisp-native-compile-and-load ()