From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Adding text properties to all Org mode links
Date: Sat, 13 Jul 2013 23:01:08 -0400 [thread overview]
Message-ID: <878v19j157.fsf@gmail.com> (raw)
In-Reply-To: 20130713134027.GC11006@kuru.dyndns-at-home.com
Suvayu Ali <fatkasuvayu+linux@gmail.com> 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
next prev parent reply other threads:[~2013-07-14 3:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-13 13:40 Adding text properties to all Org mode links Suvayu Ali
2013-07-14 3:01 ` Nick Dokos [this message]
2013-07-14 6:41 ` Suvayu Ali
2013-09-09 23:15 ` Suvayu Ali
2013-09-10 6:56 ` Jambunathan K
2013-09-10 11:39 ` Suvayu Ali
2013-09-10 12:09 ` Jambunathan K
2013-09-10 12:24 ` Suvayu Ali
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=878v19j157.fsf@gmail.com \
--to=ndokos@gmail.com \
--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).