From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id w6VgIGkbwmCIbAEAgWs5BA (envelope-from ) for ; Thu, 10 Jun 2021 16:02:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gGuPG2kbwmAFHQAAbx9fmQ (envelope-from ) for ; Thu, 10 Jun 2021 14:02:17 +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 E01AD22040 for ; Thu, 10 Jun 2021 16:02:16 +0200 (CEST) Received: from localhost ([::1]:41264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrLGB-0004mH-39 for larch@yhetil.org; Thu, 10 Jun 2021 10:02:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrLFU-0004m5-3n for emacs-orgmode@gnu.org; Thu, 10 Jun 2021 10:01:32 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrLFR-0005Lg-AR for emacs-orgmode@gnu.org; Thu, 10 Jun 2021 10:01:31 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id EFDC3240028 for ; Thu, 10 Jun 2021 16:01:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623333685; bh=HQYUAwvFptifWgVJv6GKI8SV8x+f9UYZmrLCiNgmXnU=; h=From:To:Cc:Subject:Date:From; b=Vdkh7hw5mmR5ufh6l9Z1MrwBsyzv714QNklIWPLdB5dlywpcO4XvAmG0q4vnbiuOb g/mxrU1DJ2k74LM6kO8KmW6AH+j466PH0IDqRWgbQFhrj+lOps3U/N3VE+hcT0xhvp 93GC05RO3p4ynu9Sg1ygWPhmRppz3WBQTVkzQuau/o/7i4GJ2N44eyIPvX9wE/TBiu Nv1PjYHwhJDuYM4CJ7T4DHd75RZL3U9X6WwOPJNIpzofvOrox0RoistPSPtQDATJ3C 7GNNS93ncSqqyg6eeawUjM6vgyOyvN7ZdoPY6GxU8lvh/DnZKj/dx4jAegbsHgNPuL BYQpC+dIpcaGA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G15HR1YNpz6tmF; Thu, 10 Jun 2021 16:01:22 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Christian Barthel , John Kitchin , Ihor Radchenko Subject: Re: org-attach a directory? References: <5a5703fb-943c-4da8-8981-63cac9ef3bae@gmail.com> <87r1h999q8.fsf@online.de> Date: Thu, 10 Jun 2021 14:01:21 +0000 In-Reply-To: <87r1h999q8.fsf@online.de> (Christian Barthel's message of "Thu, 10 Jun 2021 14:37:19 +0200") Message-ID: <87h7i5lsy6.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: orgmode 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=1623333737; 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=HV+gqSTzlJlH6Q6HjqpR+OzLTaMF21n4RfQ9ZWN1/XY=; b=au3fbGzsy/db1YY+jzJb9/SIdZ8DOMrWVZR/nvUVBMFB7rj/GGC6YgdbNoFtYZoI0pmWuM Oiy2Y2fFjVMJwogyyj96mWgfwzquukU5JPlQ69kSY9fta8mUZmP4d+7/0n/4ugCOUp4SNB jQ7u1KWKY2Ri3bOp9ardmeby1hwt9XUafAdQ9yZN+TCUxiG2x/gnoVwvlIhPmfQ+tYZ+Ns OO48BNMhJHJe5gu7dmh9Us35manVa0+j0lS3HfGzpu7XlXAK2bXmsQjihpHRbkX0y9tRt4 LGQqjtUtpxmIoaoZah339iHgGgLXzSJlNPTza0JSwsK1/YcXQQf5Nayhuo2MfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623333737; a=rsa-sha256; cv=none; b=oA3AWvY1WzJb7qvheEWmZlxblYwzuLMe7Ke2bZF9a4rbgbWfmRlDAYpg8OxOomwyZu4Zx6 fS8MJYOTjORwz3LYR9eWuEFEJECTpVkFEjpb7SjK3aODU6RbfXbx/we8nSpUrbN3j8079w JtG8DMFt0a5nxmdrWBzr7DjmXw1sGM+OAi2tUGtiQwVgqF4rzWluy9AxThXPswTWFOYoyi 9kcDiguZBVkiw27lB6IHIKPdRMciUnDsDXravFnay6nlmI3lGis9A8CsMckHmoQjVVmOgy 7MbZzL2vbSXLK21TDWs5aVS5h8ebfrxv01ir+s4X16uGXX0FIHb75zd6soGSeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Vdkh7hw5; dmarc=pass (policy=none) header.from=posteo.net; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Vdkh7hw5; dmarc=pass (policy=none) header.from=posteo.net; 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: E01AD22040 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: BqzjZsAmr8JB This only works when you create the attach folder manually, but not when you want org-attach to generate the attach directory for the current node. If I have to stay with a workaround that covers many scenarios, I would stay with Ihor's snippet, which seems to me simpler than the patch that I suggested before, and you don't need to define new attach commands/methods. I would vote for a patch in that direction (Ihor's code). Best regards, Juan Manuel Christian Barthel writes: > On Thu, Jun 10 2021, Ypo wrote: > >> C-c C-a >> >> s >> >> (not "S" like in the video, but "s") > > Thanks, that is an interesting workaround: > Setting the directory twice and using the copy/delete action > accordingly. > > Does anyone know if there is a workaround to attach a file and > delete the old one (or move the file) or do I need to write a > small elisp function for that?