remove fancy delay dance around load-collections-xref
This commit is contained in:
parent
8a3f662d51
commit
f6805ea0c2
|
@ -1,20 +1,9 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require setup/xref
|
(require setup/xref
|
||||||
racket/promise
|
scribble/xref)
|
||||||
scribble/xref
|
|
||||||
scribble/manual-struct)
|
|
||||||
(provide get-index-entry-info)
|
(provide get-index-entry-info)
|
||||||
|
|
||||||
(define delayed-xref
|
(define xref (load-collections-xref))
|
||||||
(if (getenv "PLTDRXREFDELAY")
|
|
||||||
(begin
|
|
||||||
(printf "PLTDRXREFDELAY: using plain delay\n")
|
|
||||||
(delay (begin
|
|
||||||
(printf "PLTDRXREFDELAY: loading xref\n")
|
|
||||||
(begin0
|
|
||||||
(load-collections-xref)
|
|
||||||
(printf "PLTDRXREFDELAY: loaded xref\n")))))
|
|
||||||
(delay/idle (load-collections-xref))))
|
|
||||||
|
|
||||||
(define req-chan (make-channel))
|
(define req-chan (make-channel))
|
||||||
|
|
||||||
|
@ -25,7 +14,6 @@
|
||||||
(define-values (binding-info cd resp-chan nack-evt) (apply values (channel-get req-chan)))
|
(define-values (binding-info cd resp-chan nack-evt) (apply values (channel-get req-chan)))
|
||||||
(define resp
|
(define resp
|
||||||
(parameterize ([current-directory cd])
|
(parameterize ([current-directory cd])
|
||||||
(define xref (force delayed-xref))
|
|
||||||
(and xref
|
(and xref
|
||||||
(let ([definition-tag (xref-binding->definition-tag xref binding-info #f)])
|
(let ([definition-tag (xref-binding->definition-tag xref binding-info #f)])
|
||||||
(and definition-tag
|
(and definition-tag
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
[else
|
[else
|
||||||
(loop new-cmu (- n 1))]))))
|
(loop new-cmu (- n 1))]))))
|
||||||
|
|
||||||
(void (putenv "PLTDRXREFDELAY" "yes"))
|
|
||||||
(void (putenv "PLTDRPLACEPRINT" "yes"))
|
(void (putenv "PLTDRPLACEPRINT" "yes"))
|
||||||
|
|
||||||
(define (wait-and-print)
|
(define (wait-and-print)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user