[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Adding text properties to all Org mode links
From: |
Nick Dokos |
Subject: |
Re: [O] Adding text properties to all Org mode links |
Date: |
Sat, 13 Jul 2013 23:01:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Suvayu Ali <address@hidden> writes:
> Hi,
>
> How do I add text properties to org elements? In my particular case, I
> want to echo tooltips when I move my cursor over an org link (or other
> org elements for that matter). To do this, I need to add the properties
> point-left and point-entered to all org-links. How do I do that?
>
> Thanks for any ideas.
Not sure if this is the best method:
o go to (point-min)
o loop
(goto-char (cdr (org-element-link-successor (point-max))))
(org-element-link-parser) and extract :begin and :end values from
the returned list
Untested (mostly) - termination, error handling (and who knows what
else) left to the interested reader...
--
Nick