[slime-cvs] CVS slime

heller heller at common-lisp.net
Mon May 19 13:12:56 UTC 2008


Update of /project/slime/cvsroot/slime
In directory clnet:/tmp/cvs-serv26938

Modified Files:
	ChangeLog swank-sbcl.lisp 
Log Message:
* swank-sbcl.lisp: Don't require asdf.

(swank-compile-string): Add reader-conditionals for
sb-ext::restrict-compiler-policy.



--- /project/slime/cvsroot/slime/ChangeLog	2008/05/19 12:08:19	1.1355
+++ /project/slime/cvsroot/slime/ChangeLog	2008/05/19 13:12:52	1.1356
@@ -1,3 +1,12 @@
+2008-05-19  Helmut Eller  <heller at common-lisp.net>
+
+	* swank-sbcl.lisp: Don't require asdf.
+
+2008-05-19  Helmut Eller  <heller at common-lisp.net>
+
+	* swank-sbcl.lisp (swank-compile-string): Add reader-conditionals
+	for sb-ext::restrict-compiler-policy.
+
 2008-05-19  Geo Carncross  <geocar at gmail.com>
 
 	* contrib/swank-asdf.lisp: Require asdf.
--- /project/slime/cvsroot/slime/swank-sbcl.lisp	2008/04/17 14:56:43	1.195
+++ /project/slime/cvsroot/slime/swank-sbcl.lisp	2008/05/19 13:12:52	1.196
@@ -14,13 +14,15 @@
 (in-package :swank-backend)
 
 (eval-when (:compile-toplevel :load-toplevel :execute)
-  (require 'asdf)
   (require 'sb-bsd-sockets)
   (require 'sb-introspect)
   (require 'sb-posix)
   (require 'sb-cltl2))
 
-(declaim (optimize (debug 2) (sb-c:insert-step-conditions 0)))
+(declaim (optimize (debug 2) 
+                   (sb-c::insert-step-conditions 0)
+                   (sb-c::insert-debug-catch 0)
+                   (sb-c::merge-tail-calls 2)))
 
 (import-from :sb-gray *gray-stream-symbols* :swank-backend)
 
@@ -47,7 +49,12 @@
   (defun sbcl-with-restart-frame ()
     (if (find-symbol "FRAME-HAS-DEBUG-TAG-P" "SB-DEBUG")
         '(:and)
-        '(:or))))
+        '(:or)))
+  (defun sbcl-with-symbol (name package)
+    (if (find-symbol (string name) (string package))
+        '(:and)
+        '(:or)))
+  )
 
 ;;; swank-mop
 
@@ -448,7 +455,10 @@
         (*buffer-offset* position)
         (*buffer-substring* string)
         (filename (temp-file-name))
-        (old-min-debug (assoc 'debug (sb-ext:restrict-compiler-policy))))
+        #+#.(swank-backend::sbcl-with-symbol 'restrict-compiler-policy 'sb-ext)
+        (old-min-debug (assoc 'debug (sb-ext:restrict-compiler-policy)))
+        )
+    #+#.(swank-backend::sbcl-with-symbol 'restrict-compiler-policy 'sb-ext)
     (when debug
       (sb-ext:restrict-compiler-policy 'debug 3))
     (flet ((compile-it (fn)
@@ -466,6 +476,8 @@
                (compile-it #'load)
                (load (compile-it #'identity)))
         (ignore-errors
+          #+#.(swank-backend::sbcl-with-symbol
+               'restrict-compiler-policy 'sb-ext)
           (sb-ext:restrict-compiler-policy 'debug (or old-min-debug 0))
           (delete-file filename)
           (delete-file (compile-file-pathname filename)))))))




More information about the slime-cvs mailing list