From linedit-devel at blacksun.org.uk Wed Nov 16 16:20:59 2011 From: linedit-devel at blacksun.org.uk (Paul Walker) Date: Wed, 16 Nov 2011 16:20:59 +0000 Subject: [linedit-devel] Apparent bug in linedit Message-ID: <20111116162059.GA20452@blacksun.vm.bytemark.co.uk> Hi I'm trying to use SBCL under SLIME, and I get the following error when I start it: Linedit version 0.17.5 [dumb mode] debugger invoked on a SIMPLE-ERROR in thread #: BUG: You seem to have found a bug in Linedit. Please report this incident along with directions to reproduce and the following message to linedit-devel at common-lisp.net:`Invariant (LINEDIT::BACKEND-READY-P LINEDIT::BACKEND) violated.' Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level. ((SB-PCL::FAST-METHOD LINEDIT::BACKEND-CLOSE (LINEDIT::TERMINAL)) # # #) 0] It works when I run SBCL from the command line. I'm using Debian stable, with GNU Emacs 23.2.1 and SBCL 1.0.40.0.debian. linedit is installed through Quicklisp. I can't think of anything else, but I'm only just starting to use Lisp; if I've missed something that'd be helpful please let me know. Thanks -- Paul From nikodemus at random-state.net Wed Nov 16 18:30:01 2011 From: nikodemus at random-state.net (Nikodemus Siivola) Date: Wed, 16 Nov 2011 20:30:01 +0200 Subject: [linedit-devel] Apparent bug in linedit In-Reply-To: <20111116162059.GA20452@blacksun.vm.bytemark.co.uk> References: <20111116162059.GA20452@blacksun.vm.bytemark.co.uk> Message-ID: On 16 November 2011 18:20, Paul Walker > I'm trying to use SBCL under SLIME, and I get the following error when I > start it: > > Linedit version 0.17.5 [dumb mode] > > debugger invoked on a SIMPLE-ERROR in thread # References: <20111116162059.GA20452@blacksun.vm.bytemark.co.uk> Message-ID: <20111117130409.GA27260@blacksun.vm.bytemark.co.uk> On Wed, Nov 16, 2011 at 08:30:01PM +0200, Nikodemus Siivola wrote: > (when (interactive-stream-p *standard-input*) > (ql:quickload "linedit") > (funcall (intern "INSTALL-REPL" :linedit) :wrap-current t)) > and the repl should be activated when you run SBCL terminal, but not > when Slime starts it. Spot on, even down to the original lines in .sblrc. Your replacement works beautifully, thanks. I'm off now to go and understand *how* it works. ;-) (That's a topic for Lisp books, not for this list!) Thanks for the prompt help, -- Paul