help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-Parent Nodes in org-mode


From: Lennart Borgman
Subject: Re: Multi-Parent Nodes in org-mode
Date: Fri, 17 Jul 2009 01:38:16 +0200

On Fri, Jul 17, 2009 at 1:20 AM, Bastien<bastienguerry@googlemail.com> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Thanks, I think I see what you mean. Not sure if ids are better than
>> headlines though. That depends quite a bit on how ids are displayed in
>> links.
>
> I think IDs are more stable than headlines.

Yes, I thought you meant that.


> If the headline is the id
> of the node, then changing one single char of the headline can make it
> invisible for other nodes refering to it.  With IDs as properties you
> don't need to care about the headline.
>
> * My task
>  :PROPERTIES:
>  :ID:       q8ic5nz0voe0
>  :END:
>
> Try M-x org-store-link with the cursor within this subtree,
> and then try M-x org-insert-link -- it will insert this:
>
> [[id:q8ic5nz0voe0][My task]]
>
> Since "My task" is just a label, no problem, the headline can change the
> link will still be okay.  You can even link between different files, it
> will be okay.
>
>> Are the headline text displayed in the links? How do you create them.
>
> See above.

Thanks for the example. That way it works.


>> As a sidenote I notice that it is actually quite hard to add a
>> hyperlink to a headline.
>
> For me I just bind org-store-link to C-c l and that's it...

>> If you from the menus choose "add hyperlink" you get into another
>> track.  Should not making links to headlines and ids be there too?
>
> For me it is here - maybe I don't understand?

I think I understand how it is implemented now, but it has unnecessary
restrictions. Suppose you do M-x org-insert-link before you store any
link. Then you do not get any way to add a link to the nodes in the
current file or any other file. I think the code to do this is nearly
there, but ...

(info "(org) Internal links") says:

   To insert a link targeting a headline, in-buffer completion can be
   used.  Just type a star followed by a few optional letters into the
  buffer and press `M-<TAB>'.

That does not work for me. You can surely do in buffer completion (but
I do not know why this is useful here), but a link is not inserted.
How do you actually do it from that point?

May I suggest using more normal completion? Then for example Company
Mode can be used... - it can handle many completions nicely so having
candidates from a set of files is not a problem...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]