summaryrefslogtreecommitdiff
path: root/elisp/geiser-guile.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r--elisp/geiser-guile.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 648c64e..da14b4e 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -162,7 +162,8 @@ This function uses `geiser-guile-init-file' if it exists."
(while (not (zerop (geiser-syntax--nesting-level)))
(backward-up-list)))
(if (or (re-search-backward geiser-guile--module-re nil t)
- (looking-at geiser-guile--library-re))
+ (looking-at geiser-guile--library-re)
+ (re-search-forward geiser-guile--module-re nil t))
(geiser-guile--get-module (match-string-no-properties 1))
:f)))
((listp module) module)