2. For example call geiser-doc-symbol-at-point and try to find the string-match function. It requires (ice-9 regex) to already be loaded.
I was not familiar with the sourcehut platform, I would be happy to collaborate (I need to learn this email workflow)
I have thought about using geiser-eval--send to eval some modules in a separate buffer, and also to somehow extract the list of symbols out of the modules, a hacky solution for points 1 and 2. I will explore this.
@mirkoh the currently implemented completion is module-aware and shows only symbols available in module environment (and it seems to be a proper OOTB behavior).
Theoretically, we can traverse all the modules in load-path and collect all the symbols available and provide a list of them via arei-find-symbol or something similiar. It can make sense for some use cases (to find a function without importing module upfront for example).