[slime-cvs] CVS slime

trittweiler trittweiler at common-lisp.net
Fri Jul 4 22:04:13 UTC 2008


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

Modified Files:
	swank-sbcl.lisp 
Log Message:

* swank-sbcl.lisp (code-location-source-location),
  (code-location-debug-source-name): Patched for incompatible
  structure change in SBCL 1.0.18.10.


--- /project/slime/cvsroot/slime/swank-sbcl.lisp	2008/05/19 13:12:52	1.196
+++ /project/slime/cvsroot/slime/swank-sbcl.lisp	2008/07/04 22:04:12	1.197
@@ -850,9 +850,14 @@
          (plist (sb-c::debug-source-plist dsource)))
     (if (getf plist :emacs-buffer)
         (emacs-buffer-source-location code-location plist)
+        #+#.(swank-backend::sbcl-with-symbol 'debug-source-from 'sb-di)
         (ecase (sb-di:debug-source-from dsource)
           (:file (file-source-location code-location))
-          (:lisp (lisp-source-location code-location))))))
+          (:lisp (lisp-source-location code-location)))
+        #-#.(swank-backend::sbcl-with-symbol 'debug-source-from 'sb-di)
+        (if (sb-di:debug-source-namestring dsource)
+            (file-source-location code-location)
+            (lisp-source-location code-location)))))
 
 ;;; FIXME: The naming policy of source-location functions is a bit
 ;;; fuzzy: we have FUNCTION-SOURCE-LOCATION which returns the
@@ -906,7 +911,12 @@
                          `(:snippet ,snippet)))))))
 
 (defun code-location-debug-source-name (code-location)
-  (namestring (truename (sb-c::debug-source-name
+  (namestring (truename (#+#.(swank-backend::sbcl-with-symbol
+                              'debug-source-name 'sb-di)
+                             sb-c::debug-source-name
+                             #-#.(swank-backend::sbcl-with-symbol
+                                  'debug-source-name 'sb-di)
+                             sb-c::debug-source-namestring
                          (sb-di::code-location-debug-source code-location)))))
 
 (defun code-location-debug-source-created (code-location)




More information about the slime-cvs mailing list