Use `,' to denote list

* undone/main.scm (add): When encountering a value that starts with
  `,', assume that it should be turned into a list.
This commit is contained in:
Tom Willemsen 2012-08-17 01:45:20 +02:00
parent 206294033b
commit 3a132e8040

View file

@ -127,9 +127,14 @@
(append
`((content . ,(read-delimited "")))
(map (lambda (arg)
(let ((pair (string-split arg #\=)))
(cons (string->symbol (car pair))
(cadr pair))))
(let* ((pair (string-split arg #\=))
(var (string->symbol (car pair)))
(val (cadr pair)))
(if (char=? (string-ref val 0) #\,)
(set! val (string-split
(substring val 1) #\,)))
(cons var val)))
args))))))
(define-view default