diff options
| author | Kenichi Handa | 2003-06-06 02:13:40 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-06-06 02:13:40 +0000 |
| commit | 01378f498787ac5c44e1f48b388226397ce506ee (patch) | |
| tree | aa0115e171d4a390d732f0e395bb7fabcb681b0d /src/coding.c | |
| parent | ff563fced507c7615f93dd0c9ea847776a2fa91a (diff) | |
| download | emacs-01378f498787ac5c44e1f48b388226397ce506ee.tar.gz emacs-01378f498787ac5c44e1f48b388226397ce506ee.zip | |
* coding.c (QCcategory): New variable.
(syms_of_coding): Defsym it. Set all elements of
Vcoding_category_table and their symbol values.
(Fset_coding_system_priority): Doc fix. Update symbol qvalues of
coding-category-XXX, and coding-category-list.
(Fdefine_coding_system_internal): Add category in the plist.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index c9f5837e191..908a78f2c8a 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -311,6 +311,7 @@ Lisp_Object Qcharset, Qiso_2022, Qutf_8, Qutf_16, Qshift_jis, Qbig5; | |||
| 311 | Lisp_Object Qbig, Qlittle; | 311 | Lisp_Object Qbig, Qlittle; |
| 312 | Lisp_Object Qcoding_system_history; | 312 | Lisp_Object Qcoding_system_history; |
| 313 | Lisp_Object Qvalid_codes; | 313 | Lisp_Object Qvalid_codes; |
| 314 | Lisp_Object QCcategory; | ||
| 314 | 315 | ||
| 315 | extern Lisp_Object Qinsert_file_contents, Qwrite_region; | 316 | extern Lisp_Object Qinsert_file_contents, Qwrite_region; |
| 316 | Lisp_Object Qcall_process, Qcall_process_region, Qprocess_argument; | 317 | Lisp_Object Qcall_process, Qcall_process_region, Qprocess_argument; |
| @@ -8313,6 +8314,9 @@ usage: (define-coding-system-internal ...) */) | |||
| 8313 | XSYMBOL (coding_type)->name->data); | 8314 | XSYMBOL (coding_type)->name->data); |
| 8314 | 8315 | ||
| 8315 | CODING_ATTR_CATEGORY (attrs) = make_number (category); | 8316 | CODING_ATTR_CATEGORY (attrs) = make_number (category); |
| 8317 | CODING_ATTR_PLIST (attrs) | ||
| 8318 | = Fcons (QCcategory, Fcons (AREF (Vcoding_category_table, category), | ||
| 8319 | CODING_ATTR_PLIST (attrs))); | ||
| 8316 | 8320 | ||
| 8317 | eol_type = args[coding_arg_eol_type]; | 8321 | eol_type = args[coding_arg_eol_type]; |
| 8318 | if (! NILP (eol_type) | 8322 | if (! NILP (eol_type) |
| @@ -8623,6 +8627,8 @@ syms_of_coding () | |||
| 8623 | 8627 | ||
| 8624 | DEFSYM (Qemacs_mule, "emacs-mule"); | 8628 | DEFSYM (Qemacs_mule, "emacs-mule"); |
| 8625 | 8629 | ||
| 8630 | DEFSYM (QCcategory, ":category"); | ||
| 8631 | |||
| 8626 | Vcoding_category_table | 8632 | Vcoding_category_table |
| 8627 | = Fmake_vector (make_number (coding_category_max), Qnil); | 8633 | = Fmake_vector (make_number (coding_category_max), Qnil); |
| 8628 | staticpro (&Vcoding_category_table); | 8634 | staticpro (&Vcoding_category_table); |