Skip to content

Commit 3f2e31b

Browse files
author
pnathan
committed
Untabified; fixed a few formatting bugs; added note to LW page
1 parent a20ddb2 commit 3f2e31b

File tree

7 files changed

+44
-28
lines changed

7 files changed

+44
-28
lines changed

content-footer.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<hr/>
22
<footer>
33
<p>&copy; Paul Nathan 2013</p>
4-
<p><a href="https://github.com/pnathan/articulate-common-lisp"> Github source</a> - contributions welcome!</p>
5-
<p>Analytics by <a href="https://www.quantcast.com/">Quantcast</a>
4+
<p><a href="https://github.com/pnathan/articulate-common-lisp"> Github source</a> - contributions welcome!</p>
5+
<p>Analytics by <a href="https://www.quantcast.com/">Quantcast</a>
66
</footer>
77

88
<center>
9-
&lambda;
9+
&lambda;
1010
</center>
11-
</div>
12-
</div>
11+
</div>
12+
</div>

env:ccl-setup.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,17 @@ Note that each platform has a *different* CCL executable.
3333
Linedit
3434
---
3535

36+
A CLI tool called linedit is useful.
37+
38+
3639
```Commonlisp
3740
(ql:quickload :linedit)
3841
(require :linedit)
3942
(funcall (intern "INSTALL-REPL" :linedit) :wrap-current t)
40-
```
43+
```
44+
45+
Notes
46+
---
47+
48+
CCL, in general, is very fast to load and has a good reputation for
49+
performance.

env:emacs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ I like to use the following elisp to configure SLIME:
3535
```
3636
(setq inferior-lisp-program "/usr/local/bin/sbcl") ;modify to taste
3737
(require 'slime)
38-
(slime-setup '(slime-fancy) ;adds some nice features
38+
(slime-setup '(slime-fancy) ;adds some nice features
3939
4040
;; these give you unicode
4141
(set-language-environment "UTF-8")
@@ -71,4 +71,3 @@ REPL (Read Evaluate Print Loop) buffer created in your Emacs window.
7171
This provides an interactive view into Common Lisp. You can evaluate functions you
7272
are writing in the source file and immediately use them in the REPL. This provides a
7373
very fast "code and test" facility.
74-

env:lispworks-setup.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ It installs in the usual way for an OSX or Windows application.
1818

1919
The user is recomended to review the LispWorks manual for operation of
2020
the system.
21+
22+
Notes
23+
---
24+
25+
I've found that Lispwork's Personal 6.0 doesn't appear to respect the
26+
Lispworks init file, so the init file (used for Quicklisp) has to be
27+
loaded manually with the form `(LOAD "~/.lispworks")`. I'm not sure
28+
why this happens, but I wish it wouldn't!

env:quicklisp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ management system for Common Lisp.
1515
instance, loading Quicklisp with this command, `$ccl -l
1616
quicklisp.lisp`
1717

18-
* If you are behind a proxy, use (quicklisp-quickstart:install :proxy
19-
"http://your-proxy-here:1337"), of course replacing the proxy
18+
* If you are behind a proxy, use `(quicklisp-quickstart:install :proxy
19+
"http://your-proxy-here:1337")`, of course replacing the proxy
2020
information with your site proxy information.
2121

2222
* Then, after the installation finishes, before you exit, run

examples:trotter-walkthrough.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ The first form in the code is loading the external libraries:
1616

1717
```Commonlisp
1818
(ql:quickload '(:drakma
19-
:split-sequence
20-
:cl-ppcre
21-
:babel))
19+
:split-sequence
20+
:cl-ppcre
21+
:babel))
2222
```
2323

2424
`DRAKMA` is the standard HTTP(S) client library in Lisp,
@@ -58,8 +58,8 @@ complexities of Unicode can be deferred.
5858
"A not terribly great way to determine if the data is ASCII"
5959
(unless (stringp data)
6060
(loop for elem across data do
61-
(when (> elem 127)
62-
(return-from ascii-p nil))))
61+
(when (> elem 127)
62+
(return-from ascii-p nil))))
6363
t)
6464
```
6565

@@ -93,16 +93,16 @@ The next form is the most complex: `find-links`.
9393
(defun find-links (url)
9494
"Scrapes links from a URL. Prints to STDOUT if an error is caught"
9595
(when (and (http-p url)
96-
(not (known-binary url)))
96+
(not (known-binary url)))
9797
(handler-case
98-
(let ((page (drakma:http-request url)))
99-
(when page
100-
(when (ascii-p page)
101-
(cl-ppcre:all-matches-as-strings
102-
*url-regex*
103-
(if (stringp page)
104-
page
105-
(babel:octets-to-string page))))))
98+
(let ((page (drakma:http-request url)))
99+
(when page
100+
(when (ascii-p page)
101+
(cl-ppcre:all-matches-as-strings
102+
*url-regex*
103+
(if (stringp page)
104+
page
105+
(babel:octets-to-string page))))))
106106
107107
#+sbcl(sb-int:simple-stream-error (se) (format t "Whoops, ~a didn't work. ~a~%" url se))
108108
(DRAKMA::DRAKMA-SIMPLE-ERROR (se) (format t "Error? ~a threw ~a~%" url se))

initial:abcs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ Note that the convention is that globals are surrounded with *
179179
"Reads `filename` as a sequence of unsigned 8-bit bytes, no
180180
encoding"
181181
(with-open-file (fin filename
182-
:direction :input
183-
:if-does-not-exist :error)
182+
:direction :input
183+
:if-does-not-exist :error)
184184
(let ((seq (make-array (file-length fin)
185-
:fill-pointer t)))
185+
:fill-pointer t)))
186186
(setf (fill-pointer seq)
187-
(read-sequence seq fin))
187+
(read-sequence seq fin))
188188
seq)))
189189
190190
```

0 commit comments

Comments
 (0)