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
This commit is contained in:
parent
f8bb414615
commit
4fe59b688f
|
@ -247,7 +247,7 @@ byte-compiled before it is loaded."
|
||||||
(if compile
|
(if compile
|
||||||
(progn
|
(progn
|
||||||
(byte-compile-file tangled-file)
|
(byte-compile-file tangled-file)
|
||||||
(load tangled-file)
|
(load (byte-compile-dest-file tangled-file))
|
||||||
(message "Compiled and loaded %s" tangled-file))
|
(message "Compiled and loaded %s" tangled-file))
|
||||||
(load-file tangled-file)
|
(load-file tangled-file)
|
||||||
(message "Loaded %s" tangled-file))))
|
(message "Loaded %s" tangled-file))))
|
||||||
|
|
Loading…
Reference in New Issue