summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--geiser-guile.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/geiser-guile.el b/geiser-guile.el
index afb8951..fc8f3c8 100644
--- a/geiser-guile.el
+++ b/geiser-guile.el
@@ -188,8 +188,9 @@ This function uses `geiser-guile-init-file' if it exists."
(save-excursion
(geiser-syntax--pop-to-top)
(if (or (re-search-backward geiser-guile--module-re nil t)
- (looking-at geiser-guile--library-re)
- (re-search-forward geiser-guile--module-re nil t))
+ (re-search-backward geiser-guile--library-re nil t)
+ (re-search-forward geiser-guile--module-re nil t)
+ (re-search-forward geiser-guile--library-re nil t))
(geiser-guile--get-module (match-string-no-properties 1))
:f)))
((listp module) module)