From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Can't follow links with id property Date: Fri, 22 Jul 2011 16:28:49 +0200 Message-ID: References: <20110719134300.27f89254@kuru.homelinux.net> <87aac61l58.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGj2-0007Mh-GP for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 10:29:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkGj0-0006Ck-S6 for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 10:29:12 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:43292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGj0-0006CW-LW for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 10:29:10 -0400 Received: by ewy9 with SMTP id 9so2026442ewy.0 for ; Fri, 22 Jul 2011 07:29:09 -0700 (PDT) In-Reply-To: <87aac61l58.fsf@gnu.org> 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: Bastien Cc: Org-mode mailing list Hi Bastien, On Fri, Jul 22, 2011 at 3:48 PM, Bastien wrote: > Hi Suvayu, > > Suvayu Ali writes: > >> I can't follow links with an ID property. I have attached a minimal >> example org file. Org complains it cannot find a match and prompts to >> create a new headline. Answering yes to the prompt creates a new >> headline like this: >> >> * id:9dfdc23e-f9ce-413b-b950-fc20fd152e42 > > I cannot reproduce this with Emacs 23.3 and 24.0.50. > > Do you have any setup wrt ids? =A0(C-h v org-id-*) > I don't have any org-id related customisations. This is the first time I am trying them out. :-p > Or maybe your method for generating ids changes between the > moment your created this one and the moment your tried to > open it? > When I tried to replicate this, I got the same behaviour as before. Then I tried creating the ids again (with org-id-get-create) and tried following the links and it worked! So far this is what I have figured out. If you 1. create the ids 2. link to it 3. try to follow the link (all in the same session) everything works. But now if you save the file and reopen it in a new session and try to follow those same links, it fails with the error I reported earlier. Now if you call org-id-get-create on the linked headline and go back to the link and try to follow it again, it works as expected! I think org-id-get-create does something that resolves the problem. So maybe the issue is with `org-open-at-point'. > -- > =A0Bastien > Hopefully this is more consistently reproducible. PS: I tested starting with emacs -Q -l ~/.emacs.d/minimal-org.el --=20 Suvayu Open source is the future. It sets us free.