fix help search to not fail on optional user docs

svn: r8337
This commit is contained in:
Matthew Flatt 2008-01-15 15:44:04 +00:00
parent 04859fb2dd
commit 37b188229e

View File

@ -10,8 +10,14 @@
(define cached-xref #f)
(define (get-dests dir)
(map (lambda (d)
(if (pair? d)
(let* ([i (get-info/full dir)]
[scribblings (i 'scribblings)]
[categories (i 'doc-categories (lambda ()
(map (lambda (d) 'library) scribblings)))])
(map (lambda (d cat)
(and (not (eq? cat 'omit))
(not (and (pair? cat) (eq? (car cat) 'omit)))
(pair? d)
(let* ([flags (if (pair? (cdr d)) (cadr d) null)]
[name (if (and (pair? (cdr d)) (pair? (cddr d)) (caddr d))
(cadr d)
@ -30,9 +36,9 @@
(build-path (find-doc-dir) name)]
[else
(build-path dir "compiled" "doc" name)])
"out.sxref"))
#f))
((get-info/full dir) 'scribblings)))
"out.sxref"))))
scribblings
categories)))
(define (load-collections-xref [report-loading void])
(or cached-xref