From: Eli Zaretskii <eliz@gnu.org> To: Stefan Kangas <stefankangas@gmail.com> Cc: manikulin@gmail.com, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org Subject: Re: bug#68687: [PATCH] Use text/org media type Date: Fri, 26 Jan 2024 09:23:44 +0200 [thread overview] Message-ID: <86plxoblrz.fsf@gnu.org> (raw) In-Reply-To: <CADwFkmn_qivb3GbHjXbdngcZe3g3LHiR9MZ9ffYjctFsWdw_yg@mail.gmail.com> (message from Stefan Kangas on Thu, 25 Jan 2024 15:10:27 -0800) > Cc: emacs-orgmode@gnu.org > From: Stefan Kangas <stefankangas@gmail.com> > Date: Thu, 25 Jan 2024 15:10:27 -0800 > > Max Nikulin <manikulin@gmail.com> writes: > > > Hi, > > > > I suggest to make the media type used for Org mode files consistent with > > the one used by XDG https://gitlab.freedesktop.org/xdg/shared-mime-info > > Currently Emacs has text/x-org, however "x-" prefix is not recommended > > by IANA any more, see https://www.rfc-editor.org/rfc/rfc6648 > > "Deprecating the "X-" Prefix and Similar Constructs in Application > > Protocols" > > > > Ideally somebody should file a request to IANA to register the text/org > > media type. > > https://www.iana.org/assignments/media-types/media-types.xhtml > > Eli, Ihor, what do you think? I agree, but since Ihor indicates that is impossible for now, we will have to live with the current situation for at least the near future. So I think we should install these changes, but please audit them carefully to make sure we don't create any backward-compatibility problems unnecessarily. For example: > > diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el > > index 3c7e3cbdf1a..b10da0c143a 100644 > > --- a/lisp/gnus/mm-uu.el > > +++ b/lisp/gnus/mm-uu.el > > @@ -394,7 +394,7 @@ (defun mm-uu-emacs-sources-extract () > > > > (defun mm-uu-org-src-code-block-extract () > > (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) > > - '("text/x-org" (charset . gnus-decoded)))) > > + '("text/org" (charset . gnus-decoded)))) > > > > (defvar gnus-newsgroup-name) > > > > diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el > > index 5ff75deb4e6..900099433c4 100644 > > --- a/lisp/net/mailcap.el > > +++ b/lisp/net/mailcap.el > > @@ -989,7 +989,8 @@ (defvar mailcap-mime-extensions > > (".jpe" . "image/jpeg") > > (".jpeg" . "image/jpeg") > > (".webp" . "image/webp") > > - (".org" . "text/x-org")) > > + ;; May be overridden by application/vnd.lotus-organizer in /etc/mime.types. > > + (".org" . "text/org")) I'm not sure the removal of text/x-org in these two hunks is a good idea: could it perhaps cause trouble to someone, e.g. if an email message is sent from Emacs with this change and read by Emacs without it? (I don't use these packages, so I wouldn't know the answer.) In general, I'd prefer changes that add text/org without removing support for text/x-org. Thanks.
WARNING: multiple messages have this Message-ID (diff)
From: Eli Zaretskii <eliz@gnu.org> To: Stefan Kangas <stefankangas@gmail.com> Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org Subject: bug#68687: [PATCH] Use text/org media type Date: Fri, 26 Jan 2024 09:23:44 +0200 [thread overview] Message-ID: <86plxoblrz.fsf@gnu.org> (raw) In-Reply-To: <CADwFkmn_qivb3GbHjXbdngcZe3g3LHiR9MZ9ffYjctFsWdw_yg@mail.gmail.com> (message from Stefan Kangas on Thu, 25 Jan 2024 15:10:27 -0800) > Cc: emacs-orgmode@gnu.org > From: Stefan Kangas <stefankangas@gmail.com> > Date: Thu, 25 Jan 2024 15:10:27 -0800 > > Max Nikulin <manikulin@gmail.com> writes: > > > Hi, > > > > I suggest to make the media type used for Org mode files consistent with > > the one used by XDG https://gitlab.freedesktop.org/xdg/shared-mime-info > > Currently Emacs has text/x-org, however "x-" prefix is not recommended > > by IANA any more, see https://www.rfc-editor.org/rfc/rfc6648 > > "Deprecating the "X-" Prefix and Similar Constructs in Application > > Protocols" > > > > Ideally somebody should file a request to IANA to register the text/org > > media type. > > https://www.iana.org/assignments/media-types/media-types.xhtml > > Eli, Ihor, what do you think? I agree, but since Ihor indicates that is impossible for now, we will have to live with the current situation for at least the near future. So I think we should install these changes, but please audit them carefully to make sure we don't create any backward-compatibility problems unnecessarily. For example: > > diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el > > index 3c7e3cbdf1a..b10da0c143a 100644 > > --- a/lisp/gnus/mm-uu.el > > +++ b/lisp/gnus/mm-uu.el > > @@ -394,7 +394,7 @@ (defun mm-uu-emacs-sources-extract () > > > > (defun mm-uu-org-src-code-block-extract () > > (mm-make-handle (mm-uu-copy-to-buffer start-point end-point) > > - '("text/x-org" (charset . gnus-decoded)))) > > + '("text/org" (charset . gnus-decoded)))) > > > > (defvar gnus-newsgroup-name) > > > > diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el > > index 5ff75deb4e6..900099433c4 100644 > > --- a/lisp/net/mailcap.el > > +++ b/lisp/net/mailcap.el > > @@ -989,7 +989,8 @@ (defvar mailcap-mime-extensions > > (".jpe" . "image/jpeg") > > (".jpeg" . "image/jpeg") > > (".webp" . "image/webp") > > - (".org" . "text/x-org")) > > + ;; May be overridden by application/vnd.lotus-organizer in /etc/mime.types. > > + (".org" . "text/org")) I'm not sure the removal of text/x-org in these two hunks is a good idea: could it perhaps cause trouble to someone, e.g. if an email message is sent from Emacs with this change and read by Emacs without it? (I don't use these packages, so I wouldn't know the answer.) In general, I'd prefer changes that add text/org without removing support for text/x-org. Thanks.
next prev parent reply other threads:[~2024-01-26 7:24 UTC|newest] Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-21 13:56 Org mode MIME type Max Nikulin 2024-01-21 15:11 ` Timothy 2024-01-22 16:21 ` Max Nikulin 2024-01-24 14:43 ` bug#68687: [PATCH] Use text/org media type Max Nikulin 2024-01-25 23:10 ` Stefan Kangas 2024-01-25 23:10 ` Stefan Kangas 2024-01-25 23:43 ` Ihor Radchenko 2024-01-26 7:40 ` Eli Zaretskii 2024-01-26 14:00 ` Ihor Radchenko 2024-01-26 14:00 ` Ihor Radchenko 2024-01-26 7:40 ` Eli Zaretskii 2024-01-26 10:52 ` Max Nikulin 2024-01-30 19:39 ` Stefan Kangas 2024-01-30 20:34 ` Ihor Radchenko 2024-01-30 20:34 ` Ihor Radchenko 2024-01-30 19:39 ` Stefan Kangas 2024-01-25 23:43 ` Ihor Radchenko 2024-01-26 7:23 ` Eli Zaretskii [this message] 2024-01-26 7:23 ` Eli Zaretskii 2024-01-26 10:39 ` Max Nikulin 2024-01-26 12:22 ` Eli Zaretskii 2024-01-31 16:30 ` Max Nikulin 2024-01-31 16:30 ` Max Nikulin 2024-01-27 3:38 ` Richard Stallman 2024-01-27 3:38 ` Richard Stallman 2024-01-28 16:35 ` Max Nikulin 2024-01-28 16:35 ` Max Nikulin 2024-01-28 16:47 ` Eli Zaretskii 2024-01-30 3:56 ` Richard Stallman 2024-01-30 12:13 ` Ihor Radchenko 2024-01-30 12:13 ` Ihor Radchenko 2024-01-30 17:12 ` bug#68687: Org mode code evaluation (was: bug#68687: [PATCH] Use text/org media type) Mike Kupfer 2024-01-30 17:12 ` Mike Kupfer 2024-01-30 17:51 ` Ihor Radchenko 2024-02-02 3:38 ` bug#68687: " Richard Stallman 2024-02-02 3:38 ` Richard Stallman 2024-02-02 4:58 ` bug#68687: Org mode code evaluation Max Nikulin 2024-02-02 4:58 ` Max Nikulin 2024-02-02 16:10 ` bug#68687: Org mode code evaluation (was: bug#68687: [PATCH] Use text/org media type) Ihor Radchenko 2024-01-30 17:51 ` Ihor Radchenko 2024-01-31 16:18 ` bug#68687: [PATCH] Use text/org media type Max Nikulin 2024-01-31 16:32 ` Ihor Radchenko 2024-01-31 16:32 ` Ihor Radchenko 2024-01-31 16:18 ` Max Nikulin 2024-02-02 3:40 ` Richard Stallman 2024-02-02 7:15 ` Eli Zaretskii 2024-02-02 7:15 ` Eli Zaretskii 2024-02-02 3:40 ` Richard Stallman 2024-01-30 12:52 ` Eli Zaretskii 2024-01-30 12:52 ` Eli Zaretskii 2024-01-30 3:56 ` Richard Stallman 2024-01-28 16:47 ` Eli Zaretskii 2024-01-31 20:00 ` Stefan Kangas 2024-01-31 20:00 ` Stefan Kangas 2024-02-01 10:40 ` Max Nikulin 2024-02-01 10:40 ` Max Nikulin 2024-02-02 7:09 ` Stefan Kangas 2024-02-02 16:28 ` bug#68687: [PATCH v2] " Max Nikulin 2024-02-02 7:09 ` bug#68687: [PATCH] " Stefan Kangas
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 * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=86plxoblrz.fsf@gnu.org \ --to=eliz@gnu.org \ --cc=68687@debbugs.gnu.org \ --cc=emacs-orgmode@gnu.org \ --cc=manikulin@gmail.com \ --cc=stefankangas@gmail.com \ /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: linkBe 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 external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.