summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-mode.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index c0388f0..ac670b8 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -71,6 +71,9 @@ scheme buffers."
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-region-and-go')"
(interactive "rP")
+ (save-restriction
+ (narrow-to-region start end)
+ (check-parens))
(geiser-debug--send-region nil
start
end