From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Vollmar Subject: org-store-link forgets external filename? Date: Sun, 05 Jul 2009 15:09:39 +0200 Message-ID: Mime-Version: 1.0 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 1MNRTh-0000zy-3I for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 09:09:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNRTc-0000xI-LP for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 09:09:56 -0400 Received: from [199.232.76.173] (port=34712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNRTc-0000wy-7M for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 09:09:52 -0400 Received: from mail.nf.mpg.de ([134.95.44.50]:46721) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNRTb-0006O5-Q8 for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 09:09:52 -0400 Received: from [10.170.14.116] (tmo-104-84.customers.d1-online.com [80.187.104.84]) by mail.nf.mpg.de (Sun Java(tm) System Messaging Server 6.3-8.03 (built Apr 24 2009; 32bit)) with ESMTPSA id <0KMB00J4N8K31G00@mail.nf.mpg.de> for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 15:09:46 +0200 (MEST) 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: Org Mode 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 the =20= file where I want to insert the link and use org-insert-link which =20 offers the id I had just stored. (1) However, only the id is inserted and org seems to forget about the =20= 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 link =20= 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 org =20= to come up with unique ids for sections automatically (it does), I am =20= usually not interested what ids it actually generates and I would =20 suggest a different approach with org-insert-link: have a list of =20 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