From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Multi-Parent Nodes in org-mode Date: Fri, 17 Jul 2009 01:38:16 +0200 Message-ID: References: <387289e9-1f08-48f5-a960-16bf62793656@h21g2000yqa.googlegroups.com> <87vdlsl2ui.fsf@bzg.ath.cx> <877hy8l1ba.fsf@bzg.ath.cx> <87y6qojlvb.fsf@bzg.ath.cx> <87tz1c1ahk.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247787538 15392 80.91.229.12 (16 Jul 2009 23:38:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2009 23:38:58 +0000 (UTC) Cc: aartist , help-gnu-emacs@gnu.org To: Bastien Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 17 01:38:51 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MRaXK-0001Mr-NK for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jul 2009 01:38:51 +0200 Original-Received: from localhost ([127.0.0.1]:35437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRaXK-0006ft-3b for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jul 2009 19:38:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRaWu-0006fo-R6 for help-gnu-emacs@gnu.org; Thu, 16 Jul 2009 19:38:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRaWp-0006fa-6o for help-gnu-emacs@gnu.org; Thu, 16 Jul 2009 19:38:23 -0400 Original-Received: from [199.232.76.173] (port=50376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRaWp-0006fX-3d for help-gnu-emacs@gnu.org; Thu, 16 Jul 2009 19:38:19 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:15766) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRaWo-00089m-Om for help-gnu-emacs@gnu.org; Thu, 16 Jul 2009 19:38:18 -0400 Original-Received: from mail-bw0-f219.google.com ([209.85.218.219]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRaWn-0007zO-LL for help-gnu-emacs@gnu.org; Thu, 16 Jul 2009 19:38:17 -0400 Original-Received: by bwz19 with SMTP id 19so500644bwz.42 for ; Thu, 16 Jul 2009 16:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XR2rXxrC9ht1UkiFBqY9ZHKYwG2Uhnxwk6vdWgAYHk4=; b=b6XhGfGC1KW16GzhVHjZWRPvS5iXVIaquiKhzFMURT0NYp9kx4PtiroYLpfk71fKWB NmZQ7h0iVxhKj3AceDSSxxxRXH2F5SExTtn3QJbXVpKKOFz+SbKWMMyE2tucMpanFhGO M7oIIU8ULq2oZejYK958e8V/mhOt6yIBXvRqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nr0e5RT+ffAI54izIiYraicWyyyPPf5npGEFsReZ/N31O43KLxQEal8NUfRnMvVpYX BilDeVfg3B4TkYvfDMN+z/36Rm6/8GrvTJ4G3vUW/lKPRBAbLP/pSV/lybX2oNMJp+3s J71SgacNRteBuO6Pt298I2IHwXd+w0GQfKmi8= Original-Received: by 10.223.117.194 with SMTP id s2mr58546faq.83.1247787496480; Thu, 16 Jul 2009 16:38:16 -0700 (PDT) In-Reply-To: <87tz1c1ahk.fsf@bzg.ath.cx> X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66157 Archived-At: On Fri, Jul 17, 2009 at 1:20 AM, Bastien wrot= e: > Lennart Borgman 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. =C2=A0With IDs as properties yo= u > don't need to care about the headline. > > * My task > =C2=A0:PROPERTIES: > =C2=A0:ID: =C2=A0 =C2=A0 =C2=A0 q8ic5nz0voe0 > =C2=A0: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. =C2=A0You 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. =C2=A0Should 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-'. 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...