From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id cKJtJRyXL2bCvAAAqHPOHw:P1 (envelope-from ) for ; Mon, 29 Apr 2024 14:48:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cKJtJRyXL2bCvAAAqHPOHw (envelope-from ) for ; Mon, 29 Apr 2024 14:48:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mdKmmr8C; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1714394908; a=rsa-sha256; cv=none; b=YQIxhdIf001OcAOIY+hR6XXbBsBkx5ZCVvqNnlDA/EcLoEGyrId/tm/Gre7gm3bvuWQDJg Saqmt8RN9NiackeZCcB1zt9TrXVrfJxoBOUiZDRtWfLo4LXgp+Tv8buSuJT4H9IU+DJcKy XXiFAGaN0lVTjDJLIeGjbqzkv9wqbORYF4k999Q/PMD5BnW3u459odBgJu+eSCWAHMc4ZF Lk2UF/mmiSMxIdzSmwlZ31+HMgQE/UDaqnbcIBgwi37Sb4Y/CSOFAi5RRMbFxdB8DHIjU7 0WHCm6I2JlRwnbC9kI0FfxFHW6IPjyvSuwmx13zIFgrOyoJmHZxfiSBhgpidaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mdKmmr8C; dmarc=pass (policy=none) header.from=posteo.net; 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=1714394908; 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=ZJewFgs04IH72tNYRhWKZk03jUJdgYiiHS1yge5iPc0=; b=TxUvCWoqubSPXgeBz7IqRBFRZxFlDRfVH14far5Y3c4o7Nd2TZAkALs1Wa0PI3CNcxWOVu w9VHJXyns8F2YQ53L+A6lO6ffcNLgDEK5sKlA/NxdRcQmHcYaxE+Mtk9OLhgL2rQO4lp6P Lv40OAHX9I+7z1/lbRrw3y/ZbUXhy/nVSZVjLEfU+wO/zm6NadNDh0+OM4xQdo+HVA13ax mzGvyDP7hZUD0TGBtnCz79bbOI1r13AGWUmZ1LevxOb1vn6s22i9CDv9HtUe0eA7oXy1G8 5Za/zDXouEKt9EPnjj2W9lkTPTiWUxavDbDFzl624vDYyafe2FPRiYlff8Jqzg== 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 51CBE353D8 for ; Mon, 29 Apr 2024 14:48:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1QQL-00079i-R7; Mon, 29 Apr 2024 08:48:01 -0400 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 1s1QQD-000793-Gm for emacs-orgmode@gnu.org; Mon, 29 Apr 2024 08:47:54 -0400 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 1s1QQ7-00060e-4q for emacs-orgmode@gnu.org; Mon, 29 Apr 2024 08:47:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C04C0240103 for ; Mon, 29 Apr 2024 14:47:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714394864; bh=fGDvAAokd4Xqc2M+YO2bI6qeuCl/prZMwW2i+GC/6S0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=mdKmmr8CsjqOtc8dhG+0ftfMT2xNX7YrZKj7KhdyLcAsMI2LW/x6EYJZ9oypAwcGB IsqNfnkCMuOyHbEfqs9YN9VDgUo/QnD+LxPxIhU1xctHisYxvSIclj/92SHUvPa6Mq Mjs15DtJOuYNi0Bk/UOx0cRhApmyjgFIDs0nzaDHXijJTcYdaXOa3rEgG91c9ugGpe qbca7+80ZI/wuJGy0DytEdfEYqN6X+8JDBl+jm5Nk9NGTW+kOnfadtSdQcZ2nPlJAn qq5G8uM5H5xFL/f5OW77yuCC1+WvNjkYiNgmDMoL4qT61N9Q2C9Vu5qAgYRJxm7sMs PUv1CUPCTHZXw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VSjlq4768z6v08; Mon, 29 Apr 2024 14:47:34 +0200 (CEST) From: Ihor Radchenko To: Greg Minshall Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)] In-Reply-To: <182617.1714330440@archlinux> References: <139512.1714212352@archlinux> <87o79tk6w0.fsf@localhost> <182617.1714330440@archlinux> Date: Mon, 29 Apr 2024 12:48:39 +0000 Message-ID: <87cyq8cp20.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Queue-Id: 51CBE353D8 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.61 X-Spam-Score: -8.61 X-TUID: 2Ut0EnXJzQcc Greg Minshall writes: >> This is because Org mode currently cannot distinguish between babel >> backends that simply do not support variable assignments and babel >> backends that are not loaded. > > currently, is it possible to see well enough what is going on to > generate an error and abort the tangle? > > (off the top of my head i would think a `:var` in either of the > situations you describe might be described as an error -- albeit a user > error.) Not necessarily. Consider something like #+property: header-args :var common_variable = "foo" #+begin_src elisp (message "variable is %S" common_variable) #+end_src #+RESULTS: : variable is "foo" #+begin_src python :result value return f"variable is \"{common_variable}\"" #+end_src #+RESULTS: : variable is "foo" Below, ob-dot does not implement variable assignments. Throwing an error here would be unexpected. #+begin_src dot :file foo.png digraph G { a -> b } #+end_src #+RESULTS: [[attachment:foo.png]] We may, theoretically, only throw an error when the variable assignments are not inherited, but that will create even more confusion - sometimes, the error will be thrown, and sometimes not. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at