emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get to the link destination?
@ 2014-10-21 14:12 Marcin Borkowski
  2014-10-21 23:18 ` John Kitchin
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2014-10-21 14:12 UTC (permalink / raw)
  To: Org mailing list

Hi all,

as in the subject.  I want to do something /at the destination of the
link/ the point is at (more precisely: get some text property of that
place).  This is what I came up with:

(save-excursion
  (org-open-at-point)
  (get-text-property (point) :some-property))

Is there a better/faster way, especially knowing that the link is an
internal one?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get to the link destination?
  2014-10-21 14:12 How to get to the link destination? Marcin Borkowski
@ 2014-10-21 23:18 ` John Kitchin
  0 siblings, 0 replies; 2+ messages in thread
From: John Kitchin @ 2014-10-21 23:18 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org mailing list

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

that looks like a great way to me!

> Hi all,
>
> as in the subject.  I want to do something /at the destination of the
> link/ the point is at (more precisely: get some text property of that
> place).  This is what I came up with:
>
> (save-excursion
>   (org-open-at-point)
>   (get-text-property (point) :some-property))
>
> Is there a better/faster way, especially knowing that the link is an
> internal one?
>
> Best,

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-21 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-21 14:12 How to get to the link destination? Marcin Borkowski
2014-10-21 23:18 ` John Kitchin

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).