Skip to content

Load implementations when they are needed

Alex Kost requested to merge alezost:do-not-load-impls into master

Hello, I would like to avoid loading all (active) implementations after loading geiser-impl and to make them being loaded only when they are needed. This should also fix #82 (closed).

IIUC an implementation should be loaded in the following cases:

  • After enabling geiser-mode. This case doesn't require any additional tweaking as geiser-mode calls geiser-impl--set-buffer-implementation, which loads the required implementation.
  • When run-geiser/switch-to-geiser/geiser-connect or a particular wrapper (run-guile, switch-to-racket, ...) is called. As all these commands run geiser-repl--start-repl, I think all is need to be done in this case is to load an implementation inside this function.

The commit message is not very verbose, so let me know if I should improve it.

Merge request reports