move setup/xref
from "scribble-lib" to "racket-index"
The `setup/xref` library conceptually belongs in "racket-index", and moving the library avoids a cross-package use of a private module. Merge to v6.0 original commit: d37e910169622364a10cdd34f00ade99ee216a77
This commit is contained in:
parent
a2e217a846
commit
0957baea77
|
@ -16,8 +16,7 @@
|
||||||
"coroutine.rkt"
|
"coroutine.rkt"
|
||||||
data/queue)
|
data/queue)
|
||||||
|
|
||||||
(require setup/xref
|
(require scribble/xref
|
||||||
scribble/xref
|
|
||||||
scribble/manual-struct)
|
scribble/manual-struct)
|
||||||
|
|
||||||
(import mred^
|
(import mred^
|
||||||
|
@ -4031,7 +4030,14 @@ designates the character that triggers autocompletion
|
||||||
[manual-mpis (and manuals (map sym->mpi manuals))])
|
[manual-mpis (and manuals (map sym->mpi manuals))])
|
||||||
|
|
||||||
(unless xref
|
(unless xref
|
||||||
(set! xref (load-collections-xref)))
|
(let ([load-collections-xref
|
||||||
|
;; Make the dependency on `setup/xref' indirect, so that a
|
||||||
|
;; GUI does not depend on having documentation installed:
|
||||||
|
(with-handlers ([exn:missing-module? (lambda (exn)
|
||||||
|
(lambda ()
|
||||||
|
(load-xref null)))])
|
||||||
|
(dynamic-require 'setup/xref 'load-collections-xref))])
|
||||||
|
(set! xref (load-collections-xref))))
|
||||||
|
|
||||||
(let ([ht (make-hash)])
|
(let ([ht (make-hash)])
|
||||||
(for-each
|
(for-each
|
||||||
|
|
Loading…
Reference in New Issue
Block a user