From db80a2219d6294dc8b5548cfb59890939ae83cd7 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 19 Mar 2018 03:09:53 +0100 Subject: A prefix for geiser-compile-current-buffer to restart it all Okay, i must confess it's sometimes handy to restart the REPL before compiling a file (the proverbial clean slate and all). And we already have geiser-restart-repl, so combining the two things when C-u happens was not really difficult. --- doc/cheat.texi | 2 +- doc/parens.texi | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/cheat.texi b/doc/cheat.texi index 793d20f..cbfe08d 100644 --- a/doc/cheat.texi +++ b/doc/cheat.texi @@ -86,7 +86,7 @@ third key not modified by @key{Control}; e.g., @item @tab @tab @item C-c C-k @tab @code{geiser-compile-current-buffer} -@tab Compile and load current file +@tab Compile and load current file; with prefix, restart REPL before @item C-c C-l @tab @code{geiser-load-file} @tab Load scheme file diff --git a/doc/parens.texi b/doc/parens.texi index 71bdc95..55a23f7 100644 --- a/doc/parens.texi +++ b/doc/parens.texi @@ -436,7 +436,12 @@ incremental evaluation. Some people disagree; if you happen to find @uref{http://blog.racket-lang.org/2009/03/drscheme-repl-isnt-lisp-the-one-in-emacs.html, their arguments} convincing, you don't have to throw away Geiser together with the baby: @kbd{M-x geiser-restart-repl} will let you -restart the REPL as many times as you see fit. +restart the REPL as many times as you see fit. Moreover, you can invoke +@kbd{geiser-compile-current-buffer} and @kbd{geiser-load-current-buffer} +with a prefix argument (that'd be something like @kbd{C-u C-c C-k} for +compilation, for instance), to tell Geiser to restart the REPL +associated with a buffer before compiling or loading its current +contents. @cindex evaluation @cindex incremental development, not evil -- cgit v1.2.3