From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2H1GHfsVemJXMgAAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 09:36:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0K82HPsVemKeIAEAG6o9tA (envelope-from ) for ; Tue, 10 May 2022 09:36:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2990E38B50 for ; Tue, 10 May 2022 09:36:27 +0200 (CEST) Received: from localhost ([::1]:42332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noKPy-0005hG-53 for larch@yhetil.org; Tue, 10 May 2022 03:36:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noKOH-0005h5-GF for emacs-orgmode@gnu.org; Tue, 10 May 2022 03:34:41 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:34336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noKOE-0008KJ-0z for emacs-orgmode@gnu.org; Tue, 10 May 2022 03:34:39 -0400 Received: by mail-lf1-x134.google.com with SMTP id u23so22061512lfc.1 for ; Tue, 10 May 2022 00:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:from:subject:content-transfer-encoding; bh=ICUJgmOyDW+/f2OjwvHYSawXBTNFTpTeJYRJ6XKOOWU=; b=kmZ9MCiIz6OyKo7OOBj5UAOQHTHiB3e1bW8Z/yVn/gA3lWP2DZOMZypSs64sN4KXz7 exp3DIAXeD+h1IYdY9mU/YGZD+t4b9zisZXhZi1q4CZ8K5W1++Gwhtewg5TlD9+j3kHB 7jyCkxLxsTJQQN37kOkm3YBffkQ+nPu0VhqqwKQ2xbyoSmWwY/UyXOKgSHe3LZXLRv1y cIc+gdSnL6jafRDT6sYlmToFhX6cNwujXH5PvJWcDUO6TsHscUpsjdBEnSxmReLCEyaM pShs6kr5o/5joi3GA1DLqYdbc4ga4iduRpSvZ9MoSgopGPWao9bHS0lzcuwzqiZe2prM wFEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:from:subject:content-transfer-encoding; bh=ICUJgmOyDW+/f2OjwvHYSawXBTNFTpTeJYRJ6XKOOWU=; b=5F47LjsRtwp4zIVnWe1MMTOK8ZUBSsiJVPDGNz+7N0KJaWT07ZxskrGXa/fXprXL3r MS7b2HA9FerUs+xpQubKSaGOzK8ZwSAXrez+sOQDObFKCraoiFsYmV/mkRSgYpFW+0sb Iaesy/eh2aJRfptpavn9OaSjqH1uzgJBu/5loqYOtOlABxwfeKPv1j84NO7rXs9ISMsd 4UqEG3OpmzRCs0AlOJJIfgoFXC3Jk9Qmeg5mylQcxrctna/XHuHOg5KdF1arLsIWIDHk aeafKQ+Ds8XgNBL3nL97GiW2P/aQktYblQhf/xdkS3o9QrSXrDFtyxePdTCqb9kibR88 KbdA== X-Gm-Message-State: AOAM533KVsmFfVnl6iUXJruMeOBeBv14FVqdKjubfY6jBNzbYsEAISfK YwIOy9p7vzw/KXezR1/VtIn/IEgYun4= X-Google-Smtp-Source: ABdhPJy7nRNMwn8e+MQhg312hqZK2NemZvMHqGj1XTjd+BnfHkkftDMFNkg85dzoIyR+Dv189kmBmw== X-Received: by 2002:ac2:5e86:0:b0:473:d044:60f5 with SMTP id b6-20020ac25e86000000b00473d04460f5mr15664109lfq.87.1652168075422; Tue, 10 May 2022 00:34:35 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id bu36-20020a05651216a400b0047255d21181sm2191315lfb.176.2022.05.10.00.34.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 May 2022 00:34:34 -0700 (PDT) Message-ID: <4f9aaa16-65f3-574e-3245-a271ba4cf7cc@gmail.com> Date: Tue, 10 May 2022 14:34:33 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US To: orgmode Cc: Stefan Kangas , Kyle Meyer From: Max Nikulin Subject: [BUG] org-babel-load-file can not compile file Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=manikulin@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652168187; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ICUJgmOyDW+/f2OjwvHYSawXBTNFTpTeJYRJ6XKOOWU=; b=D2mlHzp26AgUsIWBvlsxqSuu5m8sdgHN6GsV1PvbChkdBhwNIvAJJYzU3DlJLEOnq0LU7E cpB3OCxbwkT8Hys25RcXk62fmw6A9DegCVNk1vsiz5XGWp7nbgEm6c+4JQJFmWpYhKKGLH JzNdwjaO9fYQhHK/UBI2IiwKe1xx5wymTmNfU9y8ZEgL/czSMIhICrvUnnkiv4tDKZ+FaB D5T2qsjilRa0rVOpjAXAtss7l0eNkwCkywPY/CtD/TCeQCjEd59o9fghn/VHPoL4Ol9YUQ v6MgkgsknWtM0Z7C8XxsXmFbS2UGNpvEoyAXD9Mrc13iNyKucZfZWm5IIR8TtQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652168187; a=rsa-sha256; cv=none; b=uWjXPcuE2ErHK6TYYLcx8q3fM19rK1f0N3/LEDk5RXwvsxn2oIqpY95G0YQgL5oiN/DvqD uDteYcRJc54Uis4PRTMd1PSi1fFr5uslpxEaUhDIHrn7G1fnkbr5UYgdvJosuE3Z6Tm1Hb vFeKv4HFZuaP+vMbrzibKB2Cz1nWkfCHAPY6pJty0sSsOBDGxUy+52DIkLITzeAAmH2oXB bz3zv+wxr2C/YKVdMCL+xaYSQ+EB2CVmkBcFyBz0eG3wJeWveyahtpQZAUqN4oPNUfYRkO nz9fVZsBgnC7h6iuhZziUfNEMRREqe2/3QHr3s0usp0YMT09+77bPCHjHZOP7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kmZ9MCiI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 11.00 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kmZ9MCiI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2990E38B50 X-Spam-Score: 11.00 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: QwwicImMJPW3 Consider the following file ex-ob-load-file.org: ---- >8 ---- #+begin_src emacs-lisp (defun ex-org-babel-load-file (msg) (message "From tagled file: %s" msg)) #+end_src [[elisp:(org-babel-load-file "ex-ob-load-file.org" t)]] ---- 8< ---- Try to follow the link at the end of file or just execute the command in the link target. Expected result: the .org file is tangled to ex-ob-load-file.el, the latter is compiled and loaded. 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 > author Stefan Kangas Tue Sep 22 00:16:22 2020 +0200 > committer Kyle Meyer Sun Oct 25 01:10:16 2020 -0400 > > Backport commit 4a575eb18 from Emacs > > byte-compile-file: Make optional LOAD argument obsolete > 4a575eb18cca3eed5019f2d2d2abeea1f0c07005 > Stefan Kangas > Tue Oct 20 18:48:27 2020 +0200 > > diff --git a/lisp/org.el b/lisp/org.el > index db7f83825..73b1f9458 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -232,7 +232,8 @@ byte-compiled before it is loaded." > (org-babel-tangle-file file tangled-file "emacs-lisp\\|elisp")) > (if compile > (progn > - (byte-compile-file tangled-file 'load) > + (byte-compile-file tangled-file) > + (load tangled-file) > (message "Compiled and loaded %s" tangled-file)) > (load-file tangled-file) > (message "Loaded %s" tangled-file)))) It seems with the 'load argument `byte-compile-file' was able to load a file outside of `load-path'. Emacs 26.3, Org main or bugfix branches. Org-9.3.1 works fine.