From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Pere_Quintana_Segu=ED?= Subject: Re: Use id property as anchor in the Table of Contents Date: Tue, 13 Sep 2011 16:53:27 +0200 Message-ID: References: <87zkifx45t.fsf@norang.ca> <87hb4geozv.fsf@rat.lan> Reply-To: pquintana@obsebre.es Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3UNK-0004pp-V6 for emacs-orgmode@gnu.org; Tue, 13 Sep 2011 10:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3UNF-0001uQ-0W for emacs-orgmode@gnu.org; Tue, 13 Sep 2011 10:54:14 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:57723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3UNE-0001ty-OF for emacs-orgmode@gnu.org; Tue, 13 Sep 2011 10:54:08 -0400 Received: by pzk36 with SMTP id 36so1116687pzk.17 for ; Tue, 13 Sep 2011 07:54:07 -0700 (PDT) In-Reply-To: <87hb4geozv.fsf@rat.lan> 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: Olaf Dietsche Cc: emacs-orgmode@gnu.org 2011/9/13 Olaf Dietsche : > You might try this *untested* patch. It is against git master. :D Thanks!!! > How did you create ID properties for all entries? Have you exported your > org-files to icalendar? Most of them have ID properties because I often link them internally. When I create the link with C-c l, org adds the id. For those that do not have ID, I'll create them manually with org-id-get-create. With a keyboard macro this will be fast. > And please, don't forget to backup your files! Of course! Fortunately I version control my ~/org folder with Bazaar. With this patch, what happens if there is no id in a heading, does it create it automatically? At work I'm using stable versions of Org-mode. This weekend I'll try the git version at home and test your patch. Thanks