X-Git-Url: http://git.kpe.io/?p=hyperobject.git;a=blobdiff_plain;f=base-class.lisp;h=e4becfe8d2c8cfb7c680dbce9424902f0e75a1c3;hp=1e3c5dff4ff1fc0bc3e1ce7c0897a78795a49e90;hb=0817a8721cbefca2205dcde535ff6b164033abef;hpb=84f9a22269a37d2d58bdb0f6211f8757855c18ab diff --git a/base-class.lisp b/base-class.lisp index 1e3c5df..e4becfe 100644 --- a/base-class.lisp +++ b/base-class.lisp @@ -7,14 +7,12 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: base-class.lisp,v 1.2 2002/12/02 15:57:17 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) -(eval-when (:compile-toplevel :execute) - (declaim (optimize (speed 2) (safety 2) (compilation-speed 0) (debug 2)))) +(in-package #:hyperobject) (defclass hyperobject () @@ -22,12 +20,8 @@ (: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)))))) + (print-unreadable-object (obj s :type t :identity nil) + (funcall (obj-data-printer (get-view-id obj :compact-text)) + obj s nil)))