From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Max Nikulin <manikulin@gmail.com>
Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode
Subject: bug#68687: [PATCH v2] Use text/org media type
Date: Fri, 2 Feb 2024 23:28:17 +0700
Message-ID: <1882c330-a58a-4c0a-adf1-6801e09f3b81@gmail.com>
References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com>
 <8734uqpvgn.fsf@tec.tecosaur.net>
 <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com>
 <CADwFkmnm2_ByuudxEvnApJKdLK-ij_5CsYae1GPz=584BFU-KQ@mail.gmail.com>
 <4fbab9e6-a538-4fed-8148-ec3bb35a9107@gmail.com>
 <CADwFkmknBZj0Y4H=Nwqa4sH0uQAsP70kWtMU33ZgfRiuWkX9_w@mail.gmail.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------XvoEQ5YvCYu2UueGTfofSJJz"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="18881"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Mozilla Thunderbird
Cc: emacs-orgmode@gnu.org
To: Stefan Kangas <stefankangas@gmail.com>, 68687@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 02 17:29:11 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1rVwPf-0004d2-3Y
	for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 17:29:11 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1rVwPO-00057s-Im; Fri, 02 Feb 2024 11:28:54 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rVwPM-00056u-2J
 for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 11:28:52 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rVwPL-0005rj-Qh
 for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 11:28:51 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rVwPW-0005hb-JB
 for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 11:29:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Max Nikulin <manikulin@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 02 Feb 2024 16:29:02 +0000
Resent-Message-ID: <handler.68687.B68687.170689131921885@debbugs.gnu.org>
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.170689131921885
 (code B ref 68687); Fri, 02 Feb 2024 16:29:02 +0000
Original-Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 16:28:39 +0000
Original-Received: from localhost ([127.0.0.1]:45479 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1rVwP8-0005gu-DZ
 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 11:28:38 -0500
Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:55651)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <manikulin@gmail.com>) id 1rVwP6-0005gf-Ih
 for 68687@debbugs.gnu.org; Fri, 02 Feb 2024 11:28:37 -0500
Original-Received: by mail-lf1-x12b.google.com with SMTP id
 2adb3069b0e04-5100cb238bcso4219221e87.3
 for <68687@debbugs.gnu.org>; Fri, 02 Feb 2024 08:28:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1706891299; x=1707496099; darn=debbugs.gnu.org;
 h=in-reply-to:mail-followup-to:from:references:cc:to:content-language
 :subject:user-agent:mime-version:date:message-id:sender:from:to:cc
 :subject:date:message-id:reply-to;
 bh=ARFJDzvZCE95wFfZz/LGrnmtYXYGSp5qKlMrAqsaWAM=;
 b=lkNvkBrsTsxbnUDG+4TgEDS0ZewT7ao8gm0SnQzC8SAwkC20rJnSzDZAE2/MZaoG5C
 TEauoPkh/d5f6a6dJJ5xLhfUyg900bINXyqI05Ekathys3a8xhE/x43M0gRmv8FCWbTZ
 CxRjCvbO6ML2fvkoWvZ+4EAPCbN8N2uZ4nQWQcy8Oag89SwBasaS4sQArXR1L/DASiG/
 c2Zb7bfmvEoAdKZf7KVSu7MPB+uCgUQSvM/rL4N40qq/MQ48f8deGLFR0eQX/J028LN4
 X1yAeIcbSnuVFD8WLQy9rvXMeqFqxADjG17P87qbLRs2zesAdHknB82QGdyy/DQfNWau
 0diw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1706891299; x=1707496099;
 h=in-reply-to:mail-followup-to:from:references:cc:to:content-language
 :subject:user-agent:mime-version:date:message-id:sender
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=ARFJDzvZCE95wFfZz/LGrnmtYXYGSp5qKlMrAqsaWAM=;
 b=dktycsZYpaOdKAkdRe+fCc4ZFS0tJIbcxiudmTJ4Gnb8q4Qx2HrVqVAkj9zO6d1To1
 iSKpj6mqQKuabMHojroHMGVMTVYK6eFSK/SMNiIlbfQbNt/xuvHZDkzHPZDhx/JdeOq0
 BGNCiK+/8+tH4Vve4YjLR+KhRsKPuTh6gIA4pn/kJmqLHTgBlFh3sn2+gBclW5942Dnv
 fvEknCAfxBXM2ycIjWvQ1cus0ZMe+uU3cIqfU+SqW8voI6C1LndIoElD8rLAy40ujlIL
 GA+FwRzInutEaza8/nyf+Y6w5oVDIGgrKh8mmyZHXrgtWrsmxegI1wBOeTulW+IhP1/y
 +9Bg==
