All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

sort-inspector-p Generic Function

Summary

Customizes the sort order of attributes/values in the LispWorks IDE Inspector tool.

Package

system

Signature

sort-inspector-p object mode => result

Arguments
object
The object to be inspected.
mode
Name of a mode, or nil. nil defines the default inspection format for object.
Values
result
A boolean.
Description

The generic function sort-inspector-p allow you to customize the LispWorks IDE Inspector tool to control sorting of the attributes and values.

sort-inspector-p determines whether to sort the list of displayed attributes/values of object for the mode mode. It is used in conjunction with a definition of get-inspector-values.

The Inspector tool calls sort-inspector-p with the current object and mode the first time it displays this object in this mode to determine whether to sort the list of attributes/values. If it returns non-nil, it sorts by item, otherwise it does not sort.

There are various methods on system-defined types to get the most useful behavior. You can add methods for your own types.

Notes

The sort type can be changed interactively in the Inspector tool by using the the Preferences... dialog.

See also

get-inspector-values


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02