[slime-devel] Re: in-package at REPL?

Peter Seibel peter at javamonkey.com
Wed Jul 14 21:59:40 UTC 2004


Nikodemus Siivola <tsiivola at cc.hut.fi> writes:

> On Wed, 14 Jul 2004, Peter Seibel wrote:
>
>> I haven't had a chance to look into this myself but on the off chance
>> anyone else has seen this: it seems that from time to time when I use
>> IN-PACKAGE at the REPL *PACKAGE* doesn't change even though the prompt
>> does. Sometimes, however, it does work properly.
>
> Not that, but the prompt and *package* can be desynched by deleting
> *package* (SBCL signals an error right after the delete-package, which I
> backed out of by aborting the slime request):
>
>  CL-USER> (defpackage :tmp (:use :cl))
>  #<PACKAGE "TMP">
>  CL-USER> (in-package :tmp)
>  #<PACKAGE "TMP">
>  TMP> (delete-package :tmp)
>  ; Evaluation aborted
>  TMP> *package*
>  #<PACKAGE "COMMON-LISP-USER">
>
> [ I think this falls into the real of "don't do that, then", unless
>   someone is desperately bored or thinks the cause may be linked to
>   the issue Peter is seeing. ]

Hmmm. I don't think I explicitly deleted any packages but I may have
reevaluated various DEFPACKAGE forms. Mightn't that sometimes cause an
implicit DELETE-PACKAGE? Or something that would confuse SLIME in the
same way? I tried various permutations I couldn't manage to confuse
SLIME so it's nothing obvious. Just thinking out loud on the off
chance it will lead someone to an Aha! moment.

-Peter

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp





More information about the slime-devel mailing list