unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Bastien <bastienguerry@googlemail.com>
Cc: aartist <aartist@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: Multi-Parent Nodes in org-mode
Date: Fri, 17 Jul 2009 01:38:16 +0200	[thread overview]
Message-ID: <e01d8a50907161638m2c8b90f0pd90efc7ca70db145@mail.gmail.com> (raw)
In-Reply-To: <87tz1c1ahk.fsf@bzg.ath.cx>

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	other threads:[~2009-07-16 23:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16 15:59 Multi-Parent Nodes in org-mode aartist
2009-07-16 21:44 ` Bastien
2009-07-16 22:07   ` Lennart Borgman
2009-07-16 22:18     ` Bastien
2009-07-16 22:21       ` Lennart Borgman
2009-07-16 22:36         ` Bastien
2009-07-16 22:46           ` Lennart Borgman
2009-07-16 23:20             ` Bastien
2009-07-16 23:38               ` Lennart Borgman [this message]
2009-07-17  7:48                 ` Bastien
2009-07-17  8:19                   ` Lennart Borgman
2009-07-17  9:00                     ` Bastien
2009-07-18 14:31                       ` Lennart Borgman
2009-07-18 17:39                         ` Bastien

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=e01d8a50907161638m2c8b90f0pd90efc7ca70db145@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=aartist@gmail.com \
    --cc=bastienguerry@googlemail.com \
    --cc=help-gnu-emacs@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.
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).