Re: [O] fetching the description from a link string

2015-11-27 Thread Sacha Chua
Alan Schmitt writes: > Thank you for the suggestion. I'm already doing something similar: > #+begin_src emacs-lisp > (let ((link (org-store-link nil)) > (name (org-element-property :raw-value (org-element-at-point > ...) > #+end_src You can also use org-bracket-link-regexp, if you want

Re: [O] fetching the description from a link string

2015-11-17 Thread Alan Schmitt
On 2015-11-16 10:45, Rasmus writes: > Alan Schmitt writes: > >> Hello, >> >> I cannot seem to find in org.el a function that will return the >> description part of a link. I'm probably missing it … Could someone tell >> me if such a function exists? > > org-element-context on a link will give yo

Re: [O] fetching the description from a link string

2015-11-16 Thread Rasmus
Alan Schmitt writes: > Hello, > > I cannot seem to find in org.el a function that will return the > description part of a link. I'm probably missing it … Could someone tell > me if such a function exists? org-element-context on a link will give you what you want. It lives in org-element, though

[O] fetching the description from a link string

2015-11-15 Thread Alan Schmitt
Hello, I cannot seem to find in org.el a function that will return the description part of a link. I'm probably missing it … Could someone tell me if such a function exists? Thanks, Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO₂ (Updated November 9, 2015, Mauna Loa Obs.): 399.06 pp