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 hp8lAGbENGGJCwEAgWs5BA (envelope-from ) for ; Sun, 05 Sep 2021 15:21:42 +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 kPABN2XENGHsXAAAbx9fmQ (envelope-from ) for ; Sun, 05 Sep 2021 13:21:41 +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 8D77423509 for ; Sun, 5 Sep 2021 15:21:37 +0200 (CEST) Received: from localhost ([::1]:40168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMs5X-0003TY-F6 for larch@yhetil.org; Sun, 05 Sep 2021 09:21:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMs57-0003TO-Jg for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 09:21:09 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:37853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMs56-0006W4-5A for emacs-orgmode@gnu.org; Sun, 05 Sep 2021 09:21:09 -0400 Received: by mail-pg1-x530.google.com with SMTP id 17so3935207pgp.4 for ; Sun, 05 Sep 2021 06:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=/otbjeFcEXmqOG5RYxg8V5vO86a8Ojr5cwDv++pc4Qc=; b=jRqY1WW3GWrM+EcmH0/3QFry1mlCOeh/YHmuqwvTnm/yb2ZB8sAJqW378WIs7q3ZMh BG5vpwCj9DTGduKiAu6H74dB9dOWCHbUHLCNINluQHrgav8wgZc/Jeq4ZZElEOs2YzbS ZdwmEk/Nm2X6/rKHVoGCd88BBqH/fNU7pB+9db/vqLhc77nlWpqA6B0aBHXw5YTVMjDF IF4jZ7R+L61EH25eH9/DvxdrFRa6US1PJBjirOSHr5T54TFaykq8CwvaC0/GlFfP4Nro uK7BaO1NIoLwnlXwROSvj+2orhM1/4xPXHsRe2HjKnvfKSLI6dbWj3SDPy4+DGgVoQFT 0YaA== 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=/otbjeFcEXmqOG5RYxg8V5vO86a8Ojr5cwDv++pc4Qc=; b=kd/qutb0vmbZh4SIDX8JtaNS6NL/W8xerYVEFhL0lzOP56YhUBvRfgSXHMgXPKK41K PeiFzO/6N9LppCzMu+1liNjiq3lya78K+HJuIwWOyQWoOgGx7XiLPMqm7eiqiswytK9j O5s8CGwdzvTKaE8hV0WW82w4hONuVynxijjN6DVJPMKzIseOzL+9UAIF842jsVrTyltL G0AS/HoeFNIJNM3UcHcSAHVA8nCz7ftsWVx5tJVIvEE2vJnrXewuRFE18vkiK4tHpCBA demkPlqoi3WAmKgur1fORrIEuOzQ8xQ2jBLLIyCdRZkYqnF8yakdJQ+ZbmPTi+K8FFjd NyDQ== X-Gm-Message-State: AOAM533uYoOg/Vw20aNawZX4DFp6trcr7SB0qX50u9ZWSWb9/jVNKnfx 8gqpM/DuHCRYg+gOVjDHYcY= X-Google-Smtp-Source: ABdhPJwVYrnWMFwufyQvqAqTCwaAjIYe/VJ8rlezmq5Xlz1L+nQ2BQrzrUmYLTNrxPn/fbPMO50neQ== X-Received: by 2002:a62:1583:0:b0:3f6:6d7c:5f8d with SMTP id 125-20020a621583000000b003f66d7c5f8dmr11558276pfv.77.1630848066102; Sun, 05 Sep 2021 06:21:06 -0700 (PDT) Received: from localhost ([139.59.56.239]) by smtp.gmail.com with ESMTPSA id p24sm4484152pfh.136.2021.09.05.06.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Sep 2021 06:21:05 -0700 (PDT) From: Ihor Radchenko To: Ryan Scott Subject: Re: [PATCH] Re: New source block results option for attaching file to node In-Reply-To: References: <981938.1630590273@apollo2.minshall.org> <87czpqjqvw.fsf@localhost> Date: Sun, 05 Sep 2021 21:22:05 +0800 Message-ID: <877dfvw41u.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=yantar92@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: 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=1630848097; 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=/otbjeFcEXmqOG5RYxg8V5vO86a8Ojr5cwDv++pc4Qc=; b=aExT/y7cTmXyJXHGW1x+bumq1w3czCnlwLjuNAnMtCyrt/7oSyRzpNQO3XxNxk/QMESd4E De9jTSQqV1zH5worYpZBAHaJIEruYZdh3LVoCOGOSTclrkCXmoPYWuSwSkfiNeW+kTZATe WOcbYZ9Zd5hrJ4N5Nq/JxGUep5YOxclOYSna+3tpLjKCu0thzNFHi7FP3p2SIa8QAkMkcd 6AaO14CwlxgIK3BQ3u1weYUhQ9OThP3vh5A1E7btoRVbJTHsh5KkuzBXsXF6j5yjQ8ozE/ RoH2neVXuU/aPwE2YIrEoyiVBULti1xzHXSf/pw9b26gTPuTADd1FzrqmvygSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630848097; a=rsa-sha256; cv=none; b=trjQu1HWDLUVXV/SmuV4iN2OHKe83l0/apYVKUJNgxV9Vs6xO/8nULka+4g8o3VmNeJlfp nzqfZIgxavhchaxPLH/XSHQHhjqEs24X5Q/0EJsKFDqP9fGUUBedg5iTdl7xafOUm9gbjt Lg2Emq4MiJmOTiO0To4whNvxwpLZrjYkghcFSn1YVUuMzgfnso3ixCJxiKyz1L46Ry/J+R Bme3WZcp1aQTKxhayqHPtgqScQu72AEHsVwizHWlYw+heLIEGgRpUDsUohLuqdPRlsOOg0 yMDptgvVFuLyy7frw7AqEYDU7BV+JrYFNHfzd51MMuUrADValUb4z3lNn7FbLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jRqY1WW3; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jRqY1WW3; dmarc=pass (policy=none) header.from=gmail.com; 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: 8D77423509 X-Spam-Score: -2.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: NyZL9e/AsNGU Ryan Scott writes: > 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. I am not sure. If the user explicitly states that :dir is the attachment dir, it would make sense. However, what if the :dir is set explicitly like below? * Headline :PROPERTIES: :DIR: /actual/literal/path/to/attachment/dir :END: #+begin_src emacs-lisp :dir /actual/literal/path/to/attachment/dir ... #+RESULTS: attachment:... The results will be indeed inside the attachment directory. However, the :DIR: property may be changed at some point and the existing attachment: link will not point to real file. > 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. The above example should lead to more expected behaviour if the user explicitly states that :dir is the attachment dir (even if it is going to be changed in future): * Headline :PROPERTIES: :DIR: /actual/literal/path/to/attachment/dir :END: #+begin_src emacs-lisp :dir 'attach ... #+RESULTS: attachment:... Best, Ihor