diff options
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r-- | elisp/geiser-mode.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el index b5c2029..0d00662 100644 --- a/elisp/geiser-mode.el +++ b/elisp/geiser-mode.el @@ -149,11 +149,12 @@ With a prefix, revert the effect of `geiser-mode-eval-last-sexp-to-buffer' " (setq bosexp (point)) (forward-sexp) (point))) - (ret (geiser-eval-region bosexp ;beginning of sexp - eosexp ;end of sexp - nil - t - print-to-buffer-p)) + (ret (save-excursion + (geiser-eval-region bosexp ;beginning of sexp + eosexp ;end of sexp + nil + t + print-to-buffer-p))) (err (geiser-eval--retort-error ret)) (will-eval-to-buffer (if print-to-buffer-p (not geiser-mode-eval-last-sexp-to-buffer) |