Previous: , Up: Char Tables   [Contents][Index]


10.13.2 Working With Char Tables

Function: make-char-table type

This function makes a new, empty char table of type type. type should be a symbol, one of char, category, display, generic, or syntax.

Function: put-char-table range value char-table

This function sets the value for chars in range to be value in char-table.

range specifies one or more characters to be affected and should be one of the following:

value must be a value appropriate for the type of char-table.

Function: get-char-table character char-table

This function finds the value for character in char-table.

Function: get-range-char-table range char-table &optional multi

This function finds the value for a range in char-table. If there is more than one value, multi is returned (defaults to nil).

Function: reset-char-table char-table

This function resets char-table to its default state.

Function: map-char-table function char-table &optional range

This function maps function over entries in char-table, calling it with two args, each key and value in the table.

range specifies a subrange to map over and is in the same format as the range argument to put-range-table. If omitted or t, it defaults to the entire table.

Function: valid-char-table-value-p value char-table-type

This function returns non-nil if value is a valid value for char-table-type.

Function: check-valid-char-table-value value char-table-type

This function signals an error if value is not a valid value for char-table-type.


Previous: , Up: Char Tables   [Contents][Index]