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 Subject: bug#68687: [PATCH] Use text/org media type Date: Wed, 31 Jan 2024 23:30:44 +0700 Message-ID: References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <86plxoblrz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13182"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 68687@debbugs.gnu.org, emacs-orgmode@gnu.org To: Eli Zaretskii , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 31 17:32:36 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 1rVDVs-00038P-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Jan 2024 17:32:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVDVL-0005JX-64; Wed, 31 Jan 2024 11:32:03 -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 1rVDVA-0005Ik-W6 for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 11:31:53 -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 1rVDVA-0001HM-6q for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 11:31:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVDVJ-0004GY-Mi for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 16:32:01 +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.170671866516297 (code B ref 68687); Wed, 31 Jan 2024 16:32:01 +0000 Original-Received: (at 68687) by debbugs.gnu.org; 31 Jan 2024 16:31:05 +0000 Original-Received: from localhost ([127.0.0.1]:38991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDUO-0004Em-PX for submit@debbugs.gnu.org; Wed, 31 Jan 2024 11:31:05 -0500 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:61810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDUM-0004E8-A0 for 68687@debbugs.gnu.org; Wed, 31 Jan 2024 11:31:02 -0500 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-51117bfd452so4183813e87.3 for <68687@debbugs.gnu.org>; Wed, 31 Jan 2024 08:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706718646; x=1707323446; darn=debbugs.gnu.org; h=content-transfer-encoding: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=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=PArAiVqNISTLpvhqYc4hJC9ESQAVW5KUB8uHinImqHmf6dfsyV2ABybfAYea8nQzC5 IvCJz5IWrhhuzZjwTfK+Kvyin9rd1LmZ6OYn65bGdCmujxb8lXL/B1iuNB3Z3GFViXeU PNmdmsMsn+X4Qin8mciVnAnF+uH2QFGKofGfPBB3yDIcvH3viMsEpjcnPJpp3FSREXle eAlXwavakFh71F0ZirXeiQbfsTaW9vHOwguB8Zh48bi4mS0dpXUa1pP9LYNJflLQbLgS CmFZd40y96Ci05dPrzWMTjp47NcJ8HdPnREbb4oxksRYmhjYAPysLMZCPNcM6a2+Isek 89Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706718646; x=1707323446; h=content-transfer-encoding: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=ykGWJHV3/Q7GnOJJNj+IExjHzB9152lG5mutN958/g8=; b=aj5cBoB4mmPSpp2Bi2ls9sGyAbtH5COd1tU3i9uqdOFLHSHdtERZXJzZKBeP3gn7kq oL0X7nG0mLnIhNIlNUTK49huOQiqSCYaj35wVYG7TppH9/TtIwtygf3bLvMVLgw/QKmr Z6GaS1at74ofQHUassVE/PrUNh3ivJGLw2I+/K1UpghcR2yQzpazfW32xTQKv9Ww2ebF oJh/PyFi7rujLZ+FddOxVSeT+X4fUkO3gkS+AJbwqvHAlTw4L3y/EOE2Td2WzpM82Mj7 at10SBLx9jaOATY6pOI9i5O7Jnzc06C8qFDW+IFT6iINMnjGcx2CHEpJhLzpLN4mQNt8 Es4Q== X-Gm-Message-State: AOJu0YyzdnoywKxu3la8cJuAdwNot10E0CXWVdMJp3fHX/6miO8x9e6J HCuYX86GtnkeYrmSTdlXj9Ln+wZeMTsxcYQ7A+WdSJ13roEL0vWXT6VgescMQyg= X-Google-Smtp-Source: AGHT+IEWNnSGm987fp+XPnribZCkZDPQoszEPJGQOnkMcW7zH+b/HtJ08PeZwFfq0wGVJ7vxUtWp0g== X-Received: by 2002:a05:6512:2016:b0:511:2a02:3337 with SMTP id a22-20020a056512201600b005112a023337mr545243lfb.47.1706718646154; Wed, 31 Jan 2024 08:30:46 -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 d19-20020ac24c93000000b0051025dcd3e0sm1873348lfl.69.2024.01.31.08.30.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 08:30:45 -0800 (PST) Content-Language: en-US, ru-RU Mail-Followup-To: Eli Zaretskii , Stefan Kangas , 68687@debbugs.gnu.org, emacs-orgmode@gnu.org In-Reply-To: <86plxoblrz.fsf@gnu.org> 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:279234 Archived-At: On 26/01/2024 14:23, Eli Zaretskii wrote: >> Max Nikulin writes: > >>> 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? Changing of `mm-display-org-inline' may be postponed. I am curious however if there are a lot of users overriding their /etc/mime.types to avoid application/vnd.lotus-organizer. However I am unsure whether `mm-uu-org-src-code-block-extract' is used to send messages. If it purpose to decode received messages then the change should be safe. I had a hope to receive some comments from developers familiar with Emacs mail clients. I have realized that I missed `mm-automatic-display' there "text/org" should be added similar to `mm-inline-media-tests'.