better REPL-wrapping example code in README
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 17 Nov 2011 13:25:04 +0000 (15:25 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 17 Nov 2011 13:25:04 +0000 (15:25 +0200)
  Use INTERACTIVE-STREAM-P so that following the suggestion
  doesn't break Slime.

README

diff --git a/README b/README
index 8ead402..22a6048 100644 (file)
--- a/README
+++ b/README
@@ -38,7 +38,9 @@ LINEDIT
 
   Do
 
-    (linedit:install-repl :wrap-current t :eof-quits t)
+    (when (interactive-stream-p *standard-input*)
+      (asdf:load-system :linedit)
+      (funcall (intern "INSTALL-REPL" :linedit) :wrap-current t))
 
   in eg. your Lisp initialization file (~/.sbclrc for SBCL). If you
   don't want to preserve your current input handler you can omit the