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: Christmas wish: Literate Elisp Date: Thu, 12 Dec 2019 12:29:10 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="257220"; 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 Thu Dec 12 18:59:16 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 1ifSk7-0014ng-Uq for ged-emacs-devel@m.gmane.org; Thu, 12 Dec 2019 18:59:16 +0100 Original-Received: from localhost ([::1]:35130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifSk5-0004AU-Q8 for ged-emacs-devel@m.gmane.org; Thu, 12 Dec 2019 12:59:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56977) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifSH8-00059t-3x for emacs-devel@gnu.org; Thu, 12 Dec 2019 12:29:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifSH6-0003s6-FP for emacs-devel@gnu.org; Thu, 12 Dec 2019 12:29:17 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20708) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ifSH6-0003on-8J for emacs-devel@gnu.org; Thu, 12 Dec 2019 12:29:16 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1FBA11004C7; Thu, 12 Dec 2019 12:29:14 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6A595100350; Thu, 12 Dec 2019 12:29:12 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1576171752; bh=9V7tQLGrfVUVS/EL3y9J3iGijFtFhG9SFcLrIWZUZtg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VaJjdB2OQDXqXj/C44rJMPlshr5LtLEQcs2i/c/HMsdxdwKArw+ZpVEVjR+7lYSK6 d5q0uKMMy3YRp1kRnIWiGW1wtVpvFlsAvNHpmITaO78WQBVuyp3Hi6jydPVraxVPF5 BHhfS4ZUg1SJdKnEhWtqqPf+y6iHyvZ4UKM2Fahjn1PGwXck90VoIA3JumU3dE1RAL rYN5fYTI7w8oL7PnPi5vrS16HWeBHf2r3m0GI4F1h+T6esDrkXozP0ZwgNqWeo3fy1 pLxt4JfzQVp4NOA8nDq0Z/CGQMRP6aQDlNlrn2hvOOFvExZPrQTM7BfVtVRhO/ELKJ zzP7tJPbEUXow== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E2AE412120A; Thu, 12 Dec 2019 12:29:11 -0500 (EST) In-Reply-To: (arthur miller's message of "Thu, 12 Dec 2019 15:45:50 +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:243331 Archived-At: > 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