From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Elisp printer Date: Thu, 02 Mar 2017 21:38:54 -0500 Message-ID: References: <87pokampa4.fsf@ericabrahamsen.net> <8760m2mmlq.fsf@ericabrahamsen.net> <87lguq5r87.fsf@ericabrahamsen.net> <878tp0i74g.fsf@users.sourceforge.net> <87efyg6y0i.fsf_-_@drachen> <87o9xjm7ij.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488508784 13137 195.159.176.226 (3 Mar 2017 02:39:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2017 02:39:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 03 03:39:36 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjd82-00029v-29 for ged-emacs-devel@m.gmane.org; Fri, 03 Mar 2017 03:39:34 +0100 Original-Received: from localhost ([::1]:55731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjd86-00077B-Bw for ged-emacs-devel@m.gmane.org; Thu, 02 Mar 2017 21:39:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjd7U-00076t-Qt for emacs-devel@gnu.org; Thu, 02 Mar 2017 21:39:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjd7Q-00088a-Jn for emacs-devel@gnu.org; Thu, 02 Mar 2017 21:39:00 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51509) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjd7Q-00088L-Dx for emacs-devel@gnu.org; Thu, 02 Mar 2017 21:38:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A9BAAg1rhY/zPujBheGwEBAQMBAQEJAQEBg1BBhDiFVoUCc5B1KQGVC4INhhwEAgKCT0AYAQIBAQEBAQEBYiiEcQEEAVYjBQsLNBIUGA0kigUItFKLCQEBAQcCJos7ijkFkFSLVZQtiEQyhi6TNx84gQEhFAgshykiihIBAQE X-IPAS-Result: A0A9BAAg1rhY/zPujBheGwEBAQMBAQEJAQEBg1BBhDiFVoUCc5B1KQGVC4INhhwEAgKCT0AYAQIBAQEBAQEBYiiEcQEEAVYjBQsLNBIUGA0kigUItFKLCQEBAQcCJos7ijkFkFSLVZQtiEQyhi6TNx84gQEhFAgshykiihIBAQE X-IronPort-AV: E=Sophos;i="5.35,234,1484024400"; d="scan'208";a="294332963" Original-Received: from 24-140-238-51.cpe.teksavvy.com (HELO ceviche.home) ([24.140.238.51]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Mar 2017 21:38:54 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 56D7D66200; Thu, 2 Mar 2017 21:38:54 -0500 (EST) In-Reply-To: <87o9xjm7ij.fsf@drachen> (Michael Heerdegen's message of "Fri, 03 Mar 2017 03:14:12 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:212727 Archived-At: > I noticed that pp.el doesn't handle the #<...> print syntax very well. Which ones in particular have you noticed (it's used in different ways: some are very old some are more recent (e.g. new in cl-print), some are very simple, others more complex, ...)? > I asked myself whether for the purpose of font-lock, indenting, moving > by parens etc - it would make sense to switch to a print syntax that is > `read'able (pseudo) Lisp so that we could just use Emacs-Lisp mode to > present/work with the print results? I think that could simplify the > work with the new printer. We could use a syntax more like that of structs, i.e. something of the form #s(...). For those objects which really aren't structs at all, we could use a similar notation with another letter (e.g. #f(...) for function objects such as advice thingies)? Stefan