Function: org-open-at-mouse
org-open-at-mouse is an interactive and byte-compiled function defined
in org.el.gz.
Signature
(org-open-at-mouse EV)
Documentation
Open file link or URL at mouse.
See the docstring of org-open-file for details.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-open-at-mouse (ev)
"Open file link or URL at mouse.
See the docstring of `org-open-file' for details."
(interactive "e")
(mouse-set-point ev)
(when (eq major-mode 'org-agenda-mode)
(org-agenda-copy-local-variable 'org-link-abbrev-alist-local))
;; FIXME: This feature is actually unreliable - if we are in non-Org
;; buffer and the link happens to be inside what Org parser
;; recognizes as verbarim (for exampe, src block),
;; `org-open-at-point' will do nothing.
;; We might have used `org-open-at-point-global' instead, but it is
;; not exactly the same. For example, it will have no way to open
;; link abbreviations. So, suppressing parser complains about
;; non-Org buffer to keep the feature working at least to the extent
;; it did before.
(require 'warnings) ; Emacs <30
(defvar warning-suppress-types) ; warnings.el
(let ((warning-suppress-types
(cons '(org-element org-element-parser)
warning-suppress-types)))
;; FIXME: Suppress warning in Emacs <30
;; (ignore warning-suppress-types)
(org-open-at-point)))