From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: analog of org-element-at-point for objects? Date: Sun, 9 Mar 2014 20:25:48 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e43e62dda1304f435a5b8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMo2S-0008Ja-Hc for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 20:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMo2Q-00085b-CP for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 20:25:52 -0400 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:51962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMo2Q-00085U-3h for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 20:25:50 -0400 Received: by mail-pd0-f176.google.com with SMTP id r10so6310399pdi.21 for ; Sun, 09 Mar 2014 17:25:48 -0700 (PDT) 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" --047d7b2e43e62dda1304f435a5b8 Content-Type: text/plain; charset=ISO-8859-1 Is there an easy way to to get the object at point? I found org-element-at-point, but what I need is to determine if point is on a link of a particular type, and links appear to be objects rather than elements. an alternative solution for me would be how do you move point to the beginning of a link (if it is on a link)? I found org-next-link and org-previous-link, but neither of these move you to the beginning of the current link. Then, I could use org-element-link-parser, but that only works with point at the beginning of a link. The reason I was looking into this is here: http://kitchingroup.cheme.cmu.edu/blog/2014/03/07/Storing-label-links-in-org-mode/ It just seems there must be a better way than I implemented. thanks! John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --047d7b2e43e62dda1304f435a5b8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Is there an easy way to to get the object a= t point? I found org-element-at-point, but what I need is to determine if p= oint is on a link of a particular type, and links appear to be objects rath= er than elements.

an alternative solution for me would be how do you move point to = the beginning of a link (if it is on a link)? I found org-next-link and org= -previous-link, but neither of these move you to the beginning of the curre= nt link. Then, I could use org-element-link-parser, but that only works wit= h point at the beginning of a link.

The reason I was looking into this is here: h= ttp://kitchingroup.cheme.cmu.edu/blog/2014/03/07/Storing-label-links-in-org= -mode/

It just seems there must be a better way than I implemented. than= ks!


John

----= -------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon= University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.e= du

--047d7b2e43e62dda1304f435a5b8--