From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UDQfJfimWWHmigAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 14:50:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +GXCIPimWWGqEgAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 12:50:00 +0000 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 0453F14EAA for ; Sun, 3 Oct 2021 14:49:59 +0200 (CEST) Received: from localhost ([::1]:38290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX0wI-0008Gy-6e for larch@yhetil.org; Sun, 03 Oct 2021 08:49:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX0vf-0008FL-KO for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 08:49:21 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:58281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX0vd-0003RF-GW for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 08:49:18 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id 70D7E2B0092E; Sun, 3 Oct 2021 08:49:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 03 Oct 2021 08:49:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arfer.net; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=K YqLVtv725CEVF5L4LDKroOzB8KkXnVWl+ZUHFWUPRA=; b=RusrKeWVpxESqTvdq Zbm7Jvx0rl/jAVU7JtqFhPifxp6N5gUskymny2dCoCd6yllab7tULCtq4unVlu8R umvvCQHItxRew2ooL/ANOgCnDlGPNoJnO3DVqIzq3M9V5Nj/fW3SEy3pmJ4L8LIl miwqAtobOb3tXnrv0/JSqWsh3/0yuLnGCM1b+fPnrvJTBucPbNAE0yWkZnJY00xJ FJqBb4WG4vUXaEoALqHDWqAJCsW4kdfeo9YptyA+6oOA/yymeixKluAeuPBHEKCH q+Ch8yNss/uCc4MXitldWkzFIS04ghSZzCe93JuSTuJvbqG28gIPo8wHKXRNeG6m Ellmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=KYqLVtv725CEVF5L4LDKroOzB8KkXnVWl+ZUHFWUP RA=; b=Eqp65ccm0YgAEDczdOyZrw12egRbpFthSirAnSL6c0/ENyQCVB7JDhlO6 OLXsPyGyS+2EZBIP5ucFJGYWNAmxISWeUClRU6KEmaKtQJJwLKQh8YD3hknOHPBF SW9j+HauHdLuwbmrHO58R5vkhI/YZKUsfKo8uPUiDixQqP5mxmJbxhpgqGCcVmc2 M4sg0dgA6pToKgRwvNjgCkXAOcCqd+DQ8NH5EYzGR4vmSHOAGen5vws6mC81M7Oq aDfDgXm7yx1chRxBQ78IHHmYDVTaF8fvZ5wmpReURUyGJhJjB2VuicOIN6jCdFyx fGoJ/rwOpCkM5DVvJQLqY9sVkoOqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeltddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpefmohguihcutehrfhgvrhcuoehlihhsthhusegrrhhfvghr rdhnvghtqeenucggtffrrghtthgvrhhnpeelgeeuhfelieffgffhieekheegtdelkeduud fhkefhffdvtdfguefgveevfefgtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehlihhsthhusegrrhhfvghrrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Oct 2021 08:49:12 -0400 (EDT) Subject: Re: How is the return value of `org-babel-execute:FOO` interpreted? To: Ihor Radchenko References: <801012e5-9500-d5b8-b772-4a2df92f200e@arfer.net> <87bl46e9dp.fsf@localhost> <871r52e1v9.fsf@localhost> <87v92ecmeu.fsf@localhost> From: Kodi Arfer Message-ID: Date: Sun, 3 Oct 2021 08:49:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87v92ecmeu.fsf@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=64.147.123.17; envelope-from=listu@arfer.net; helo=wnew3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633265400; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KYqLVtv725CEVF5L4LDKroOzB8KkXnVWl+ZUHFWUPRA=; b=U0AY2XoQY6d3JJAB+RFknIgkxgwhuwATSwj42niWrVpruUkSBOh5B6PTbtvxwUM9T/qa08 snN5gfi8ekZGnw03zObON4jKmxntzjxR2qRTgeV9cNQbp68NVR3VcZQJxI9ktfnxe9JWQv lkTJxPLdV+ayKq6dnJeGZVTTValO/dBHmB7wnCPKIk8SPoKvJzQ/tZoQXoRk4h29ceO1DJ rB/z3Mo2BIO3SC/VN2sswCQEyWd2ZjuFxUc3T6OfwppLeml1LpJcjO3kO/Q/1XXN9O5Dhd PC1+q8Hiw6bP9B6+lVmnZpFA69LeDbxgXQ3g1osPpvCrfQXy1SrlSRoS+JgwYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633265400; a=rsa-sha256; cv=none; b=HU0tBgAJbDkgddaJLd0ZAG9oHi2/MUxbNaqm7YhR9yIL8IVYZa5pIZ56IitpM5FuhUM4N3 QzCESA38GwiGoUf4v4uwO1euGZofJ0r/6Y+jBh2u0mhcvUgDPKLMS2uJXU3/Oq9Exs5yF+ iCF0yqZlbe120+QEvM8O92QUTziPKMFuoWi3PbWCPI33A67/MI/cNZaRRsGT1IUcyI6+g5 Vek0DiMc77Q7S1+X3VMDCnOUnBicOAgE7pNYC7DNKCM2mMBI7sgyT7iktTBmYXInU1ZYrY uv2C1WpcWotIDp56h9f0xA21goEbdVh6XtKe+Y/kqYeBMTHW1oK20kJtixGPvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=arfer.net header.s=fm1 header.b=RusrKeWV; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=Eqp65ccm; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=arfer.net header.s=fm1 header.b=RusrKeWV; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=Eqp65ccm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0453F14EAA X-Spam-Score: -1.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1uOqruPttCc/ On 2021 Oct 03 Sun 8:39:37 AM -0400, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> Kodi Arfer writes: >> >>>> Are you sure that you have :file parameter in the source block you tried >>>> to execute? >>> >>> Yes, this is my code block: >>> >>> #+begin_src hy :file g/foo.png >>> (plt.scatter [1 2 3] [4 5 -9]) >>> #+end_src >> >> What about >> >> #+begin_src hy :results file :file g/foo.png >> (plt.scatter [1 2 3] [4 5 -9]) >> #+end_src >> >> ? > > If this code works for you, the problem is the folloing incompatible > change in Org 9.3 (see etc/ORG-NEWS file in the repo): > > * Version 9.3 > ** Incompatible changes > *** ~:file~ header argument no longer assume "file" ~:results~ > > The "file" ~:results~ value is now mandatory for a code block > returning a link to a file. The ~:file~ or ~:file-ext~ header > arguments no longer imply a "file" result is expected. It works, thank you. I should've looked at the changelog more closely. I wonder why this change was made. It would be annoyingly redundant to put `:results file` next to every `:file`. I already have code to change the default value of `:results` when `:file` is set, for a different Babel language, so I should be able to adapt that to this language.