Re: [PATCH] org.el: Fix percent substitutions in `org-open-file'

2022-09-03 Thread Ihor Radchenko
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

Re: [PATCH] org.el: Fix percent substitutions in `org-open-file'

2022-09-02 Thread Max Nikulin
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

Re: [PATCH] org.el: Fix percent substitutions in `org-open-file'

2022-09-02 Thread Ihor Radchenko
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

[PATCH] org.el: Fix percent substitutions in `org-open-file'

2022-08-27 Thread Max Nikulin
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