From d08f649e8bd6ddad39a4e9d4766f88dbb5d24048 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 1 Oct 2011 23:03:41 +0200 Subject: Bug fix: avoiding sending unbalanced sexps in C-c C-r and friends We were not checking that the region sent to the scheme process was balanced, resulting in said process waiting for ever on `read' (or its moral equivalent in our current implementation). We now just refuse to evaluate an improper region in the first place. --- elisp/geiser-mode.el | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3