Correcting myself: Nicolas Goaziou <n.goaz...@gmail.com> writes:
> Bastien <b...@gnu.org> writes: > >> (defun org-open-links-in-comment-and-properties () >> "Open links in a comment or in a property." >> (interactive) >> (let ((string-ahead (and (looking-at ".+") (match-string 0))) >> (value (org-element-property :value (org-element-at-point)))) >> (with-temp-buffer >> (org-mode) >> (insert value) >> (goto-char (point-min)) >> (search-forward string-ahead) >> (org-open-at-point)))) >> >> which do work right now. > > Indeed. Actually, it will not work in comments (point is X): # Some http://orgmode.org/file.html # and http://orgmode.org/other-fileX.html The code will open the first link, not the second one. Regards, -- Nicolas Goaziou