From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Sv: Christmas wish: Literate Elisp Date: Sat, 14 Dec 2019 09:08:18 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="246334"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: "archambv@iro.umontreal.ca" , emacs-devel To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 14 22:15:17 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1igEks-0011mO-JE for ged-emacs-devel@m.gmane.org; Sat, 14 Dec 2019 22:15:14 +0100 Original-Received: from localhost ([::1]:33110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igEkr-0008Ui-B3 for ged-emacs-devel@m.gmane.org; Sat, 14 Dec 2019 16:15:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47965) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igEk4-0007Ks-Tn for emacs-devel@gnu.org; Sat, 14 Dec 2019 16:14:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igEk3-00005I-An for emacs-devel@gnu.org; Sat, 14 Dec 2019 16:14:24 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24256) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igEk3-0008W5-3o for emacs-devel@gnu.org; Sat, 14 Dec 2019 16:14:23 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 71EFA1009A5; Sat, 14 Dec 2019 09:08:27 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 849C7100506; Sat, 14 Dec 2019 09:08:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1576332505; bh=wCVRG9279k9ZzbjytTsQloSPvfDjtjMK9W3W8WbAYog=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=OPN1DHcX0qIejdJl1Zx9RQ9tLCy7XMNIz6GcGr6oUmvAsz8gdK1V1EY8gKGeQekux SjzGvcO7+37TgMg3Y8bAtdZeNhS43J3gSfGYSBX6dvk+BWX6kSY7ngfuXI/5gSAZ2z yiZwANUspJVQ3cdRTxoixjGlWJiq+yZXCU5CwnpqWviSSZisu7g+E2A0E9MgAxfaB7 eEmUiJfwELsTL9sN1L7ZEMWy5jl/0nsa2DXbutBVRi7IInzJ+/7RbXAXzAXlvDz2lz Xsl2u0hHzBjY84E0oVGTjVQYlQZhG0AuKBEZ0f61lHV0DHy9LwhUr/EHSCc4whFfof yRZvxdoXKlJRg== Original-Received: from pastel (unknown [216.154.40.216]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 42F56120484; Sat, 14 Dec 2019 09:08:25 -0500 (EST) In-Reply-To: (arthur miller's message of "Sat, 14 Dec 2019 04:40:30 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243389 Archived-At: arthur miller [2019-12-14 04:40:30] wrote: > To be honest my contact with Haskell broke once the university course, so= me > 20 yrs ago was over, so I am a little bit illiterate about Haskells sexy > packages. I just recalled that it was possible to invert text and code in > Haskell. But cool. The fact that it's written is Haskell is just incidental. > Didn't know there is a package to let load org files directly either. Hmm... The closest I can find is https://github.com/jingtaozf/literate-elis= p/ but it doesn't quite match what I think I was referring to. Stefan > Thanks for the answers. > ________________________________ > Fr=E5n: Stefan Monnier > Skickat: den 12 december 2019 18:29 > Till: arthur miller > Kopia: emacs-devel ; archambv@iro.umontreal.ca > =C4mne: Re: Christmas wish: Literate Elisp > >> My proposal is to slightly change Elisp parser to treat lines that start >> with any other printable character but '(' as a start of comment and to >> simply ignore the line, just as it treats ';' as a comment. > > The `sexpresso` Haskell package follows the same idea ;-) > > As for using it in Elisp: I don't think there's anything stopping anyone > from making such a `literate-elisp-mode` and even arrange for `load` to > handle such a file (just like there is already a package that lets > `load` work directly on .org files). > > I'd welcome such a package in GNU ELPA. > > > Stefan