From 583674931793540ca24dacd73d1b6b95977b16d2 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 2 Dec 2020 18:43:18 +0000 Subject: Library declaration recognition (Arun Isaac) --- geiser-guile.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'geiser-guile.el') 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) -- cgit v1.2.3