From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-mode meets git a first proposal ?! Date: Mon, 27 Jul 2009 04:40:42 +0800 Message-ID: <87tz0zuqid.fsf@bzg.ath.cx> References: <200907241232.52729.torsten.wagner@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVAWc-0004mJ-Ms for emacs-orgmode@gnu.org; Sun, 26 Jul 2009 16:40:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVAWY-0004kj-R9 for emacs-orgmode@gnu.org; Sun, 26 Jul 2009 16:40:54 -0400 Received: from [199.232.76.173] (port=55630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVAWY-0004kb-JB for emacs-orgmode@gnu.org; Sun, 26 Jul 2009 16:40:50 -0400 Received: from rv-out-0708.google.com ([209.85.198.249]:21233) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVAWY-0007NJ-8u for emacs-orgmode@gnu.org; Sun, 26 Jul 2009 16:40:50 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1133641rvb.6 for ; Sun, 26 Jul 2009 13:40:49 -0700 (PDT) In-Reply-To: <200907241232.52729.torsten.wagner@googlemail.com> (Torsten Wagner's message of "Fri, 24 Jul 2009 12:32:52 +0900") 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: Torsten Wagner Cc: emacs-orgmode@gnu.org Hi Totti, just a few words regarding preserving links. About /finding/ links, I just added this simple function, which is quite handy I guess: (defun org-occur-link-in-agenda-files () "Create a link and search for it in the agendas. The link is not stored in `org-stored-links', it is just created for the search purpose." (interactive) (let ((link (condition-case nil (org-store-link nil) (error "Unable to create a link from here")))) (org-occur-in-agenda-files (regexp-quote link)))) For example, you are in your mailbox, you have the nasty feeling that this old mail you are re-reading has been stored in your agenda, this function helps you find it. About preserving links -- yes, this is a problem. I tried to implement a registry long time ago: this is org-registry.el in the contrib/ dir. Please have a look. I don't maintain it anymore, but it might be still usable. If people are interested in using it more, I will look at it again. Another simple and useful approach: I often break links by moving a file from dired. A solution could be to advise dired-do-rename so that it checks whether the file(s) at point is/are link(s) in an org file. If so, the function could just send a warning, and maybe update the links. That would be a beginning. Of course, this doesn't fix the problem when moving files from the shell... As for linking to specific versions of a file under versioning, I have a few ideas I'm working on, I let you know later. Thanks! -- Bastien