From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +KbfCBIKn2OKKAAAbAwnHQ (envelope-from ) for ; Sun, 18 Dec 2022 13:39:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cNMECBIKn2OwZQEAG6o9tA (envelope-from ) for ; Sun, 18 Dec 2022 13:39:46 +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 E3AB63BC28 for ; Sun, 18 Dec 2022 13:39:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6swI-0003lU-Qi; Sun, 18 Dec 2022 07:38: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 1p6swH-0003lG-6Z for emacs-orgmode@gnu.org; Sun, 18 Dec 2022 07:38:45 -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 1p6swF-0001wa-A6 for emacs-orgmode@gnu.org; Sun, 18 Dec 2022 07:38:44 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ADB33240101 for ; Sun, 18 Dec 2022 13:38:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671367120; bh=iIoRPmuKjAdkkX/3aRnzxhIRhFJyGPHM3gFjtwFTwwc=; h=From:To:Cc:Subject:Date:From; b=koTI2wlR4/68IHPNOimJ2LxbmGm6ZTOljsiiVv3NW1A+/bCJHXENm4A1MXUBsjmdc HFw5jg1GYcNmJUo6hWTVyl8n4i7q6JtCx2dOtW7I0xth2oUHZiHBB3jAWjOFkiCwas y5WJ85VKiEGJA0l/ZBwv/vf3ZTxgpr3aiufs4ncCvoiGFyQlR52A4aMoHBxv4bcf0S hd0rVTwm7lXV5/ak/yzqZf6Wnbl2iXth+jQBhpdfi6JVq2yaxsN+dPnpw9TtPdtvo4 lfjhifBCJVfDYbRjZuhDs2MdeVbTUBodyVT/rz+bFEjdIxklXG5I8JApOov77IqGMw PqlVB96C3wflg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NZj7M5Jb4z9rxD; Sun, 18 Dec 2022 13:38:39 +0100 (CET) From: Ihor Radchenko To: dalanicolai Cc: emacs-orgmode@gnu.org Subject: Re: [FR] Add support for racket images in org-babel In-Reply-To: References: Date: Sun, 18 Dec 2022 12:38:34 +0000 Message-ID: <87mt7k7uph.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_H2=-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 ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=koTI2wlR; 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=1671367185; a=rsa-sha256; cv=none; b=ny2nKeEDEAiT1ZQXzCFg3i61W/1XFi/H974n2LBRZV5/daqLS9NwsNLhyCAvkpdXVTL0pp hXJB9FdlZ8clqtJzxwjddPkk7ISOn/uC5oW/X702O9jQuCSkB7Zx3jTZdWwZ/L6s4VjnL8 bzzbI0NGIEPc+A0HDrvnuYqaDqMMFZndxNt7r/iABku61cWrMpjFWhVccEraukaMnS8bMM TitLIKIF9P6bB3APIpMNXFJ6mC9YsCrPt72jY3yGi1U5WlRvB9vAUeFEXtoYccsk19GJC8 Nj9O+GOwy4vm5mNcO6LI4wlCBrC9ZUq1wf3WqbXysjIE+QhDZZeCz4+NrEngBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671367185; 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=mX7W7SFKLNpfqMB7vgcI7xmMA5+hvZ7KoTKJB0QyLF0=; b=a1wiaggPB1q5o7SyxKOhp3vfEu5Pb/YSi0YvXHTx0q9YTra6ZWnuE8DpjsjWp4nkH539s3 E+KGeJCDpn1YKmyL56mTOZm6B7djiXdlzOrrpjLzsvV00ASsjjW10gYzDGZXdYllJv9HFt eSsgLRdeA8/rtqh93YNuDpgeKJKoudhujGs1yvzyaTrcWHM2OsmLsF6E8WjdE/NOyDlJwH W8Iu4jPC8Y5GU64tLyrOaUMlu5oazdaztjVeZd0zkbAoH+7cBPIRRx+2lCrTOG4I3b91WH jBYXI+YikXdCcgZmy8Qc5G5fjaJK+CWkHxAo/EhsqYrhBHFDApNa94cs+v3a5A== X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=koTI2wlR; 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 X-Migadu-Spam-Score: -9.40 X-Spam-Score: -9.40 X-Migadu-Queue-Id: E3AB63BC28 X-TUID: 9X+VFVTOuJnS dalanicolai writes: > I have not asked anywhere yet, but I do not know a 'standard org-mode' way > to make org-mode show the plot images. Racket creates a temp image file and > returns a string that includes the path to the file. The actual format of > the string is: > > "\"#\"" > > I could create a patch for it, but I am not sure how to best implement it > (in a clean way). You likely need to extend `org-babel-scheme--table-or-string' to understand Image: type. > however, it would be great if support could be added to ob-scheme itself. > I would be happy to do it, but as mentioned before I don't think I know how > to do it in the proper way. I would probably just add a condition around the > 'result' in 'org-babel-execute:scheme' as follows: I do not know much about scheme. Generally, ob-* libraries try their best to convert native language types to Elisp. If # is something that is unambiguously identified as image file, I do not see why we cannot support it, converting the # representation to file link. Especially, when users request :results file. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at