Rename viewname to view-name
* undone/main.scm (define-view): Looks nicer
This commit is contained in:
parent
271b33f910
commit
c5dac997f4
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
((_ name doc fmt fields fields* ...
|
((_ name doc fmt fields fields* ...
|
||||||
where predicate
|
where predicate
|
||||||
sort-by sort-predicate sort-field)
|
sort-by sort-predicate sort-field)
|
||||||
(with-syntax ((viewname
|
(with-syntax ((view-name
|
||||||
(datum->syntax
|
(datum->syntax
|
||||||
x (symbol-append (syntax->datum #'name) '-view)))
|
x (symbol-append (syntax->datum #'name) '-view)))
|
||||||
(filtered-list
|
(filtered-list
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
#'(fields fields* ...))))
|
#'(fields fields* ...))))
|
||||||
todo-list)))
|
todo-list)))
|
||||||
#`(begin
|
#`(begin
|
||||||
(define (viewname)
|
(define (view-name)
|
||||||
doc
|
doc
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (item)
|
(lambda (item)
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
#'filtered-list)))
|
#'filtered-list)))
|
||||||
(set! view-list
|
(set! view-list
|
||||||
(append view-list
|
(append view-list
|
||||||
(list (cons 'name viewname)))))))
|
(list (cons 'name view-name)))))))
|
||||||
((_ name doc fmt fields fields* ...
|
((_ name doc fmt fields fields* ...
|
||||||
sort-by sort-predicate sort-field)
|
sort-by sort-predicate sort-field)
|
||||||
#'(define-view name doc fmt fields fields* ...
|
#'(define-view name doc fmt fields fields* ...
|
||||||
|
|
Loading…
Reference in a new issue