From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KAh4DNDup2RhggAASxT56A (envelope-from ) for ; Fri, 07 Jul 2023 12:54:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uKwvDNDup2RwDgAA9RJhRA (envelope-from ) for ; Fri, 07 Jul 2023 12:54:08 +0200 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 EA2A34C2CD for ; Fri, 7 Jul 2023 12:54:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k+CNOU3m; 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=1688727247; 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=azyu+h3lkDFR2EFIR0MqrSw21lx/i6ZZN7qgO0Bad1M=; b=O5sTpvyJi9xPYeamvjM2LH2UiEOn6u0baWrRUmIwGwXPMA3waj7gOvdTH0HBFxm6MgWtLe BtvJrt74wPUVGoS0Cd2Aks81/nlawZMYwixHpgawVV324n/Tvx3tkmLwUH4glc1heEJTvd xa2AGhScKXem5cmJkxngv3Ps8xB+O4B6REeOihY0LCWIibwF0PKcO7sbHlL0e0gBTMwMA3 LCCOIylcfu4de10Y4daSzrQPr+QdMMJP1M62DIl0F+vllBN4uamtIb9hWy4v9i+NPC+xD/ hqIUiHLkeiBNsh85/6oorcKYr6JqX1YZ0+oHWn4RTMBZDJOlt1QG/t/Z+LNN2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=k+CNOU3m; 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=1688727247; a=rsa-sha256; cv=none; b=sUcl/qB2suWHjEtyGjr+kCUG/MRzljPosSpjiXMIo5QTjOW30qUa2oMHWcC565qnALmOLY rF2JBqVnX2lrFtzfmQW03qeWX6osBvADdue7dbiBiWSZtpEiZIU7RiQKP2adhZPd7rGfdv cs/L9Fjffu2OnV4ZpudTi5G+4zzmrDkAtyIbXdIbvdhf9qxzQB7iT3R46IHnoJWRorSmYW AMHTyfcuxuZb3FnSnNXBR3LwLX6iMOUpLEQ6fyWH4iMbZOQ3JYDjHMvfq/JPR47/AydMZr FizWbZYeA9djle9Tb55KdFF1w1Xb0Jp2xaujXW7XZf326uWGdwKhh+j6HQQZqg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHj5W-0007E0-Fu; Fri, 07 Jul 2023 06:53:22 -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 1qHj5V-0007Ds-7r for emacs-orgmode@gnu.org; Fri, 07 Jul 2023 06:53:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHj5T-0007dT-1S for emacs-orgmode@gnu.org; Fri, 07 Jul 2023 06:53:20 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6E4E7240027 for ; Fri, 7 Jul 2023 12:53:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688727189; bh=kWq0tZA0GXq0dDqjKoxJh6AOw3AXUQ5fLFp7Y1ByRVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=k+CNOU3m2OG+cS8W0OTzEBJY98ieI3g597r5z6acxTFwlQ2d8RfWL4vW0AgouBNCk qRudd21XsiqV8IZB50xUFDeiGv/nyzpQEtxZymLT4RgfLe//NkhnnfVOK6dmuCtFcO UBIDBeKQhKejleE+uIpnjQTko/FKgjGqjp3wgTgZH4cJxjp2K51WoOoyK18sIH8ZVb a8Ztz2CYWdQPCQzs1es006o9A/7s3qYmW+MLkR3Z2EyEv2ers5oB/IvRFbjrAtnhOV g+4Mxzh+t4d5hUkzZ+/mXnK5H2pu55bGHeNtWjzN1nmNYqEcgo6ykNnsAfyp946nEL U/KWoXv5PN53w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qy9Gr4XkGz9rxP; Fri, 7 Jul 2023 12:53:08 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-python: support header argument `:results file graphics' In-Reply-To: <87sfa121q1.fsf@gmail.com> References: <877crh8htb.fsf@localhost> <875y71fcic.fsf@localhost> <877crfvrsf.fsf@localhost> <87v8ez0w41.fsf@gmail.com> <87y1ju8vpp.fsf@localhost> <87sfa121q1.fsf@gmail.com> Date: Fri, 07 Jul 2023 10:53:09 +0000 Message-ID: <871qhkxaay.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Spam-Score: -7.74 X-Migadu-Queue-Id: EA2A34C2CD X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -7.74 X-TUID: HCXaeKW+VB4g Jack Kamm writes: > In fact, :results file also works this way for other Babel languages. > And I used this behavior before for plotting with ob-reticulate blocks. > > I attach a patch to fix the documentation in the manual about this. Your patch appear to only add more confusion, IMHO. I feel that the description about :results file is confusing from the very beginning: =E2=80=98file=E2=80=99 Interpret as a filename. Save the results of execution of the code block to that file, then insert a link to it. You can control both the filename and the description associated to the link. :results file may currently imply three things: 1. Results of evaluation are the _contents_ of a file 2. Results of evaluation are the path to a file 3. Results of evaluation are discarded and Org just inserts a constant link, derived from header arguments. (3) is used for :results file graphics/:results file link (2) is used when Org is unable to deduce the file name from :file/:file-ext+#+name (1) is used when the file name can be deduced from src block params=20=20= =20=20 > As an aside: I would like ":results graphics" to partially revert its > old behavior before Org 9.3. Prior to then, ob-R could generate a plot > with > > :results graphics :file filename.png > > but since commit 26ed66b23, we require the more verbose > > :results graphics file :file filename.png > > which seems unnecessarily verbose (since ":results graphics" doesn't do > anything without ":results file"), and also annoyingly broke many of my > Org documents before 2020. I think it would be better if ":results > graphics" was equivalent to ":results graphics file", and may propose a > patch for this in future. Sounds reasonable. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at