From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kCEtK7QK6mDEawAAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 23:01:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6mewJrQK6mDdbQAAbx9fmQ (envelope-from ) for ; Sat, 10 Jul 2021 21:01:40 +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 1EB1F1C15B for ; Sat, 10 Jul 2021 23:01:40 +0200 (CEST) Received: from localhost ([::1]:37152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2K6V-0005OS-AM for larch@yhetil.org; Sat, 10 Jul 2021 17:01:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2K5i-0005OB-4H for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 17:00:50 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:36660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2K5g-0004UC-IZ for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 17:00:49 -0400 Received: by mail-pf1-x429.google.com with SMTP id 21so12272457pfp.3 for ; Sat, 10 Jul 2021 14:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=b2uoEQutt5bSKHv9yI+eM6oUrR7gL3QoZol/Wj9uRCY=; b=AT5TYt2Bdp/eMaXrYVJNVlornfi0dIlSfoKDNKag25YLT5JuNOIkA9ZsXLolO2wwbF Hi4y7zdoZFjOrDzk2zwH85nnYCWWHsjVstEJ6NgV5Bbc+UTOS3kM4TXH9w7WME2omqqB Tml8vyuIx7idJKY+xbAbT1b1XFAqjEB8+M6qna3h2TRgb8YlkUBuMUPGMlkLxuOtVXpe rpfThJqRbitFwre6Su/sjf9roI5tzmB47CPMxT940XH7ZRmxDHrjZPHhJ6rAKK37GOxs kg1eHbYZVGTnFno+RmjbxVtIM3O5RIFWGQjg6DLgFv1wboUGzGCys3TMDNyS236NtzrT saHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=b2uoEQutt5bSKHv9yI+eM6oUrR7gL3QoZol/Wj9uRCY=; b=XtPqaBjuun9hDZkonK4kl7s/6xaECjhKir4dIhkJFeaCyxzGQwoep6ARywRLLYL7Kx U2BWQxvDVsWF+HCSM5li6Ps2KbNwQKoHdOVxWu4PPEnwvwPYnPv7TJFYkeY2/yHX4q8j UjYSfjLt7s3D1bMa/1BObUXw9nfpbOF9HTj9ry4qmflGLgY2JBVPrKKne8fDYXu4+e0a pcz2yr6OlLEviWjQD1vKeADuACuWviWdWIYmdHCbdn+0O2DekygcSxun+P1ZxL+1kAay wIj9duPEcwUPL9CjkRH6Nf3tDz2Ypw3SSdvXX32P6uWqGCfhdf7Bsf22Gutccks7Pd7A /TOQ== X-Gm-Message-State: AOAM532MPS6o1JTPJ3dzn5T3UjujmcFFCu02dnk2BVRpkdLbug4XnLoH oPhD4wIZNDsER8yzsP8w7oI= X-Google-Smtp-Source: ABdhPJwSGzQpTh2MiS97toua8wk9NingxTfgbEWHo/DSKAPKgI8qGsDw1CEGbyrX63Yt9odsUyD1HA== X-Received: by 2002:a63:a45:: with SMTP id z5mr10513546pgk.267.1625950846391; Sat, 10 Jul 2021 14:00:46 -0700 (PDT) Received: from localhost ([198.27.182.161]) by smtp.gmail.com with ESMTPSA id d3sm8756867pjo.31.2021.07.10.14.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 14:00:45 -0700 (PDT) From: Jack Kamm To: "Berry, Charles" Subject: Re: [PATCH] ob-R output file with graphics parameter In-Reply-To: References: <8735t8nqlf.fsf@gmail.com> <87pmwbty75.fsf@yandex.com> <871r8n1ban.fsf@gmail.com> <87o8bpbqp3.fsf@gmail.com> <87h7hcowmv.fsf@gmail.com> <87tulbp1hi.fsf@gmail.com> <87r1gb7acf.fsf@gmail.com> <87o8bf6yh8.fsf@gmail.com> Date: Sat, 10 Jul 2021 14:00:44 -0700 Message-ID: <87fswl7ukj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=jackkamm@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Colin Baxter , Org Mode 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=1625950900; 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=b2uoEQutt5bSKHv9yI+eM6oUrR7gL3QoZol/Wj9uRCY=; b=t/BekOKeO6b6zKAdYaFhLurCNGWGwt0s3wXnZVx1qyqIWHbnbBe2kkjwwIqwwFgY8iDD/m 2+cSbngRFAtwLt6cNBeiZ+91gTDILUw4Mgu8a0+s2cyO1ScoEyYOoHhvIup14zzsd750Ru HZk+cXKBm8XPKE3nUSlY0r2mm30Cmxab5iXZf6l0flSGgYIHX/Iju55RAAB99jtoR6E9g6 WAPqT1uRuUfHfZARsr4kV3Fl5vVuJmZt0SVtl+N8De9BLGBjxHJQ2G5yjCskgaJoDYpANi 1EwudLHa/k5xSEGDSkKa4tNjODcwOBZxTqT0IcrOlDDg8XSQI9SK+fa1R5DDQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625950900; a=rsa-sha256; cv=none; b=fhPL77UHDp80IBl0AAntqrjYSYm0qyqky07SKESRxBj8jcdDO1uY28XxOGHQ7bJiYzoCWZ OiryBSB8wXwXPHubJOYzwG93YsFT/4romJa5C+EmQS7Fvod9PeJXfIjN56URsXiExLyoyr dEQIMoEXn+1M6RHOCZzjZ0t4QCFJasIEn2cXwGuWQWaSLH9EtXZo9BYFOJq552MZcCUyyN wXjFAAHY5cNyi5OwVR4byuSfV4/PaobzTdffbzjOq2DJccelu0lYyLYUmQRD7ld2fGUw+0 GcjG64P8nTT6TNYGExfinzv0a3D0y9j+9Y4bF9Z4bSCMijsob3xgsXelJA7AuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=AT5TYt2B; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=AT5TYt2B; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 1EB1F1C15B X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: OeCMuX595Ip1 Hi Chuck, > If you modify the ECM to change `:exports results' to `:exports > none' and clean older fig[12].png's from the directory, the export > fails. Thanks for this example. I had mistakenly thought that code blocks with ":exports none" would be evaluated for side effects, but you are right, these blocks are skipped altogether during export. Instead, I think this use case could be handled by the ":results silent" header. Blocks with that header are evaluated during export, but the result is not inserted into the org buffer or the exported document. It seems like a more general way to evaluate code blocks for side effects only. To test this out, you could replace the header arguments in your example with: ":exports results :results graphics file silent :file fig1.png" > So if everyone else is determined to make this change I can live > with it. I do hope someone submits an RFC, so we can discuss this more concretely. I still think it would be nice if we could go back to just ":results graphics" to insert a figure. Unfortunately, I'm not currently able to propose the patch, as I'm still in limbo w.r.t. my employer agreement.