From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Elisp printer Date: Fri, 03 Mar 2017 05:23:43 +0100 Message-ID: <871sufm1io.fsf@drachen> 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 1488515110 27565 195.159.176.226 (3 Mar 2017 04:25:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2017 04:25:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 03 05:25:06 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 1cjem6-0006Az-0n for ged-emacs-devel@m.gmane.org; Fri, 03 Mar 2017 05:25:02 +0100 Original-Received: from localhost ([::1]:56059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjemA-00043P-Ly for ged-emacs-devel@m.gmane.org; Thu, 02 Mar 2017 23:25:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjel5-0003k5-7T for emacs-devel@gnu.org; Thu, 02 Mar 2017 23:24:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjel2-0005P9-3A for emacs-devel@gnu.org; Thu, 02 Mar 2017 23:23:59 -0500 Original-Received: from mout.web.de ([212.227.15.3]:56104) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjel1-0005MB-OP for emacs-devel@gnu.org; Thu, 02 Mar 2017 23:23:56 -0500 Original-Received: from drachen.dragon ([109.43.3.114]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LfReL-1bvAaZ1rar-00p7H3; Fri, 03 Mar 2017 05:23:46 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 02 Mar 2017 21:38:54 -0500") X-Provags-ID: V03:K0:E1WgTYzw7KKyv8EK2lCdWlLjjqj49Zpi/IFR5/p6dCSQr7p/lQN oUApqpiJgbRuNiLnhLL6YgE3fVCyAA5f+xpHMem5xWwVf82SIwQ6YW9xnNVtEX/f/quCeAC NivkpRDkuoXSe43Iy9VqQvOKd5AypPS6UHaxoc3cIUJLhApVuhKVhWe/3I3z7feO44f2XGI ZZ+dgyWM6o7qZwayPuOaA== X-UI-Out-Filterresults: notjunk:1;V01:K0:PKCcb9APeQA=:S7epTbfMM8acM5PXetQsBM 8VcSYs6ywjgk+4ZpJaFCc3I8tcANdgcptEQKVl0c4rAzSZrvDEoqGn6KCRFJmTrfJAQY6mf5i MjTEvH0abzCU0SpoNYV7KloPiRtBOhzOZeuncyOP5dStF3c7Rm58aPKFHGAhYSDzFpCp0spET lU5Lrl19ioAcvUsXPcIExz/0/KJoso9Jpj8IP1n/ScZbbHOv9m/3Ai0dXTpyePuI2fmCLg4YJ YghyR6T46JLLCCWpsEqadA+UjH1vYRnRMaSbLwlrqy6xGqApGuQQAoOJOeW5OFprbZow1ZdNJ 34mgtrWrswFUYHLOz0q3FtsHNMqHwtYcCeoxrew6GMMTG5mMYf2IdWxwT93qBQW4PqMBjDhUW IMRDdTrBiEaLJnRBPKoso64vsTG8pGA3ohGqtctTR62qslpHXDMk87P5QFrhL7YEf3+S0188A Xzf5h0BAIUpEo5LCbqkPPSZmMboNswp9Q6XqcOkQkZ7i8kKydWMJV8BUIlsFi3p6A2pW/j6ue XpY49GjGFbgn2eHoU9cvO71AA3/BCv39+ojutjSuypvg2kdfxYGTns4//zIy/5yyT0tlDGK2s tZgL/+37/SQHYUHSha348u3DCqHFQQmNHd9mfoIENcbVrmacLH8hjruhgjT7slRCyqTAWywwy YiN9ujLwptoU7qa/BdJrSMkgS/Gm/ntryY9s5V/Y4BwCyCHF7ah9hDLDhAjDsbvqY1XlAKBlQ jzuIHdvY/XdOfP+2aKjC79DWd0B8z/ugNFAa5fkzNdtTRYroB3x2MlKdTrVGiWvBpDZRdiOe X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.3 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:212728 Archived-At: Stefan Monnier writes: > > 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 tried with (symbol-function 'byte-compile-arglist-warn), where I have advised that function, and got #+begin_src emacs-lisp # > my-byte-compile-arglist-warn--around-ad> #+end_src which not really looks neat (especially with the unindented broken lines). I produced that with a hacked `pp-to-string' that uses `cl-prin1' as 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)? Is just one letter enough? How would thunks and streams look like with this scheme? Michael.