From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Links break when you archive; what are work arounds? Date: Thu, 13 May 2010 10:14:28 -0400 Message-ID: <874oibga7v.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCZBV-0003XW-NW for emacs-orgmode@gnu.org; Thu, 13 May 2010 10:14:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCZBT-00059f-IN for emacs-orgmode@gnu.org; Thu, 13 May 2010 10:14:45 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:54058) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCZBT-00058m-B4 for emacs-orgmode@gnu.org; Thu, 13 May 2010 10:14:43 -0400 In-Reply-To: (Emin shopper Martinian shopper's message of "Thu\, 13 May 2010 07\:24\:27 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Emin.shopper Martinian.shopper" Cc: emacs-orgmode@gnu.org "Emin.shopper Martinian.shopper" writes: > Dear Experts, > > I really like org-mode and am starting to use it more and more to > track my notes, todos, agenda, etc. One thing I am confused about is > that when I make a link to FOO and then archive FOO, the link no > longer works. I guess I was hoping that org-mode would be smart enough > to adjust links or look in the archive file but maybe that is too > complicated. > > Is there a suggested work-around to preserve links when you archive > something? Alternatively, maybe I'm not using archive properly. My > general mode of operation is to have a file with my master to do list > and another file for my daily plan (with a separate node for each > day). In each day's node, I link to the master to-do list. Then when I > finish a task in the master list, I archive it (which breaks the > link). I would appreciate pointers to better modes of operation. > > Thanks, > -Emin This works for me when I use id links. I created two tasks ,----[ todo.org ] | * Test task | * TODO Test target `---- Then linked test task to test target by doing C-c l on '* Test target' and copying the link into the body of '* Test Task' with C-c C-l This gives me this ,----[ todo.org ] | * Test link | [[id:c517f8d3-9cf3-4d86-b92d-b544874ef0af][Test target]] | * TODO Test target | :PROPERTIES: | :ID: c517f8d3-9cf3-4d86-b92d-b544874ef0af | :END: `---- Then I archive the Test Target ,----[ todo.org_archive ] | * TODO Test target | :PROPERTIES: | :ID: c517f8d3-9cf3-4d86-b92d-b544874ef0af | :ARCHIVE_TIME: 2010-05-13 Thu 10:07 | :ARCHIVE_FILE: ~/git/org/todo.org | :ARCHIVE_CATEGORY: todo | :ARCHIVE_TODO: TODO | :ARCHIVE_ITAGS: HOME | :END: `---- Now following the link from todo.org still works for me. HTH, Bernt