aosabook/500lines

Lisp code indentation at An Event-Driven Code Framework

Opened this issue · 1 comments

phoe commented

http://aosabook.org/en/500L/an-event-driven-web-framework.html <- this is a page where Lisp code needs proper indenting to make it readable, possibly to some tab<=>space issues.

Solution: basically, put all the code into an Emacs buffer with Lisp mode and Slime powered on in another buffer to fix some indentation problems, indent the blocks, copy everything back in.
Possible readability improvement: grab an automatic JS Lisp highlighter from http://turtleware.eu/posts/Creating-a-project-homepage-with-the-SCLP.html (mouseover some nested code to see how it works).

Hi,

Indentation for this chapter is a bit unnatural because the code has to fit in 85 columns in the print version. I think the 'readability' issue you may be raising is a result of that, and we don't have many options there.

If there are indeed places where spaces and tabs are mixed, we can fix that.