Function: get-unused-category
get-unused-category is a function defined in category.c.
Signature
(get-unused-category &optional TABLE)
Documentation
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.
Source Code
// Defined in /usr/src/emacs/src/category.c
{
int i;
table = check_category_table (table);
for (i = ' '; i <= '~'; i++)
if (NILP (CATEGORY_DOCSTRING (table, i)))
return make_fixnum (i);
return Qnil;
}