From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QWN7A3KMWGHJXQEAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 18:44:34 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YA8BOnGMWGFkCwAAbx9fmQ (envelope-from ) for ; Sat, 02 Oct 2021 16:44:33 +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 aspmx2.migadu.com (Postfix) with ESMTPS id C7F282E97E for ; Sat, 2 Oct 2021 18:44:31 +0200 (CEST) Received: from localhost ([::1]:49360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWi7i-0004ht-QW for larch@yhetil.org; Sat, 02 Oct 2021 12:44:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWi72-0004hg-41 for emacs-orgmode@gnu.org; Sat, 02 Oct 2021 12:43:48 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:34419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWi6w-0006Oy-6v for emacs-orgmode@gnu.org; Sat, 02 Oct 2021 12:43:47 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id E4E892B01296 for ; Sat, 2 Oct 2021 12:43:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 02 Oct 2021 12:43:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arfer.net; h= from:subject:to:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm1; bh=tsNzHZZpMaZYSjXweu/ZsEnLUP Ss8nCiCj0IsDYLKQk=; b=hj/3GMkRQFbydqjbl+DGiUKxxifdJIHgkmdjbFj4+7 ma5lzgwqJcF7eXdglDdrnA+/3GMmF0OfKEF0zb+zBg/7L73JkDMK5yUas/hpg9FR WWTuiaiftv16bRyVcMNbHnpR1V2JjBJKnj2wQAxUL+CMWzVoT6n9EA8rQ/Kvz91D UmXKDbi5BT4xYuEUblx9nH5izeKU9UeVXjBCrzuIsdrytrKMvw6CjU/qeE+IPGKp mJCKrJnrhuX8/TGw0ckaFIvhrsv7jB97m52t9d9qh5oVdVTlAMVlUQm+ebunQk3Z OeK9VvvoKvW+cw+m41NTgpFBg6+lMEH9AzCrNC9SDg7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=tsNzHZ ZpMaZYSjXweu/ZsEnLUPSs8nCiCj0IsDYLKQk=; b=i97lhOM+Nk3DkyquEANYx4 SZp7Oo501M6JPpXS2YcRGEIfyJ0LL7Y7FbcMYWoHFxSIb1JytTITrSU6/008DqEA wcCYtFuVUZxcZdoqqGKdZZrRid3cTrr6faNSdsiS6UnBn27FGVzBbiV/a2Fvd3pQ sroLlvgU3xnotjWXXbgNKRkDaC8DMBLdzDdWQoYCrgFL3iFLCtIT/0gHNAN5b4As OK3fgmE3ZPzUNGZ+EZ8w2ERI8zOoiOFBwHlXWTXxUVOAem6ZV+y0xO8rkQB64gRy AfHIK0sVAGYXomOvPRl7l99TUzUWAsBhy2zTZzJOBRlSGjDUE0HspmFCLROIFJaA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekkedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffuvffkffgfgggtgfesthejre dttdefjeenucfhrhhomhepmfhoughiucetrhhfvghruceolhhishhtuhesrghrfhgvrhdr nhgvtheqnecuggftrfgrthhtvghrnhepgfefvdffueeitdfgveelffettdehvdfhhfeuve dvfeelteeugfejgfdtvdeiieehnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlihhsthhuse grrhhfvghrrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 2 Oct 2021 12:43:39 -0400 (EDT) From: Kodi Arfer Subject: How is the return value of `org-babel-execute:FOO` interpreted? To: emacs-orgmode@gnu.org Message-ID: <801012e5-9500-d5b8-b772-4a2df92f200e@arfer.net> Date: Sat, 2 Oct 2021 12:43:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 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.27; envelope-from=listu@arfer.net; helo=wnew2-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, 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: , 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=1633193073; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=tsNzHZZpMaZYSjXweu/ZsEnLUPSs8nCiCj0IsDYLKQk=; b=kX0dOmvx5NzQW0Au81IMGMZA+/ctbOFlBphIu+3QmccJGyn2F94ixCG/4xX1OeK24alQLJ dzwedUtDO+dO/wc0sKnvG/D4cwrtwGiBEYz8yVhMHd0+7ogpQjzbsKe1Qe0J14ufm+mPna khgmjnZImtQ5xK6n1YresyZ1WzzhaYEmd64c+Fuav8+OJ4N0klhRWdBxCUIIvFxeU3eJt2 mfShzF0xuLSNnB/DXJ41MFyKTlFtEwibWVDHlYtE/MZo7l2obi0oYOVBT3PwNZWhv3fcdl NAa7XdVN/+EMfOXpDF+LzBRbG11wsCorRfoH/Z7/rWuOr4cL3mqz099+QAqb7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633193073; a=rsa-sha256; cv=none; b=KHd2+x9UXCvLQ11R1yOU4DMvB7EXxYJCX7hdOymSRuQb2bdeMfpCb7HyZgIQZSzo4Vx3BM FqYE9E8Dc8fojr4ebuA1WcFghIhCLf+ch1D0DZxVlw8+3RzgxIlTBQwVeE37JSVUv5k/FY o4kZv9dvg5Bh7vVDNKOitq5lBHaxznbdM2c1YeJ40S9QHAFLDuOjLKolCmigbijoJWiofn rvCoGw7Ix6Gi2dpOTnjE+pKVper8v4EB0a8zTE12bLtlQhEaHvvH5SQbInGtU3B9syus+d UHh2AWMEdiekjbDxylyO6iE4i71uJBW4OBUy/wKoO3vpnUNHytXW6cLnjsA/+A== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=arfer.net header.s=fm1 header.b="hj/3GMkR"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=i97lhOM+; spf=pass (aspmx2.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: aspmx2.migadu.com; dkim=pass header.d=arfer.net header.s=fm1 header.b="hj/3GMkR"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=i97lhOM+; dmarc=none; spf=pass (aspmx2.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: C7F282E97E X-Spam-Score: -1.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: vAvTWbVtBt6g I have an `org-babel-execute` function for the Hy programming language that seems to have partly broken when I upgraded Org (from 9.1.14 to 9.4.6). It has code to write a plot to a file when a `:file` argument is given to the code block. It returns `nil` in this case, and previously, Org would automatically insert a link to the file in the results block, as desired. Now, however, the `nil` is printed in the results block. So I guess have to edit the function to return a link instead, but I can't find documentation for how Org interprets the return value of an `org-babel-execute` function: as I vaguely recall, you have to use a certain cons structure to produce a table, another to produce a link, and so on. So the concrete question in this case is: what do I return to put a link in the document? Here's my code in case it's helpful, but it isn't pretty: https://github.com/Kodiologist/Daylight/blob/37e38d216ffe41ad3537522c40ccf1cdb134bbbc/daylight.el#L430