[slime-devel] [patch] swank-sbcl.lisp: let save-image work

Anton Kovalenko anton at sw4me.com
Wed Aug 11 13:56:23 UTC 2010


Dear slime developers,

Slime-snapshot facility is a great thing. Unfortunately, there is a
problem in the current `save-image' implementation for sbcl.  Nothing
serious, just an extra nesting level that is easily removed (patch
follows).

--- swank-sbcl.lisp.~1.272.~	2010-07-21 17:40:32.000000000 +0400
+++ swank-sbcl.lisp	2010-08-11 02:12:41.000000000 +0400
@@ -1553,7 +1553,7 @@
     (cond ((= pid 0) 
            (let ((args `(,filename 
                          ,@(if restart-function
-                               `((:toplevel ,restart-function))))))
+                               `(:toplevel ,restart-function)))))
              (apply #'sb-ext:save-lisp-and-die args)))
           (t
            (multiple-value-bind (rpid status) (sb-posix:waitpid pid 0)


(Please excuse me for _not_ posting it as attachment if it _is_ the
preferred way here. There seems to be no way to know in advance.)

-- 
Regards, Anton Kovalenko
+7(916)345-34-02 | Elektrostal' MO, Russia




More information about the slime-devel mailing list