From bf87ecadee5b85392be8d67a6eb5390989d14a5a Mon Sep 17 00:00:00 2001 From: wlott <wlott> Date: Thu, 16 Jan 1992 19:11:58 +0000 Subject: [PATCH] Changed the default list printer to only print lists that start with symbols as function calls if the symbol is fboundp. Added a call to BACKQ-PP-INIT so that Miles' backquote unparsing stuff gets used. --- code/pprint.lisp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/pprint.lisp b/code/pprint.lisp index 7773af570..52413c9c8 100644 --- a/code/pprint.lisp +++ b/code/pprint.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.6 1991/12/13 06:06:44 wlott Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pprint.lisp,v 1.7 1992/01/16 19:11:58 wlott Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1481,12 +1481,15 @@ (*building-initial-table* t)) ;; Printers for regular types. (set-pprint-dispatch 'array #'pprint-array) - (set-pprint-dispatch '(cons symbol) #'pprint-function-call -1) + (set-pprint-dispatch '(cons (and symbol (satisfies fboundp))) + #'pprint-function-call -1) (set-pprint-dispatch 'cons #'pprint-fill -2) ;; Cons cells with interesting things for the car. (dolist (magic-form magic-forms) (set-pprint-dispatch `(cons (eql ,(first magic-form))) - (symbol-function (second magic-form))))) + (symbol-function (second magic-form)))) + ;; Other pretty-print init forms. + (lisp::backq-pp-init)) (setf *print-pprint-dispatch* (copy-pprint-dispatch nil)) (setf *pretty-printer* #'output-pretty-object) -- GitLab