From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Attachments and refiling Date: Thu, 28 Jul 2011 09:51:54 +0200 Message-ID: <87vcum6d5p.fsf@altern.org> References: <87ei1rrdzd.fsf@gnu.org> <4e21b345.c74cec0a.7e49.3340@mx.google.com> <87mxg3v32m.fsf@altern.org> <877h76u7l7.fsf@gnu.org> <4e2d91f9.8188ec0a.1582.1369@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmLd6-0005VO-Lk for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 04:07:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmLd5-0001BZ-Ky for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 04:07:40 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:64734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmLd5-0001AF-AM for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 04:07:39 -0400 Received: by mail-ww0-f49.google.com with SMTP id 22so1744737wwf.30 for ; Thu, 28 Jul 2011 01:07:39 -0700 (PDT) In-Reply-To: <4e2d91f9.8188ec0a.1582.1369@mx.google.com> (Darlan Cavalcante Moreira's message of "Mon, 25 Jul 2011 12:55:31 -0300") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira Cc: Gustav =?iso-8859-1?Q?Wikstr=F6m?= , emacs-orgmode@gnu.org Hi Darlan, here is how I see the situation regarding attachments: 1. org-attach.el is nice because it makes it easy to attach a file to a task, while not *worrying* about where the file is on the harddrive. 2. Adding an ATTACH_DIR property will always add an absolute path, so there is no problem when moving an entry with an explicit ATTACH_DIR. 3. Refiling/archiving subtrees lose track of some attachments when the attach directory "data/" is *relative* to the org file (which is the default) and when the target org file is not in the same directory. 4. Moving an entry with an ATTACH_DIR_INHERIT will lose attachments when the ATTACH_DIR of the target entry is different. (3) and (4) are two distinct problems. I suggest fixing problem (3) by making `org-attach-dir' defaulting to "~/.org-attachments/". I I suggest fixing problem (4) by explicitely replacing ATTACH_DIR_INHERIT with the corresponding ATTACH_DIR when the target subtree has a different ATTACH_DIR. The core idea is that I want to avoid moving files themselves: I think it's a risky road, and I hope the solutions above will make this road unnecessary. I'm interested in feedback and ideas about such proposed changes. Thanks a lot! -- Bastien