From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oCXMDuqSWGFCagEAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 19:12:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sPlfCuqSWGEjPQAAB5/wlQ (envelope-from ) for ; Sat, 02 Oct 2021 17:12:10 +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 15C4333530 for ; Sat, 2 Oct 2021 19:12:09 +0200 (CEST) Received: from localhost ([::1]:41164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWiYR-0003QT-AQ for larch@yhetil.org; Sat, 02 Oct 2021 13:12:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWf3C-0004xA-MZ for emacs-orgmode@gnu.org; Sat, 02 Oct 2021 09:27:38 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:36771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWf38-0006D8-35 for emacs-orgmode@gnu.org; Sat, 02 Oct 2021 09:27:37 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 2F72B2B0094B for ; Sat, 2 Oct 2021 09:27:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 02 Oct 2021 09:27:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arfer.net; h=to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm1; bh=tsNzHZZpMaZYSjXweu/ZsEnLUP Ss8nCiCj0IsDYLKQk=; b=IcKiRxfszMkMXm0jyQFlkcJ7+VAdIlNT1arP92B153 cc0Cl6KXLujMWk03tEHd2knpwo06wtgZvdv8TmYJXYyixwfDan724OOJE7PPqlAA kBFcW26zqGazOKfHeG9MHgiN7lZxQPEe6uUJOYckcbM9xge8VjrcdQXQIxmABg9a aglnlSu62c+iwFGFSXYZDzxV8miOjgc+yP47xHEjACHPxSXEUY9m9Dz7I4b78wjd 9EfVPb/O1cXvWWP12es1ubpYVqzApwQbOGBjxBQSik69qLyfGKxvCYpu7YCTgcjg S3/BPSoqGjK2p/uzh4Mb9avZgW2zZjKJA2e0YmrJV8QA== 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=bEPW3i05PFvsielavCI+vi 7HbyLeRZx4uPZyMVzLR10YIJUcK/X8r5SXFxUEQCORWusl1c7lEL2NoClooNXjYi 3JqQNdKOIJAqkpBcEDOPNl8pLR5OKDrGFUCu8NOijSB9ZhU8Fo2L1mxpy2/9Ff1K 3wagJESawu1x8H0YngRQ5Y4wZZunbjRiz2KX07QvOPxUNnAjJCS1L2icCGqCKVGZ 6dQMYG8nx5QzHrq3jbLTNId7K3YfywRXdw/KbzvRtxnBKh/A5aq3VYqhMcZQY8uS 5jaFbJrrNYuldieDBoqAxABi7VD9f51JA18j46gDum9NfwhYGpbeTGb21o0BAZkg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekkedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefvhffukffffgggtgfgsehtjeertd dtfeejnecuhfhrohhmpefmohguihcutehrfhgvrhcuoehlihhsthhusegrrhhfvghrrdhn vghtqeenucggtffrrghtthgvrhhnpefhvdelleelheekheekveeljeefteejteejlefgff ekhfehkeejheffudettddujeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhishhtuhesrg hrfhgvrhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 2 Oct 2021 09:27:29 -0400 (EDT) To: emacs-orgmode@gnu.org From: Kodi Arfer Subject: How is the return value of `org-babel-execute:FOO` interpreted? Message-ID: <5f9d6ee9-f5d1-453b-2fb8-f48b7fbd6840@arfer.net> Date: Sat, 2 Oct 2021 09:27:28 -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.18; envelope-from=listu@arfer.net; helo=wnew4-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-Mailman-Approved-At: Sat, 02 Oct 2021 13:11:03 -0400 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=1633194729; 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=Uueo5uXleNCalAFla6wZo40JZbJ6I1aRWzuKcVbfUspe1PZ2RrkuM5RlII2suDIEmViMX9 7/rxhLNxcWm2x5yasvyegwiIq+INKOTG1PYq0A5mxEo+Ik3VzosvO06tZtW+EkW22lumEt q0hTtaf/etxaH4tT8VMMu/1sJDTfG2ZkArOHT5+ryQvZtPvhYHvc8JgYHz4tdzST2T+cfR cVeNABpYAbBbqJA+yQTqkYJhvamy6F9FkwXU9NcD0DhHAQZj9/Ww+IqCnzVTbIgRr0V1dP mfP+RtFGkZYnlA3HyN26Ltecfwncrz3FSeCixIkix/KZdCQXvKdDdZ8SYhgkFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633194729; a=rsa-sha256; cv=none; b=qI4NnOisOABGXUKYmQsa4pEvvCgSzz5ZVCGLeQQ+k0Lrx158GvHxPU8LAVnPSIhwgkgHBQ O8Bh4MQNL5rwWgMhD8vCH4Dgr9yVIn1zC9V9tQ2HofoEG43TLo+OZoiso3/fnLi6DCVmR3 z0hDj9vtQ+4NNPRJVeBIWJNl6r5skokzDP5EuzIsDGf+5KbqiJE8dll2PwMhhxG4aCUryo baQTXk5GDuXvbNbH/Nl6jtMY4NpdDF3g76DRTsUJbiPuDdSQ2TV/F0N4DB18Eo55kbuocE BRHZRztWNGC+uggN+O87OkHGTQKMEc/DgNi4sec7xeD3Q4F7MRiKsfbZ9Z49Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=arfer.net header.s=fm1 header.b=IcKiRxfs; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=bEPW3i05; 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: -3.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=arfer.net header.s=fm1 header.b=IcKiRxfs; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=bEPW3i05; 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: 15C4333530 X-Spam-Score: -3.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: PMtl7bk6Y/86 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