summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-guile.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index fbe6075..e8eb11a 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -171,9 +171,7 @@ This function uses `geiser-guile-init-file' if it exists."
(defun geiser-guile--get-module (&optional module)
(cond ((null module)
(save-excursion
- (ignore-errors
- (while (not (zerop (geiser-syntax--nesting-level)))
- (backward-up-list)))
+ (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))