1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

40604 commits

Author SHA1 Message Date
Kenichi Handa
1a0c5ca966 *** empty log message *** 2002-05-07 04:55:49 +00:00
Kenichi Handa
f8e12783e2 (display_mode_element): When the variable `elt' is
changed, update `this' and `lisp_string'.
2002-05-07 04:55:32 +00:00
Kenichi Handa
3d79abfbd4 (try_font_list): Give higher priority to fontset's
family than face's family.
2002-05-07 04:51:47 +00:00
Kenichi Handa
82a2ce2c4d (Finsert_file_contents): Set coding_system instead of
val.  If the current buffer is multibyte, always call
decode_coding_gap.
2002-05-07 04:51:06 +00:00
Kenichi Handa
2c78b7e182 (coding_alloc_by_making_gap): Check the case that the
source and destination are the same correctly.
(decode_coding_raw_text): Set coding->consumed_char and
coding->consumed to 0.
(produce_chars): If coding->chars_at_source is nonzero, update
coding->consumed_char and coding->consumed before calling
alloc_destination.
(Fdefine_coding_system_alias): Register ALIAS in
Vcoding_system_alist.
(syms_of_coding): Define `no-convesion' coding system at the tail.
2002-05-07 04:50:48 +00:00
Kenichi Handa
e9ce014c7b (struct charset_map_entries): New struct.
(load_charset_map): Renamed from parse_charset_map.  New args
entries and n_entries.  Caller changed.
(load_charset_map_from_file): Renamed from load_charset_map.
Caller changed.  New arg control_flag.  Call load_charset_map at
the tail.
(load_charset_map_from_vector): New function.
(Fdefine_charset_internal): Setup charset.compact_codes_p.
(encode_char): If the charset is compact, change a character index
to a code point.
2002-05-07 04:50:29 +00:00
Kenichi Handa
ea99bcc1c7 (Fcall_process): Be sure to give the current buffer
to decode_coding_c_string.  Update PT and PT_BYTE after the
insertion.
2002-05-07 04:50:09 +00:00
Kenichi Handa
31285a8f59 (Fset_buffer_multibyte): Fix 8-bit char handling. 2002-05-07 04:49:50 +00:00
Kenichi Handa
66b820bac0 (titdic-convert): Read into a unibyte buffer then make the buffer
multibyte.
2002-05-07 04:49:14 +00:00
Kenichi Handa
7c9e10248b (chinese-gbk): New charset. 2002-05-07 04:48:48 +00:00
Kenichi Handa
103cc921ac (charset-chars): Fix typo. 2002-05-07 04:48:27 +00:00
Kenichi Handa
67f7cceccb Change the registry for chinese-gb2312 and add the registry for
chinese-gbk.
2002-05-07 04:48:05 +00:00
Kenichi Handa
c341fc3dae New file. 2002-05-07 04:47:34 +00:00
Kenichi Handa
c90e1d1c1b (MAPS): Add gbk.map and gb18030-bmp.map.
(ICUDIR): New macro.
(gbk.map, gb18030-bmp.map): New targets.
2002-05-07 04:46:19 +00:00
Kenichi Handa
f56ed24b07 (display_mode_element): Fix calculation of `bytepos'. 2002-04-09 07:42:27 +00:00
Kenichi Handa
50342b3520 (Finsert_file_contents): Fix calculation of `inserted'.
Fix arguments to insert_from_buffer.
2002-04-09 07:42:06 +00:00
Kenichi Handa
6a709baf2a *** empty log message *** 2002-04-09 07:39:44 +00:00
Kenichi Handa
71c8142642 (produce_chars): Set the variable `multibytep' correctly.
(decode_coding_gap): Set coding->dst_multibyte correctly.
2002-03-11 11:28:41 +00:00
Kenichi Handa
85779cf5b7 *** empty log message *** 2002-03-11 11:28:06 +00:00
Kenichi Handa
dd6d5c0113 *** empty log message *** 2002-03-08 00:22:54 +00:00
Kenichi Handa
a44cf41b73 (utf-16-le): Use :bom attribute instead of :signature.
(utf-16-be): Likewise.
2002-03-08 00:20:24 +00:00
Kenichi Handa
d67f020c62 (insert_from_gap): Call record_insert. 2002-03-08 00:19:56 +00:00
Kenichi Handa
e19c3639af (encode_coding_utf_8): Initialize produced_chars to 0.
(decode_coding_utf_16): Fix converting high and low bytes to
code-point.
(encode_coding_utf_16): Substitute coding->default_char for
non-Unicode characters.
(decode_coding): Don't call record_insert here.
(setup_coding_system): Initialize `surrogate' of
coding->spec.utf_16 to 0.
(EMIT_ONE_BYTE): Fix for multibyte case.
2002-03-08 00:19:39 +00:00
Kenichi Handa
ed9d8bdadc *** empty log message *** 2002-03-08 00:18:28 +00:00
Kenichi Handa
3e4abc9e90 *** empty log message *** 2002-03-05 01:07:22 +00:00
Kenichi Handa
678fea0e74 Set iso-8859-2' for nonascii-translation'. 2002-03-05 01:06:51 +00:00
Kenichi Handa
ecc8f164e8 ("Czech"): Set iso-8859-2' for nonascii-translation'. 2002-03-05 01:04:59 +00:00
Kenichi Handa
c449997d16 (parse_charset_map): Remove an unused variable. 2002-03-05 01:03:08 +00:00
Kenichi Handa
dcb82a5edf (SET_RAW_SYNTAX_ENTRY): Don't call make_number. 2002-03-05 00:09:36 +00:00
Kenichi Handa
1c157f8ddc (Finsert_file_contents): Set coding_system to Qnil
earlier.  If inserted is zero and the coding system doesn't
require flushing, don't call decode_coding_gap.
2002-03-05 00:09:15 +00:00
Kenichi Handa
0be8721c15 * coding.c: Delete unused variables. 2002-03-05 00:08:50 +00:00
Kenichi Handa
22d49f94bd (sub_char_table_set_range): Optimized for the case
DEPTH == 3.  Add workaround code for a GCC optimization bug.
2002-03-05 00:08:31 +00:00
Kenichi Handa
885317d817 (CHAR_VALID_P): Don't call CHARACTERP.
(CHAR_STRING): Adjusted for the change of
char_string_with_unification.
(CHAR_STRING_ADVANCE): Make it do-while statement.
2002-03-05 00:08:10 +00:00
Kenichi Handa
1889b23802 (c_string_width): Add return type `int'.
(char_string_with_unification): Arg ADVANCED deleted.
2002-03-05 00:07:51 +00:00
Kenichi Handa
ed5d25fe5e (casify_region): Fix multibyte case. 2002-03-05 00:07:19 +00:00
Kenichi Handa
e2cc40b79e Optimize calls of modify-category-entry. 2002-03-05 00:06:48 +00:00
Kenichi Handa
78da4a936e *** empty log message *** 2002-03-05 00:06:27 +00:00
Kenichi Handa
1f9944a74c (DONTCOMPILE): Add latin1-disp.el, ucs-tables.el,
utf-8.el, and utf-8-subst.el as they can't be bytecompiled
currently.  This is just a temporary workaround.
2002-03-01 05:34:13 +00:00
Kenichi Handa
202c1ac894 *** empty log message *** 2002-03-01 05:33:48 +00:00
Kenichi Handa
c432b7991e Don't include "charset.h".
(selection_data_to_lisp_data): Adjusted for the new code
covnersion API.
2002-03-01 04:28:00 +00:00
Kenichi Handa
6f33797458 *** empty log message *** 2002-03-01 04:27:37 +00:00
Kenichi Handa
8a78c965db Include "character.h".
(x_encode_char): New argument CHARSET.  Caller changed.
(x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
SPLIT_CHAR.
(x_get_glyph_face_and_encoding): Likewise.
(x_produce_glyphs): Don't check Vnonascii_translation_table Call
CHAR_WIDTH instead of CHARSET_WIDTH.
(XTread_socket): Adjusted for the new code-conversion API.
(x_new_font): Adjusted for the change of FS_LOAD_FONT.
(x_load_font): Adjusted for the change of struct font.
2002-03-01 04:15:33 +00:00
Kenichi Handa
f8b185be36 New file. 2002-03-01 03:34:44 +00:00
Kenichi Handa
4f8b265894 Deleted unnecessary calls of set-fontset-font.
(ccl-encode-mac-roman-font): Deleted.
2002-03-01 02:29:38 +00:00
Kenichi Handa
f5027deb92 (sgml-mode-map): Use encode-char instead
of make-char.
(sgml-char-names-table): Iteration limit fixed.
2002-03-01 02:29:13 +00:00
Kenichi Handa
e1915ab396 Call define-coding-system instead of make-coding-system. All CCL program deleted. 2002-03-01 02:28:29 +00:00
Kenichi Handa
c184177262 (char-valid-p): Make it an alias of characterp.
(define-charset): Fully re-designed.
(charset-quoted-standard-p): Deleted.
(charsetp): Moved to charset.c.
(charset-info, charset-id, charset-bytes, charset-width,
charset-directioin, charset-iso-graphic-plane,
charset-reverse-charset): Deleted.
(charset-dimension, charset-chars, charset-iso-final-char,
charset-description, charset-short-name, charset-long-name): Call
charset-plist instead of charset-info.
(charset-plist, set-charset-plist): Moved to charset.c.
(get-charset-property, put-charset-property): Moved from
mule-cmds.el.  Call charset-plist and set-charset-plist.
(make-char): Deleted.
(generic-char-p): Make it always return nil.
(decode-char, encode-char): Moved to charset.c.
(coding-spec-XXX-idx): Variables deleted.
(coding-system-iso-2022-flags): New variable.
(define-coding-system): New function.
(transform-make-coding-system-args, make-coding-system): Deleted.
(set-coding-priority): Make it obsolete.
(after-insert-file-set-buffer-file-coding-system): Adjusted for
the new coding system structure.
(find-new-buffer-file-coding-system): Likewise.
2002-03-01 02:22:38 +00:00
Kenichi Handa
2c390c27dc (print-designation): Arguments changed.
(print-iso-2022-flags): New function.
(describe-coding-system): Adjusted for the new structure of coding
system.
(describe-current-coding-system): Likewise.
2002-03-01 02:21:53 +00:00
Kenichi Handa
c0e17dd87e Fully Re-written. 2002-03-01 02:12:59 +00:00
Kenichi Handa
97941b0525 Don't use coding category. Call
set-coding-system-priority instead of set-coding-priority.
(sort-coding-systems): Call coding-system-priority-list to get the
most preferred one.
(select-safe-coding-system): Likewise.
(reset-language-environment): Order of coding system priority
changed.  Set primary charset to iso-8859-1.
(set-language-environment-coding-systems): Call
set-coding-system-priority instead of set-coding-priority.
(get-charset-property, put-charset-property): Moved to mule.el.
2002-03-01 02:12:40 +00:00