branch: elpa/geiser-racket commit 5e0fcedc5a70f867cd869801b8bedd95d00a7cf0 Author: Jose Antonio Ortega Ruiz <j...@gnu.org> Commit: Jose Antonio Ortega Ruiz <j...@gnu.org>
Possible fix for scanning problem Apparently, the nesting level returned by emacs's syntax parser can be negative (presumably when it gets confused), and we were not avoiding calling backward-up-list when that happened. Could or could not address issue #41... --- elisp/geiser-racket.el | 4 +--- 1 file changed, 1 insertion(+), 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)))