emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Can't follow links with id property
Date: Fri, 22 Jul 2011 16:28:49 +0200	[thread overview]
Message-ID: <CAMXnza1qg-QEnwbnZqGOnB=jR8m39s74cD725foDdJbSc50YoQ@mail.gmail.com> (raw)
In-Reply-To: <87aac61l58.fsf@gnu.org>

Hi Bastien,

On Fri, Jul 22, 2011 at 3:48 PM, Bastien <bzg@altern.org> wrote:
> Hi Suvayu,
>
> Suvayu Ali <fatkasuvayu+linux@gmail.com> 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?  (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'.

> --
>  Bastien
>

Hopefully this is more consistently reproducible.

PS: I tested starting with emacs -Q -l ~/.emacs.d/minimal-org.el

-- 
Suvayu

Open source is the future. It sets us free.

      reply	other threads:[~2011-07-22 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19 11:43 Can't follow links with id property Suvayu Ali
2011-07-19 14:30 ` Memnon Anon
2011-07-19 23:40   ` suvayu ali
2011-07-20 14:10 ` Giovanni Ridolfi
2011-07-20 14:13   ` suvayu ali
2011-07-22 13:48 ` Bastien
2011-07-22 14:28   ` suvayu ali [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMXnza1qg-QEnwbnZqGOnB=jR8m39s74cD725foDdJbSc50YoQ@mail.gmail.com' \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).