[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [RFC][PATCH] Store links to named elements
From: |
Jacob Gerlach |
Subject: |
[O] [RFC][PATCH] Store links to named elements |
Date: |
Wed, 18 Mar 2015 10:19:31 -0400 |
In [1], storing links to named elements was discussed. AFAICT, no
patches came from that discussion. The current behavior is that given:
* Headline
#+Name: foo
org-store-link will store a link to `*Headline' rather than `foo'.
Attached is a very rough first attempt at patching org-store-link to
recognize and link to the name.
Is this approach worth fleshing out or are there problems associated
with this type of link? Using the above example, [[foo]] seems to be a
valid link, recognized by both export and org-open-at-point.
If doable, a couple of specific questions:
This attached patch makes no attempt to store the file name as
currently done for headlines. Would it be better to check for a name
in the headline linking code (the final "t" in the org-mode-p `cond'
in org-store-link) or rather reproduce file name code separately.
Does a context string make sense for links to element names?
Regards,
Jake
[1] http://permalink.gmane.org/gmane.emacs.orgmode/91935
0001-Add-support-to-link-to-named-elements.patch
Description: Text Data
- [O] [RFC][PATCH] Store links to named elements,
Jacob Gerlach <=