diff options
| author | Richard M. Stallman | 1998-02-03 06:17:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-03 06:17:15 +0000 |
| commit | ea4943bfd65fa3280aa4a9830da0758cacde5a9d (patch) | |
| tree | 822393fcdcf1ce0b4d6b123c7985acc537fa28da /src | |
| parent | 9f43ad85680a754b934df66346c8cf6395ae5a3a (diff) | |
| download | emacs-ea4943bfd65fa3280aa4a9830da0758cacde5a9d.tar.gz emacs-ea4943bfd65fa3280aa4a9830da0758cacde5a9d.zip | |
(Fmodify_category_entry): Doc fix.
(Fdescribe_categories): Renamed from Fdescribe_category.
(syms_of_category): Corresponding changes.
(Fcategory_set_mnemonics): Doc fix.
(Fchar_category_set): Doc fix.
(Fmake_category_set): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/category.c | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/category.c b/src/category.c index 8e6097258de..85fbaa32d31 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -53,7 +53,9 @@ Lisp_Object _temp_category_set; | |||
| 53 | 53 | ||
| 54 | DEFUN ("make-category-set", Fmake_category_set, Smake_category_set, 1, 1, 0, | 54 | DEFUN ("make-category-set", Fmake_category_set, Smake_category_set, 1, 1, 0, |
| 55 | "Return a newly created category-set which contains CATEGORIES.\n\ | 55 | "Return a newly created category-set which contains CATEGORIES.\n\ |
| 56 | CATEGORIES is a string of category mnemonics.") | 56 | CATEGORIES is a string of category mnemonics.\n\ |
| 57 | The value is a bool-vector which has t at the indices corresponding to\n\ | ||
| 58 | those categories.") | ||
| 57 | (categories) | 59 | (categories) |
| 58 | Lisp_Object categories; | 60 | Lisp_Object categories; |
| 59 | { | 61 | { |
| @@ -85,7 +87,7 @@ Lisp_Object check_category_table (); | |||
| 85 | 87 | ||
| 86 | DEFUN ("define-category", Fdefine_category, Sdefine_category, 2, 3, 0, | 88 | DEFUN ("define-category", Fdefine_category, Sdefine_category, 2, 3, 0, |
| 87 | "Define CHAR as a category which is described by DOCSTRING.\n\ | 89 | "Define CHAR as a category which is described by DOCSTRING.\n\ |
| 88 | CHAR should be a visible letter of ` ' thru `~'.\n\ | 90 | CHAR should be an ASCII printing character in the range ` ' to `~'.\n\ |
| 89 | DOCSTRING is a documentation string of the category.\n\ | 91 | DOCSTRING is a documentation string of the category.\n\ |
| 90 | The category is defined only in category table TABLE, which defaults to\n\ | 92 | The category is defined only in category table TABLE, which defaults to\n\ |
| 91 | the current buffer's category table.") | 93 | the current buffer's category table.") |
| @@ -104,9 +106,7 @@ The category is defined only in category table TABLE, which defaults to\n\ | |||
| 104 | } | 106 | } |
| 105 | 107 | ||
| 106 | DEFUN ("category-docstring", Fcategory_docstring, Scategory_docstring, 1, 2, 0, | 108 | DEFUN ("category-docstring", Fcategory_docstring, Scategory_docstring, 1, 2, 0, |
| 107 | "Return a documentation string of CATEGORY.\n\ | 109 | "Return the documentation string of CATEGORY, as defined in CATEGORY-TABLE.") |
| 108 | Optional second arg specifies CATEGORY-TABLE,\n\ | ||
| 109 | which defaults to the current buffer's category table.") | ||
| 110 | (category, table) | 110 | (category, table) |
| 111 | Lisp_Object category, table; | 111 | Lisp_Object category, table; |
| 112 | { | 112 | { |
| @@ -120,10 +120,10 @@ Optional second arg specifies CATEGORY-TABLE,\n\ | |||
| 120 | 120 | ||
| 121 | DEFUN ("get-unused-category", Fget_unused_category, Sget_unused_category, | 121 | DEFUN ("get-unused-category", Fget_unused_category, Sget_unused_category, |
| 122 | 0, 1, 0, | 122 | 0, 1, 0, |
| 123 | "Return a category which is not yet defined.\n\ | 123 | "Return a category which is not yet defined in CATEGORY-TABLE.\n\ |
| 124 | If total number of categories has reached the limit (95), return nil.\n\ | 124 | If no category remains available, return nil.\n\ |
| 125 | Optional argument specifies CATEGORY-TABLE,\n\ | 125 | The optional argument CATEGORY-TABLE specifies which category table\n\ |
| 126 | which defaults to the current buffer's category table.") | 126 | to modify; it defaults to the current buffer's category table.") |
| 127 | (table) | 127 | (table) |
| 128 | Lisp_Object table; | 128 | Lisp_Object table; |
| 129 | { | 129 | { |
| @@ -254,8 +254,7 @@ It is a copy of the TABLE, which defaults to the standard category table.") | |||
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0, | 256 | DEFUN ("set-category-table", Fset_category_table, Sset_category_table, 1, 1, 0, |
| 257 | "Select a new category table for the current buffer.\n\ | 257 | "Specify TABLE as the category table for the current buffer.") |
| 258 | One argument, a category table.") | ||
| 259 | (table) | 258 | (table) |
| 260 | Lisp_Object table; | 259 | Lisp_Object table; |
| 261 | { | 260 | { |
| @@ -269,7 +268,7 @@ One argument, a category table.") | |||
| 269 | 268 | ||
| 270 | 269 | ||
| 271 | DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0, | 270 | DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0, |
| 272 | "Return a category set of CHAR.") | 271 | "Return the category set of CHAR.") |
| 273 | (ch) | 272 | (ch) |
| 274 | Lisp_Object ch; | 273 | Lisp_Object ch; |
| 275 | { | 274 | { |
| @@ -283,7 +282,10 @@ DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0, | |||
| 283 | 282 | ||
| 284 | DEFUN ("category-set-mnemonics", Fcategory_set_mnemonics, | 283 | DEFUN ("category-set-mnemonics", Fcategory_set_mnemonics, |
| 285 | Scategory_set_mnemonics, 1, 1, 0, | 284 | Scategory_set_mnemonics, 1, 1, 0, |
| 286 | "Return a string of mnemonics of all categories in CATEGORY-SET.") | 285 | "Return a string containing mnemonics of the categories in CATEGORY-SET.\n\ |
| 286 | CATEGORY-SET is a bool-vector, and the categories \"in\" it are those\n\ | ||
| 287 | that are indexes where t occurs the bool-vector.\n\ | ||
| 288 | The return value is a string containing those same categories.") | ||
| 287 | (category_set) | 289 | (category_set) |
| 288 | Lisp_Object category_set; | 290 | Lisp_Object category_set; |
| 289 | { | 291 | { |
| @@ -347,20 +349,20 @@ set_category_set (category_set, category, val) | |||
| 347 | 349 | ||
| 348 | DEFUN ("modify-category-entry", Fmodify_category_entry, | 350 | DEFUN ("modify-category-entry", Fmodify_category_entry, |
| 349 | Smodify_category_entry, 2, 4, 0, | 351 | Smodify_category_entry, 2, 4, 0, |
| 350 | "Modify the category set of CHAR by adding CATEGORY to it.\n\ | 352 | "Modify the category set of CHARACTER by adding CATEGORY to it.\n\ |
| 351 | The category is changed only for table TABLE, which defaults to\n\ | 353 | The category is changed only for table TABLE, which defaults to\n\ |
| 352 | the current buffer's category table.\n\ | 354 | the current buffer's category table.\n\ |
| 353 | If optional forth argument RESET is non NIL,\n\ | 355 | If optional fourth argument RESET is non-nil,\n\ |
| 354 | CATEGORY is deleted from the category set instead of being added.") | 356 | then delete CATEGORY from the category set instead of adding it.") |
| 355 | (ch, category, table, reset) | 357 | (character, category, table, reset) |
| 356 | Lisp_Object ch, category, table, reset; | 358 | Lisp_Object character, category, table, reset; |
| 357 | { | 359 | { |
| 358 | int c, charset, c1, c2; | 360 | int c, charset, c1, c2; |
| 359 | Lisp_Object set_value; /* Actual value to be set in category sets. */ | 361 | Lisp_Object set_value; /* Actual value to be set in category sets. */ |
| 360 | Lisp_Object val, category_set; | 362 | Lisp_Object val, category_set; |
| 361 | 363 | ||
| 362 | CHECK_NUMBER (ch, 0); | 364 | CHECK_NUMBER (character, 0); |
| 363 | c = XINT (ch); | 365 | c = XINT (character); |
| 364 | CHECK_CATEGORY (category, 1); | 366 | CHECK_CATEGORY (category, 1); |
| 365 | table = check_category_table (table); | 367 | table = check_category_table (table); |
| 366 | 368 | ||
| @@ -542,8 +544,8 @@ describe_category_1 (vector) | |||
| 542 | return Qnil; | 544 | return Qnil; |
| 543 | } | 545 | } |
| 544 | 546 | ||
| 545 | DEFUN ("describe-category", Fdescribe_category, Sdescribe_category, 0, 0, "", | 547 | DEFUN ("describe-categories", Fdescribe_categories, Sdescribe_categories, 0, 0, "", |
| 546 | "Describe the category specifications in the category table.\n\ | 548 | "Describe the category specifications in the current category table.\n\ |
| 547 | The descriptions are inserted in a buffer, which is then displayed.") | 549 | The descriptions are inserted in a buffer, which is then displayed.") |
| 548 | () | 550 | () |
| 549 | { | 551 | { |
| @@ -685,7 +687,7 @@ See the documentation of the variable `word-combining-categories'."); | |||
| 685 | defsubr (&Schar_category_set); | 687 | defsubr (&Schar_category_set); |
| 686 | defsubr (&Scategory_set_mnemonics); | 688 | defsubr (&Scategory_set_mnemonics); |
| 687 | defsubr (&Smodify_category_entry); | 689 | defsubr (&Smodify_category_entry); |
| 688 | defsubr (&Sdescribe_category); | 690 | defsubr (&Sdescribe_categories); |
| 689 | 691 | ||
| 690 | category_table_version = 0; | 692 | category_table_version = 0; |
| 691 | } | 693 | } |