emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-babel-load-file can not compile file


From: Max Nikulin
Subject: Re: [BUG] org-babel-load-file can not compile file
Date: Thu, 12 May 2022 21:55:43 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]