Commit 6e9ea3a
org.el: Preserve case for link subgroups from `org-file-apps'
* lisp/org.el (org-open-file): Avoid matching of `org-file-apps' records
against the link converted to downcase since it caused incorrect
substitutions to the command.
Consider the following entry
(add-to-list
'org-file-apps
'("\\.PDF\\(?:\\.[gx]z\\|\\.bz2\\)?::\\(#[^:]*\\)::\\(.+\\)\\'"
. "okular --find %2 -- %s%1"))
and the link
<file:///usr/share/doc/bash/bashref.pdf::#Redirections::before>
Without the patch
okular --find before -- /usr/share/doc/bash/bashref.pdf\#redirections
command is executed and the application can not resolve internal
cross-reference anchor.
In https://list.orgmode.org/4B51D104.9090502@jboecker.de/T/#u
https://list.orgmode.org/k2jfb2eb6811004041733zf176e0aq8367924746db81f5@mail.gmail.com/T/#u
the purpose of `dlink' is not clarified, so I assume that the only
purpose is to allow matching file suffixes, e.g. ".pdf" vs ".PDF".1 parent 33686b9 commit 6e9ea3a
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8134 | 8134 | | |
8135 | 8135 | | |
8136 | 8136 | | |
8137 | | - | |
8138 | 8137 | | |
8139 | 8138 | | |
8140 | 8139 | | |
| |||
8159 | 8158 | | |
8160 | 8159 | | |
8161 | 8160 | | |
8162 | | - | |
8163 | | - | |
| 8161 | + | |
| 8162 | + | |
| 8163 | + | |
8164 | 8164 | | |
8165 | 8165 | | |
8166 | 8166 | | |
| |||
8191 | 8191 | | |
8192 | 8192 | | |
8193 | 8193 | | |
8194 | | - | |
| 8194 | + | |
8195 | 8195 | | |
8196 | 8196 | | |
8197 | 8197 | | |
| |||
0 commit comments