From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: org-store-link forgets external filename?
Date: Sun, 05 Jul 2009 15:09:39 +0200 [thread overview]
Message-ID: <BF69CAC3-D38D-4FD9-977C-FD8870237DA2@nf.mpg.de> (raw)
Hello,
I just noticed that there seems to be a problem with org-store-link
(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
org-file, so I change to the file with the section I want to link to
and use org-store-link (that section already has an ID property; the
heading's name is displayed in the minibuffer - fine). I return to the
file where I want to insert the link and use org-insert-link which
offers the id I had just stored.
(1) However, only the id is inserted and org seems to forget about 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:
"#2806BA39...") of the current file rather than "./my-other-org-
file#2806BA39...", which is a problem, of course. Clicking on the link
in org-mode will also not open the file.
(2) org-insert-link offers a list of ids which have been stored with
the corresponding headings added on the right, using Arrow-Up and
Arrow-Down will show the selected id in the minibuffer. As I want org
to come up with unique ids for sections automatically (it does), I am
usually not interested what ids it actually generates and I would
suggest a different approach with org-insert-link: have a list of
headings instead of a list of ids and show the selected link's
heading, not its id, in the minibuffer, sorry if this has been
discussed before. There may be cases where it is important to see a
link's id in the selection so one could have an optional mode that
adds the ids to the list.
Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, 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
next reply other threads:[~2009-07-05 13:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-05 13:09 Stefan Vollmar [this message]
2009-07-05 21:27 ` org-store-link forgets external filename? Carsten Dominik
[not found] ` <47E3A1B3-8065-4739-90B9-600664BB6E56@nf.mpg.de>
2009-07-06 14:04 ` Carsten Dominik
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BF69CAC3-D38D-4FD9-977C-FD8870237DA2@nf.mpg.de \
--to=vollmar@nf.mpg.de \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).