projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3b48b
)
Print improper lists
author
David Vazquez
<davazp@gmail.com>
Fri, 28 Dec 2012 01:42:45 +0000
(
01:42
+0000)
committer
David Vazquez
<davazp@gmail.com>
Fri, 28 Dec 2012 01:42:45 +0000
(
01:42
+0000)
lispstrack.lisp
patch
|
blob
|
history
diff --git
a/lispstrack.lisp
b/lispstrack.lisp
index
562f004
..
12fc7c9
100644
(file)
--- a/
lispstrack.lisp
+++ b/
lispstrack.lisp
@@
-436,8
+436,11
@@
((functionp form) (concat "#<FUNCTION>"))
((listp form)
(concat "("
- (join (mapcar #'print-to-string form)
- " ")
+ (join-trailing (mapcar #'print-to-string (butlast form)) " ")
+ (let ((last (last form)))
+ (if (null (cdr last))
+ (print-to-string (car last))
+ (concat (print-to-string (car last)) " . " (print-to-string (cdr last)))))
")"))))
;;;; Reader