From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-store-link forgets external filename? Date: Sun, 5 Jul 2009 23:27:15 +0200 Message-ID: <7B4398AB-4922-4A5E-AE6E-9F9280AD4D62@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNZF7-0005U6-4h for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 17:27:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNZF2-0005R8-Ii for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 17:27:24 -0400 Received: from [199.232.76.173] (port=59742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNZF2-0005R5-Gl for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 17:27:20 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:55916) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNZF2-0006qx-Ar for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 17:27:20 -0400 Received: by ewy4 with SMTP id 4so4232867ewy.42 for ; Sun, 05 Jul 2009 14:27:19 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Vollmar Cc: Org Mode Hi Stefan, the magic of id: links is just that they are globally unique, and that they will find the right target even if you move the target entry from one file to another. Therefore, export to HTML should =20 automatically insert the correct file name. And this is just how it =20 works for me. File a has * headline 1 :PROPERTIES: :ID: 5E58A8EE-0DFC-4D05-BA53-D6B969919049 :END: In file b I am inserting here is the [[id:5E58A8EE-0DFC-4D05-BA53-D6B969919049][headline 1]] and in HTML this becomes a link headline = 1 Try M-x org-id-update-id-location to fix ID confusion. HTH - Carsten On Jul 5, 2009, at 3:09 PM, Stefan Vollmar wrote: > Hello, > > I just noticed that there seems to be a problem with org-store-link =20= > (or in that context) with the current development version (6.28trans). > > I want to insert a link to one section of one org-file into another =20= > org-file, so I change to the file with the section I want to link to =20= > and use org-store-link (that section already has an ID property; the =20= > heading's name is displayed in the minibuffer - fine). I return to =20 > the file where I want to insert the link and use org-insert-link =20 > which offers the id I had just stored. > > (1) However, only the id is inserted and org seems to forget about =20 > the other file's name, "literal hyperlinks" yields: > [[id:2806BA39-087E-4E2E-89E6-6DFA332727D2][some heading]] > When exporting to HTML, the link is rendered to a local link (here: =20= > "#2806BA39...") of the current file rather than "./my-other-org-=20 > file#2806BA39...", which is a problem, of course. Clicking on the =20 > link in org-mode will also not open the file. > > (2) org-insert-link offers a list of ids which have been stored with =20= > the corresponding headings added on the right, using Arrow-Up and =20 > Arrow-Down will show the selected id in the minibuffer. As I want =20 > org to come up with unique ids for sections automatically (it does), =20= > I am usually not interested what ids it actually generates and I =20 > would suggest a different approach with org-insert-link: have a list =20= > of headings instead of a list of ids and show the selected link's =20 > heading, not its id, in the minibuffer, sorry if this has been =20 > discussed before. There may be cases where it is important to see a =20= > link's id in the selection so one could have an optional mode that =20 > adds the ids to the list. > > Warm regards, > Stefan > --=20 > Dr. Stefan Vollmar, Dipl.-Phys. > Max-Planck-Institut f=FCr neurologische Forschung > Gleuelerstr. 50, 50931 K=F6ln, Germany > Tel.: +49-221-4726-213 FAX +49-221-4726-298 > Tel.: +49-221-478-5713 Mobile: 0160-93874279 > Email: vollmar@nf.mpg.de http://www.nf.mpg.de > > > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode