[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in 9.5.3 org--file-default-apps
From: |
Ihor Radchenko |
Subject: |
Re: Bug in 9.5.3 org--file-default-apps |
Date: |
Wed, 18 May 2022 19:36:28 +0800 |
Max Nikulin <manikulin@gmail.com> writes:
> On 16/05/2022 18:57, Ihor Radchenko wrote:
>> Craig STCR writes:
>>> But with the new form in 9.5.3, /home/user/myscript is opened by
>>> /bin/less, not emacs. I assume mailcap is not consulted. Which does
>>> not work well. These behaviors are only for org. Outside of org, emacs
>>> behaves correctly.
>>
>> mailcap does get consulted. What you are seeing happens because
>> mailcap.el (built-in Emacs library) is only able to recognise mime-types
>> by extension. So, your file is likely recognised as "nil" mimetype thus
>> making Org mode fallback to default mailcap handler, which is /bin/less
>> in your case.
>
> Sounds reasonable. However I just have tried a [[file:~/path/to/script]]
> link running Org main HEAD and the file is opened in emacs (26.3) other
> window.
The behaviour is dependent on the OS-level mailcap defaults. What does
(mailcap-mime-info nil) return for you?
Best,
Ihor
- Bug in 9.5.3 org--file-default-apps, Craig STCR, 2022/05/16
- Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/16
- Message not available
- Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/16
- Message not available
- Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/16
- Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/16
- Re: Bug in 9.5.3 org--file-default-apps, Craig STCR, 2022/05/16
- Re: Bug in 9.5.3 org--file-default-apps, Craig STCR, 2022/05/16
- Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/17
- Re: Bug in 9.5.3 org--file-default-apps,
Ihor Radchenko <=
- Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/18
- Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/19
- Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/19
- Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/20
- Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/20
- Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/20
- Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/21
- [PATCH] Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/22
- Re: [PATCH] Re: Bug in 9.5.3 org--file-default-apps, Max Nikulin, 2022/05/22
- [PATCH v2] Re: Bug in 9.5.3 org--file-default-apps, Ihor Radchenko, 2022/05/26