From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Moving and resetting attachments Date: Thu, 01 Jun 2017 12:39:36 +0800 Message-ID: <874lw05njr.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGHuU-0001Db-UO for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 00:40:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGHuR-0002qU-Pn for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 00:40:34 -0400 Received: from [195.159.176.226] (port=39972 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGHuR-0002qQ-IH for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 00:40:31 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dGHuJ-0006qn-1K for emacs-orgmode@gnu.org; Thu, 01 Jun 2017 06:40:23 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Florian Lindner writes: > Hello, > > two questions about moving attachments to org files: > > C-c C-a a attaches a file and stores it under ./data/ID/... > > Using C-c C-a s I can set another directory a attachment directory. > Can I make org-mode move the content of the previous > directory to the new directory? > > Can I "reset" the attachment directory, i.e. like C-c C-a s but > :ATTACH_DIR: is deleted and the contents of the previous > directory are moved to ./data/ID? > > Rationale: > > I use org mode as a document management system. Create an entry Papers -> Interpolation -> ECCOMAS. I know create an > custom attachment directory ECCOMAS, next to the org file as long as I > am working on that paper. When it's finished, I > want to move the contents of the ECCOMAS attachment directory to ./data/ID/. It doesn't work this way now, but I think it makes sense, and I would also find that helpful. `org-attach-set-directory' could be changed to check for existing files, and offer to move them. There's no `org-attach-unset-directory', but I suppose there could be. Eric