various cosmetic tidying

pull/9/head
Matthew Butterick 11 years ago
parent c907cf8083
commit 8e8d13f131

@ -44,6 +44,3 @@
(cache path)) (cache path))
(hash-ref (cache-ref path) key)) (hash-ref (cache-ref path) key))

@ -111,6 +111,7 @@
(coerce/symbol? . -> . (listof complete-path?)) (coerce/symbol? . -> . (listof complete-path?))
(map ->complete-path (filter (λ(i) (has-ext? i ext)) (directory-list (world:current-project-root))))) (map ->complete-path (filter (λ(i) (has-ext? i ext)) (directory-list (world:current-project-root)))))
(define+provide (racket-source? x) (define+provide (racket-source? x)
(->boolean (and (pathish? x) (has-ext? (->path x) 'rkt)))) (->boolean (and (pathish? x) (has-ext? (->path x) 'rkt))))
@ -119,10 +120,12 @@
(define (unsaved-source? path-string) (define (unsaved-source? path-string)
((substring (->string path-string) 0 7) . equal? . "unsaved")) ((substring (->string path-string) 0 7) . equal? . "unsaved"))
(define+provide (magic-directory? path) (define+provide (magic-directory? path)
(and (directory-exists? path) (and (directory-exists? path)
(or (ends-with? (path->string path) "compiled")))) (or (ends-with? (path->string path) "compiled"))))
(define+provide (pollen-related-file? file) (define+provide (pollen-related-file? file)
(ormap (λ(proc) (proc file)) (list (ormap (λ(proc) (proc file)) (list
preproc-source? preproc-source?

@ -4,4 +4,5 @@
(module reader racket/base (module reader racket/base
(require pollen/reader-base) (require pollen/reader-base)
(define+provide-reader-in-mode world:mode-auto)) ; because default mode in file is auto ;; because default mode in file is auto
(define+provide-reader-in-mode world:mode-auto))

@ -1,5 +1,6 @@
#lang racket/base #lang racket/base
(require pollen/main-base) (require pollen/main-base)
(define+provide-module-begin-in-mode world:mode-markdown) (define+provide-module-begin-in-mode world:mode-markdown)
(module reader racket/base (module reader racket/base

@ -1,5 +1,6 @@
#lang racket/base #lang racket/base
(require pollen/main-base) (require pollen/main-base)
(define+provide-module-begin-in-mode world:mode-markup) (define+provide-module-begin-in-mode world:mode-markup)
(module reader racket/base (module reader racket/base

@ -1,5 +1,6 @@
#lang racket/base #lang racket/base
(require pollen/main-base) (require pollen/main-base)
(define+provide-module-begin-in-mode world:mode-preproc) (define+provide-module-begin-in-mode world:mode-preproc)
(module reader racket/base (module reader racket/base

@ -1,5 +1,6 @@
#lang racket/base #lang racket/base
(require pollen/main-base) (require pollen/main-base)
(define+provide-module-begin-in-mode world:mode-pagetree) (define+provide-module-begin-in-mode world:mode-pagetree)
(module reader racket/base (module reader racket/base

@ -3,6 +3,7 @@
(provide define+provide-reader-in-mode (all-from-out pollen/world)) (provide define+provide-reader-in-mode (all-from-out pollen/world))
(define (make-custom-read custom-read-syntax-proc) (define (make-custom-read custom-read-syntax-proc)
(λ(p) (λ(p)
(syntax->datum (syntax->datum

@ -90,6 +90,7 @@ a:active {
text-decoration: underline; text-decoration: underline;
} }
tt { tt {
font-family: "Source Code Pro"; font-family: "Source Code Pro";
font-size: 100%; font-size: 100%;

@ -12,7 +12,6 @@
(provide start-server) (provide start-server)
(define (start-server) (define (start-server)
(define-values (pollen-servlet _) (define-values (pollen-servlet _)
(dispatch-rules (dispatch-rules
[((string-arg) ... (? pagetree-source?)) route-dashboard] [((string-arg) ... (? pagetree-source?)) route-dashboard]

@ -27,5 +27,3 @@
`(,id ,@(if (equal? attrs null) null (list (reverse attrs))) ,@body))) `(,id ,@(if (equal? attrs null) null (list (reverse attrs))) ,@body)))
(apply compose1 (map make-one-tag ids))) (apply compose1 (map make-one-tag ids)))

@ -85,4 +85,3 @@
(with-handlers ([exn:fail? (λ(exn) (error (format "within when/block, ~a" (exn-message exn))))]) (with-handlers ([exn:fail? (λ(exn) (error (format "within when/block, ~a" (exn-message exn))))])
(map ->string (list body ...)))) (map ->string (list body ...))))
"")])) "")]))

@ -1,5 +1,6 @@
#lang racket/base #lang racket/base
(require pollen/main-base) (require pollen/main-base)
(define+provide-module-begin-in-mode world:mode-template) (define+provide-module-begin-in-mode world:mode-template)
(module reader racket/base (module reader racket/base

Loading…
Cancel
Save