emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Joseph Turner <joseph@ushin.org>, emacs-orgmode@gnu.org
Subject: Re: Adding text/org MIME type to jshttp/mime-db
Date: Fri, 2 Aug 2024 17:46:38 +0700	[thread overview]
Message-ID: <ab129452-6e3d-4504-90e2-1783c2dd3840@gmail.com> (raw)
In-Reply-To: <87wml0f265.fsf@ushin.org>

On 02/08/2024 02:55, Joseph Turner wrote:
> Support for "text/org" in <https://github.com/jshttp/mime-db> would let
> the Agregore browser (<https://agregore.mauve.moe/>) render Org files.
> Then hyperdrive.el users could share Org files to be viewed in Agregore.
> 
> John Kitchin opened a PR back in 2017, which was rejected:
> 
> https://github.com/jshttp/mime-db/pull/82
[...]
>> I would suggest opening a new PR.
[...]
> I'd like to open a new PR.  Would you elaborate on "de facto mimetype"?

Nothing more than my opinion:

I think, if you are going to convince somebody outside of Org community 
then you should mention that the format is supported by GitHub and 
GitLab. Org files are rendered using org-ruby gem. Only a part of 
features is available, but still useful.
<https://github.com/github/markup/>

shared-mime-info used by Linux desktop applications has .org text/org 
association:
<https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/data/freedesktop.org.xml.in>
(though text/x-org alias and -*- mode: org -*- magic are missed).
Thunderbird sends .org attachments as text/org without explicit 
configuration.

Till finalizing of https://orgmode.org/worg/org-syntax.html and writing 
spec (RFC) there is no point to send a request to IANA.

Emacs will continue to use text/x-org till somebody manages to convince 
developers that transition to text/org does not break backward compatibility
<https://debbugs.gnu.org/68687>
Actually Emacs will continue to use application/vnd.lotus-organizer in 
some cases since to /etc/mime.types has higher priority.

I am not familiar with Agregore, but my opinion that media type 
associations should be configurable in applications and either 
shared-mime-info or /etc/mime.types should has higher priority than any 
built-in mapping, perhaps besides some exceptions for media types 
directly related to the application.


  reply	other threads:[~2024-08-02 10:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-01 19:55 Adding text/org MIME type to jshttp/mime-db Joseph Turner
2024-08-02 10:46 ` Max Nikulin [this message]
2024-08-03 10:25 ` Max Nikulin
2024-08-03 17:37   ` Joseph Turner
2024-08-03 18:05     ` Joseph Turner
2024-08-04 10:33     ` Max Nikulin
2024-08-05  3:19       ` Joseph Turner
2024-08-05 10:35         ` Max Nikulin
2024-08-05 19:29           ` Joseph Turner
2024-08-05 18:35     ` Ihor Radchenko
2024-08-09 12:57       ` Joseph Turner
2024-08-10 13:15         ` Ihor Radchenko
2024-08-10 18:46           ` Joseph Turner
2024-08-11 15:05             ` Ihor Radchenko
2024-08-13 19:02               ` Joseph Turner
2024-08-13 19:11                 ` Ihor Radchenko
2024-08-14 15:36                   ` Ihor Radchenko
2024-08-17  1:19                     ` Joseph Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab129452-6e3d-4504-90e2-1783c2dd3840@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=joseph@ushin.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).