emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Sacha Chua
Subject: Re: [O] fetching the description from a link string
Date: Sat, 28 Nov 2015 00:21:00 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt)

Alan Schmitt <address@hidden> 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:

(let ((link "[[http://example.com][Description]]";))
  (and (string-match org-bracket-link-regexp link)
       (match-string 3 link)))

Sacha
   
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]