From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <140e7ec30808212157pb7ecfaeyfebe8d754fa0c9b5@mail.gmail.com> Date: Fri, 22 Aug 2008 12:57:00 +0800 From: sqweek To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <87pro3mnvl.fsf@plap.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e1162e60808201042k2a8a20bcj13e487612129b94d@mail.gmail.com> <599f06db0808201223g7b8223e8k545f4db7c45f3e81@mail.gmail.com> <87pro3mnvl.fsf@plap.localdomain> Subject: Re: [9fans] Acme without Flamage Topicbox-Message-UUID: 04f48d56-ead4-11e9-9d60-3106f5b1d025 On Thu, Aug 21, 2008 at 5:06 PM, Paul Donnelly wrote: > The bear is indentation, since to make it work out it's > necessary to use a fixed-width font (something I'd rather not do) and > adjust it by hand, which needs to happen more often and by greater > degrees than in a language like C. The chief issues being: > > (list (list 'a 'b 'c) > (list 1 2 3)) > ; ^ > ; These need to line up. > > ; These need to line up. > ; V > (let ((a 3) > (b 4)) > (+ a b)) > ; ^ > ; Should be two spaces or so. Huh. I always thought lisp had a couple of simple indentation rules, but after spending a little time on fmtsexp.c it has become apparent that the "two spaces or so" is a special case for let! Not sure I care to try and deal with such cases, but maybe it is still somewhat useful: http://sqweek.dnsdojo.org/plan9/fmtsexp.c -sqweek