Function: org-link--open-elisp
org-link--open-elisp is a byte-compiled function defined in ol.el.gz.
Signature
(org-link--open-elisp PATH _)
Documentation
Open a "elisp" type link.
PATH is the sexp to evaluate, as a string.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol.el.gz
;;; Built-in link types
;;;; "elisp" link type
(defun org-link--open-elisp (path _)
"Open a \"elisp\" type link.
PATH is the sexp to evaluate, as a string."
(if (or (and (org-string-nw-p org-link-elisp-skip-confirm-regexp)
(string-match-p org-link-elisp-skip-confirm-regexp path))
(not org-link-elisp-confirm-function)
(funcall org-link-elisp-confirm-function
(format "Execute %s as Elisp? "
(org-add-props path nil 'face 'org-warning))))
(message "%s => %s" path
(if (eq ?\( (string-to-char path))
(eval (read path))
(call-interactively (read path))))
(user-error "Abort")))