branch: elpa/geiser-guile
commit 583674931793540ca24dacd73d1b6b95977b16d2
Author: jao <[email protected]>
Commit: jao <[email protected]>

    Library declaration recognition (Arun Isaac)
---
 geiser-guile.el | 5 +++--
 1 file 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)

Reply via email to