From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6KirE0IIwmD1PAEAgWs5BA (envelope-from ) for ; Thu, 10 Jun 2021 14:40:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2GlKD0IIwmBOCQAAB5/wlQ (envelope-from ) for ; Thu, 10 Jun 2021 12:40:34 +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 1412F17372 for ; Thu, 10 Jun 2021 14:40:33 +0200 (CEST) Received: from localhost ([::1]:39898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrJz5-0005ru-MI for larch@yhetil.org; Thu, 10 Jun 2021 08:40:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrJyc-0005qz-3D for emacs-orgmode@gnu.org; Thu, 10 Jun 2021 08:40:02 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:41963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrJyY-0001s7-Ll for emacs-orgmode@gnu.org; Thu, 10 Jun 2021 08:40:01 -0400 Received: by mail-wm1-x32f.google.com with SMTP id l11-20020a05600c4f0bb029017a7cd488f5so6368173wmq.0 for ; Thu, 10 Jun 2021 05:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mr1IdrX/po+LNETrXONukv+Yn9gbM6RLbFZhwFScWhU=; b=KVO/WMywQp2lhythPywlfBGqoFcdSL3PqV3MukyNFkvCmVz9BjyS2LC2UT28gPV03f if3vBXKpq1Sx2RGrpBQXyz5/RsojgZo2mC6wvmhHA4pePh8D2FPLXPH9g19so0b97Y3v IK+MCDiyAVov2ZqbDV+CtEU9NGNs4bX+3aB7LBPAqQvcxwyTIBQ3vKorKrKnZy5hDvc7 K4EEayhDmUMLBPgY4KhAQwmbBZSWsNj1oPIbFggO7JZqVa/xIo50+avP0QZ1OKIbgyue 1UWzaT3duM5r31UPqYdFH6pqfBhy7IzTHnFqZ54V6D51timWGT7aueiguknm7PYx9hjc 8wng== 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=Mr1IdrX/po+LNETrXONukv+Yn9gbM6RLbFZhwFScWhU=; b=OT3QponSgnJwv5LPfTZNpN+rA+4jvDrHSIuLJBADz8sK8fb9FV5meU3xSLC0YXOjkz AIybW39JJmviT+8X7AfhRrhTEDa5HW1vnyDvM+rRegZzwiQGe26HPpU2S9pIw6jt5btn qppVAltyVpG95uozzl+fE9TVloAzQ7VV6w/VjFNYx6a0PVxt0vwWFH+vMJdPxWp3/XSo G5axYDzIMkWUDmfLnGivNmiyyBOhbD7dfzINsk4kndYov+0FnOA8O+DeMHQP/UAVh0Tu V/hGbSUVqVobxRTUPAos9UAi3zT4c3svQqIpEbclLoDRF3nBQf6MgFnU1meTKBXDnBSJ sZCg== X-Gm-Message-State: AOAM532EZYTBH1H1PnSfIPLorYaJTRlPYOTLa7D0f/UGmNpI2/d8PcIX JfQ/2qMSuT61Ps3b+CgwrNbibETEvjwM2Y0tNArVqKjT8k8= X-Google-Smtp-Source: ABdhPJwa7bd1Gh5b2nwfApGkq7jR72uZFfigrIi38Xu9/VTqR6wYzdjasDQEbGilgY4B2/LaFXk13kH08ojrI+7JalU= X-Received: by 2002:a05:600c:154f:: with SMTP id f15mr14887408wmg.116.1623328797168; Thu, 10 Jun 2021 05:39:57 -0700 (PDT) MIME-Version: 1.0 References: <5a5703fb-943c-4da8-8981-63cac9ef3bae@gmail.com> <87r1h999q8.fsf@online.de> In-Reply-To: <87r1h999q8.fsf@online.de> From: John Kitchin Date: Thu, 10 Jun 2021 08:39:46 -0400 Message-ID: Subject: Re: org-attach a directory? To: Christian Barthel Content-Type: multipart/alternative; boundary="0000000000004f17bf05c468b027" Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=no 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: Ypo , 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=1623328833; 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=Mr1IdrX/po+LNETrXONukv+Yn9gbM6RLbFZhwFScWhU=; b=LOY1rhBSuLhF0/6lwBW/FOi12VdDN249CCRqPH/YMtRx/iXwvs7qIngrRYbt1mqmSoFoBk Mw0f1r1I41AXDg4gnituoOvZXqOeuvQVZNkXeWNoS4ZtqWdnwTXAnWAzq2EMRseAcEVF2C GccrZY3WmNOMRE0w6gVG3gk+PUZobujS6N0D/gWkOAYDkuuyoJ21V+TA1LLJw5nPgfjEWx Dz5MfH5+CwJd4db1Jn+w7c8O9YBzQRbHrdpOC0q6IU86aMnBE/ouQYr2DOKVLbVUvhUgR1 9itZdHYLS0ovjOISpE3lBUIG60xDpXhbXSd8MTiaK/+RxJsWq0XIKWIZzSRi5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623328833; a=rsa-sha256; cv=none; b=SHE6SPc4vbH4ZQVFteWRIF/zQy6I49Y4uWCyvlGarcALikoblxFfJWp1eC4G/6H30D+sjH 4+pKdUhk2ypQa2DsEmDTsV1P8uppHaJfqEba24vyZCDWK19pJ201S32KIwSfL9lkuAoJpJ 0BIlNQbUIc4G9zQAFPtth4XYhDdl8AllVhiT93S0wBrxfa5nite4kGz4BF6CZO0yFPDANH IrwptapFVTjzyIkgjsvcCAIYtEMzkHCaq385e8K9Huwse43ov3aVHdM7MIaxn01it/eHQK 6xBPqx19SxJyw4PZwJ690FVZwaDG8/k5Ayseije6eWMsEnj5pgk2ZNmmu2lqSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b="KVO/WMyw"; 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.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b="KVO/WMyw"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (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: 1412F17372 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: nH839rvZU5Ak --0000000000004f17bf05c468b027 Content-Type: text/plain; charset="UTF-8" isn't that just org-attach-attach-mv? or what happens if you set org-attach-method to mv? John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Jun 10, 2021 at 8:37 AM Christian Barthel wrote: > 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? > > -- > Christian Barthel > --0000000000004f17bf05c468b027 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
isn't that just org-attach-attach-mv? or what happens = if you set org-attach-method to mv?

John

--------------------------------= ---
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Departm= ent of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA= 15213
412-268-7803


On Thu, Jun 10,= 2021 at 8:37 AM Christian Barthel <bch= @online.de> wrote:
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?

--
Christian Barthel
--0000000000004f17bf05c468b027--