From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IGH4JjFes2WxAwEAe85BDQ:P1 (envelope-from ) for ; Fri, 26 Jan 2024 08:24:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IGH4JjFes2WxAwEAe85BDQ (envelope-from ) for ; Fri, 26 Jan 2024 08:24:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=jL3xzq3N; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706253873; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jy6VI/TlXd+sXN2Jbl47gRgjz/wxFC8oThiyZROeM8w=; b=jTg/uG8zPVaE38xt12EdxQqwH93JEJd0Eh1xOLgF8ibi8ZGMjxNBkjtXREU2VHVeFjgUb0 Rk8Mry7PgcNWVfi+ysp9P1jxMDdzYHwveyoNqERrGVWMuFnWnsLpJL+8vzOYZy0pRVFt2/ p26m1SgddKFMw0H/jwLmvKGRQPpiZyJOrLEY3DOKZR9+rpkmiNoHzrdHzT2uzIRNNwVbk8 n714aJpbzbj7wsR5OpzREEgAECWp8w20fm85Dn3rrsVgB5uv2rlDQFWAs4hrk/f2s/46wH 6K3spgnfOWiV4yuLhgw++zRaN1Ix5UthI0KI59VG/U5+GUFnnhYMqfIiuEq/2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=jL3xzq3N; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706253873; a=rsa-sha256; cv=none; b=YvLuj/FPBWKodj5OqvYZh8Br3OZ0FmgOAJ7Bo5+W5cHIuyCE0se1ddtlcfS9CoASDdcMGx D9Yl5YQ5e1DywsWx3vSwrAItVhbRytUK4DgiMwyIe5FemUNPgbzpKi33s5Y/MyTNVbZuZy eHJ4aNqRDv8/VYQtnZxJbmuPEvF2CS1HbTy17HN1pdszjuG1NEewx2je5W3/Kii15ltrr7 fFTkIMHW/Bj4DOcI/GOnKGDr1pml+RrS5SVsaExu5AObxtM7c+Au7RRTI08xDzgc8Cpszu C2O/PJ72XSxSYNg7r/k4lg3m+4nA6LhIkUQzFTTQAx24KbDYdKa8GrpTOanE5g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 62D87754CE for ; Fri, 26 Jan 2024 08:24:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTGZ4-0007l7-Cn; Fri, 26 Jan 2024 02:23:52 -0500 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 1rTGZ1-0007kN-6K for emacs-orgmode@gnu.org; Fri, 26 Jan 2024 02:23:47 -0500 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==; Date: Fri, 26 Jan 2024 09:23:44 +0200 Message-Id: <86plxoblrz.fsf@gnu.org> From: Eli Zaretskii To: Stefan Kangas Cc: manikulin@gmail.com, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: (message from Stefan Kangas on Thu, 25 Jan 2024 15:10:27 -0800) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.89 X-Migadu-Queue-Id: 62D87754CE X-Spam-Score: -9.89 X-Migadu-Scanner: mx11.migadu.com X-TUID: 9PtDyIWxrBax > 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. 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.