X-Gm-Message-State: AOJu0Yya3neGzvqAwUEAyGgbry01i+vxFUTU1Cb6JYDh/hTeW9LKJSfE
 KeH8AfNCGLYgqH4rz6a/9LTgcmCfa+BzQkVQ9OYum/XVh3cOEvWm
X-Google-Smtp-Source: AGHT+IHf60cb0nNZGTAnhx8IwkPMV9j7lM4HFgUEQpCo0UzS9/9lgxU6k0W3yO3PMpWTpwPIvT6y2g==
X-Received: by 2002:ac2:4856:0:b0:50e:558e:1259 with SMTP id
 22-20020ac24856000000b0050e558e1259mr1466042lfy.19.1706891298612; 
 Fri, 02 Feb 2024 08:28:18 -0800 (PST)
X-Forwarded-Encrypted: i=0;
 AJvYcCW53hzPOzgzqQwDV4Y3BqECbq3L9mTzSS5sVQn3VsQ5e9QvWTPPsOWORExISDc4KI0eWkC83Eahfwzo+HHZG9khm/mM4Rw=
Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188])
 by smtp.googlemail.com with ESMTPSA id
 a2-20020a056512200200b00510179dfd8asm343026lfb.293.2024.02.02.08.28.17
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 02 Feb 2024 08:28:18 -0800 (PST)
Content-Language: en-US, ru-RU
Mail-Followup-To: Stefan Kangas <stefankangas@gmail.com>,
 68687@debbugs.gnu.org, emacs-orgmode@gnu.org
In-Reply-To: <CADwFkmknBZj0Y4H=Nwqa4sH0uQAsP70kWtMU33ZgfRiuWkX9_w@mail.gmail.com>
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=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:279348 gmane.emacs.orgmode:159540
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/279348>

This is a multi-part message in MIME format.
--------------XvoEQ5YvCYu2UueGTfofSJJz
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

I am sending an updated version of the patch, earlier I missed one 
occurrence of text/org.

I am leaving it up to you the decision concerning mailcap.el.

On 02/02/2024 14:09, Stefan Kangas wrote:
> So why not:
> 
>   1. Add support for _receiving_ "text/org" in Emacs 30
>   2. Wait with _sending_ "text/org" until it is formally accepted by IANA

I do not mind. I just do not see real reasons to do so taking into 
account applicaion/vnd.lotus-organizer in Emacs and text/org in XDG.

>> Create ~/.mime.types. Debian's variant suggests it in the
>> /etc/mime.types header.
> 
> Is that documented somewhere in our documentation?

Likely it is not. It is documented in man pages for various tools. In 
Emacs-27 mailcap.el was severely broken, so I do not expect detailed 
documentation.

> Yes, that would be best.  While waiting for that to happen, why not do
> what I proposed (override it unconditionally in Emacs)?  It should be
> more useful for Emacs users, if nothing else.

It has happened so that I has spent some time reading Python bug tracker 
concerning their mimetypes module. I suggest against doing it 
unconditionally. Give users controls what sources should be used and 
what priority each source should have (application internal mapping, 
system-wide configuration files, user configuration files, Windows 
registry, XDG files as possible future improvement). Inconsistencies are 
not uncommon, updates of the IANA registry are applied with different pace.

> Taking a step back, how sure are we that IANA will accept this?  Do they
> typically accept taking over a previous designation?

An alternative is to negotiate with maintainers of mime.types in RedHat 
and Debian. My first impression is that in the case of Debian it may 
take enough time before any reaction. I am unsure as well that IANA will 
agree to change media type for .org without approval from IBM.
--------------XvoEQ5YvCYu2UueGTfofSJJz
Content-Type: text/x-patch; charset=UTF-8;
 name="v2-0001-Use-text-org-media-type.patch"
Content-Disposition: attachment;
 filename="v2-0001-Use-text-org-media-type.patch"
Content-Transfer-Encoding: base64

RnJvbSA5ZjA5NTAwNzViYmZiZmMxZmYxMDgwZWU0MTBjNjZlMTk1MzE5N2Q3IE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv
bT4KRGF0ZTogV2VkLCAyNCBKYW4gMjAyNCAyMToxNjoyOCArMDcwMApTdWJqZWN0OiBbUEFU
Q0ggdjJdIFVzZSB0ZXh0L29yZyBtZWRpYSB0eXBlCgpBdm9pZCAieC0iIHByZWZpeCBkZXBy
ZWNhdGVkIGJ5IHJmYzY2NDggZm9yIE9yZyBtb2RlIG1lZGlhIHR5cGUuCiogbGlzcC9uZXQv
bWFpbGNhcC5lbCAobWFpb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