summaryrefslogtreecommitdiff
path: root/doc/repl.texi
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-08-24 06:59:19 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-08-24 06:59:19 +0200
commitc0a2fa783ea41ab05703d7ea1136f78c92f9f141 (patch)
tree676148a550573b31cb62b752176505b050bcad06 /doc/repl.texi
parent2319ffac96cca89f1df49d49e05da10652ac1afb (diff)
downloadgeiser-c0a2fa783ea41ab05703d7ea1136f78c92f9f141.tar.gz
geiser-c0a2fa783ea41ab05703d7ea1136f78c92f9f141.tar.bz2
More documentation.
Diffstat (limited to 'doc/repl.texi')
-rw-r--r--doc/repl.texi75
1 files changed, 38 insertions, 37 deletions
diff --git a/doc/repl.texi b/doc/repl.texi
index 124d509..9e902d4 100644
--- a/doc/repl.texi
+++ b/doc/repl.texi
@@ -17,14 +17,14 @@ ready, just come back here and proceed to the following sections.
@section Starting the REPL
@cindex REPL
-To start a Scheme REPL (meaning, a scheme process offering you a
+To start a Scheme @repl{} (meaning, a scheme process offering you a
Read-Eval-Print Loop), Geiser provides the generic interactive command
@command{run-geiser}. If you run it (via, as is customary in Emacs,
@kbd{M-x run-geiser}, you'll be saluted by a prompt asking which one of
the supported implementations you want to launch (yes, you can stop the
asking: see @ref{active-implementations,,below}). Tabbing for completion
will offer you, as of this writing, @code{guile} and @code{racket}. Just
-choose your poison, and a new REPL buffer will pop-up.
+choose your poison, and a new @repl{} buffer will pop-up.
@image{img/repls}
@@ -32,8 +32,8 @@ If all went according to plan, you'll be facing an
implementation-dependent banner, followed by an interactive prompt.
Going according to plan includes having the executable of the Scheme you
chose in your path. If that's not the case, you can tell Emacs where it
-is, as described @ref{impl-binary,, below}. Returning to our REPL, the
-first thing to notice is that the funny prompt is telling you your
+is, as described @ref{impl-binary,, below}. Returning to our @repl{},
+the first thing to notice is that the funny prompt is telling you your
current module: its name is the part just after the @@ sign (in Guile,
that means @code{guile-user}, while Racket's top namespace doesn't have
a name; cf. @ref{Switching context} below). Other than that, this is
@@ -42,17 +42,17 @@ terminal, with a bunch of add-ons that we'll be reviewing below. You can
start typing sexps right there: Geiser will only dispatch them for
evaluation when they're complete, and will indent new lines properly
until then. It will also keep track of your input, maintaining a history
-file that will be reloaded whenever you restart the REPL.
+file that will be reloaded whenever you restart the @repl{}.
-Nothing that fanciful this far, but there's more to Geiser's REPL. On to
-the next section!
+Nothing that fanciful this far, but there's more to Geiser's @repl{}. On
+to the next section!
@node First aids, Switching context, Starting the REPL, The REPL
@section First aids
@img{repl-menu, right}
@cindex REPL commands
-A quick way of seeing what else Geiser's REPL can do for you, is to
+A quick way of seeing what else Geiser's @repl{} can do for you, is to
display the corresponding entry up there in your menu bar. No, i don't
normally use menus either; but they can come in handy until you've
memorized Geiser's commands, as a learning device. And yes, i usually
@@ -74,14 +74,14 @@ In addition, navigation is sexp- rather than line-based.
There are also a few commands to twiddle with the Scheme process.
@kbd{C-c C-q} will mercilessly kill it (but not before stowing your
history in the file system). A softer nuke is performed by @kbd{C-c
-C-k}: some (rare, i promise) times, Geiser's REPL can get confused by
+C-k}: some (rare, i promise) times, Geiser's @repl{} can get confused by
the input received from then underlying Scheme (specially if you have
multiple threads writing to the standard ports), and become
irresponsive; you can try this command to try to revive it without
killing the process. Finally, if worse comes to worst and the process is
dead, @kbd{C-c C-z} will restart it (but the same shortcut, issued when
-the REPL is alive, will bring you back to the buffer you came from, as
-explained @ref{switching-repl-buff,,here}).
+the @repl{} is alive, will bring you back to the buffer you came from,
+as explained @ref{switching-repl-buff,,here}).
The remaining commands are meatier, and deserve sections of their own.
@@ -90,15 +90,15 @@ The remaining commands are meatier, and deserve sections of their own.
@cindex current module
In tune with Geiser's @ref{current-module,,modus operandi}, evaluations
-in the REPL take place if 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
+in the @repl{} take place if 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 the underlying Scheme's native namespace switching
-facilities (@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.
+that Geiser simply uses the underlying Scheme's native namespace
+switching facilities (@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.
Once you enter a new module, only those bindings visible in its
namespace will be available to your evaluations. All schemes supported
@@ -115,26 +115,27 @@ a prefix-aware list of available module names.
@image{img/mod-completion}
-Which brings me to the next group of REPL commands.
+Which brings me to the next group of @repl{} commands.
@node Let Geiser spy, Customization and tips, Switching context, The REPL
@section Let Geiser spy, write and jump for you
We've already seen Geiser completion of module names in action at the
mini-buffer. You won't be surprised to know that it's also available at
-the REPL buffer itself. There, you can use either @kbd{C-.} or @kbd{M-`}
-to complete module names, and @kbd{@key{TAB}} or @kbd{M-@key{TAB}} to
-complete identifiers. Geiser will know what identifiers are bound in the
-current module and show you a list of those starting with the prefix at
-point. Needless to say, this is not a static list, and it will grow as
-you define or import new bindings in the namespace at hand.
+the @repl{} buffer itself. There, you can use either @kbd{C-.} or
+@kbd{M-`} to complete module names, and @kbd{@key{TAB}} or
+@kbd{M-@key{TAB}} to complete identifiers. Geiser will know what
+identifiers are bound in the current module and show you a list of those
+starting with the prefix at point. Needless to say, this is not a static
+list, and it will grow as you define or import new bindings in the
+namespace at hand.
But, oftentimes, there's more you'll want to know about an identifier
besides its name: what module does it belong to? is it a procedure and,
if so, what arguments does it take? Geiser tries to help you answering
those questions too.
-Actually, if you've been playing with the REPL as you read, you might
+Actually, if you've been playing with the @repl{} as you read, you might
have notice some frantic activity taking place in the minibuffer every
now and then. That was Geiser trying to be helpful (while, hopefully,
not being clippy), or, more concretely, what i call, for want of a
@@ -177,13 +178,13 @@ identifiers exported by a given module: all you need to do is press
The list of exported bindings is shown in a buffer belonging to Geiser's
documentation browser, of which more details are given in forthcoming
sections (but just perusing it's associated key bindings, by any of the
-methods we've already used for the REPL, will give you enough
+methods we've already used for the @repl{}, will give you enough
information to use it effectively enough).
@node Customization and tips, , Let Geiser spy, The REPL
@section Customization and tips
-The looks and ways of the REPL can be fine-tuned via a bunch of
+The looks and ways of the @repl{} can be fine-tuned via a bunch of
customization variables. You can see and modify them all in the
corresponding customization group (by using the menu entry or the good
old @kbd{M-x customize-group geiser-repl}), or by setting them in your
@@ -208,7 +209,7 @@ forget about the richness of the Scheme ecosystem with something like
@end example
@noindent in your initialisation files.
-@anchor{impl-binary} When starting a new REPL, Geiser assumes, by
+@anchor{impl-binary} When starting a new @repl{}, Geiser assumes, by
default, that the corresponding Scheme binary is in your path. If that's
not the case, the variables to tweak are @code{geiser-guile-binary} and
@code{geiser-racket-binary}, which should be set to a string with the
@@ -218,10 +219,10 @@ full path to the requisite binary.
By default, Geiser won't record duplicates in your input history. If you
prefer it did, just set @code{geiser-repl-history-no-dups-p} to
-@code{nil}. History entries are persistent across REPL sessions: they're
-saved in implementation-specific files whose location is controlled by
-the variable @code{geiser-repl-history-filename}. For example, my Geiser
-configuration includes the following line:
+@code{nil}. History entries are persistent across @repl{} sessions:
+they're saved in implementation-specific files whose location is
+controlled by the variable @code{geiser-repl-history-filename}. For
+example, my Geiser configuration includes the following line:
@example
(setq geiser-repl-history-filename "~/.emacs.d/geiser-history")
@end example
@@ -231,11 +232,11 @@ directory.
@subsubheading Autodoc
-If you happen to love peace and quiet and prefer to keep your REPL's
+If you happen to love peace and quiet and prefer to keep your @repl{}'s
echo area free from autodoc's noise, @code{geiser-repl-autodoc-p} is the
customization variable for you: set it to @code{nil} and autodoc will be
-disabled by default in new REPLs. You can always bring the fairies back,
-on a per REPL basis, using @kbd{C-c C-a}.
+disabled by default in new @repl{}s. You can always bring the fairies
+back, on a per @repl{} basis, using @kbd{C-c C-a}.
@c Local Variables:
@c mode: texinfo