From 4fe59b688f09baed819a508dc18f0e41be05aa77 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 13 May 2022 18:20:29 +0800 Subject: [PATCH] org-babel-load-file: Fix loading with non-nil COMPILE argument * lisp/org.el (org-babel-load-file): Use correct file name to load compiled file. Fixes https://orgmode.org/list/t5j75h$dbo$1@ciao.gmane.io --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index e0144605b..253581cb0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -247,7 +247,7 @@ byte-compiled before it is loaded." (if compile (progn (byte-compile-file tangled-file) - (load tangled-file) + (load (byte-compile-dest-file tangled-file)) (message "Compiled and loaded %s" tangled-file)) (load-file tangled-file) (message "Loaded %s" tangled-file))))