Page 237 Table of Contents Index Page 239
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

completion type.

sequence is a list or vector whose elements are the possibilities. Each possibility has a printed
representation, called its name, and an internal representation, called its value. accept reads a
name and returns a value. present is given a value and outputs a name.

test is a function that compares two values for equality. The default is eql.

value-key is a function that returns a value given an element of sequence. The default is identity.

The following presentation type options are available:

name-key is a function that returns a name, as a string, given an element of sequence. The
default is a function that behaves as follows:
string => the string
null => "NIL"
cons => string of the car
symbol => string-capitalize of its name
otherwise => princ-to-string of it
documentation-key is a function that returns either nil or a descriptive string, given an element
of sequence. The default always returns nil.

test, value-key, name-key, and documentation-key must have indefinite extent.

partial-completers is a possibly-empty list of characters that delimit portions of a name that can
be completed separately. The default is a list of one character, #\Space.

=> member &rest elements [Presentation Type Abbreviation]
The type that specifies one of elements. The options are the same as for completion.

=> member-sequence sequence &key test [Presentation Type Abbreviation]
Like member, except that the set of possibilities is the sequence sequence. The parameter test
and the options are the same as for completion.

=> member-alist alist &key test [Presentation Type Abbreviation]
Like member, except that the set of possibilities is the alist alist. Each element of alist is either
an atom as in member-sequence or a list whose car is the name of that possibility and whose
cdr is one of the following:


Page 237 Table of Contents Index Page 239
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