From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iOvtEYwSb2UfqAAA9RJhRA:P1 (envelope-from ) for ; Tue, 05 Dec 2023 13:07:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iOvtEYwSb2UfqAAA9RJhRA (envelope-from ) for ; Tue, 05 Dec 2023 13:07:40 +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 0F4CA35DCD for ; Tue, 5 Dec 2023 13:07:40 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Oe90PmjK; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701778060; 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:dkim-signature; bh=ZAmU9Zt8sk4H0HiWM4fmpvdjn3gLavAFn/68uWfO6rQ=; b=kuQLRq4qeJxYyw+Wy4huMSbL+TIob5eXEFwjVE38oBzGnH7G176e/fufWyJFqhPKG1sKGR eaX65AtZ4r9/GUzu6VErEYUtg1ynsxbqRJPOf/1JlYfNtTYlKguLK3wQ/nl6mbG0lJBgy8 umHqtw26y5x7AJpttM50lSp/vEy0mGhypPGUlf7tGklTRreWhWSx7d2Ams6WqhqiUVBkr0 6gV1PLMAyanXT92RL4RU2sZoGQ8YB1pKUwvRlJX1YwrqbDXfM+BJ6ddsfVoawcegf8Jnnt VFHrd3QZ1JsUoDEk3jzENHFujp8rA+tIYXipoMW6VWejgWjAlxU6zrtO5Lo73Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Oe90PmjK; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701778060; a=rsa-sha256; cv=none; b=mQey+lZcRHXQk7WyC/4uPDx5h8o+v5Fg4ulMzicivEdR7nCPHy/fslkGONTLROtUi/0kin 8q0pjICog0xnEFxVGX0nP3gvRH6o736JEflISR1yP8F74YKoW3oocgmtSpaozCBhHRcSlo wP/UM0poyAJ1/K3gafdi5Evw24dex45sFz183OXSqTuyMSbvVOLyJ1WpJKz69I3HZyGd2m yJ5rXK5c2yIF0VgTskSvP/Eu5fcsr/NTMLrkgZpyyVeCc69lxkebN7Kz5grFKojz3qaHZq t1gl/oBQZjmtNqFQ0WdnkADD57YRevfaxA5rRxe1/tXL+qaLZBe8LdDTKafg8g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAUCM-0006fv-3h; Tue, 05 Dec 2023 07:06:46 -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 1rAUCH-0006f4-UK for emacs-orgmode@gnu.org; Tue, 05 Dec 2023 07:06:43 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAUCD-0006pb-Vh for emacs-orgmode@gnu.org; Tue, 05 Dec 2023 07:06:41 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B13E0240101 for ; Tue, 5 Dec 2023 13:06:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701777992; bh=ENk5hnIGFfQUdPHlH1g2Nw4eibd7Vr1KZtK5BNm0ryA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Oe90PmjKoUeABG0W7Oh0ZuW2bDwuW/lwu+dEFzFG8MOQF9dtkDazlj3ZGaBPp4zhl lJDqFnRPHDksZ4/L7SKEei3l3OAaAPoNfPFKQ2SWdkx25cdOiao07jL8a4fnf3tDxl dYaQgidtVZpky4+vfXvWQ1g64fYFjHibXQTrNLk8V5vgz9Tr1R7miM+vyenvHTr9DX ccvzbz3ca1kh0mSxcTTpfD4JvzjJlMC3hPzAYciWz8ZX+sfVax8Vc5rzNPIQTTg9ER tW2dRfoidBWh6SR+Ks9AXLzo/uXsi9f11obeEcf2W2MBPeNaKPvpSXzRkq8V4qN2Ed Xc9X+DNrq9ohg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Skzlr1gPXz6tn4; Tue, 5 Dec 2023 13:06:32 +0100 (CET) From: Ihor Radchenko To: TAKAHASHI Yoshio 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: <87il5phuib.fsf@yfb02119.nifty.com> References: <87il5phuib.fsf@yfb02119.nifty.com> Date: Tue, 05 Dec 2023 12:09:31 +0000 Message-ID: <87v89csves.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 0F4CA35DCD X-Spam-Score: -6.99 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.99 X-TUID: iO878tVsmT7K TAKAHASHI Yoshio writes: > When org-babel-tangle-use-relative-file-links is t (default), > org-babel-load-file ignores any source block that does not have `:tangle > "yes"' or `:tangle filepath' header. > > Even if org-babel-default-header-args is changed like > (setq org-babel-default-header-args > (cons '(:tangle . "yes") > (assq-delete-all :noweb org-babel-default-header-args))) > , the result is same. This is because the default value of `org-babel-default-header-args' already contains (:tangle . "no"). So, you end up with: ( (:tangle . "yes") (:session . "none") (:results . "replace") (:exports . "code") (:cache . "no") (:hlines . "no") (:tangle . "no")) As internal implementation detail, Org babel prefers the _last_ header arg value in the above list. Which is why you end up seeing what you are seeing. Not a bug. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at