USAGE
=====
-To start sb-aclrepl as your read-eval-print loop, you must
-put the following command in your ~/.sbclrc.
+To start sb-aclrepl as your read-eval-print loop, put the form
(require 'sb-aclrepl)
+in your ~/.sbclrc initialization file.
-The reason for this is that, currently, sb-aclrepl must loaded before
-SBCL's default REPL starts.
EXAMPLE ~/.sbclrc FILE
======================
(ignore-errors (require 'sb-aclrepl))
(when (find-package 'sb-aclrepl)
- (push :aclrepl *features*))
-
+ (push :aclrepl cl:*features*))
#+aclrepl
(progn
(setq sb-aclrepl:*max-history* 100)
- (setf (sb-aclrepl:alias "asdc") #'(lambda (sys) (asdf:oos 'asdf:load-op sys)))
- (sb-aclrepl:alias "l" (sys) (asdf:oos 'asdf:load-op sys))
- (sb-aclrepl:alias "t" (sys) (asdf:oos 'asdf:test-op sys))
+ (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*)))
Questions, comments, or bug reports should be sent to Kevin Rosenberg
<kevin@rosenberg.net>.
(dolist (result results)
;; Don't fresh-line before a result, since newline was entered by user
;; in *repl-read-form-fun*
- (prin1 result)
- (fresh-line)))))
+ (fresh-line *standard-output*)
+ (prin1 result *standard-output*)))))
(defun repl-fun (noprint)
(repl :noprint noprint :break-level 0))