Function: org-open-at-point-global
org-open-at-point-global is an autoloaded, interactive and
byte-compiled function defined in org.el.gz.
Signature
(org-open-at-point-global)
Documentation
Follow a link or a timestamp like Org mode does.
Also follow links and emails as seen by thing-at-point.
This command can be called in any mode to follow an external
link or a timestamp that has Org mode syntax. Its behavior
is undefined when called on internal links like fuzzy links.
Raise a user error when there is nothing to follow.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
;;;###autoload
(defun org-open-at-point-global ()
"Follow a link or a timestamp like Org mode does.
Also follow links and emails as seen by `thing-at-point'.
This command can be called in any mode to follow an external
link or a timestamp that has Org mode syntax. Its behavior
is undefined when called on internal links like fuzzy links.
Raise a user error when there is nothing to follow."
(interactive)
(let ((tap-url (thing-at-point 'url))
(tap-email (thing-at-point 'email)))
(cond ((org-in-regexp
org-link-any-re
(let ((origin (point)))
(max
(save-excursion
(backward-paragraph)
(count-lines (point) origin))
(save-excursion
(forward-paragraph)
(count-lines origin (point))))))
(org-link-open-from-string (match-string-no-properties 0)))
((or (org-in-regexp org-ts-regexp-both nil t)
(org-in-regexp org-tsr-regexp-both nil t))
(org-follow-timestamp-link))
(tap-url (org-link-open-from-string tap-url))
(tap-email (org-link-open-from-string
(concat "mailto:" tap-email)))
(t (user-error "No link found")))))