diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-09 22:40:11 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2011-01-09 22:53:27 +0100 |
commit | e1673221200c35bdacffebbcc26c2e562080a9fd (patch) | |
tree | 5c67f9fa4541b49090e9d95ddbe6a4d5068c27f8 /doc | |
parent | 8d8d07981ebb0d7c605ed4efa3e6fe16a4fd8894 (diff) | |
download | geiser-guile-e1673221200c35bdacffebbcc26c2e562080a9fd.tar.gz geiser-guile-e1673221200c35bdacffebbcc26c2e562080a9fd.tar.bz2 |
Racket: ',enter "foo"' as a synonym of ',enter (file "foo")'
Diffstat (limited to 'doc')
-rw-r--r-- | doc/repl.texi | 25 |
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 |