comparison src/category.c @ 26841:dfead1ef574c

(word_boundary_p): Delete codes for a composite character. (Fmake_category_table): New function. (syms_of_category): Defsubr it.
author Kenichi Handa <handa@m17n.org>
date Wed, 15 Dec 1999 00:03:16 +0000
parents 265202db376b
children 16ed41346de7
comparison
equal deleted inserted replaced
26840:141799992598 26841:dfead1ef574c
249 check_category_table (table); 249 check_category_table (table);
250 else 250 else
251 table = Vstandard_category_table; 251 table = Vstandard_category_table;
252 252
253 return copy_category_table (table); 253 return copy_category_table (table);
254 }
255
256 DEFUN ("make-category-table", Fmake_category_table, Smake_category_table,
257 0, 0, 0,
258 "Construct a new and empty category table and return it.")
259 ()
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;
254 } 268 }
255 269
256 DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0, 270 DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0,
257 "Specify TABLE as the category table for the current buffer.") 271 "Specify TABLE as the category table for the current buffer.")
258 (table) 272 (table)
565 { 579 {
566 Lisp_Object category_set1, category_set2; 580 Lisp_Object category_set1, category_set2;
567 Lisp_Object tail; 581 Lisp_Object tail;
568 int default_result; 582 int default_result;
569 583
570 if (COMPOSITE_CHAR_P (c1))
571 c1 = cmpchar_component (c1, 0, 1);
572 if (COMPOSITE_CHAR_P (c2))
573 c2 = cmpchar_component (c2, 0, 1);
574
575 if (CHAR_CHARSET (c1) == CHAR_CHARSET (c2)) 584 if (CHAR_CHARSET (c1) == CHAR_CHARSET (c2))
576 { 585 {
577 tail = Vword_separating_categories; 586 tail = Vword_separating_categories;
578 default_result = 0; 587 default_result = 0;
579 } 588 }
687 defsubr (&Sget_unused_category); 696 defsubr (&Sget_unused_category);
688 defsubr (&Scategory_table_p); 697 defsubr (&Scategory_table_p);
689 defsubr (&Scategory_table); 698 defsubr (&Scategory_table);
690 defsubr (&Sstandard_category_table); 699 defsubr (&Sstandard_category_table);
691 defsubr (&Scopy_category_table); 700 defsubr (&Scopy_category_table);
701 defsubr (&Smake_category_table);
692 defsubr (&Sset_category_table); 702 defsubr (&Sset_category_table);
693 defsubr (&Schar_category_set); 703 defsubr (&Schar_category_set);
694 defsubr (&Scategory_set_mnemonics); 704 defsubr (&Scategory_set_mnemonics);
695 defsubr (&Smodify_category_entry); 705 defsubr (&Smodify_category_entry);
696 defsubr (&Sdescribe_categories); 706 defsubr (&Sdescribe_categories);