From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id z8JKFrSWMWGEDAAAgWs5BA (envelope-from ) for ; Fri, 03 Sep 2021 05:29:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kCZgEbSWMWFpDQAAbx9fmQ (envelope-from ) for ; Fri, 03 Sep 2021 03:29:56 +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 909E418417 for ; Fri, 3 Sep 2021 05:29:55 +0200 (CEST) Received: from localhost ([::1]:42496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLztp-0005I2-HP for larch@yhetil.org; Thu, 02 Sep 2021 23:29:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLzt7-0005Hf-Tf for emacs-orgmode@gnu.org; Thu, 02 Sep 2021 23:29:10 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:44005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLzt6-0007BT-5f for emacs-orgmode@gnu.org; Thu, 02 Sep 2021 23:29:09 -0400 Received: by mail-wr1-x429.google.com with SMTP id b6so6127296wrh.10 for ; Thu, 02 Sep 2021 20:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vicarious-living-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YIUWEEpahvk7/ot9ecLEAbq41RUQ1vOIbhrmG5OhZzQ=; b=vVgwEUVkcYTFHdpuqshq3XYw3CsMnrLH/BtvybHhLiYFtUVrKx47b7qUwtGvcUZHeM u9FaXfCdsM8flCIms+mh6jSdx7cDRmelBZe1oJ+1RzvM8rupyMt5XpVBJonQbAoLmYoK L0KdUHgq9BocS+TQGw83Frmu1+BV7Lh0UbfxIH8q2q/pMq15YXd/RNnROXkJvwmSxQcc VQ2EGpn1tyCXa/k2g6RtjaQJK1tMbwyHluLIdqphKc2hf7Qx3B+ZySW8QtKwebZixFRU GpM1u3NufBo1rGA6hBx8oiU8t39FMil7WrNkpW0XFiSsAG/iV4/7/02PtZvy7nG18c5U VR6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YIUWEEpahvk7/ot9ecLEAbq41RUQ1vOIbhrmG5OhZzQ=; b=aG5eniiZpsTwVcewfdifeg0Jo2g/s6LUacU7CWfOfM/iVqnp5U0mLyr2ruGoH9ReL2 qsVfGb0Kg05xPBYV/jdkQXPTDdSP/zshzCktvDDKN7OlMUbnnObF3g+0oso75GOhTLHe a8f5Mu3XOaCHv3C60NxAesupnVukPCKbAnYYLmvilOy7+TQyv97MIqS2F24oJ5rc3e93 lznvABis0GB5J6XgNocp1uLgy/QajrJWHX+SSK62Y6Sdefr0EVYp+quoe4SpvZoQFS9+ HDvdWyYL34u2Y2iYksNYBA/oXRKs33QulRxXp1QYL2+sQksCiBNzQgcZwkynDwm+8IbP MgtA== X-Gm-Message-State: AOAM533Jaklvo7zI5Q7D9uVkmmq7zgg3uCw4KUCFO3VH8qJSOB8EVNjP xi0FfGrgOPAWlrH+j7KFTQSY08q38TZdZnoaFE1svg== X-Google-Smtp-Source: ABdhPJzxe1qZhKgHDHtfCGNY6EGeglICmgg4sPKgsLAV5rUlEyWYTYWrPOGvWSdDm4dEtMDUbxa6H+K02isPkRmf7gE= X-Received: by 2002:adf:d184:: with SMTP id v4mr1401707wrc.229.1630639745264; Thu, 02 Sep 2021 20:29:05 -0700 (PDT) MIME-Version: 1.0 References: <981938.1630590273@apollo2.minshall.org> <87czpqjqvw.fsf@localhost> In-Reply-To: <87czpqjqvw.fsf@localhost> From: Ryan Scott Date: Thu, 2 Sep 2021 20:28:54 -0700 Message-ID: Subject: Re: [PATCH] Re: New source block results option for attaching file to node To: Ihor Radchenko Content-Type: multipart/alternative; boundary="000000000000c6040505cb0ee6ce" Received-SPF: none client-ip=2a00:1450:4864:20::429; envelope-from=ryan@vicarious-living.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: Greg Minshall , emacs-orgmode@gnu.org, Timothy 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=1630639795; 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=YIUWEEpahvk7/ot9ecLEAbq41RUQ1vOIbhrmG5OhZzQ=; b=CU+FVVIS0qY9JOKkOSab/qfJqPMdI4v1m4ERzSSdmw8rynNKlkc1o9LrsJt5G2rzBmatwy x5AHgLC2Q7L1skSkQvXAqBV3YuNMzN1uJJj5qTbxgLV3XspYbLxlm5U6fIMW00Kte87Z3J K5Qdbp1UokEYXjm6FgAD7HsfM+bt0Ua08B94u4EjlL8x/te3f7flPQNxaZteBHp/V5Yr4C UMITzZkI0FqgTrrh3qxH7vfdUMnXUn7ZKoklsYjyCD1heIRnYZzU2Vli1eJ4Jq+2y9Vq8L 0pZdy+hzQG7KErcHCBV9yva6e2jhfYX1B2lOes/3IE3rGZbMt48b457uZkRpzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630639795; a=rsa-sha256; cv=none; b=PlH2ioVR1NNrlOw3h83kxaxzQu3WT8kDXEGRYC+fWbCpq+w1lzB1jBMH+3TLaF+XPat8R4 AUHDI0t3bAN0pOckr7vo0oB7z9yIGfAqneHFqLNrM2UMfiwrHmm6WNjgYlsi/xGtooS0dq ACVZD5jfp7M5ZIo7VYMQQJS1i4kpbi2Z7tf/6ijSO/KZH3G84yC9WauD2F9+0D8r+MbwFK DZT1sBZiAOc+zXuPL+OyEqkE3uVEyssJPP4mrSN4c9LeBMPSTjhOaRA2h5AY8ULv7k13T3 /gLim/UI8BWZm1E5a/F2V+3CJW3yFrJDW1NY+P195SIlSpWjWcIBhxX7keoEEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vicarious-living-com.20150623.gappssmtp.com header.s=20150623 header.b=vVgwEUVk; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vicarious-living-com.20150623.gappssmtp.com header.s=20150623 header.b=vVgwEUVk; 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: 909E418417 X-Spam-Score: -1.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: NQs+03cxgUZm --000000000000c6040505cb0ee6ce Content-Type: text/plain; charset="UTF-8" That's starting to sound pretty good. It might make sense to fix up inserted "file:" links that are under the attachment directory to be "attachment:" style links by default anyway, no? Then just being able to set the working directory to the attachment directory easily would get the rest of the way there. So I suppose that would then mean having the :dir header accept the symbol `attach' or something like that? I'll play around and see what that looks like. On Thu, Sep 2, 2021 at 8:09 PM Ihor Radchenko wrote: > Greg Minshall writes: > > > i can imagine wanting to have input files and > > output files in separate directories. (for ease in "make clean", if for > > no other conceptual reason.) (but, probably i don't understand.) > > Makes sense. Currently, there is :dir header arg to set working > directory (aka input files directory). Maybe we can introduce something > like :results-dir header arg to set the output directory? It's value can > be a directory path or symbol 'attach. > > `:results file :results-dir 'attach` will be equivalent of > `:results file attach` in the patch proposed by Ryan Scott. > > WDYT? > > Best, > Ihor > --000000000000c6040505cb0ee6ce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's starting to sound pretty good.
<= br>
It might make sense to fix up inserted "file:" link= s that are under the attachment directory to be "attachment:" sty= le links by default anyway, no?
Then just being able to set the w= orking directory to the attachment directory easily would get the rest of t= he way there.

So I suppose that would then mean ha= ving the :dir header accept the symbol `attach' or something like that?=
I'll play around and see what that looks like.

On T= hu, Sep 2, 2021 at 8:09 PM Ihor Radchenko <yantar92@gmail.com> wrote:
Greg Minshall <minshall@umich.edu> writes:

> i can imagine wanting to have input files and
> output files in separate directories.=C2=A0 (for ease in "make cl= ean", if for
> no other conceptual reason.)=C2=A0 (but, probably i don't understa= nd.)

Makes sense. Currently, there is :dir header arg to set working
directory (aka input files directory). Maybe we can introduce something
like :results-dir header arg to set the output directory? It's value ca= n
be a directory path or symbol 'attach.

`:results file :results-dir 'attach` will be equivalent of
`:results file attach` in the patch proposed by Ryan Scott.

WDYT?

Best,
Ihor
--000000000000c6040505cb0ee6ce--