get-unused-category
get-unused-category is a built-in function in `C source code
'.
(get-unused-category &optional TABLE)
Return a category which is not yet defined in TABLE.
If no category remains available, return nil.
The optional argument TABLE specifies which category table to modify;
it defaults to the current buffer's category table.