[slime-cvs] CVS slime

trittweiler trittweiler at common-lisp.net
Thu Nov 1 14:29:24 UTC 2007


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

Modified Files:
	swank.lisp 
Log Message:

	The inspector page layout has changed slightly. Before the header
	looked like

	  A proper list.
            [type: CONS]
	  -------------------

	It now looks like

	  #<CONS {B3DBD39}>:
	     A proper list.
	  --------------------

	Rationale is to have a "presentation link" to the currently
	inspected object itself, to copy it down to the REPL via `M-RET'.
	This is mostly useful when trying to get a value from the Slime
	Debugger to the REPL, which you can do by inspecting the value
	first by `i', and then using `M-RET' on the object representation
	in the new header layout.

	Such a "presentation link" existed already but was removed in
	2007-08-23. The old behaviour was to have the title ("A proper
	list" in the above example) to contain the link. I decided to make
	the link more explicit.

	* swank.lisp (inspect-object): Now additionally returns a
	string-representation of the object itself, and an inspector id
	for it. Removed returning its type as this is implicit in the new
	string representation.

	* slime.el (slime-open-inspector): Adapted for new header layout.


--- /project/slime/cvsroot/slime/swank.lisp	2007/10/22 11:33:54	1.512
+++ /project/slime/cvsroot/slime/swank.lisp	2007/11/01 14:29:23	1.513
@@ -2934,7 +2934,10 @@
         (*print-readably* nil))
     (multiple-value-bind (title content) (inspect-for-emacs object inspector)
       (list :title title
-            :type (to-string (type-of object))
+            :string-representation
+            (with-output-to-string (stream)
+              (print-unreadable-object (object stream :type t :identity t)))
+            :id (assign-index object *inspectee-parts*)
             :content (inspector-content-for-emacs content)))))
 
 (defslimefun inspector-nth-part (index)




More information about the slime-cvs mailing list