;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: views.lisp,v 1.34 2003/05/14 04:38:36 kevin Exp $
+;;;; $Id: views.lisp,v 1.35 2003/05/14 04:45:05 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
(when (and (view-has-links-p view) (esd-hyperlink slot))
(push (slot-definition-name slot) links)))
- (setf (obj-data-print-code view) `(lambda (x s links)
- (declare (ignorable links))
- ,@(map 'list #'identity print-func)))
-
- (setf (obj-data-func view)
- (when print-func (compile nil (eval (obj-data-print-code view)))))
+ (when (plusp (length print-func))
+ (setf (obj-data-print-code view) `(lambda (x s links)
+ (declare (ignorable links))
+ ,@(map 'list #'identity print-func)))
+ (setf (obj-data-func view)
+ (compile nil (eval (obj-data-print-code view)))))
(setf (link-slots view) (nreverse links)))