From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CNiVG0bEcWXcSQEA9RJhRA:P1 (envelope-from ) for ; Thu, 07 Dec 2023 14:10:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CNiVG0bEcWXcSQEA9RJhRA (envelope-from ) for ; Thu, 07 Dec 2023 14:10:30 +0100 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 562663E7CB for ; Thu, 7 Dec 2023 14:10:29 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=nifty.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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701954630; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=5tPEr6eHU58+lhw507QUdg9E1VH8Q5VzqGjMWu+FTa8=; b=CvGaDWxcCIbaTM1UKBexpVEYfwPuNbiPqM6tui5u1mEEeLJqMFk4RUhj8M8Sti7std6zpi 4xoggfTUu1x3pzYfBtJ65O3+rWHK8G04oH/Fmgc1ytVuTU5Vz9vGHBVo6S/vTIxrmsRxhJ i3ZX8gNSKA4/bRwx3nolFRMgxbmsAAPq4ZkohUiuCuAnpZACI+BHHgFQt3Miq8xEWXq3/9 Ik3eqfxWxjGZgfV6liBZju5ll9M7hsOtymMkUMG1JK9rucev2UwhGqZII7sAXrwqqa6JNP 2p7AUTcZH4iOlyegK898B453I+TCzGDQL/rKwZOobTOKsAUQiCZOlFOT82bD2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701954630; a=rsa-sha256; cv=none; b=Mo58ERuZnEijGSUHQtNg34glZkRASRV7fGBdobitIaPyuCm9H/Cx4yhovIx3e0bljxfDRR 5UdQxaI4wFCxlWFcha5SlWkVjZoEly1hup+LRTAIs+5fOs8taKgTlwvJZ+BwzTTYlLanzk JYZBmuXQIJVXcF7IFVkbaVELmiMojH6USvFFFsU2qYaAiVBCswvNoZpm2SgtauOpY0+OoK ANylpWDpgQ8odjoRn05efptSSjxo2+ate9PEFRe1f+HDECCTRISE8qTZW/e+m1yfX5afyD JJlLAOUev3UWIqLL5zy0i7K/VpigwaEvBQaaUla7ly3sUN0xnZkED8qSDWSZtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=nifty.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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBE8M-0007EO-Ol; Thu, 07 Dec 2023 08:09:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBE8K-0007E7-Mk for emacs-orgmode@gnu.org; Thu, 07 Dec 2023 08:09:40 -0500 Received: from mta-snd00003.nifty.com ([106.153.226.35] helo=dmta0005.nifty.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBE8G-0004Jj-70 for emacs-orgmode@gnu.org; Thu, 07 Dec 2023 08:09:40 -0500 Received: from LAPTOP-89LTAUNV.yfb02119.nifty.com by dmta0005.nifty.com with ESMTP id <20231207130927345.LFTV.124375.LAPTOP-89LTAUNV.yfb02119.nifty.com@nifty.com>; Thu, 7 Dec 2023 22:09:27 +0900 From: TAKAHASHI Yoshio To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-babel-load-file, org-babel-tangle-use-relative-file-links and :tangle header [9.6.11 (release_9.6.11 @ /opt/emacs/share/emacs/30.0.50/lisp/org/)] In-Reply-To: <87y1e71nts.fsf@yfb02119.nifty.com> (TAKAHASHI Yoshio's message of "Wed, 06 Dec 2023 22:07:43 +0900") References: <87il5phuib.fsf@yfb02119.nifty.com> <87v89csves.fsf@localhost> <87y1e71nts.fsf@yfb02119.nifty.com> Date: Thu, 07 Dec 2023 22:09:26 +0900 Message-ID: <87h6kuyxa1.fsf@yfb02119.nifty.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=106.153.226.35; envelope-from=yfb02119@nifty.com; helo=dmta0005.nifty.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -5.86 X-Spam-Score: -5.86 X-Migadu-Queue-Id: 562663E7CB X-TUID: 3ictc0pdbLho TAKAHASHI Yoshio writes: >> This is because the default value of `org-babel-default-header-args' >> already contains (:tangle . "no"). > Your explanation is very clear. Thank you. I did some tests. Please check below transcript. I expect to have the same results in bloth case. tkh:~$ cd /tmp tkh:/tmp$ cat test1.org * test1 #+begin_src emacs-lisp (print "1") #+end_src #+begin_src emacs-lisp :tangle "yes" (print "2") #+end_src #+begin_src emacs-lisp (print "3") #+end_src tkh:/tmp$ cat a.el (require 'ox) (setq org-babel-default-header-args (cons '(:tangle . "yes") (assq-delete-all :tangle org-babel-default-header-args))) (org-babel-tangle-file "/tmp/test1.org" "/tmp/test1.el" "emacs-lisp") tkh:/tmp$ emacs -Q -batch --eval="(setq org-babel-tangle-use-relative-file-links t)" -l a.el Tangled 3 code blocks from test1.org tkh:/tmp$ cat test1.el (print "2") tkh:/tmp$ emacs -Q -batch --eval="(setq org-babel-tangle-use-relative-file-links nil)" -l a.el Tangled 3 code blocks from test1.org tkh:/tmp$ cat test1.el (print "1") (print "2") (print "3") tkh:/tmp$ -- TAKAHASHI Yoshio