From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly Date: Thu, 27 Oct 2022 20:41:10 +0300 Message-ID: References: <86bkq0qf8p.fsf@protected.rcdrun.com> <87wn8lpl2p.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25887"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: 58774@debbugs.gnu.org, emacs-orgmode@gnu.org To: "Dr. Arne Babenhauserheide" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 21:25:56 2022 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 1oo8Vo-0006Np-Aa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 21:25:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo8Qc-0003a2-8A; Thu, 27 Oct 2022 15:20:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo8Q8-0003P9-3Q for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 15:20:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo8Q7-0001gg-LP for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 15:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo8Q6-0006Sl-6t for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2022 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58774 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166689835624783 (code B ref -1); Thu, 27 Oct 2022 19:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2022 19:19:16 +0000 Original-Received: from localhost ([127.0.0.1]:59389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo8PL-0006Re-W3 for submit@debbugs.gnu.org; Thu, 27 Oct 2022 15:19:16 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo8PK-0006RR-1w for submit@debbugs.gnu.org; Thu, 27 Oct 2022 15:19:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo8P8-0002zr-RT; Thu, 27 Oct 2022 15:19:02 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo8P4-0001ZT-QQ; Thu, 27 Oct 2022 15:19:02 -0400 Original-Received: from localhost ([::ffff:102.85.119.94]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081D8D.00000000635AD97E.000042B4; Thu, 27 Oct 2022 12:18:21 -0700 Mail-Followup-To: "Dr. Arne Babenhauserheide" , bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Content-Disposition: inline In-Reply-To: <87wn8lpl2p.fsf@web.de> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246356 gmane.emacs.orgmode:149999 Archived-At: * Dr. Arne Babenhauserheide [2022-10-27 14:23]: > > Jean Louis writes: > > > * Jean Louis [2022-10-25 15:14]: > >> > >> This wish request is related to Emacs EWW and Org mode. > >> > >> Please make EWW recognize Org file when served by WWW server. Currently > >> it does not recognize the MIME type text/x-org and opens the file as > >> text, it does not invoke the org mode. In my opinion, it should. > > > > Now is clear that main problem here is that Org advertises somewhere > > to be "text" in MIME context, while it is not, it is by default > > "application" and thus unsafe, see: > > > > Application Media Types > > https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.5 > > > > and understand difference to: > > > > Text Media Types > > https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.1 > > > > Thus I suggest that Org changes its MIME type and stop falsely > > claiming to be "text" in MIME context, but that content type: > > "application/x-org" become adopted, as that way it will become clear > > that it is unsafe opening Org as falsely claimed "plain" text. > > You are mixing up text/plain and text/*. Orgmode is clearly text/* but > not text/plain. From your link: How do I mix it? > Beyond plain text, there are many formats for representing what might > be known as "rich text". An interesting characteristic of many such > representations is that they are to some extent readable even without > the software that interprets them. It is useful to distinguish them, > at the highest level, from such unreadable data as images, audio, or > text represented in an unreadable form. In the absence of > appropriate interpretation software, it is reasonable to present > subtypes of "text" to the user, while it is not reasonable to do so > with most non-textual data. Such formatted textual data can be > represented using subtypes of "text". Org is not just rich text for reason as explained here: https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.5 so I suggest reading it. Examples of content types for some "rich" text formats: .odt OpenDocument text document application/vnd.oasis.opendocument.text .rtf Rich Text Format (RTF) application/rtf .xhtml XHTML application/xhtml+xml xml XML application/xml is recommended as of RFC 7303 (section 4.1), but text/xml is still used sometimes. You can assign a specific MIME type to a file with .xml extension depending on how its contents are meant to be interpreted. For instance, an Atom feed is application/atom+xml, but application/xml serves as a valid default. Review definition of "application/*" type. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/