From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#68687: [PATCH] Use text/org media type Date: Wed, 24 Jan 2024 21:43:55 +0700 Message-ID: <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------p7e6ZEQbkUSvqUmp0u2gMop4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-orgmode@gnu.org To: 68687@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 24 15:45:43 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 1rSeVa-00075q-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Jan 2024 15:45:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSeUx-0006wv-UH; Wed, 24 Jan 2024 09:45:04 -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 1rSeUr-0006vC-HQ; Wed, 24 Jan 2024 09:44:58 -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 1rSeUr-0006r7-9d; Wed, 24 Jan 2024 09:44:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSeUw-0001LD-2J; Wed, 24 Jan 2024 09:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jan 2024 14:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: emacs-orgmode@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17061074655059 (code B ref -1); Wed, 24 Jan 2024 14:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 14:44:25 +0000 Original-Received: from localhost ([127.0.0.1]:44839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSeUL-0001JW-7p for submit@debbugs.gnu.org; Wed, 24 Jan 2024 09:44:25 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:38530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSeUI-0001JB-8V for submit@debbugs.gnu.org; Wed, 24 Jan 2024 09:44:23 -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 1rSeTy-0006gL-A9 for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 09:44:03 -0500 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSeTw-0006n1-DX for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 09:44:02 -0500 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5100ed2b33dso1420271e87.0 for ; Wed, 24 Jan 2024 06:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706107438; x=1706712238; darn=gnu.org; h=in-reply-to:from:to:references:content-language:subject:user-agent :mime-version:date:message-id:sender:from:to:cc:subject:date :message-id:reply-to; bh=LKryR2pBy8v2qeOLgysMOQ7nLeQQRP2wvDdhRskC37Y=; b=j24+rBe5z3Y8DQiLRbk/+lHycDutKwN/rXf+lduvJSWYeiks9oanWAq2UplScZz9Mc 0GqHwoJMLEfX1iWPNsHkfssKf7hUYQLGlVICJglpYHKR/fd/YNeTAGI8N9Nrl4eUHp4F VUmu6G6QogkUPIPDWukhh/fStExr4m6y2+3W84wBJW9gKAb0HoP74sK39mX7Ynbz3IP8 hGZcOgPXUtcFgkDiMJPsX/4QnHITE2gNaiZZD6UTvofQXVMLsAMRwh8V4R0XzWx6PJVk 0ZqovsbykpwfPYBiYEOqyzkgliZh/V0iSALeTv9xvziv/PQUqT6yJEGUcz2W5cbMZYTV fsQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706107438; x=1706712238; h=in-reply-to:from:to:references: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=LKryR2pBy8v2qeOLgysMOQ7nLeQQRP2wvDdhRskC37Y=; b=Zcos8DI9KxxLlfSwhGfmQjokqKSBVFTX9Y4guZ0NBO925jYipc9XNEMUCsIClyihDG JxUY1uaYZw2WHRpBD8PAscUGbllzvPtd/0hCRzIK50oZUNsTd4BIlRMcHjS3d8OcSixV ZBKl8kfSxFbHxZS/jrScASQP2cEIoCs2NJVLQGIQDzL2u9lvXbtmcBrgXqr7FZpao5S2 vc+dpd/cZW+Sa1++SHn6nD2NvQVDNDJ1JXyVfpudau1EDoqaalqzl98r8aWEfSIRWZ3X q2pf1YaYT3WXmuhTMrWun0qJDDl6Ig2vqt7hDlXuViOKkVYMZ3HhJAZrEFujrvsklWE5 I5NA== X-Gm-Message-State: AOJu0Yyg5YOWH1KGxagoqQ09tSDgTwud1XF4RVtPMV4HUy6pTx6SCdjY PzDNfcvUePJTUFPiatD3KQXsx9vsoug/+KkX1H1uMnkvAPzLjEkFSeo7hpuU X-Google-Smtp-Source: AGHT+IGptmH6Zrg3RWa5i759HJm4mqMxxZKaZEj8YekPe2mPAQ8N2waOPIyIMcYfM9H4Z38hA+OzTg== X-Received: by 2002:a05:6512:748:b0:50e:b19c:94d7 with SMTP id c8-20020a056512074800b0050eb19c94d7mr3220420lfs.106.1706107437633; Wed, 24 Jan 2024 06:43:57 -0800 (PST) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id k14-20020ac24f0e000000b0050e7e92d211sm2620230lfr.45.2024.01.24.06.43.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 06:43:56 -0800 (PST) Content-Language: en-US, ru-RU In-Reply-To: <8734uqpvgn.fsf@tec.tecosaur.net> Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=manikulin@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:278788 gmane.emacs.orgmode:159304 Archived-At: This is a multi-part message in MIME format. --------------p7e6ZEQbkUSvqUmp0u2gMop4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 However I have no idea concerning a conflict due to the .org file name suffix. It was used in the past by early versions of Lotus Organizer. https://www.iana.org/assignments/media-types/application/vnd.lotus-organizer I am unsure if gnus-related code should be committed to some other repository at first. I am not a gnus user, so I do not mind if an alternative change will be committed. See also emacs-orgmode: Org mode MIME type. Sun, 21 Jan 2024 20:56:15 +0700. https://list.orgmode.org/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com --------------p7e6ZEQbkUSvqUmp0u2gMop4 Content-Type: text/x-patch; charset=UTF-8; name="0001-Use-text-org-media-type.patch" Content-Disposition: attachment; filename="0001-Use-text-org-media-type.patch" Content-Transfer-Encoding: base64 RnJvbSA4YjcxMzkzNjI1ZjExNTkwZTk5ODk2ODA4YmJkMDRlZDgzZjc5MTdlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv bT4KRGF0ZTogV2V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