Function: org--file-apps-entry-locator-p
org--file-apps-entry-locator-p is a byte-compiled function defined in
org.el.gz.
Signature
(org--file-apps-entry-locator-p ENTRY)
Documentation
Non-nil if ENTRY should be matched against the link by org-open-file.
It assumes that is the case when the entry uses a regular
expression which has at least one grouping construct and the
action is either a Lisp form or a command string containing
"%1", i.e., using at least one subexpression match as
a parameter.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--file-apps-entry-locator-p (entry)
"Non-nil if ENTRY should be matched against the link by `org-open-file'.
It assumes that is the case when the entry uses a regular
expression which has at least one grouping construct and the
action is either a Lisp form or a command string containing
\"%1\", i.e., using at least one subexpression match as
a parameter."
(pcase entry
(`(,selector . ,action)
(and (stringp selector)
(> (regexp-opt-depth selector) 0)
(or (and (stringp action)
(string-match "%[0-9]" action))
(functionp action))))
(_ nil)))