Sorting modules in undefined binding warning.

Printing an initial message that we're searching.
This commit is contained in:
Alex Shinn 2014-07-12 17:10:51 +09:00
parent c160d03024
commit 1d5f06a641

View file

@ -283,8 +283,11 @@
((and (exception? exn)
(equal? "undefined variable" (exception-message exn))
(pair? (exception-irritants exn)))
(let* ((name (car (exception-irritants exn)))
(mods (and (identifier? name)
(let ((name (car (exception-irritants exn))))
(display "Searching for modules exporting " out)
(display name out)
(display " ...\n" out)
(let ((mods (and (identifier? name)
(modules-exporting-identifier name))))
(cond
((pair? mods)
@ -293,7 +296,9 @@
(for-each
(lambda (m)
(display " " out) (write m out) (newline out))
(sort (map car mods)))))))))
(sort (map car mods)
(lambda (a b)
(string<? (write-to-string a) (write-to-string b))))))))))))
(define (repl/eval rp expr-list)
(let ((out (repl-out rp)))