From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Convert README.org to plain text README while installing package Date: Sun, 26 Jun 2022 10:25:26 +0000 Message-ID: <87letjzppl.fsf@posteo.net> References: <87leuca7v7.fsf@disroot.org> <87czfopmsd.fsf@gnu.org> <87h74ztshe.fsf@gmx.de> <871qw31ois.fsf@yahoo.com> <8735gj4ceo.fsf@gnu.org> <87sfojz63r.fsf@yahoo.com> <87h74z5nio.fsf@localhost> <87ilpf45mo.fsf@disroot.org> <87pmjnumzg.fsf@posteo.net> <877d5ut6z6.fsf@posteo.net> <87o7yink44.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31200"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Akib Azmain Turja , Ihor Radchenko , Po Lu , Tassilo Horn , Michael Albinus , Alan Mackenzie , Stefan Kangas , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 26 12:28:12 2022 Return-path: Envelope-to: ged-emacs-devel@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 1o5PUw-0007t9-DQ for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jun 2022 12:28:10 +0200 Original-Received: from localhost ([::1]:49778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5PUv-0002dA-DQ for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jun 2022 06:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5PSf-0000z7-QP for emacs-devel@gnu.org; Sun, 26 Jun 2022 06:25:50 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:51111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5PSS-0002qk-JO for emacs-devel@gnu.org; Sun, 26 Jun 2022 06:25:39 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 782D7240109 for ; Sun, 26 Jun 2022 12:25:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1656239134; bh=HFzx18C8lqurx4u23HOvcJi4HFALPzFNZes95gYMzoI=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=r9+QK2ns93jHtUDcuOCA1DYGHQYwJv3hAce7EIay88gjX3PqARW3JJwfWEb627tUv o1anIYui3X+8PTZEgb831nwYFl/rjUC3wmi3oz1ZsvvXykgcnlGXucyEDmd5Nw6YXZ yhqbyV8uPiqc7AomljODC13ny2SxupManUYqUk+KR7NZHix8+n7UMKljrbm/eDs9TV tPBQHPBBll/7tIY24wdxE6X8hIEW0uZV7emz/JoHiKx30PGCprLt6IfCfGqZ5bWvoP DOVGWuM2SM5iRfw57IBrwc4us/UzVG2+tLyYFWjolIBC992YifYlXxydeaJB+ZjhBm cqMCcXf95ftQA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LW6SX2b5Fz6tm4; Sun, 26 Jun 2022 12:25:32 +0200 (CEST) X-Hashcash: 1:20:220626:stefan@marxist.se::GUsCs3rGSjmV1WPI:000000000000000000000000000000000000000000000bhy X-Hashcash: 1:20:220626:luangruo@yahoo.com::o75LMOBS+j4ezxT5:00000000000000000000000000000000000000000001ARU X-Hashcash: 1:20:220626:tsdh@gnu.org::RhvHG6aXKtqYMbsc:000001Qr6 X-Hashcash: 1:20:220626:acm@muc.de::rYFo1rd79Mj+ABcR:00000001k7Y X-Hashcash: 1:20:220626:emacs-devel@gnu.org::Rw+6zlVR4+TDgfuH:0000000000000000000000000000000000000000003mro X-Hashcash: 1:20:220626:michael.albinus@gmx.de::2f6zV9KddJTcmolW:00000000000000000000000000000000000000063uQ X-Hashcash: 1:20:220626:monnier@iro.umontreal.ca::6RQ35JWW2gmQnaB1:00000000000000000000000000000000000006RCd X-Hashcash: 1:20:220626:yantar92@gmail.com::NPm11eT8LZ2wHDPO:0000000000000000000000000000000000000000000BOVn X-Hashcash: 1:20:220626:akib@disroot.org::8ioWrPT2wuq1la8l:0FzGf Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (Stefan Monnier's message of "Fri, 24 Jun 2022 13:50:35 -0400") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291628 Archived-At: Stefan Monnier writes: >> The following should address most of your points, just one question, > > Nicely hidden inside the signature :-) > >> > - Your code may end up "rendering" a Markdown file for no obvious bene= fit >> > since the rendering is a no-op (tho I think this is very hypothetical >> > and likely can't happen because of other constraints). >> Why should this be? Both this and the previous iteration of the patch >> check (eq (car readme-content) 'text/plain), and currently there is only >> text/plain (which includes markdown) and text/org? > > text/plain does not include markdown. Markdown files will have type > text/markdown. But in that case, markdown files could still be "rendered", by replacing regular double quotes with fancy quotes, removing unnecessary code blocks, etc. E.g. using "pandoc -t plain", this file --8<---------------cut here---------------start------------->8--- # This is a title So and so *this* and __that__, "they say", yes! some more stuff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D How about some [code](https://code.com)? ```lisp (defun call-me () (call-me) (call-me) (anytime)) ``` or like this $ ls -l ### The Remainder So what is left? * A list * A number list 1. one 2. two 3. three * a horizontal rule --- that's it --8<---------------cut here---------------end--------------->8--- is converted into --8<---------------cut here---------------start------------->8--- This is a title So and so this and that, =E2=80=9Cthey say=E2=80=9D, yes! some more stuff How about some code? (defun call-me () (call-me) (call-me) (anytime)) or like this $ ls -l The Remainder So what is left? - A list - A number list 1. one 2. two 3. three - a horizontal rule ------------------------------------------------------------------------ that=E2=80=99s it --8<---------------cut here---------------end--------------->8--- While not perfect (and I am not arguing to necessarily use pandoc), I do think that there is enough that can be done with markup while still dealing with plain text. > > Stefan