[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-racket efb71a2 127/191: Racket: ensuring the first
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-racket efb71a2 127/191: Racket: ensuring the first C-c C-d C-i works |
Date: |
Sun, 1 Aug 2021 18:32:14 -0400 (EDT) |
branch: elpa/geiser-racket
commit efb71a2dee0f1609ad3a5576ae23c08c64839571
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Racket: ensuring the first C-c C-d C-i works
... by the obvious device of waiting for the thread building the index
to finish.
---
geiser/autodoc.rkt | 12 ++++++++++++
geiser/user.rkt | 4 ----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/geiser/autodoc.rkt b/geiser/autodoc.rkt
index 08455e5..04a0c09 100644
--- a/geiser/autodoc.rkt
+++ b/geiser/autodoc.rkt
@@ -15,6 +15,7 @@
symbol-documentation
module-exports
update-signature-cache
+ preload-help
get-help)
(require racket/help
@@ -22,9 +23,20 @@
geiser/modules
geiser/locations)
+(define loader-thread #f)
+
+(define (preload-help)
+ (set! loader-thread
+ (thread (lambda ()
+ (with-output-to-string (lambda ()
+ (help meh-i-dont-exist)))))))
+
(define here (current-namespace))
(define (get-help symbol mod)
+ (when loader-thread
+ (thread-wait loader-thread)
+ (set! loader-thread #f))
(if (eq? symbol mod)
(get-mod-help mod)
(with-handlers ([exn? (lambda (_) (eval `(help ,symbol) here))])
diff --git a/geiser/user.rkt b/geiser/user.rkt
index 9b07b95..b3112f2 100644
--- a/geiser/user.rkt
+++ b/geiser/user.rkt
@@ -96,10 +96,6 @@
(define (geiser-prompt-read prompt)
(make-repl-reader (geiser-read prompt)))
-(define (preload-help)
- (thread (lambda ()
- (with-output-to-string (lambda () (help meh-i-dont-exist))))))
-
(define (init-geiser-repl)
(compile-enforce-module-constants #f)
(current-load/use-compiled geiser-loader)
- [nongnu] elpa/geiser-racket 0f063c5 087/191: ,cd for Racket REPL, (continued)
- [nongnu] elpa/geiser-racket 0f063c5 087/191: ,cd for Racket REPL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket cf3e1bd 092/191: Racket: configurable image cache directory, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2d5e638 078/191: Racket: ', enter "foo"' as a synonym of ', enter (file "foo")', Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket aff860d 098/191: Merge branch 'master' of git.sv.gnu.org:/srv/git/geiser, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 216067a 104/191: Racket: new option to specify network interface for REPL server, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 01caa95 120/191: Another take at the fix (files with >, bleh), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2097d2b 110/191: Little clean-ups to the indentation rules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket aa40a48 106/191: racket: fix re-loading of modules with submodules (e.g. plai-typed), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket ba98c40 119/191: Racket: accepting spaces within comint's prompt, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fad35c6 125/191: Racket: pre-loading help also in remote REPLs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket efb71a2 127/191: Racket: ensuring the first C-c C-d C-i works,
Philip Kaludercic <=
- [nongnu] elpa/geiser-racket fd12248 128/191: Racket: correct detection of manual lookup failures, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket e469ace 134/191: For crazy guys that use (define/match [foo bar] ...), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 0c9d6c3 055/191: Guile reconnected (but not debuggable (yet)), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fbbd3ab 060/191: Superior schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 58657b4 056/191: Better EOT token for more robust communication, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fd14450 062/191: Support for implementation-specific font lock keywords, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 309ca6d 069/191: Racket: more information in symbol documentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket a787a26 071/191: Bug fix: don't intern symbols read by scheme reader, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket c4b8c1a 080/191: Racket: geiser-add-to-load-path implemented, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket a9405d0 095/191: Racket: reading into elisp-land the cache dir as needed, Philip Kaludercic, 2021/08/01