[slime-devel] Endless Loop in Lisp when ,loading twice

Edi Weitz edi at agharta.de
Fri Nov 4 13:32:42 UTC 2005


On Fri, 4 Nov 2005 13:43:49 +0100 (MET), "Stefan Kamphausen" <skampi at gmx.net> wrote:

> I tmight be worth noting that that file uses the special sql-syntax
> of clsql:
>
> #.(locally-enable-sql-reader-syntax)
> ;; ...
> #.(restore-sql-reader-syntax-state)
>
> and that this is the file in which I always land one defun in front.

Replace that with

  (eval-when (:compile-toplevel :load-toplevel :execute)
    (setq *readtable* (copy-readtable))
    (clsql:locally-enable-sql-reader-syntax))

and then you don't need to switch it off at the end of the file.
Search the mailing list for a similar bug report of mine a couple of
months ago.

Cheers,
Edi.



More information about the slime-devel mailing list