org-mode/lisp
Max Nikulin 33686b9955
org.el: Pass link match data to `org-file-apps' functions
* lisp/org.el (org--file-apps-entry-dlink-p): Fix it to pass match data
to handler functions from `org-open-file' alist when pattern field of
`org-file-apps' contains regexp subgroups.

Update `org--file-apps-entry-dlink-p' to use current convention for action
field of `org-file-apps' structure.  Currently it may be a function while
earlier s-expression was allowed.  Obsolete test wrongly separated actions
able to handle regexp subgroups matched in the link.  An example when
match data were not passed to the handler function:

    (add-to-list
     'org-file-apps
     '("\\.pdf\\(?:\\.gz\\|\\.bz2\\|\\.xz\\)?\\(?:::.*\\)?\\'"
        . my-open-pdf-locator))

Notice that lambda functions passed `consp' test, so namely
`defun' is required to reproduce the issue.

This change was missed in the commit:

     c8a3ab1e4 2016-02-03 18:30:17 +0100
     Nicolas Goaziou: `org-file-apps' accept functions instead of sexp

For discussion of the issue with evaluation of arbitrary expression see
https://list.orgmode.org/CALn3zoh+ACSU09eRurfwKjmCnw7i-_0KX7tA2jWqtu=vvQepLQ@mail.gmail.com/T/#u
Michael Brand. org-player and switch to lexical binding in org.el.
Sun, 17 Jan 2016 19:58:38 +0100
2022-09-09 19:03:49 +08:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-awk.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-C.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-calc.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-clojure.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-comint.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-core.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ob-css.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ditaa.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-dot.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-emacs-lisp.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-eshell.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-eval.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-exp.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-forth.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-fortran.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-gnuplot.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-groovy.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-haskell.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-java.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-js.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-julia.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-latex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-lilypond.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ob-lisp.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-lob.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-lua.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-makefile.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-matlab.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-maxima.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ocaml.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-octave.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ob-org.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-perl.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-plantuml.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-processing.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-python.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-R.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ref.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-ruby.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-sass.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-scheme.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-screen.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-sed.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-shell.el ob-shell: Use `process-file' when stdin or cmdline 2022-09-05 18:31:39 +08:00
ob-sql.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-sqlite.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-table.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob-tangle.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ob.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-basic.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
oc-biblatex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-bibtex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-csl.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc-natbib.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
oc.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-bbdb.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-bibtex.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ol-docview.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-doi.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-eshell.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-eww.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-gnus.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-info.el ol-info: Use org function instead of subr-x 2022-09-05 14:33:32 +08:00
ol-irc.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
ol-man.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-mhe.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-rmail.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol-w3m.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ol.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-agenda.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-archive.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-attach-git.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-attach.el lisp/ox.el: Rename abnormal hook names to end with "-functions" 2022-09-06 21:42:11 +08:00
org-capture.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-clock.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-colview.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-compat.el lisp/ox.el: Rename abnormal hook names to end with "-functions" 2022-09-06 21:42:11 +08:00
org-crypt.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-ctags.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-cycle.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-datetree.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-duration.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-element.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-entities.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-faces.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-feed.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-fold-core.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-fold.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-footnote.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-goto.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-habit.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-id.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-indent.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-inlinetask.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-keys.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-lint.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-list.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-macro.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-macs.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-mobile.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-mouse.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-num.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-pcomplete.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-persist.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-plot.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-protocol.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-refile.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-src.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-table.el Fix Emacs 29 compiler warnings 2022-09-06 20:50:59 +08:00
org-tempo.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org-timer.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
org.el org.el: Pass link match data to `org-file-apps' functions 2022-09-09 19:03:49 +08:00
ox-ascii.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-beamer.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-html.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-icalendar.el ox-icalendar.el: Customize vevent summary prefix 2022-09-08 13:29:00 +08:00
ox-koma-letter.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-latex.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-man.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-md.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-odt.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-org.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-publish.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox-texinfo.el Assert all the Org files to load the same Org version 2022-09-04 12:24:55 +08:00
ox.el lisp/ox.el: Rename abnormal hook names to end with "-functions" 2022-09-06 21:42:11 +08:00