Function: make-category-set
make-category-set is a function defined in category.c.
Signature
(make-category-set CATEGORIES)
Documentation
Return a newly created category-set which contains CATEGORIES.
CATEGORIES is a string of category mnemonics. The value is a bool-vector which has t at the indices corresponding to those categories.
Source Code
// Defined in /usr/src/emacs/src/category.c
{
Lisp_Object val;
ptrdiff_t len;
CHECK_STRING (categories);
val = MAKE_CATEGORY_SET;
if (STRING_MULTIBYTE (categories))
error ("Multibyte string in `make-category-set'");
len = SCHARS (categories);
while (--len >= 0)
{
unsigned char cat = SREF (categories, len);
Lisp_Object category = make_fixnum (cat);
CHECK_CATEGORY (category);
set_category_set (val, cat, 1);
}
return val;
}