From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +OyXGRRg4GBjZwAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 15:03:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qJ5dFRRg4GBFLgAA1q6Kng (envelope-from ) for ; Sat, 03 Jul 2021 13:03:16 +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 C61761274F for ; Sat, 3 Jul 2021 15:03:15 +0200 (CEST) Received: from localhost ([::1]:44622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzfIf-0005e8-Pe for larch@yhetil.org; Sat, 03 Jul 2021 09:03:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzfHS-0005c4-FX for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 09:01:58 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:34397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzfHN-0004sY-Ln for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 09:01:58 -0400 Received: by mail-pg1-x533.google.com with SMTP id 62so4675018pgf.1 for ; Sat, 03 Jul 2021 06:01:53 -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=J5DsCDpVopmUXsVSMrlE6URWeHe5jsJ1Opos+ExG84M=; b=Ytx/quNDpe7VmyVu5zNv8wv99EGiudXnrVP5+9B4NKrZHVnaFMi/8xW1Lw5fzRGG/T BU5dME8VeVdH+/OzygePWqnt1Ph7ue70Nr++FY6wUUKVhOvXB5N2UrvWt3uWgXrRqmPk P7tbe0e91j2yb0cn6tWoiH+bebw/4VBIN83GF2eis2uCm4REku37xME/v2XySkNNJjdc AreYJjaq2sFldWVFRXJD2vzWzsjA/hw3tJ6swgRDt6hj4l7EpSHywT0zYK7XQ667L2SJ /Gg/gTDqxy1jO1HUhasmLo1X08x0XUrbh5nqzMJ5EWg8cw9aL7PFHxmn2pXOmExpJzTf 266A== 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=J5DsCDpVopmUXsVSMrlE6URWeHe5jsJ1Opos+ExG84M=; b=omTXQADGu8qEXZ9KjhXU7eG07G552l/Ic/z58dtdO6IF3rRJo3C+pJJ1f134H52RzK 1Me8jRqMioprsYTK714hLE5bcRjrJoNJwSpRRHnbb/sMU4L4Pj37AAyi87sAu5DRSll2 X+oFHlXgSfbzzN+eEW9II/5jeyf8tl58gL8Cf/jBC1rvrWWyXMv4YqU6RymmhAMaZLZp jM29CYM24BCmVJCW+NMtBVlkXDXpL6g8RXKFJNyIekCydMy1VjQz1k0cQ12Ak4Zl1U3a FILpzoHtLdf64+FstSNPDbYHU4ilVfmO1Q6DMcoUPjkW/pH8lQY6aeocRkG7XJSMnC7t xMCQ== X-Gm-Message-State: AOAM532QN1WGpaCT3YympZznBaaWIyE3MK1dP6ST6Nz/5sxBaIBww1Xp 9PgZNd4nprAbbpFjVf7bsd8= X-Google-Smtp-Source: ABdhPJzLXaZgUC92A7FAOcOR0/6cy3i2eiT+jLYbo8dOGjX04dyhIeVTBHHSKaksQy91sEhFSjWv7Q== X-Received: by 2002:a65:68c4:: with SMTP id k4mr5188177pgt.239.1625317312271; Sat, 03 Jul 2021 06:01:52 -0700 (PDT) Received: from localhost ([198.27.182.161]) by smtp.gmail.com with ESMTPSA id c20sm2654876pfd.64.2021.07.03.06.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jul 2021 06:01:51 -0700 (PDT) From: Jack Kamm To: Timothy Subject: Re: [PATCH] ob-R output file with graphics parameter In-Reply-To: <87bl7kov78.fsf@gmail.com> References: <8735t8nqlf.fsf@gmail.com> <87pmwbty75.fsf@yandex.com> <871r8n1ban.fsf@gmail.com> <87o8bpbqp3.fsf@gmail.com> <87h7hcowmv.fsf@gmail.com> <87bl7kov78.fsf@gmail.com> Date: Sat, 03 Jul 2021 06:01:50 -0700 Message-ID: <87eecfpn41.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=jackkamm@gmail.com; helo=mail-pg1-x533.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 , "Berry, Charles" , emacs-orgmode@gnu.org 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=1625317395; 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=J5DsCDpVopmUXsVSMrlE6URWeHe5jsJ1Opos+ExG84M=; b=UgO3v4gmel9MN/H3qGokApSREOiVHQR1vmcfqhaebAZIrkBPZ2QNZJjQEst1K75OTB/fX+ Ky6DM7ZDpJbWdZ7BuW9Z1IAJZCnyzaLqsVSV+GJxaYZrLcDAiUyUArLBoI+RTN68NyMAKN 0S33/vw+ZjfFQ51rt0pMnCYYEpx43Go2JYlnz1yMYVAr4Ey+CshWhZOCFasWjgm2BhS2YM +VXnr5JK2GI2/pJMVB4hi9Qno2T9y1rcJ6qO3QDN7pV9NxSKN9IWo6djFTQvMPf9RnT/nP btK7En4Sf8K2SXJD6/7E14cxl9nxjQ4DpuDkwUUINuaJhcIG3PZ/wO1uMkp9jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625317395; a=rsa-sha256; cv=none; b=eHFrC6hzZIS/jRlkAIKZdeiYC60mVJK0aiHqNIVGOfa2TUcl49PdaSSdlHmS9o/ucrwyNY Ql1L07ExdMsMWD66nNQjuT+sE04TnwSzXAMJWrcT9jtPcJP0KIVj9t2Hq5uPd7uEfDyDO7 Pz7gjh7W8MeLYd4OzPcq43vjjjYGpIc0U8BV+W52EH0gDko/QBLEn6WVkhyGDzfB9qgIpu cC/B21X79nEnyPft3rvYuN93a6w6kXeVSVQK6Jn2oZC2vESl3sbEdEjHql4JZ3g8tH/bHt JTLZxCvQGSoI6DmKFb4hbA2Ww/jUjKHCAYHwBXocjxxphuD3jAzgujkmnKkBKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="Ytx/quND"; 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="Ytx/quND"; 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: C61761274F X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: tP3QLHNm1AFs Timothy writes: > Would it be strange if running the code block with just > > :output graphics > > Automatically added "link" if *only* graphics is set, and generated a > file name if no :file is set? It wouldn't be strange. ob-jupyter [1] auto-generates file names for images, and it's convenient. Currently, I believe that if you set global ":file-ext" and ":output-dir" arguments, and also set ":results graphics file" and name the source block, then org-mode will generate the file name based on the source block name, output-dir, and file-ext. I think this is similar to what you want, except for the requirement to name the source block. Perhaps we could generate the filename from a UUID or hash, similar to ob-jupyter, if the source block isn't named. I do think this is more involved, and somewhat orthogonal, to dropping the ":results file" requirement when ":results graphics" is present. So it should probably be done in a separate commit. [1] https://github.com/nnicandro/emacs-jupyter