(ada-83-string-keywords, ada-95-string-keywords, ada-2005-string-keywords):
[bpt/emacs.git] / src / category.c
CommitLineData
4ed46869 1/* GNU Emacs routines to deal with category tables.
aaef169d 2 Copyright (C) 1998, 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
ce03bf76
KH
3 Copyright (C) 1995, 1997, 1998, 1999
4 National Institute of Advanced Industrial Science and Technology (AIST)
5 Registration Number H14PRO021
4ed46869
KH
6
7This file is part of GNU Emacs.
8
9GNU Emacs is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2, or (at your option)
12any later version.
13
14GNU Emacs is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GNU Emacs; see the file COPYING. If not, write to
4fc5845f
LK
21the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22Boston, MA 02110-1301, USA. */
4ed46869
KH
23
24
25/* Here we handle three objects: category, category set, and category
26 table. Read comments in the file category.h to understand them. */
27
28#include <config.h>
29#include <ctype.h>
30#include "lisp.h"
31#include "buffer.h"
32#include "charset.h"
33#include "category.h"
e35f6ff7 34#include "keymap.h"
4ed46869
KH
35
36/* The version number of the latest category table. Each category
37 table has a unique version number. It is assigned a new number
38 also when it is modified. When a regular expression is compiled
39 into the struct re_pattern_buffer, the version number of the
40 category table (of the current buffer) at that moment is also
41 embedded in the structure.
42
43 For the moment, we are not using this feature. */
44static int category_table_version;
45
46Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p;
47
48/* Variables to determine word boundary. */
49Lisp_Object Vword_combining_categories, Vword_separating_categories;
50
51/* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */
52Lisp_Object _temp_category_set;
53
54\f
55/* Category set staff. */
56
57DEFUN ("make-category-set", Fmake_category_set, Smake_category_set, 1, 1, 0,
fdb82f93
PJ
58 doc: /* Return a newly created category-set which contains CATEGORIES.
59CATEGORIES is a string of category mnemonics.
60The value is a bool-vector which has t at the indices corresponding to
61those categories. */)
62 (categories)
4ed46869
KH
63 Lisp_Object categories;
64{
65 Lisp_Object val;
66 int len;
67
b7826503 68 CHECK_STRING (categories);
4ed46869
KH
69 val = MAKE_CATEGORY_SET;
70
115afec3 71 if (STRING_MULTIBYTE (categories))
95030461 72 error ("Multibyte string in `make-category-set'");
115afec3 73
d5db4077 74 len = SCHARS (categories);
4ed46869
KH
75 while (--len >= 0)
76 {
15c60737 77 Lisp_Object category;
4ed46869 78
d5db4077 79 XSETFASTINT (category, SREF (categories, len));
b7826503 80 CHECK_CATEGORY (category);
4ed46869
KH
81 SET_CATEGORY_SET (val, category, Qt);
82 }
83 return val;
84}
85
86\f
87/* Category staff. */
88
89Lisp_Object check_category_table ();
90
91DEFUN ("define-category", Fdefine_category, Sdefine_category, 2, 3, 0,
1d5c2b92
LT
92 doc: /* Define CATEGORY as a category which is described by DOCSTRING.
93CATEGORY should be an ASCII printing character in the range ` ' to `~'.
94DOCSTRING is the documentation string of the category.
fdb82f93 95The category is defined only in category table TABLE, which defaults to
1d5c2b92 96the current buffer's category table. */)
fdb82f93 97 (category, docstring, table)
4ed46869
KH
98 Lisp_Object category, docstring, table;
99{
b7826503
PJ
100 CHECK_CATEGORY (category);
101 CHECK_STRING (docstring);
4ed46869
KH
102 table = check_category_table (table);
103
104 if (!NILP (CATEGORY_DOCSTRING (table, XFASTINT (category))))
105 error ("Category `%c' is already defined", XFASTINT (category));
106 CATEGORY_DOCSTRING (table, XFASTINT (category)) = docstring;
107
108 return Qnil;
109}
110
111DEFUN ("category-docstring", Fcategory_docstring, Scategory_docstring, 1, 2, 0,
1d5c2b92
LT
112 doc: /* Return the documentation string of CATEGORY, as defined in TABLE.
113TABLE should be a category table and defaults to the current buffer's
114category table. */)
fdb82f93 115 (category, table)
4ed46869
KH
116 Lisp_Object category, table;
117{
b7826503 118 CHECK_CATEGORY (category);
4ed46869
KH
119 table = check_category_table (table);
120
121 return CATEGORY_DOCSTRING (table, XFASTINT (category));
122}
123
124DEFUN ("get-unused-category", Fget_unused_category, Sget_unused_category,
125 0, 1, 0,
1d5c2b92 126 doc: /* Return a category which is not yet defined in TABLE.
0b6694a5 127If no category remains available, return nil.
1d5c2b92 128The optional argument TABLE specifies which category table to modify;
0b6694a5 129it defaults to the current buffer's category table. */)
fdb82f93 130 (table)
4ed46869
KH
131 Lisp_Object table;
132{
133 int i;
4ed46869
KH
134
135 table = check_category_table (table);
136
137 for (i = ' '; i <= '~'; i++)
138 if (NILP (CATEGORY_DOCSTRING (table, i)))
139 return make_number (i);
140
141 return Qnil;
142}
143
144\f
145/* Category-table staff. */
146
147DEFUN ("category-table-p", Fcategory_table_p, Scategory_table_p, 1, 1, 0,
fdb82f93
PJ
148 doc: /* Return t if ARG is a category table. */)
149 (arg)
4ed46869
KH
150 Lisp_Object arg;
151{
152 if (CHAR_TABLE_P (arg)
ed8ec86d 153 && EQ (XCHAR_TABLE (arg)->purpose, Qcategory_table))
4ed46869
KH
154 return Qt;
155 return Qnil;
156}
157
158/* If TABLE is nil, return the current category table. If TABLE is
159 not nil, check the validity of TABLE as a category table. If
160 valid, return TABLE itself, but if not valid, signal an error of
161 wrong-type-argument. */
162
163Lisp_Object
164check_category_table (table)
165 Lisp_Object table;
166{
4ed46869
KH
167 if (NILP (table))
168 return current_buffer->category_table;
88674269 169 CHECK_TYPE (!NILP (Fcategory_table_p (table)), Qcategory_table_p, table);
4ed46869 170 return table;
177c0ea7 171}
4ed46869
KH
172
173DEFUN ("category-table", Fcategory_table, Scategory_table, 0, 0, 0,
fdb82f93
PJ
174 doc: /* Return the current category table.
175This is the one specified by the current buffer. */)
176 ()
4ed46869
KH
177{
178 return current_buffer->category_table;
179}
180
181DEFUN ("standard-category-table", Fstandard_category_table,
182 Sstandard_category_table, 0, 0, 0,
fdb82f93
PJ
183 doc: /* Return the standard category table.
184This is the one used for new buffers. */)
185 ()
4ed46869
KH
186{
187 return Vstandard_category_table;
188}
189
190/* Return a copy of category table TABLE. We can't simply use the
191 function copy-sequence because no contents should be shared between
ed8ec86d 192 the original and the copy. This function is called recursively by
9da95d53 193 binding TABLE to a sub char table. */
4ed46869
KH
194
195Lisp_Object
ed8ec86d 196copy_category_table (table)
4ed46869
KH
197 Lisp_Object table;
198{
ed8ec86d
KH
199 Lisp_Object tmp;
200 int i, to;
4ed46869 201
ed8ec86d
KH
202 if (!NILP (XCHAR_TABLE (table)->top))
203 {
204 /* TABLE is a top level char table.
205 At first, make a copy of tree structure of the table. */
206 table = Fcopy_sequence (table);
207
208 /* Then, copy elements for single byte characters one by one. */
209 for (i = 0; i < CHAR_TABLE_SINGLE_BYTE_SLOTS; i++)
210 if (!NILP (tmp = XCHAR_TABLE (table)->contents[i]))
211 XCHAR_TABLE (table)->contents[i] = Fcopy_sequence (tmp);
212 to = CHAR_TABLE_ORDINARY_SLOTS;
9da95d53
KH
213
214 /* Also copy the first (and sole) extra slot. It is a vector
215 containing docstring of each category. */
216 Fset_char_table_extra_slot
217 (table, make_number (0),
218 Fcopy_sequence (Fchar_table_extra_slot (table, make_number (0))));
ed8ec86d
KH
219 }
220 else
4ed46869 221 {
ed8ec86d
KH
222 i = 32;
223 to = SUB_CHAR_TABLE_ORDINARY_SLOTS;
4ed46869
KH
224 }
225
ed8ec86d
KH
226 /* If the table has non-nil default value, copy it. */
227 if (!NILP (tmp = XCHAR_TABLE (table)->defalt))
228 XCHAR_TABLE (table)->defalt = Fcopy_sequence (tmp);
229
230 /* At last, copy the remaining elements while paying attention to a
231 sub char table. */
232 for (; i < to; i++)
233 if (!NILP (tmp = XCHAR_TABLE (table)->contents[i]))
234 XCHAR_TABLE (table)->contents[i]
235 = (SUB_CHAR_TABLE_P (tmp)
236 ? copy_category_table (tmp) : Fcopy_sequence (tmp));
237
4ed46869
KH
238 return table;
239}
240
241DEFUN ("copy-category-table", Fcopy_category_table, Scopy_category_table,
242 0, 1, 0,
fdb82f93
PJ
243 doc: /* Construct a new category table and return it.
244It is a copy of the TABLE, which defaults to the standard category table. */)
245 (table)
4ed46869
KH
246 Lisp_Object table;
247{
248 if (!NILP (table))
249 check_category_table (table);
250 else
251 table = Vstandard_category_table;
252
9da95d53 253 return copy_category_table (table);
4ed46869
KH
254}
255
70414a3d
KH
256DEFUN ("make-category-table", Fmake_category_table, Smake_category_table,
257 0, 0, 0,
fdb82f93
PJ
258 doc: /* Construct a new and empty category table and return it. */)
259 ()
70414a3d
KH
260{
261 Lisp_Object val;
262
263 val = Fmake_char_table (Qcategory_table, Qnil);
264 XCHAR_TABLE (val)->defalt = MAKE_CATEGORY_SET;
265 Fset_char_table_extra_slot (val, make_number (0),
266 Fmake_vector (make_number (95), Qnil));
267 return val;
268}
269
4ed46869 270DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0,
1d5c2b92
LT
271 doc: /* Specify TABLE as the category table for the current buffer.
272Return TABLE. */)
fdb82f93 273 (table)
4ed46869
KH
274 Lisp_Object table;
275{
6f598a6d 276 int idx;
4ed46869
KH
277 table = check_category_table (table);
278 current_buffer->category_table = table;
279 /* Indicate that this buffer now has a specified category table. */
f6cd0527
GM
280 idx = PER_BUFFER_VAR_IDX (category_table);
281 SET_PER_BUFFER_VALUE_P (current_buffer, idx, 1);
4ed46869
KH
282 return table;
283}
284
285\f
286DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0,
a2c2f196
JB
287 doc: /* Return the category set of CHAR.
288usage: (char-category-set CHAR) */)
fdb82f93 289 (ch)
4ed46869
KH
290 Lisp_Object ch;
291{
b7826503 292 CHECK_NUMBER (ch);
4ed46869
KH
293 return CATEGORY_SET (XFASTINT (ch));
294}
295
296DEFUN ("category-set-mnemonics", Fcategory_set_mnemonics,
297 Scategory_set_mnemonics, 1, 1, 0,
fdb82f93
PJ
298 doc: /* Return a string containing mnemonics of the categories in CATEGORY-SET.
299CATEGORY-SET is a bool-vector, and the categories \"in\" it are those
1d5c2b92 300that are indexes where t occurs in the bool-vector.
fdb82f93
PJ
301The return value is a string containing those same categories. */)
302 (category_set)
4ed46869
KH
303 Lisp_Object category_set;
304{
305 int i, j;
306 char str[96];
307
b7826503 308 CHECK_CATEGORY_SET (category_set);
4ed46869
KH
309
310 j = 0;
311 for (i = 32; i < 127; i++)
312 if (CATEGORY_MEMBER (i, category_set))
313 str[j++] = i;
314 str[j] = '\0';
315
316 return build_string (str);
317}
318
ed8ec86d 319/* Modify all category sets stored under sub char-table TABLE so that
4ed46869
KH
320 they contain (SET_VALUE is t) or don't contain (SET_VALUE is nil)
321 CATEGORY. */
322
323void
324modify_lower_category_set (table, category, set_value)
325 Lisp_Object table, category, set_value;
326{
327 Lisp_Object val;
328 int i;
329
54e67cf7
KH
330 val = XCHAR_TABLE (table)->defalt;
331 if (!CATEGORY_SET_P (val))
332 val = MAKE_CATEGORY_SET;
333 SET_CATEGORY_SET (val, category, set_value);
334 XCHAR_TABLE (table)->defalt = val;
4ed46869 335
ed8ec86d 336 for (i = 32; i < SUB_CHAR_TABLE_ORDINARY_SLOTS; i++)
4ed46869
KH
337 {
338 val = XCHAR_TABLE (table)->contents[i];
339
340 if (CATEGORY_SET_P (val))
341 SET_CATEGORY_SET (val, category, set_value);
ed8ec86d 342 else if (SUB_CHAR_TABLE_P (val))
4ed46869
KH
343 modify_lower_category_set (val, category, set_value);
344 }
345}
346
347void
348set_category_set (category_set, category, val)
349 Lisp_Object category_set, category, val;
350{
351 do {
352 int idx = XINT (category) / 8;
353 unsigned char bits = 1 << (XINT (category) % 8);
354
355 if (NILP (val))
356 XCATEGORY_SET (category_set)->data[idx] &= ~bits;
357 else
358 XCATEGORY_SET (category_set)->data[idx] |= bits;
359 } while (0);
360}
361
362DEFUN ("modify-category-entry", Fmodify_category_entry,
363 Smodify_category_entry, 2, 4, 0,
fdb82f93
PJ
364 doc: /* Modify the category set of CHARACTER by adding CATEGORY to it.
365The category is changed only for table TABLE, which defaults to
366 the current buffer's category table.
367If optional fourth argument RESET is non-nil,
368then delete CATEGORY from the category set instead of adding it. */)
369 (character, category, table, reset)
ea4943bf 370 Lisp_Object character, category, table, reset;
4ed46869
KH
371{
372 int c, charset, c1, c2;
373 Lisp_Object set_value; /* Actual value to be set in category sets. */
374 Lisp_Object val, category_set;
375
b7826503 376 CHECK_NUMBER (character);
ea4943bf 377 c = XINT (character);
b7826503 378 CHECK_CATEGORY (category);
4ed46869
KH
379 table = check_category_table (table);
380
381 if (NILP (CATEGORY_DOCSTRING (table, XFASTINT (category))))
382 error ("Undefined category: %c", XFASTINT (category));
177c0ea7 383
4ed46869
KH
384 set_value = NILP (reset) ? Qt : Qnil;
385
ed8ec86d 386 if (c < CHAR_TABLE_SINGLE_BYTE_SLOTS)
4ed46869
KH
387 {
388 val = XCHAR_TABLE (table)->contents[c];
389 if (!CATEGORY_SET_P (val))
390 XCHAR_TABLE (table)->contents[c] = (val = MAKE_CATEGORY_SET);
391 SET_CATEGORY_SET (val, category, set_value);
392 return Qnil;
393 }
394
75ec644a 395 SPLIT_CHAR (c, charset, c1, c2);
4ed46869
KH
396
397 /* The top level table. */
cecda314 398 val = XCHAR_TABLE (table)->contents[charset + 128];
ed8ec86d
KH
399 if (CATEGORY_SET_P (val))
400 category_set = val;
401 else if (!SUB_CHAR_TABLE_P (val))
4ed46869 402 {
ed8ec86d 403 category_set = val = MAKE_CATEGORY_SET;
cecda314 404 XCHAR_TABLE (table)->contents[charset + 128] = category_set;
4ed46869 405 }
4ed46869 406
ed8ec86d 407 if (c1 <= 0)
4ed46869
KH
408 {
409 /* Only a charset is specified. */
ed8ec86d
KH
410 if (SUB_CHAR_TABLE_P (val))
411 /* All characters in CHARSET should be the same as for having
412 CATEGORY or not. */
4ed46869
KH
413 modify_lower_category_set (val, category, set_value);
414 else
415 SET_CATEGORY_SET (category_set, category, set_value);
416 return Qnil;
417 }
418
419 /* The second level table. */
ed8ec86d 420 if (!SUB_CHAR_TABLE_P (val))
4ed46869 421 {
ed8ec86d 422 val = make_sub_char_table (Qnil);
cecda314 423 XCHAR_TABLE (table)->contents[charset + 128] = val;
4ed46869
KH
424 /* We must set default category set of CHARSET in `defalt' slot. */
425 XCHAR_TABLE (val)->defalt = category_set;
426 }
427 table = val;
428
429 val = XCHAR_TABLE (table)->contents[c1];
ed8ec86d
KH
430 if (CATEGORY_SET_P (val))
431 category_set = val;
432 else if (!SUB_CHAR_TABLE_P (val))
4ed46869 433 {
ed8ec86d 434 category_set = val = Fcopy_sequence (XCHAR_TABLE (table)->defalt);
4ed46869
KH
435 XCHAR_TABLE (table)->contents[c1] = category_set;
436 }
4ed46869 437
ed8ec86d 438 if (c2 <= 0)
4ed46869 439 {
ed8ec86d 440 if (SUB_CHAR_TABLE_P (val))
4ed46869
KH
441 /* All characters in C1 group of CHARSET should be the same as
442 for CATEGORY. */
443 modify_lower_category_set (val, category, set_value);
444 else
445 SET_CATEGORY_SET (category_set, category, set_value);
446 return Qnil;
447 }
448
449 /* The third (bottom) level table. */
ed8ec86d 450 if (!SUB_CHAR_TABLE_P (val))
4ed46869 451 {
53740deb 452 val = make_sub_char_table (Qnil);
4ed46869
KH
453 XCHAR_TABLE (table)->contents[c1] = val;
454 /* We must set default category set of CHARSET and C1 in
455 `defalt' slot. */
456 XCHAR_TABLE (val)->defalt = category_set;
457 }
458 table = val;
459
460 val = XCHAR_TABLE (table)->contents[c2];
ed8ec86d
KH
461 if (CATEGORY_SET_P (val))
462 category_set = val;
463 else if (!SUB_CHAR_TABLE_P (val))
4ed46869
KH
464 {
465 category_set = Fcopy_sequence (XCHAR_TABLE (table)->defalt);
466 XCHAR_TABLE (table)->contents[c2] = category_set;
467 }
4ed46869
KH
468 else
469 /* This should never happen. */
470 error ("Invalid category table");
471
472 SET_CATEGORY_SET (category_set, category, set_value);
473
474 return Qnil;
475}
476\f
4ed46869
KH
477/* Return 1 if there is a word boundary between two word-constituent
478 characters C1 and C2 if they appear in this order, else return 0.
479 Use the macro WORD_BOUNDARY_P instead of calling this function
480 directly. */
481
482int
483word_boundary_p (c1, c2)
484 int c1, c2;
485{
486 Lisp_Object category_set1, category_set2;
487 Lisp_Object tail;
488 int default_result;
489
490 if (CHAR_CHARSET (c1) == CHAR_CHARSET (c2))
491 {
492 tail = Vword_separating_categories;
493 default_result = 0;
494 }
495 else
496 {
497 tail = Vword_combining_categories;
498 default_result = 1;
499 }
500
501 category_set1 = CATEGORY_SET (c1);
502 if (NILP (category_set1))
503 return default_result;
504 category_set2 = CATEGORY_SET (c2);
505 if (NILP (category_set2))
506 return default_result;
507
03699b14 508 for (; CONSP (tail); tail = XCDR (tail))
4ed46869 509 {
03699b14 510 Lisp_Object elt = XCAR (tail);
4ed46869
KH
511
512 if (CONSP (elt)
03699b14
KR
513 && CATEGORYP (XCAR (elt))
514 && CATEGORYP (XCDR (elt))
515 && CATEGORY_MEMBER (XFASTINT (XCAR (elt)), category_set1)
516 && CATEGORY_MEMBER (XFASTINT (XCDR (elt)), category_set2))
4ed46869
KH
517 return !default_result;
518 }
519 return default_result;
520}
521
522\f
dfcf069d 523void
4ed46869
KH
524init_category_once ()
525{
526 /* This has to be done here, before we call Fmake_char_table. */
527 Qcategory_table = intern ("category-table");
528 staticpro (&Qcategory_table);
529
530 /* Intern this now in case it isn't already done.
531 Setting this variable twice is harmless.
532 But don't staticpro it here--that is done in alloc.c. */
533 Qchar_table_extra_slots = intern ("char-table-extra-slots");
534
535 /* Now we are ready to set up this property, so we can
536 create category tables. */
537 Fput (Qcategory_table, Qchar_table_extra_slots, make_number (2));
538
539 Vstandard_category_table = Fmake_char_table (Qcategory_table, Qnil);
177c0ea7 540 /* Set a category set which contains nothing to the default. */
4ed46869 541 XCHAR_TABLE (Vstandard_category_table)->defalt = MAKE_CATEGORY_SET;
9da95d53 542 Fset_char_table_extra_slot (Vstandard_category_table, make_number (0),
4ed46869
KH
543 Fmake_vector (make_number (95), Qnil));
544}
545
dfcf069d 546void
4ed46869
KH
547syms_of_category ()
548{
549 Qcategoryp = intern ("categoryp");
550 staticpro (&Qcategoryp);
551 Qcategorysetp = intern ("categorysetp");
552 staticpro (&Qcategorysetp);
553 Qcategory_table_p = intern ("category-table-p");
554 staticpro (&Qcategory_table_p);
555
556 DEFVAR_LISP ("word-combining-categories", &Vword_combining_categories,
fdb82f93
PJ
557 doc: /* List of pair (cons) of categories to determine word boundary.
558
559Emacs treats a sequence of word constituent characters as a single
560word (i.e. finds no word boundary between them) iff they belongs to
561the same charset. But, exceptions are allowed in the following cases.
562
563\(1) The case that characters are in different charsets is controlled
564by the variable `word-combining-categories'.
565
566Emacs finds no word boundary between characters of different charsets
567if they have categories matching some element of this list.
568
569More precisely, if an element of this list is a cons of category CAT1
570and CAT2, and a multibyte character C1 which has CAT1 is followed by
571C2 which has CAT2, there's no word boundary between C1 and C2.
572
573For instance, to tell that ASCII characters and Latin-1 characters can
574form a single word, the element `(?l . ?l)' should be in this list
575because both characters have the category `l' (Latin characters).
576
577\(2) The case that character are in the same charset is controlled by
578the variable `word-separating-categories'.
579
580Emacs find a word boundary between characters of the same charset
581if they have categories matching some element of this list.
582
583More precisely, if an element of this list is a cons of category CAT1
584and CAT2, and a multibyte character C1 which has CAT1 is followed by
585C2 which has CAT2, there's a word boundary between C1 and C2.
586
587For instance, to tell that there's a word boundary between Japanese
588Hiragana and Japanese Kanji (both are in the same charset), the
589element `(?H . ?C) should be in this list. */);
4ed46869
KH
590
591 Vword_combining_categories = Qnil;
592
593 DEFVAR_LISP ("word-separating-categories", &Vword_separating_categories,
fdb82f93
PJ
594 doc: /* List of pair (cons) of categories to determine word boundary.
595See the documentation of the variable `word-combining-categories'. */);
4ed46869
KH
596
597 Vword_separating_categories = Qnil;
598
599 defsubr (&Smake_category_set);
600 defsubr (&Sdefine_category);
601 defsubr (&Scategory_docstring);
602 defsubr (&Sget_unused_category);
603 defsubr (&Scategory_table_p);
604 defsubr (&Scategory_table);
605 defsubr (&Sstandard_category_table);
606 defsubr (&Scopy_category_table);
70414a3d 607 defsubr (&Smake_category_table);
4ed46869
KH
608 defsubr (&Sset_category_table);
609 defsubr (&Schar_category_set);
610 defsubr (&Scategory_set_mnemonics);
611 defsubr (&Smodify_category_entry);
4ed46869
KH
612
613 category_table_version = 0;
614}
ab5796a9
MB
615
616/* arch-tag: 74ebf524-121b-4d9c-bd68-07f8d708b211
617 (do not change this comment) */