Re: [Suggestion] add an API function for getting link description

2020-05-20 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> I found org link can't get link description easily. >> >> I googled it how to get link description. Found this solution. But it's not >> intuitive. >> >> #+begin_src emacs-lisp >> (de

Re: [Suggestion] add an API function for getting link description

2020-05-20 Thread Nicolas Goaziou
Hello, stardiviner writes: > I found org link can't get link description easily. > > I googled it how to get link description. Found this solution. But it's not > intuitive. > > #+begin_src emacs-lisp > (defun get-description-at-point () > (interactive) > (let ((link (org-element-context)))

[Suggestion] add an API function for getting link description

2020-05-20 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I found org link can't get link description easily. I googled it how to get link description. Found this solution. But it's not intuitive. #+begin_src emacs-lisp (defun get-description-at-point () (interactive) (let ((link (org-element-contex