[slime-cvs] CVS update: slime/swank-sbcl.lisp

Helmut Eller heller at common-lisp.net
Wed Oct 27 10:57:47 UTC 2004


Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv4614

Modified Files:
	swank-sbcl.lisp 
Log Message:
(signal-compiler-condition): Actually delete one of the
reader-conditionalized forms.

Date: Wed Oct 27 12:57:46 2004
Author: heller

Index: slime/swank-sbcl.lisp
diff -u slime/swank-sbcl.lisp:1.106 slime/swank-sbcl.lisp:1.107
--- slime/swank-sbcl.lisp:1.106	Tue Oct 26 02:35:36 2004
+++ slime/swank-sbcl.lisp	Wed Oct 27 12:57:43 2004
@@ -17,8 +17,9 @@
   (require 'sb-posix)
   )
 
-(declaim (optimize (debug 3)))
+
 (in-package :swank-backend)
+(declaim (optimize (debug 2)))
 
 (import
  '(sb-gray:fundamental-character-output-stream
@@ -187,16 +188,15 @@
                        (warning              :warning)
                        (error                :error))
            :short-message (brief-compiler-message-for-emacs condition)
-           :references
-           (let ((c (if (typep condition 'sb-int:encapsulated-condition)
-                        (sb-int:encapsulated-condition condition)
-                        condition)))
-             (when (typep c 'sb-int:reference-condition)
-               (sb-int:reference-condition-references c)))
-           (when (typep condition 'sb-int:reference-condition)
-             (sb-int:reference-condition-references condition))
+           :references (condition-references (real-condition condition))
            :message (long-compiler-message-for-emacs condition context)
            :location (compiler-note-location context))))
+
+(defun real-condition (condition)
+  "Return the encapsulated condition or CONDITION itself."
+  (typecase condition
+    (sb-int:encapsulated-condition (sb-int:encapsulated-condition condition))
+    (t condition)))
 
 (defun compiler-note-location (context)
   (cond (context





More information about the slime-cvs mailing list