diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 0c4a9bfdbe..db3592b903 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -2145,7 +2145,7 @@ current buffer state and calls REPORT-FN when done." "--batch" ;; "--eval" "(setq load-prefer-newer t)" ; for testing ,@(mapcan (lambda (path) (list "-L" path)) - elisp-flymake-byte-compile-load-path) + load-path) "-f" "elisp-flymake--batch-compile-for-flymake" ,temp-file) :connection-type 'pipe