summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-09 22:40:11 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-09 22:53:27 +0100
commite91aeb8443f0ff8d0296b97903defecc038d1060 (patch)
treed86e46635a70d705292c13ca832ebc1e973aa117
parent2f12e8a2088ab7bab1149affd32acacce2a1a56e (diff)
downloadgeiser-e91aeb8443f0ff8d0296b97903defecc038d1060.tar.gz
geiser-e91aeb8443f0ff8d0296b97903defecc038d1060.tar.bz2
Racket: ',enter "foo"' as a synonym of ',enter (file "foo")'
-rw-r--r--doc/repl.texi25
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/repl.texi b/doc/repl.texi
index 7976f0d..8a0f784 100644
--- a/doc/repl.texi
+++ b/doc/repl.texi
@@ -133,16 +133,21 @@ The remaining commands are meatier, and deserve sections of their own.
@cindex current module, in REPL
In tune with Geiser's @alt{@ref{current-module,,modus operandi},modus
-operandi}, evaluations
-in the REPL take place in the namespace of the current module. As
-noted above, the REPL's prompt tells you the name of the current
-module. To switch to a different one, you can use the command
-@command{switch-to-geiser-module}, bound to @kbd{C-c C-m}. You'll notice
-that Geiser simply uses a couple of meta-commands provided by the Scheme
-REPL (the stock @command{,m} in Guile and @command{,enter} in
-Racket), and that it doesn't even try to hide that fact. That means that
-you can freely use said native ways directly at the REPL, and Geiser
-will be happy to oblige.
+operandi}, evaluations in the REPL take place in the namespace of the
+current module. As noted above, the REPL's prompt tells you the name of
+the current module. To switch to a different one, you can use the
+command @command{switch-to-geiser-module}, bound to @kbd{C-c C-m}.
+You'll notice that Geiser simply uses a couple of meta-commands provided
+by the Scheme REPL (the stock @command{,m} in Guile and the
+(geiser-defined) @command{,enter} in Racket), and that it doesn't even
+try to hide that fact. That means that you can freely use said native
+ways directly at the REPL, and Geiser will be happy to oblige. In
+Racket, @command{,enter} works like Racket's standard @code{enter!}
+form, but you can also provide a path string as its argument (e.g.,
+@command{,enter "/tmp/foo.rkt"} is equivalent to @command{,enter (file
+"/tmp/foo.rkt")}). Like @code{enter!}, @command{,enter} accepts also
+module names (as in, say, @command{,enter geiser/main}). As mentioned,
+Guile's @command{,m} is used @i{as is}.
@cindex current module, change
Once you enter a new module, only those bindings visible in its