Page 253 Table of Contents Index Page 255
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 24. INPUT EDITING AND COMPLETION FACILITIES

completion characters, complete-from-generator completes against the possibilities that are
generated by the function generator. generator is a function of two arguments, the string string
and another function that it calls in order to process the possibility; it has dynamic extent.

action will be one of :complete, :complete-maximal, :complete-limited, or :possibilities.
These are described under the function complete-input.

predicate must be a function of one argument, an object. If the predicate returns true, the
possibility corresponding to the object is processed, otherwise it is not. It has dynamic extent.

complete-from-generator returns five values, the completed input string, the success value
(true if the completion was successful, otherwise false), the object matching the completion (or
nil if unsuccessful), the number of matches, and a list of possible completions if action was
:possibilities.

This function is one that will typically be passed as the second argument to complete-input.

=> complete-from-possibilities string completions delimiters &key (action :complete) predi-
cate name-key value-key
[Function]
Given an input string string and a list of delimiter characters delimiters that act as partial
completion characters, complete-from-possibilities completes against the possibilities in the
sequence completions. The completion string is extracted from the possibilities in completions
by applying name-key, which is a function of one argument. The object is extracted by applying
value-key, which is a function of one argument. name-key defaults to first, and value-key
defaults to second.

action will be one of :complete, :complete-maximal, :complete-limited, or :possibilities.
These are described under the function complete-input.

predicate must be a function of one argument, an object. If the predicate returns true, the
possibility corresponding to the object is processed, otherwise it is not.

predicate, name-key, and value-key have dynamic extent.

complete-from-possibilities returns five values, the completed input string, the success value
(true if the completion was successful, otherwise false), the object matching the completion (or
nil if unsuccessful), the number of matches, and a list of possible completions if action was
:possibilities.

This function is one that will typically be passed as the second argument to complete-input.

=> with-accept-help options &body body [Macro]
Binds the dynamic environment to control the documentation produced by help and possibilities
gestures during user input in calls to accept with the dynamic scope of body. body may have
zero or more declarations as its first forms.

options is a list of option specifications. Each specification is itself a list of the form (help-option


Page 253 Table of Contents Index Page 255
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