Re: [DISCUSSION, default settings] Using mailcap as default handler for opening file links (was: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps)

2022-06-04 Thread Greg Minshall
hi, Ihor, > It appears that using mailcap is giving us more trouble than benefits. > I am not sure about the situation on Windows and Mac though. > Should we change the default file handlers to Emacs globally (unless > user customizes otherwise)? Should we continue efforts to work around > mailca

[DISCUSSION, default settings] Using mailcap as default handler for opening file links (was: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps)

2022-06-04 Thread Ihor Radchenko
Max Nikulin writes: >> I am confused here. org-file-apps-gnu says that we rely on mailcap: >> >> ((remote . emacs) >> (system . mailcap) >> (t . mailcap)) >> >> So, is (3) following what you would expect from mailcap (regardless >> whether it is incorrectly configured or not)? Wrong configu

Re: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-31 Thread Max Nikulin
On 30/05/2022 22:38, Max Nikulin wrote: (let* ((file-executable (executable-find "file"))    (mime-type-file     (and file-executable (shell-command-to-string   (format "%s --brief --mime-type --dereference %s 2>/dev/null" ; ...     )))   

Re: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-30 Thread Max Nikulin
On 30/05/2022 21:00, Ihor Radchenko wrote: - (let* ((mime-type (mailcap-extension-to-mime (or ext ""))) + (let* ((mime-type (if (executable-find "file") +(shell-command-to-string + (format "%s --brief --mime-type --dereference %s"

[PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-30 Thread Ihor Radchenko
Max Nikulin writes: > However, in my opinion, it does not address original Craig's issue. The > patch improves handling of *non-text* files requiring *external* > viewers, while Craig complained that behavior for shell script is > incorrect and his problem is tightly bound to erased `mailcap-m