mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
88 lines
2.9 KiB
Plaintext
88 lines
2.9 KiB
Plaintext
@c Generated by the sb-manual contrib. Do not edit.
|
|
|
|
@node sb aclrepl
|
|
@section sb-aclrepl
|
|
|
|
@menu
|
|
* Usage: sb aclrepl usage.
|
|
* Customization: sb aclrepl customization.
|
|
* Example Initialization: sb aclrepl example initialization.
|
|
@end menu
|
|
|
|
The @code{sb-aclrepl} module offers an Allegro CL-style
|
|
Read-Eval-Print Loop for SBCL, with integrated inspector. Adding a
|
|
debugger interface is planned.
|
|
|
|
Allegro CL is a registered trademark of Franz Inc.
|
|
|
|
@node sb aclrepl usage
|
|
@subsection Usage
|
|
|
|
To start @code{sb-aclrepl} as your read-eval-print loop, put the form
|
|
|
|
@example
|
|
(require 'sb-aclrepl)
|
|
@end example
|
|
|
|
in your @code{~/.sbclrc}, one of your @ref{initialization files}.
|
|
|
|
@node sb aclrepl customization
|
|
@subsection Customization
|
|
|
|
The following customization variables are available:
|
|
|
|
@anchor{Variable sb-aclrepl *command-char*}
|
|
@vvindex @sortas{command-char* sb-aclrepl} *command-char* [sb-aclrepl]
|
|
@deffn{Variable} sb-aclrepl:*command-char*
|
|
Prefix character for a top-level command
|
|
@end deffn
|
|
@anchor{Variable sb-aclrepl *prompt*}
|
|
@vvindex @sortas{prompt* sb-aclrepl} *prompt* [sb-aclrepl]
|
|
@deffn{Variable} sb-aclrepl:*prompt*
|
|
The current prompt string or formatter function.
|
|
@end deffn
|
|
@anchor{Variable sb-aclrepl *exit-on-eof*}
|
|
@vvindex @sortas{exit-on-eof* sb-aclrepl} *exit-on-eof* [sb-aclrepl]
|
|
@deffn{Variable} sb-aclrepl:*exit-on-eof*
|
|
If @code{t}, then exit when the EOF character is entered.
|
|
@end deffn
|
|
@anchor{Variable sb-aclrepl *use-short-package-name*}
|
|
@vvindex @sortas{use-short-package-name* sb-aclrepl} *use-short-package-name* [sb-aclrepl]
|
|
@deffn{Variable} sb-aclrepl:*use-short-package-name*
|
|
When @code{t}, use the shortnest package nickname in a prompt
|
|
@end deffn
|
|
@anchor{Variable sb-aclrepl *max-history*}
|
|
@vvindex @sortas{max-history* sb-aclrepl} *max-history* [sb-aclrepl]
|
|
@deffn{Variable} sb-aclrepl:*max-history*
|
|
Maximum number of history commands to remember
|
|
@end deffn
|
|
@node sb aclrepl example initialization
|
|
@subsection Example Initialization
|
|
|
|
Here's a longer example of a @code{~/.sbclrc} file that shows off
|
|
some of the features of sb-aclrepl:
|
|
|
|
@example
|
|
(ignore-errors (require 'sb-aclrepl))
|
|
|
|
(when (find-package 'sb-aclrepl)
|
|
(push :aclrepl cl:*features*))
|
|
#+aclrepl
|
|
(progn
|
|
(setq sb-aclrepl:*max-history* 100)
|
|
(setf (sb-aclrepl:alias "asdc")
|
|
#'(lambda (sys) (asdf:operate 'asdf:compile-op sys)))
|
|
(sb-aclrepl:alias "l" (sys) (asdf:operate 'asdf:load-op sys))
|
|
(sb-aclrepl:alias "t" (sys) (asdf:operate 'asdf:test-op sys))
|
|
;; The 1 below means that two characaters ("up") are required
|
|
(sb-aclrepl:alias ("up" 1 "Use package") (package) (use-package package))
|
|
;; The 0 below means only the first letter ("r") is required,
|
|
;; such as ":r base64"
|
|
(sb-aclrepl:alias ("require" 0 "Require module") (sys) (require sys))
|
|
(setq cl:*features* (delete :aclrepl cl:*features*)))
|
|
@end example
|
|
|
|
Questions, comments, or bug reports should be sent to Kevin Rosenberg
|
|
(kevin@@rosenberg.net).
|
|
|