From: Chris Hanson Date: Fri, 2 Jun 2000 02:41:26 +0000 (+0000) Subject: Print out instances in more intelligible form. X-Git-Tag: 20090517-FFI~3632 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=f4d61c0b7c5df7201aed4702966e213cae10d091;p=mit-scheme.git Print out instances in more intelligible form. --- diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index 48be09e20..43c595930 100644 --- a/v7/src/imail/imail-core.scm +++ b/v7/src/imail/imail-core.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imail-core.scm,v 1.93 2000/06/01 18:46:44 cph Exp $ +;;; $Id: imail-core.scm,v 1.94 2000/06/02 02:41:26 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -818,6 +818,14 @@ (define-generic mime-body-type (body)) (define-generic mime-body-subtype (body)) +(define-method write-instance ((body ) port) + (write-instance-helper 'MIME-BODY body port + (lambda () + (write-char #\space port) + (write (mime-body-type body) port) + (write-char #\/ port) + (write (mime-body-subtype body) port)))) + (define-class () (id define accessor) (description define accessor) @@ -861,7 +869,7 @@ (parts define accessor)) (define-method mime-body-type ((body )) body 'MULTIPART) - + (define-class ( (constructor (date subject from sender reply-to to cc bcc in-reply-to message-id)))