Max Nikulin writes:
>>> +(\".pdf::(.+)\\='\" . \"okular file://%s#%1\")
>>> +;; No location within the file, optionally followed by \"::\",
>>> +;; e.g. .
>>> +(\".pdf(?:::)?\\='\" . \"okular %s\")
>>
>> This is a nice set of examples, but
On 02/09/2022 19:08, Ihor Radchenko wrote:
Max Nikulin writes:
Subject: [PATCH] org.el: Fix percent substitutions in `org-open-file'
+(defun org--open-file-format-command
+(mailcap-command file link match-data)
+ "Format MAILCAP-COMMAND to launch viewer for FILE.
+
...
+For e
cba8cfc6c0e21fc893c4e664d575c Mon Sep 17 00:00:00 2001
> From: Max Nikulin
> Date: Sat, 27 Aug 2022 23:51:24 +0700
> Subject: [PATCH] org.el: Fix percent substitutions in `org-open-file'
Thanks! LGTM, except one comment.
> +(defun org--open-file-format-command
> +(mailcap-c
c0e21fc893c4e664d575c Mon Sep 17 00:00:00 2001
From: Max Nikulin
Date: Sat, 27 Aug 2022 23:51:24 +0700
Subject: [PATCH] org.el: Fix percent substitutions in `org-open-file'
* lisp/org.el (org--open-file-format-command): New function with better
coverage of mailcap RFC 1524 syntax. Do not re