From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: How to draw cons cell diagrams? Date: Fri, 30 Mar 2018 22:27:38 +0200 Organization: Aioe.org NNTP Server Message-ID: <86o9j5tikl.fsf@zoho.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522441705 3555 195.159.176.226 (30 Mar 2018 20:28:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2018 20:28:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 30 22:28:21 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1f20dJ-0000nx-Nm for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Mar 2018 22:28:21 +0200 Original-Received: from localhost ([::1]:40249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f20fN-0002N1-9R for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Mar 2018 16:30:29 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.uzoreto.com!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: Mq3CdlVpWThKpW6fSn+6ow.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.3 Cancel-Lock: sha1:bK+5er74/qwVNSpPD1GpFZyVKIY= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:222180 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116298 Archived-At: Marcin Borkowski wrote: > I'd like to draw ASCII-art diagrams of lists > and cons cells, like the ones found here: > (info "(elisp) Building Lists") or here (info > "(eintr) Lists diagrammed") or something > like this. Interesting idea, and I think you could do it quite well if you just succeed in hooking one (a single) car into a cdr, because if you do that, after that everything would follow with "expanding recursion". This is how a simple data structure, for example a tree, is turned into a diagram, and what is a tree if not just a nested list? Perhaps this is an Org-mode thing BTW? The only reservation is, isn't that kind of expert manipulation of lists, even among Lispers, a thing of the past? In all my Elisp I have only 8 "cons". But then again everyone isn't me, so maybe I'm wrong here - in all my Elisp, I'd say that has happened about 8 times as well :) But to get this post back on the constructive path, the way I would approach this idea is like many other ideas that amount to automate stuff, which Emacs, Elisp and in essence all programming/computing is all about, the way I'd take the first step is by doing it manually! So, if you don't mind, provide us with a list in code, and then the corresponding "ASCII art" (yuk, that word), and even tho this kind of task is more suited for clear-headed kids and very young men, I think we could pull it off, God willing :) -- underground experts united http://user.it.uu.se/~embe8573