Page 219 Table of Contents Index Page 221
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 23. PRESENTATION TYPES

to the object.

present must be implemented by first expanding any presentation type abbreviations (type and
for-context-type), and then calling stream-present on stream, object, type, and the remaining
keyword arguments, which are described below.

=> stream-present stream object type &key view modifier acceptably for-context-type single-box
allow-sensitive-inferiors sensitive record-type
[Generic Function]
stream-present is the per-stream implementation of present, analogous to the relationship be-
tween write-char and stream-write-char. All extended output streams and output recording
streams must implement a method for stream-present. The default method (on standard-
extended-output-stream
) implements the following behavior.

The object object of type type is presented to the stream stream by calling the type's present
method for the supplied view view. The returned value is the presentation containing the output
corresponding to the object.

type is a presentation type specifier. view is a view object that defaults to stream-default-view
of stream.

for-context-type is a presentation type specifier that is passed to the present method for type,
which can use it to tailor how the object will be presented. for-context-type defaults to type.

modifier, single-box, allow-sensitive-inferiors, and record-type are the same as for with-output-
as-presentation
.

acceptably defaults to nil, which requests the present method to produce text designed to
be read by human beings. If acceptably is t, it requests the present method to produce text
that is recognized by the accept method for for-context-type. This makes no difference to most
presentation types.

The boolean sensitive defaults to true. If it is false, no presentation is produced.

=> present-to-string object &optional type &key view acceptably for-context-type string index
[Function]
Same as present inside with-output-to-string. If string is supplied, it must be a string with
a fill pointer. When index is supplied, it is used as an index into string. view, acceptably, and
for-context-type are as for present.

The first returned value is the string. When string is supplied, a second value is returned, the
updated index.


Page 219 Table of Contents Index Page 221
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E