From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Adding text properties to all Org mode links Date: Sat, 13 Jul 2013 23:01:08 -0400 Message-ID: <878v19j157.fsf@gmail.com> References: <20130713134027.GC11006@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyCYt-0000Wc-Jl for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 23:01:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyCYs-0007Hs-IJ for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 23:01:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:52734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyCYs-0007Ho-Br for emacs-orgmode@gnu.org; Sat, 13 Jul 2013 23:01:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UyCYr-0006Xw-Ft for emacs-orgmode@gnu.org; Sun, 14 Jul 2013 05:01:21 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jul 2013 05:01:21 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jul 2013 05:01:21 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Suvayu Ali 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