Mercurial > emacs
comparison src/ChangeLog @ 88371:6416d2c35321
Include "character.h" instead of "charset.h".
(Fchar_to_string): Always call CHAR_STRING.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Fri, 01 Mar 2002 01:26:16 +0000 |
| parents | ee6bbabd723e |
| children | c04be57b2859 |
comparison
equal
deleted
inserted
replaced
| 88370:533b26683ad8 | 88371:6416d2c35321 |
|---|---|
| 1 2002-03-01 Kenichi Handa <handa@etl.go.jp> | |
| 2 | |
| 3 The following changes are for using Unicode as an internal | |
| 4 character model, and use UTF-8 format for buffer/string | |
| 5 representation. | |
| 6 | |
| 7 * .gdbinit (xchartable): Adjusted for the change of char table | |
| 8 structure. | |
| 9 (xsubchartable, xcoding, xcharset, xcurbuf): New commands. | |
| 10 | |
| 11 * Makefile.in (obj): Add character.o and chartab.o. | |
| 12 (lisp, shortlisp): Remove utf-8.elc: | |
| 13 (*.o): For many files, change dependency on charset.h to | |
| 14 character.h, and add dependency on character.h. | |
| 15 (character.o, chartab.o): New targets. | |
| 16 | |
| 17 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c, | |
| 18 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c, | |
| 19 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
| 20 of "charset.h". | |
| 21 | |
| 22 * dired.c, filelock.c: Include "character.h". | |
| 23 | |
| 24 * alloc.c: Include "character.h" instead of "charset.h". | |
| 25 (Fmake_char_table): Moved to chartab.c. | |
| 26 (make_sub_char_table): Likewise. | |
| 27 (syms_of_alloc): Remove defsubr for Smake_char_table. | |
| 28 | |
| 29 * buffer.c: Include "character.h" instead of "charset.h", don't | |
| 30 include "coding.h". | |
| 31 (Fset_buffer_multibyte): Adjuted for UTF-8. | |
| 32 | |
| 33 * buffer.h: EXFUN Fbuffer_live_p. | |
| 34 | |
| 35 * callproc.c: Include "character.h" instead of "charset.h". | |
| 36 (Fcall_process): Big change for the new code-conversion APIs. | |
| 37 | |
| 38 * casetab.c: Include "character.h" instead of "charset.h". | |
| 39 (set_canon, set_identity, shuffle): Adjusted for the new | |
| 40 map_char_table spec. | |
| 41 (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
| 42 accessing the char table structure. | |
| 43 | |
| 44 * chartab.c: New file that implements char table. | |
| 45 | |
| 46 * category.c: Include "character.h". | |
| 47 (copy_category_entry): New function. | |
| 48 (copy_category_table): Call map_char_table and copy_category_entry. | |
| 49 (Fmake_category_table): Initialize all top-vel slots. | |
| 50 (char_category_set): New function. | |
| 51 (modify_lower_category_set): Deleted. | |
| 52 (Fmodify_category_entry): Call char_table_ref_and_range. | |
| 53 | |
| 54 * category.h (CATEGORY_SET): Just call char_category_set. | |
| 55 | |
| 56 * ccl.c: Include "character.h". | |
| 57 (Qccl, Qcclp): New variables. | |
| 58 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
| 59 it's less than 256. | |
| 60 (CCL_WRITE_MULTIBYTE_CHAR): Deleted. | |
| 61 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC | |
| 62 and DST type. | |
| 63 (ccl_driver): Types of arguments changed. Code adjusted for that. | |
| 64 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of | |
| 65 ccl_driver. | |
| 66 (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
| 67 | |
| 68 * ccl.h (struct ccl_program): Members eol_type and multibyte | |
| 69 deleted. New members src_multibyte, dst_multibyte, consumed, and | |
| 70 produced. | |
| 71 (struct ccl_spec): Members decoder and encoder deleted. New | |
| 72 memeber ccl. | |
| 73 (CODING_SPEC_CCL_PROGRAM): New macro. | |
| 74 (ccl_driver): Prototype updated. | |
| 75 (Qccl, Qcclp, Fccl_program_p): Extern them. | |
| 76 (CHECK_CCL_PROGRAM): New macro. | |
| 77 | |
| 78 * character.c, character.h, chartab.c: New files. | |
| 79 | |
| 80 * charset.c: Mostly re-written. Character and multibyte sequence | |
| 81 handling codes are moved to character.c. | |
| 82 | |
| 83 * charset.h: Mostly re-written. Character and multibyte sequence | |
| 84 handling codes are moved to character.h. | |
| 85 | |
| 86 * coding.c, coding.h: Mostly re-written. | |
| 87 | |
| 88 * composite.c: Include "character.h" instead of "charset.h". | |
| 89 (CHAR_WIDTH): Moved to character.h. | |
| 90 (HASH_KEY, HASH_VALUE): Deleted. | |
| 91 | |
| 92 * composite.h (enum composition_method): Order of enumeration | |
| 93 symbols changed. | |
| 94 | |
| 95 * data.c: Include "character.h" instead of "charset.h". | |
| 96 (Faref): Call CHAR_TABLE_REF for a char table. | |
| 97 (Faset): Call CHAR_TABLE_SET for a char table. | |
| 98 | |
| 99 * dispextern.h (free_realized_face, check_face_attribytes, | |
| 100 generate_ascii_font): Extern them. | |
| 101 (free_realized_multibyte_face): Extern deleted. | |
| 102 | |
| 103 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char | |
| 104 table structure. | |
| 105 | |
| 106 * editfns.c: Include "character.h" instead of "charset.h". | |
| 107 (Fchar_to_string): Always call CHAR_STRING. | |
| 108 | |
| 109 * emacs.c (main): Call init_charset_once, init_charset, | |
| 110 syms_of_chartab, and syms_of_character. | |
| 111 | |
| 112 * fileio.c: Include "character.h" instead of "charset.h". | |
| 113 (Finsert_file_contents): Big change for the new code-conversion | |
| 114 API. | |
| 115 (choose_write_coding_system): Likewise. | |
| 116 (Fwrite_region): Likewise. | |
| 117 (build_annotations_2): Deleted. | |
| 118 (e_write): Big change for the new code-conversion API. | |
| 119 | |
| 120 * fns.c: Include "character.h" instead of "charset.h". | |
| 121 (copy_sub_char_table): Moved to chartab.c. | |
| 122 (Fcopy_sequence): Call copy_char_table for a char table. | |
| 123 (concat): Delete codes calling count_multibyte. | |
| 124 (string_char_to_byte): Adjusted for the new multibyte form. | |
| 125 (string_byte_to_char): Likewise. | |
| 126 (internal_equal): Adjusted for the change of char table structure. | |
| 127 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent, | |
| 128 Fchar_table_extra_slot, Fset_char_table_extra_slot, | |
| 129 Fchar_table_range, Fset_char_table_range, Fset_char_table_default, | |
| 130 char_table_translate, optimize_sub_char_table, | |
| 131 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to | |
| 132 chartab.c. | |
| 133 (char_table_ref_and_index): Deleted. | |
| 134 (HASH_KEY, HASH_VALUE): Moved to lisp.h. | |
| 135 (Fmd5): Call preferred_coding_system instead of accessing | |
| 136 Vcoding_category_list. Adjusted for the new code-conversion API. | |
| 137 (syms_of_fns): Defsubr for char table related functions moved to | |
| 138 chartab.c. | |
| 139 | |
| 140 * fontset.c: Mostly re-written. | |
| 141 | |
| 142 * fontset.h (struct font_info): Type of the member encoding_type | |
| 143 changed. | |
| 144 (enum FONT_SPEC_INDEX): New enum. | |
| 145 (fontset_font_pattern, fs_load_font): Prototype updated. | |
| 146 (FS_LOAD_FONT): Adjusted for the change of fs_load_font. | |
| 147 | |
| 148 * indent.c: Include "character.h" instead of "charset.h". | |
| 149 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of | |
| 150 WIDTH_BY_CHAR_HEAD. | |
| 151 | |
| 152 * insdel.c: Include "character.h" instead of "charset.h". | |
| 153 (copy_text): Don't refer to Vnonascii_translation_table. | |
| 154 (insert_from_gap): New function. | |
| 155 | |
| 156 * keyboard.c: Include "character.h" instead of "charset.h". | |
| 157 (command_loop_1): Never call direct_output_forward_char before | |
| 158 a non-ASCII character. | |
| 159 (read_char): If Vkeyboard_translate_table is a char table, always | |
| 160 translated a character. | |
| 161 | |
| 162 * keymap.c: Include "character.h". | |
| 163 (store_in_keymap): Handle the case that IDX is a cons. | |
| 164 (Fdefine_key): Handle the case that KEY is a cons and the car part | |
| 165 is also a cons (range). | |
| 166 (push_key_description): Adjusted for the new character code. | |
| 167 (describe_vector): Call describe_char_table for a char table. | |
| 168 (describe_char_table): New function. | |
| 169 | |
| 170 * keymap.h (describe_char_table): Extern it. | |
| 171 | |
| 172 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
| 173 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
| 174 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS, | |
| 175 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
| 176 Deleted. | |
| 177 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table | |
| 178 structure. | |
| 179 (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
| 180 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2, | |
| 181 CHARTAB_SIZE_BITS_3): New macros. | |
| 182 (chartab_size): Extern it. | |
| 183 (struct Lisp_Char_Table): Re-designed. | |
| 184 (struct Lisp_Sub_Char_Table): New structure. | |
| 185 (HASH_KEY, HASH_VALUE): Moved from fns.c. | |
| 186 (CHARACTERBITS): Defined as 22. | |
| 187 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change. | |
| 188 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. | |
| 189 (GC_SUB_CHAR_TABLE_P): New macro. | |
| 190 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated. | |
| 191 (code_convert_string_norecord): Extern deleted. | |
| 192 (init_character_once, syms_of_character, init_charset, | |
| 193 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
| 194 | |
| 195 * lread.c: Include "character.h". | |
| 196 (read_multibyte): New arg NBYTES. | |
| 197 (read_escape): The meaning of returned *BYTEREP changed. | |
| 198 (to_multibyte): Deleted. | |
| 199 (read1): Adjuted the handling of char table and string. | |
| 200 | |
| 201 * print.c: Include "character.h" instead of "charset.h". | |
| 202 (print_string): Convert 8-bit raw bytes to octal form by | |
| 203 string_escape_byte8. | |
| 204 (print_object): Adjusted for the new multibyte form. Print 8-bit | |
| 205 raw bytes always in octal form. Handle sub char table correctly. | |
| 206 | |
| 207 * process.c: Include "character.h" instead of "charset.h". | |
| 208 (read_process_output): Adjusted for the new code-conversion API. | |
| 209 (send_process): Likewise. | |
| 210 | |
| 211 * puresize.h (BASE_PURESIZE): Increased. | |
| 212 | |
| 213 * regex.c: Include "character.h" instead of "charset.h". | |
| 214 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
| 215 (regex_compile): Accept a range whose starting and ending | |
| 216 character have different leading bytes. | |
| 217 (analyse_first): Adjusted for the above change. | |
| 218 | |
| 219 * search.c: Include "character.h" instead of "charset.h". | |
| 220 (search_buffer, boyer_moore): Adjusted for the new multibyte form. | |
| 221 (Freplace_match): Adjusted for the change of | |
| 222 multibyte_char_to_unibyte. | |
| 223 | |
| 224 * syntax.c: Include "character.h" instead of "charset.h". | |
| 225 (syntax_parent_lookup): Deleted. | |
| 226 (Fmodify_syntax_entry): Accept a cons as CHAR. | |
| 227 (skip_chars): Adjusted for the new multibyte form. | |
| 228 (init_syntax_once): Call char_table_set_range instead of directly | |
| 229 accessing the structure of a char table. | |
| 230 | |
| 231 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
| 232 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted. | |
| 233 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. | |
| 234 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
| 235 | |
| 236 * term.c: Include "buffer.h" and "character.h". | |
| 237 (encode_terminal_code): Adjusted for the new code-conversion API. | |
| 238 (write_glyphs): Likewise. | |
| 239 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. | |
| 240 | |
| 241 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT. | |
| 242 | |
| 243 * xdisp.c: Include "character.h". | |
| 244 (get_next_display_element): Adjusted for the new multibyte form. | |
| 245 (disp_char_vector): Adjusted for the new char table structure. | |
| 246 (decode_mode_spec_coding): Adjusted for the new structure of | |
| 247 coding system. | |
| 248 (decode_mode_spec): Adjusted for the new code-conversion API. | |
| 249 | |
| 250 * xfaces.c: Include "character.h" instead of "charset.h". | |
| 251 (load_face_font): Adjusted for the change of choose_face_font and | |
| 252 FS_LOAD_FONT. | |
| 253 (generate_ascii_font): New function. | |
| 254 (set_lface_from_font_name): Adjusted for the change of | |
| 255 FS_LOAD_FONT. | |
| 256 (set_font_frame_param): Adjusted for the change of | |
| 257 choose_face_font. | |
| 258 (free_realized_face): Make it public. | |
| 259 (free_realized_faces_for_fontset): Renamed from | |
| 260 free_realized_multibyte_face. Free also faces realized for ASCII. | |
| 261 (choose_face_font): Argments changed. Adjusted for the change of | |
| 262 fontset_font_pattern and FS_LOAD_FONT. | |
| 263 | |
| 264 * xfns.c: Include "character.h". | |
| 265 (x_encode_text): Adjusted for the new code-conversion API. | |
| 266 | |
| 1 2002-02-26 Kim F. Storm <storm@cua.dk> | 267 2002-02-26 Kim F. Storm <storm@cua.dk> |
| 2 | 268 |
| 3 The following changes add a new Vminibuf_selected_window variable | 269 The following changes add a new Vminibuf_selected_window variable |
| 4 which is similar to Vminibuf_scroll_window, but which is only set | 270 which is similar to Vminibuf_scroll_window, but which is only set |
| 5 on entry to the minibuffer (from a non-minibuffer window): | 271 on entry to the minibuffer (from a non-minibuffer window): |
