On 11/05/2022 19:41, Ihor Radchenko wrote:
Max Nikulin writes:
Actual result:
Compiling /home/ubuntu/examples/org/ex-ob-load-file.el...done
Wrote /home/ubuntu/examples/org/ex-ob-load-file.elc
progn: Cannot open load file: No such file or directory, ex-ob-load-file.el
It seems, it is a regression caused by the Org commit
0193b543e9ef84bfefe76d55e330d5b1cb842cef
- (byte-compile-file tangled-file 'load)
+ (byte-compile-file tangled-file)
+ (load tangled-file)
What if you substitute the load call with
(load (byte-compile-dest-file tangled-file))?
I do not mind (of course if there is no plan to deprecate the function).
In addition, from my point of view, `byte-recompile-file' with 0 as the
FORCE argument is more suitable than simple `byte-compile-file' since
the former does not rewrite the compiled file when it is up to date.