,use and ,apropos report incorrect inormation about the git module
from within the git module
,m (git)
if you ask what the module uses
,use
the git submodules won't be reported
also
,apropos repository
will find nothing
That's because the git module calls
module-use!
on the result of
(module-public-interface (current-module))
like this
(let ((i (module-public-interface (current-module))))
...
(module-use! i (some-git-submodule))
What happens with this is that
(module-uses (git))
doesn't return the git submodules
But
(module-uses (module-public-interface (git)))
does.
If I change the code in the git module to
(let ((i (current-module)))
...
(module-use! i (some-git-submodule))
Then ,use
and ,apropos
work as expected
The question remains about why this glitch only affects ,use
and ,apropos
but not the autocompletion feature triggered by double pressing the tab key
They probably rely on different machinery
Should they ? Shouldn't they ?
In the meantime I'd fix this in this project, as it makes the interactive sessions less frustrating
I made a little screencast, here
I'll try to attach a patch myself, should I remember how to issue merge requests on Gitlab