Automated commit for debian release 2.13-1
[hyperobject.git] / base-class.lisp
index 4c0315661cf8c06f18cea17e3405a204d4d81faa..a7acb3bb04e75a480c4296305d5096a0678cae38 100644 (file)
@@ -7,24 +7,21 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: base-class.lisp,v 1.1 2002/11/25 02:10:38 kevin Exp $
+;;;; $Id$
 ;;;;
-;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
+;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg
 ;;;; *************************************************************************
 
-(in-package :hyperobject)
+(in-package #:hyperobject)
+
 
 (defclass hyperobject ()
   ()
   (:metaclass hyperobject-class)
   (:description "Basic hyperobject class"))
 
-
-(defmethod print-object ((obj hyperobject) (s stream))
-  (print-unreadable-object (obj s :type t :identity t)
-    (let ((fmt (make-instance 'hyperobject::textformat)))
-      (apply #'format 
-            s (funcall (obj-data-fmtstr fmt) obj)
-            (multiple-value-list 
-             (funcall (funcall (obj-data-value-func fmt) obj) obj))))))
+(defmethod print-object ((obj hyperobject) s)
+  (print-unreadable-object (obj s :type t :identity nil)
+    (funcall (obj-data-printer (get-view-id obj :compact-text))
+             obj s nil)))