Alan Schmitt <[email protected]> writes:
> Hello,
>
> I cannot seem to find in org.el a function that will return the
> description part of a link. I'm probably missing it … Could someone tell
> me if such a function exists?
org-element-context on a link will give you what you want. It lives in
org-element, though.
Something like this when point is on a link,
(let ((e (org-element-context)))
(buffer-substring-no-properties
(org-element-property :contents-begin e)
(org-element-property :contents-end e)))
Hope it helps,
Rasmus
--
Sådan en god dansk lagereddike kan man slet ikke bruge mere