From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: Sv: Christmas wish: Literate Elisp Date: Sat, 14 Dec 2019 04:40:30 +0000 Message-ID: References: , Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_VI1P194MB04292F8DFA21C3FE3E7B236B96570VI1P194MB0429EURP_" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="233794"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "archambv@iro.umontreal.ca" , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 14 05:41:13 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 1ifzEu-000yer-Q6 for ged-emacs-devel@m.gmane.org; Sat, 14 Dec 2019 05:41:13 +0100 Original-Received: from localhost ([::1]:56216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifzEt-0003qh-K4 for ged-emacs-devel@m.gmane.org; Fri, 13 Dec 2019 23:41:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39652) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifzEK-0003Jv-K0 for emacs-devel@gnu.org; Fri, 13 Dec 2019 23:40:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifzEI-0000X8-Sp for emacs-devel@gnu.org; Fri, 13 Dec 2019 23:40:36 -0500 Original-Received: from mail-oln040092068085.outbound.protection.outlook.com ([40.92.68.85]:20593 helo=EUR02-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ifzEH-0000LX-Uq for emacs-devel@gnu.org; Fri, 13 Dec 2019 23:40:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G/VwZH9vkqdgeGpz4j/0xX382w7OwlHsG+TjCZWp8/nPOXg8DFTFqiNCiqnYcov9na/F7dRBkKZBkErO57f8fli7tVdxrEYud5mLOKcTKfFtzYyOyCmLszAC1wj6mDzqWQhUHODJQvcRlnbgCciRgQXBASHComQ8oNuT9hZk4JzYfOAsP0qy4zUAGjAC02fDRzzcvF20fx/uMPblMvT6rqiwCB6rhn9W0e9BpVDA9QJUkf4qRaMfjB+VnslfWEAUaVh7K3E4MkIHDvYtZ7XBVz1pYdXgGJ7GXhhYWvOenBNB6ow9xKbyeZS6LCfS447Y3HCzuBU3WQ9awRH3ICpKTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pry5ULbM/jiPopDXzcUqiQSjnGrundQX/JvRi8MA5LQ=; b=lsQwofE0pQXJ94lIWNbOkidgOYclsDzWaClWICFdXU2S/yOY2rOHCa6/ddO+FvKehZ5mi0D3+flZ1H/3J2fdMuI3HkvpiFTC3m4LSNqvhlQBqexEPlGvP4//xjdvRoovrMN3xjACX4FHGVOtXyA0j+kYq/QLnH496WZesaGqHPlaV7Y2h4OsEjiDPO7pPkj+bfSZSp4ufouH1Q3Vy2bLy4Qwy1BEltqlNWS0GDVy0IwCv+olfd643qjQpiLS/i+CnkzVCrn0alVesT30s2a/lY/o35VB9OJwkxgluzNlM3493IGWV8tKHdmnbLWLydaOEdN/PRBG/V6icCXoNMEEpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pry5ULbM/jiPopDXzcUqiQSjnGrundQX/JvRi8MA5LQ=; b=ri+1TsBJrSzVJCmNH6UtF5gmOOQo/AVz2ES/OGhqo5uhHSW58hdGpSCDoED7HBiASLPR9PGEaZN/2DQBgn7EFPiWLgEAgEu8OTqEX2fHIukPEt1/j7UVKJ08SOmNUorOuV1iKueTT6rAQ30m79miz60NIZbkf3Z+gVyAUELBeta3jm6+4uDhXKFMaT42Zg9DTJkNhglS4ob4VsQT9CqMItqt2Njn95ELe69pShStUxtRY8szH0IuZTou+R1ZC+EJ0ELH8SYt4zoUq7bdoLiLDjKmKWNf5dWML2e15pXuOYUKTiyvFuaDf3Kvqxz4D3WN3PLEqZI+KfLVoIPY0p2Wcg== Original-Received: from VE1EUR02FT014.eop-EUR02.prod.protection.outlook.com (10.152.12.59) by VE1EUR02HT231.eop-EUR02.prod.protection.outlook.com (10.152.12.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.14; Sat, 14 Dec 2019 04:40:30 +0000 Original-Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.12.57) by VE1EUR02FT014.mail.protection.outlook.com (10.152.12.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.14 via Frontend Transport; Sat, 14 Dec 2019 04:40:30 +0000 Original-Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2538.019; Sat, 14 Dec 2019 04:40:30 +0000 Thread-Topic: Christmas wish: Literate Elisp Thread-Index: AQHVsQLpbIcz5UxgfkCAm3tN+LzJEqe2wVZzgAJDFqg= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:0564189CD7ADF0F25E22BF628B46F68CF0C85DA557E94CC51B209B59AEEDD956; UpperCasedChecksum:1D125AF58DDC608B7515EB073F722031F27649654C66BBAA9B785D91240B0B88; SizeAsReceived:7028; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [DzmLgjwxwfZmlDAKi3TFDjwLysNho5nS] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: e487f9a5-8538-49f6-311a-08d7804fc014 x-ms-traffictypediagnostic: VE1EUR02HT231: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: i4rClR2eB3/iAmS/XKheSVWizQl0OfHr0Xv3eCZEKJlADHa5u37AVC/qQIG+H7wTVIgBRxLL3QHN0C4REArhKuURsXBXxKk5LvccFwHtRoi4TcM6tqBb4IVlaZQVpmw/oFkmVasJi9Z36BPOGU9FMw0iZhY92Fjj5U6dldWT8p74eaExjyu3nY1mMO02xTl2 x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: e487f9a5-8538-49f6-311a-08d7804fc014 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2019 04:40:30.8615 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT231 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.68.85 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:243366 Archived-At: --_000_VI1P194MB04292F8DFA21C3FE3E7B236B96570VI1P194MB0429EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To be honest my contact with Haskell broke once the university course, some= 20 yrs ago was over, so I am a little bit illiterate about Haskells sexy p= ackages. I just recalled that it was possible to invert text and code in Ha= skell. But cool. Didn't know there is a package to let load org files direc= tly either. What I do in init is use org-babel to entangle my init file (or= g-babel-load-file (expand-file-name "~/.emacs.d/lisp/init.org")). What is t= he name of the package? I have tried to google it and looked into elpa pack= ages with list-package but I don't see it. I am just curious how is it done= , as I was thinking or they refactor the code as in org-babel into correspo= nding lisp file. 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 --_000_VI1P194MB04292F8DFA21C3FE3E7B236B96570VI1P194MB0429EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
To be honest my contact with Haskell broke once the university course, some= 20 yrs ago was over, so I am a little bit illiterate about Haskells sexy p= ackages. I just recalled that it was possible to invert text and code in Ha= skell. But cool. Didn't know there is a package to let load org files directly either. What I do in init is u= se org-babel to entangle my init file (org-babel-load-file (expand-file-nam= e "~/.emacs.d/lisp/init.org")). What is the name of the package? = I have tried to google it and looked into elpa packages with list-package but I don't see it. I am just curious how = is it done, as I was thinking or they refactor the code as in org-babel int= o corresponding lisp file.

Thanks for the answers.

Fr=E5n: Stefan Monnier <= monnier@iro.umontreal.ca>
Skickat: den 12 december 2019 18:29
Till: arthur miller <arthur.miller@live.com>
Kopia: emacs-devel <emacs-devel@gnu.org>; archambv@iro.umontre= al.ca <archambv@iro.umontreal.ca>
=C4mne: Re: Christmas wish: Literate Elisp
 
> My proposal is to slightly change Elisp parse= r to treat lines that start
> with any other printable character but '(' as a start of comment and t= o
> 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

--_000_VI1P194MB04292F8DFA21C3FE3E7B236B96570VI1P194MB0429EURP_--