Mercurial > emacs
comparison src/casetab.c @ 40103:6b389fb978bc
Change doc-string comments to `new style' [w/`doc:' keyword].
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Sat, 20 Oct 2001 20:54:39 +0000 |
parents | fa9ff387d260 |
children | 644bd031ece8 1cf6a8acec39 |
comparison
equal
deleted
inserted
replaced
40102:d001bdd0593d | 40103:6b389fb978bc |
---|---|
37 static void set_canon (); | 37 static void set_canon (); |
38 static void set_identity (); | 38 static void set_identity (); |
39 static void shuffle (); | 39 static void shuffle (); |
40 | 40 |
41 DEFUN ("case-table-p", Fcase_table_p, Scase_table_p, 1, 1, 0, | 41 DEFUN ("case-table-p", Fcase_table_p, Scase_table_p, 1, 1, 0, |
42 "Return t iff OBJECT is a case table.\n\ | 42 doc: /* Return t iff OBJECT is a case table. |
43 See `set-case-table' for more information on these data structures.") | 43 See `set-case-table' for more information on these data structures. */) |
44 (object) | 44 (object) |
45 Lisp_Object object; | 45 Lisp_Object object; |
46 { | 46 { |
47 Lisp_Object up, canon, eqv; | 47 Lisp_Object up, canon, eqv; |
48 | 48 |
49 if (! CHAR_TABLE_P (object)) | 49 if (! CHAR_TABLE_P (object)) |
72 obj = wrong_type_argument (Qcase_table_p, obj); | 72 obj = wrong_type_argument (Qcase_table_p, obj); |
73 return (obj); | 73 return (obj); |
74 } | 74 } |
75 | 75 |
76 DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0, | 76 DEFUN ("current-case-table", Fcurrent_case_table, Scurrent_case_table, 0, 0, 0, |
77 "Return the case table of the current buffer.") | 77 doc: /* Return the case table of the current buffer. */) |
78 () | 78 () |
79 { | 79 { |
80 return current_buffer->downcase_table; | 80 return current_buffer->downcase_table; |
81 } | 81 } |
82 | 82 |
83 DEFUN ("standard-case-table", Fstandard_case_table, Sstandard_case_table, 0, 0, 0, | 83 DEFUN ("standard-case-table", Fstandard_case_table, Sstandard_case_table, 0, 0, 0, |
84 "Return the standard case table.\n\ | 84 doc: /* Return the standard case table. |
85 This is the one used for new buffers.") | 85 This is the one used for new buffers. */) |
86 () | 86 () |
87 { | 87 { |
88 return Vascii_downcase_table; | 88 return Vascii_downcase_table; |
89 } | 89 } |
90 | 90 |
91 static Lisp_Object set_case_table (); | 91 static Lisp_Object set_case_table (); |
92 | 92 |
93 DEFUN ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0, | 93 DEFUN ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0, |
94 "Select a new case table for the current buffer.\n\ | 94 doc: /* Select a new case table for the current buffer. |
95 A case table is a char-table which maps characters\n\ | 95 A case table is a char-table which maps characters |
96 to their lower-case equivalents. It also has three \"extra\" slots\n\ | 96 to their lower-case equivalents. It also has three \"extra\" slots |
97 which may be additional char-tables or nil.\n\ | 97 which may be additional char-tables or nil. |
98 These slots are called UPCASE, CANONICALIZE and EQUIVALENCES.\n\ | 98 These slots are called UPCASE, CANONICALIZE and EQUIVALENCES. |
99 UPCASE maps each character to its upper-case equivalent;\n\ | 99 UPCASE maps each character to its upper-case equivalent; |
100 if lower and upper case characters are in 1-1 correspondence,\n\ | 100 if lower and upper case characters are in 1-1 correspondence, |
101 you may use nil and the upcase table will be deduced from DOWNCASE.\n\ | 101 you may use nil and the upcase table will be deduced from DOWNCASE. |
102 CANONICALIZE maps each character to a canonical equivalent;\n\ | 102 CANONICALIZE maps each character to a canonical equivalent; |
103 any two characters that are related by case-conversion have the same\n\ | 103 any two characters that are related by case-conversion have the same |
104 canonical equivalent character; it may be nil, in which case it is\n\ | 104 canonical equivalent character; it may be nil, in which case it is |
105 deduced from DOWNCASE and UPCASE.\n\ | 105 deduced from DOWNCASE and UPCASE. |
106 EQUIVALENCES is a map that cyclicly permutes each equivalence class\n\ | 106 EQUIVALENCES is a map that cyclicly permutes each equivalence class |
107 (of characters with the same canonical equivalent); it may be nil,\n\ | 107 (of characters with the same canonical equivalent); it may be nil, |
108 in which case it is deduced from CANONICALIZE.") | 108 in which case it is deduced from CANONICALIZE. */) |
109 (table) | 109 (table) |
110 Lisp_Object table; | 110 Lisp_Object table; |
111 { | 111 { |
112 return set_case_table (table, 0); | 112 return set_case_table (table, 0); |
113 } | 113 } |
114 | 114 |
115 DEFUN ("set-standard-case-table", Fset_standard_case_table, Sset_standard_case_table, 1, 1, 0, | 115 DEFUN ("set-standard-case-table", Fset_standard_case_table, Sset_standard_case_table, 1, 1, 0, |
116 "Select a new standard case table for new buffers.\n\ | 116 doc: /* Select a new standard case table for new buffers. |
117 See `set-case-table' for more info on case tables.") | 117 See `set-case-table' for more info on case tables. */) |
118 (table) | 118 (table) |
119 Lisp_Object table; | 119 Lisp_Object table; |
120 { | 120 { |
121 return set_case_table (table, 1); | 121 return set_case_table (table, 1); |
122 } | 122 } |
123 | 123 |