summaryrefslogtreecommitdiff
path: root/elisp/geiser-racket.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-racket.el')
-rw-r--r--elisp/geiser-racket.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el
index f2cec3a..8a0d46d 100644
--- a/elisp/geiser-racket.el
+++ b/elisp/geiser-racket.el
@@ -119,9 +119,7 @@ using start-geiser, a procedure in the geiser/server module."
(defun geiser-racket--explicit-module ()
(save-excursion
- (ignore-errors
- (while (not (zerop (geiser-syntax--nesting-level)))
- (backward-up-list)))
+ (geiser-syntax--pop-to-top)
(and (looking-at geiser-racket--module-re)
(let ((mod (match-string-no-properties 1))
(lang (match-string-no-properties 2)))