aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1999-12-15 00:03:16 +0000
committerKenichi Handa1999-12-15 00:03:16 +0000
commit70414a3dac2e1c71ec07cc0cdf7d79008b599a31 (patch)
tree4bf1ce4993f764ba7ae0997fe671fecf75a41e4c /src
parent759f98632fd68520f6120394ac721caf35a3c868 (diff)
downloademacs-70414a3dac2e1c71ec07cc0cdf7d79008b599a31.tar.gz
emacs-70414a3dac2e1c71ec07cc0cdf7d79008b599a31.zip
(word_boundary_p): Delete codes for a composite
character. (Fmake_category_table): New function. (syms_of_category): Defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/category.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/category.c b/src/category.c
index eb1e8c9afaf..728b3a8e91e 100644
--- a/src/category.c
+++ b/src/category.c
@@ -253,6 +253,20 @@ It is a copy of the TABLE, which defaults to the standard category table.")
253 return copy_category_table (table); 253 return copy_category_table (table);
254} 254}
255 255
256DEFUN ("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;
268}
269
256DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0, 270DEFUN ("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)
@@ -567,11 +581,6 @@ word_boundary_p (c1, c2)
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;
@@ -689,6 +698,7 @@ See the documentation of the variable `word-combining-categories'.");
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);