From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#68687: [PATCH] Use text/org media type Date: Fri, 26 Jan 2024 09:23:44 +0200 Message-ID: <86plxoblrz.fsf@gnu.org> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17953"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68687@debbugs.gnu.org, manikulin@gmail.com, emacs-orgmode@gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 26 08:24:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rTGZX-0004PH-Sd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jan 2024 08:24:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTGZE-0007mx-Kk; Fri, 26 Jan 2024 02:24:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTGZD-0007m7-AA for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 02:23:59 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTGZA-0005KW-5w for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 02:23:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTGZG-0004qS-FH for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 02:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jan 2024 07:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68687-submit@debbugs.gnu.org id=B68687.170625384118616 (code B ref 68687); Fri, 26 Jan 2024 07:24:02 +0000 Original-Received: (at 68687) by debbugs.gnu.org; 26 Jan 2024 07:24:01 +0000 Original-Received: from localhost ([127.0.0.1]:50115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTGZF-0004qB-34 for submit@debbugs.gnu.org; Fri, 26 Jan 2024 02:24:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTGZC-0004px-HP for 68687@debbugs.gnu.org; Fri, 26 Jan 2024 02:24:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTGYz-0005Cu-Mr; Fri, 26 Jan 2024 02:23:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jy6VI/TlXd+sXN2Jbl47gRgjz/wxFC8oThiyZROeM8w=; b=jL3xzq3Nt88M nLIpGzynx9vzpmZ6mpxSsKAp+V6rERK0A8/URQzjQ+Gc7xfM1T01BJi+ewUo51G0aOzF6H48DHgrF MWDbwdBkBN4gd7tfnSzEwz7yEktSj+9hK3XgnbiuguWteYkopb0YuoOnV+2W5FiHBCuGKbmSUXitd GB7Skeo5+UWt++PeBlHqstxQ0csyACHsHG1gbEmLeZ6uGCIjxsXrUTD5yPnwwpaFVOl1k+cVukPlB I4n6JeUUebZ1MfF+quyv3gOMEs9j5d0nFaY0oVhu7JcMBOq9oS2vDv5JeWwL8cZ8vAOgzJsvfyR2w wrdUrjRayNAs0xAMqi630g==; In-Reply-To: (message from Stefan Kangas on Thu, 25 Jan 2024 15:10:27 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278900 gmane.emacs.orgmode:159343 Archived-At: > Cc: emacs-orgmode@gnu.org > From: Stefan Kangas > Date: Thu, 25 Jan 2024 15:10:27 -0800 > > Max Nikulin 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.