Sync up with r21-2-41.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-08-14  MORIOKA Tomohiko  <tomo@calliope.mousai.mahoroba.ne.jp>
2
3         * mule-charset.c (Vcharset_ucs_jis): New variable.
4         (Qucs_jis): Likewise.
5         (syms_of_mule_charset): Add new symbol `ucs-jis'.
6         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
7
8         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
9
10 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * mule-charset.c (map_over_uint8_byte_table): New function.
13         (map_over_uint16_byte_table): Likewise.
14         (map_over_byte_table): Likewise.
15         (map_char_id_table): Likewise.
16         (slow_map_char_id_table_fun): Likewise.
17         (Fmap_char_attribute): Likewise.
18         (syms_of_mule_charset): Add new function `map-char-attribute'.
19
20 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
23         (syms_of_mule_charset): Add new function `find-char'.
24
25 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
28         XEmacs UTF-2000.
29         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
30         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
31         XEmacs UTF-2000.
32         (complex_vars_of_mule_charset): Add new coded-charset
33         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
34         `ideograph-gt-pj-*'.
35
36         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
37
38 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * mule-charset.c (encode_builtin_char_1): Purge codes about
41         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
42         {MIN|MAX}_CHAR_HEBREW.
43         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
44         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
45
46         * char-ucs.h (MIN_CHAR_GREEK): Purged.
47         (MAX_CHAR_GREEK): Purged.
48         (MIN_CHAR_CYRILLIC): Purged.
49         (MAX_CHAR_CYRILLIC): Purged.
50         (MIN_CHAR_HEBREW): Commented out.
51         (MAX_CHAR_HEBREW): Likewise.
52
53 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * mule-charset.c (Qto_ucs): New variable.
56         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
57         (Fdefine_char): Likewise.
58         (syms_of_mule_charset): Add new symbol `=>ucs'.
59
60 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * mule-charset.c (Fdecode_char): Fixed.
63
64 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
67         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
68         "tcvn5712-1".
69
70 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * mule-charset.c (Vcharset_ucs_big5): New variable.
73         (Qucs_big5): Likewise.
74         (syms_of_mule_charset): Add new symbol `ucs-big5'.
75         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
76
77         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
78
79 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * mule-charset.c (decode_builtin_char): Check Big5 code range
82         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
83
84 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
87         (Qchinese_gb12345): Likewise.
88         (Fdecode_builtin_char): Fixed.
89         (syms_of_mule_charset): Add `chinese-gb12345'.
90         (complex_vars_of_mule_charset): Add coded-charset
91         `chinese-gb12345'.
92
93         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
94         (LEADING_BYTE_CHINESE_GB12345): New macro.
95
96 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
99         and `latin-viscii-upper' for `latin-viscii'.
100
101 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * mule-charset.c (Fdecode_builtin_char): Comment out
104         regularization code for ISO-IR GR representation.
105
106 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * mule-charset.c (decode_builtin_char): New function; renamed from
109         `make_builtin_char'; return -1 instead of signal.
110         (Fdecode_builtin_char): Use `decode_builtin_char'.
111
112         * char-ucs.h (decode_builtin_char): New prototype; renamed from
113         `make_builtin_char'.
114         (DECODE_CHAR): Use `decode_builtin_char' instead of
115         `make_builtin_char'; use mapping table of `chinese-big5' for
116         `chinese-big5-{1,2}'.
117
118 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
119
120         * text-coding.c (char_encode_big5): New function.
121         (char_finish_big5): Likewise.
122         (reset_encoding_stream): Use `char_encode_big5' and
123         `char_finish_big5' for CODESYS_BIG5.
124         (mule_encode): Don't use `encode_coding_big5'.
125         (encode_coding_big5): Deleted.
126
127 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
130         0x81- in XEmacs UTF-2000.
131         (detect_coding_big5): Likewise.
132
133 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * mule-charset.c (Fdefine_char): Don't use a CCS property to
136         generate character-id if the CCS property does not have
137         corresponding predefined character.
138         (make_builtin_char): Return -1 if corresponding predefined
139         character is not found.
140         (Fdecode_char): Return nil if corresponding character is not
141         found.
142         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
143         don't map to builtin ucs space.
144
145 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
148         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
149
150 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
151
152         * mule-charset.c (Vcharset_ideograph_gt): New variable.
153         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
154         (Qideograph_gt): Likewise.
155         (Qideograph_gt_pj_{1..11}): Likewise.
156         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
157         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
158         `ideograph-gt-pj-11'.
159         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
160         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
161         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
162
163         * char-ucs.h (LEADING_BYTE_GT): New macro.
164         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
165         (MIN_CHAR_GT): Likewise.
166         (MAX_CHAR_GT): Likewise.
167
168 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
171         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
172
173         * doprnt.c (unsigned_int_converters): Add `c'.
174         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
175
176         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
177         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
178         `MIN_CHAR_MOJIKYO'.
179         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
180         (MAX_CHAR_MOJIKYO_0): New macro.
181         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
182
183 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * mule-charset.c (Fdefine_char): Delete cemented out code.
186         (encode_builtin_char_1): Modify for new allocation of builtin
187         Mojikyo characters.
188
189         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
190
191 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * mule-charset.c (Vcharset_ucs_cns): New variable.
194         (Qucs_cns): New variable.
195         (syms_of_mule_charset): Add new symbol `ucs-cns'.
196         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
197
198 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
201
202 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
203
204         * search.c (search_buffer): Make `charset_base_code' as
205         character-id >> 6 to eliminate the corresponding last byte in
206         UTF-8 representation [I'm not sure it is right thing].
207         (boyer_moore): Likewise.
208
209 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
210
211         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
212         representation in MULE.
213
214 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * text-coding.c (Fmake_coding_system): Use
217         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
218         `EXTERNAL_PROPERTY_LIST_LOOP'.
219
220 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * text-coding.c (decode_output_utf8_partial_char): New function.
223         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
224
225 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * text-coding.c (decode_coding_utf8): Output original byte
228         sequence if it is broken; change order of conditions.
229
230         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
231         of conditions.
232
233         * mb-multibyte.h (BYTE_ASCII_P):
234         Use bit ops for char-signedness safety.
235         (BYTE_C0_P): Use bit ops for char-signedness safety.
236         (BYTE_C1_P): Use bit ops for char-signedness safety.
237
238         * character.h: (XCHAR_OR_CHAR_INT):
239         Always use inline function.
240         Remove redundant type checking assert() - XINT will abort quite
241         nicely.
242
243 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * text-coding.c: (Fencode_shift_jis_char):
246         (Fencode_big5_char):
247         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
248         Replace 0 with '\0' when working with bytes.
249         Replace initial "(" with "\(" in docstrings.
250
251         (Fmake_coding_system):
252         When type is ccl and value is vector, register it with a proper
253         symbol.  And checks whether the given ccl program is valid.
254         (mule_decode): When calling ccl_driver, if src indicates
255         NULL pointer, set an empty string instead.
256         (mule_encode): Likewise.
257
258         (detect_eol_type):
259         (detect_coding_sjis):
260         (decode_coding_sjis):
261         (detect_coding_big5):
262         (decode_coding_big5):
263         (detect_coding_ucs4):
264         (decode_coding_ucs4):
265         (detect_coding_utf8):
266         (decode_coding_utf8):
267         (detect_coding_iso2022):
268         (decode_coding_iso2022):
269         (decode_coding_no_conversion):
270         (mule_decode):
271         Make all detecting and decoding functions take an Extbyte * arg.
272         (text_encode_generic):
273         (encode_coding_big5):
274         (encode_coding_no_conversion):
275         (mule_encode):
276         Make all encoding functions take a Bufbyte * arg.
277         Use size_t instead of unsigned int for memory sizes.
278         Only cast to unsigned char whenever dereferencing Extbyte *.
279
280         (struct lrecord_description fcd_description_1): Use countof.
281         (complex_vars_of_file_coding):
282         Use countof instead of sizeof.
283         Use CHECK_NATNUM instead of CHECK_INT.
284
285 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * mule-charset.c (Fget_char_attribute): Add new optional argument
288         `default-value'.
289         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
290         (remove_char_ccs): Likewise.
291
292 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * text-coding.c (char_encode_shift_jis): New implementation in
295         UTF-2000.
296         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
297         ...)'.
298
299         * mule-charset.c (Vcharset_chinese_big5): New variable in
300         UTF-2000.
301         (Qchinese_big5): New variable in UTF-2000.
302         (BIG5_SAME_ROW): New macro in UTF-2000.
303         (make_builtin_char): Use builtin characters of
304         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
305         characters of `Vcharset_chinese_big5'.
306         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
307         (complex_vars_of_mule_charset): Add new coded-charset
308         `chinese-big5' in UTF-2000.
309
310         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
311         (Vcharset_chinese_big5): New external variable declaration.
312         (Vcharset_japanese_jisx0208_1990): Likewise.
313
314 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
317         function.
318         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
319
320 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
323         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
324         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
325         `mojikyo-pj-*'.
326
327 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
330
331 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
334         to 0.17.
335
336 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
339         for `CHARSET_BY_ATTRIBUTES'.
340         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
341         `CHARSET_BY_ATTRIBUTES'.
342
343         * text-coding.c (struct decoding_stream): Rename member `CH' to
344         `CPOS'.
345         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
346         (decode_coding_sjis): Likewise.
347         (decode_coding_big5): Likewise.
348         (decode_coding_ucs4): Likewise.
349         (decode_coding_utf8): Likewise.
350         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
351         `CHARSET_BY_ATTRIBUTES'.
352         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
353         `str->counter'; decode 3, 4 bytes sets.
354         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
355         sets.
356         (decode_coding_no_conversion): Use `str->cpos' instead of
357         `str->ch'.
358
359         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
360         (Qmojikyo_2022_1): New variable.
361         (make_charset): Don't use `CHARSET_TYPE_*'.
362         (range_charset_code_point): Support coded-charset
363         `mojikyo-2022-1'.
364         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
365         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
366         `CHARSET_BY_ATTRIBUTES'.
367         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
368         `CHARSET_BY_ATTRIBUTES'.
369         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
370         (complex_vars_of_mule_charset): Add new coded-charset
371         `mojikyo-2022-1'.
372
373         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
374         interface; changed to inline function.
375
376         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
377         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
378         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
379         (CHARSET_TYPE_94): Deleted.
380         (CHARSET_TYPE_94X94): Deleted.
381         (CHARSET_TYPE_96): Deleted.
382         (CHARSET_TYPE_96X96): Deleted.
383         (CHARSET_TYPE_128): Deleted.
384         (CHARSET_TYPE_128X128): Deleted.
385         (CHARSET_TYPE_256): Deleted.
386         (CHARSET_TYPE_256X256): Deleted.
387         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
388         to inline function.
389         (DECODE_MOJIKYO_2022): New inline function.
390         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
391         `Vcharset_mojikyo_2022_1'.
392
393 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
396         instead of `EQ'.
397         (put_byte_table): Likewise.
398         (char_id_table_equal): Use `get_byte_table' [new implementation].
399
400 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * mule-charset.c: Include <limits.h> in UTF-2000.
403         (BT_UINT8_MIN): New macro in UTF-2000.
404         (BT_UINT8_MAX): New macro in UTF-2000.
405         (BT_UINT8_t): New macro in UTF-2000.
406         (BT_UINT8_nil): New macro in UTF-2000.
407         (BT_UINT8_unbound): New macro in UTF-2000.
408         (INT_UINT8_P): New inline function in UTF-2000.
409         (UINT8_VALUE_P): New inline function in UTF-2000.
410         (UINT8_ENCODE): New inline function in UTF-2000.
411         (UINT8_DECODE): New inline function in UTF-2000.
412         (mark_uint8_byte_table): New function in UTF-2000.
413         (print_uint8_byte_table): New function in UTF-2000.
414         (uint8_byte_table_equal): New function in UTF-2000.
415         (uint8_byte_table_hash): New function in UTF-2000.
416         (make_uint8_byte_table): New function in UTF-2000.
417         (uint8_byte_table_same_value_p): New function in UTF-2000.
418         (BT_UINT16_MIN): New macro in UTF-2000.
419         (BT_UINT16_MAX): New macro in UTF-2000.
420         (BT_UINT16_t): New macro in UTF-2000.
421         (BT_UINT16_nil): New macro in UTF-2000.
422         (BT_UINT16_unbound): New macro in UTF-2000.
423         (INT_UINT16_P): New inline function in UTF-2000.
424         (UINT16_VALUE_P): New inline function in UTF-2000.
425         (UINT16_ENCODE): New inline function in UTF-2000.
426         (UINT16_DECODE): New inline function in UTF-2000.
427         (UINT8_TO_UINT16): New inline function in UTF-2000.
428         (mark_uint16_byte_table): New function in UTF-2000.
429         (print_uint16_byte_table): New function in UTF-2000.
430         (uint16_byte_table_equal): New function in UTF-2000.
431         (uint16_byte_table_hash): New function in UTF-2000.
432         (make_uint16_byte_table): New function in UTF-2000.
433         (uint16_byte_table_same_value_p): New function in UTF-2000.
434         (print_byte_table): New function in UTF-2000.
435         (byte-table): Use `print_byte_table' as printer.
436         (make_byte_table): Delete second argument `older'.
437         (byte_table_same_value_p): New function in UTF-2000.
438         (copy_byte_table): Deleted.
439         (get_byte_table): New function in UTF-2000.
440         (put_byte_table): New function in UTF-2000.
441         (print_char_id_table): New function in UTF-2000.
442         (char-id-table): Use `print_char_id_table' as printer.
443         (make_char_id_table): Delete second argument `older'.
444         (get_char_id_table): Use `get_byte_table [new implementation].
445         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
446         implementation].
447         (Ffind_char_attribute_table): New function in UTF-2000.
448         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
449         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
450         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
451         (syms_of_mule_charset): Add new function
452         `find-char-attribute-table' in UTF-2000.
453
454         * lrecord.h (enum lrecord_type): Add
455         `lrecord_type_uint16_byte_table' and
456         `lrecord_type_uint8_byte_table'.
457
458         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
459         (Lisp_Uint8_Byte_Table): New type.
460         (XUINT8_BYTE_TABLE): New macro.
461         (XSETUINT8_BYTE_TABLE): New macro.
462         (UINT8_BYTE_TABLE_P): New macro.
463         (GC_UINT8_BYTE_TABLE_P): New macro.
464         (struct Lisp_Uint16_Byte_Table): New structure.
465         (Lisp_Uint16_Byte_Table): New type.
466         (XUINT16_BYTE_TABLE): New macro.
467         (XSETUINT16_BYTE_TABLE): New macro.
468         (UINT16_BYTE_TABLE_P): New macro.
469         (GC_UINT16_BYTE_TABLE_P): New macro.
470
471 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
474         (Vcharacter_ideographic_strokes_table): Deleted.
475         (Vcharacter_total_strokes_table): Deleted.
476         (Vcharacter_morohashi_daikanwa_table): Deleted.
477         (Vcharacter_decomposition_table): Deleted.
478         (Qname): Deleted because it is duplicated.
479         (Qideographic_radical): Deleted.
480         (Qideographic_strokes): Deleted.
481         (Qtotal_strokes): Deleted.
482         (Qmorohashi_daikanwa): Deleted.
483         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
484         `ideographic-radical', `ideographic-strokes', `total-strokes',
485         `morohashi-daikanwa' and `->decomposition'.
486         (Fget_char_attribute): Likewise.
487         (Fput_char_attribute): Likewise; use `make-vector' instead of
488         `make_older_vector' for `->decomposition' value.
489         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
490         `ideograph-daikanwa'.
491         (syms_of_mule_charset): Delete builtin symbols `name',
492         `ideographic-radical', `ideographic-strokes', `total-strokes' and
493         `morohashi-daikanwa'.
494         (vars_of_mule_charset): Don't setup
495         `Vcharacter_ideographic_radical_table',
496         `Vcharacter_ideographic_strokes_table',
497         `Vcharacter_total_strokes_table',
498         `Vcharacter_morohashi_daikanwa_table' and
499         `Vcharacter_decomposition_table'.
500
501 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
504         `make_older_vector', `make_vector_newer_1' and
505         `make_vector_newer'.
506
507         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
508         `make_older_vector' and `make_vector_newer'.
509
510         * config.h.in (HAVE_GGC): New macro.
511
512 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * mule-charset.c (struct char_attribute_list_closure): New
515         structure in UTF-2000.
516         (add_char_attribute_to_list_mapper): New function in UTF-2000.
517         (Fchar_attribute_list): Likewise.
518         (Fset_charset_mapping_table): Use `make_vector_newer'.
519         (Fdecode_builtin_char): New function in UTF-2000.
520         (syms_of_mule_charset): Add new function `char-attribute-list' and
521         `decode-builtin-char' in UTF-2000.
522
523         * lisp.h (make_vector_newer): New prototype.
524
525         * alloc.c (make_vector_newer_1): New function.
526         (make_vector_newer): New function.
527
528 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
531         50100)'.
532
533 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * mule-charset.c (Vchar_attribute_hash_table): New variable.
536         (Vcharacter_attribute_table): Deleted.
537         (Vcharacter_name_table): Deleted.
538         (put_char_attribute): Deleted.
539         (remove_char_attribute): Deleted.
540         (struct char_attribute_alist_closure): New structure.
541         (add_char_attribute_alist_mapper): New function.
542         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
543         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
544         (Fget_char_attribute): Likewise.
545         (Fput_char_attribute): Likewise.
546         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
547         of `remove_char_attribute'.
548         (Fdefine_char): Return character.
549         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
550         and `Vcharacter_name_table'.
551         (complex_vars_of_mule_charset): Likewise
552         `Vchar_attribute_hash_table'.
553
554 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * character.h (CHARC_CHARSET): New macro.
557         (CHARC_CHARSET_ID): New macro.
558         (CHARC_CODE_POINT): New macro.
559         (CHARC_COLUMNS): New macro.
560         (CHARC_TO_CHAR): New inline function.
561         (CHARC_EQ): New inline function.
562         (CHARC_ASCII_EQ): New inline function.
563         (CHARC_IS_SPACE): New inline function.
564         (ASCII_TO_CHARC): New inline function.
565
566         * char-ucs.h (encode_char_2): Deleted.
567         (ENCODE_CHAR): Use `encode_char_1' again.
568         (breakup_char_1): Likewise.
569         (CHAR_TO_CHARC): New inline function.
570
571         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
572
573 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
576         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
577         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
578         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
579         (create_string_text_block): Use `CHARC_ASCII_EQ' and
580         `CHARC_IS_SPACE'.
581         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
582
583         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
584         `CHARC_CODE_POINT'.
585         (x_output_display_block): Use `CHARC_CHARSET' and
586         `CHARC_ASCII_EQ'.
587
588         * redisplay-tty.c (tty_output_display_block): Use
589         `CHARC_ASCII_EQ'.
590         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
591
592         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
593
594         * insdel.c (find_charsets_in_charc_string): Use
595         `CHARC_CHARSET_ID'.
596         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
597         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
598         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
599         (convert_charc_string_into_malloced_string): Likewise.
600
601 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
604         instead of <Emchar_dynarr *> for buf; use
605         `convert_bufbyte_string_into_charc_dynarr' instead of
606         `convert_bufbyte_string_into_emchar_dynarr'; use
607         `find_charsets_in_charc_string' instead of
608         `find_charsets_in_emchar_string'.
609
610         * redisplay.h:
611         - Include "character.h".
612         (struct rune): New member `cglyph'; delete member `chr'.
613
614         * redisplay.c (redisplay_text_width_charc_string): New function;
615         delete `redisplay_text_width_emchar_string'.
616         (rtw_charc_dynarr): New variable; renamed from
617         `rtw_emchar_dynarr'.
618         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
619         `rtw_emchar_dynarr'; use
620         `convert_bufbyte_string_into_charc_dynarr' instead of
621         `convert_bufbyte_string_into_emchar_dynarr'; use
622         `redisplay_text_width_charc_string' instead of
623         `redisplay_text_width_emchar_string'.
624         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
625         instead of `rtw_emchar_dynarr'; use
626         `convert_bufbyte_string_into_charc_dynarr' instead of
627         `convert_bufbyte_string_into_emchar_dynarr'.
628         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
629         `redisplay_text_width_charc_string' instead of
630         `redisplay_text_width_emchar_string'.
631         (create_text_block): Modify for <struct rune> change.
632         (generate_formatted_string_db): Likewise.
633         (create_string_text_block): Likewise.
634         (pixel_to_glyph_translation): Likewise.
635
636         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
637         instead of <const Emchar *>.
638         (x_text_width): Likewise.
639         (x_output_display_block): Use <Charc_dynarr *> instead
640         <Emchar_dynarr *>; modify for <structure rune> change.
641         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
642         *>.
643
644         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
645         <const Emchar *>; use `charc_string_displayed_columns' instead of
646         `emchar_string_displayed_columns'.
647         (tty_output_display_block): Use <Charc_dynarr *> instead of
648         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
649         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
650         (tty_output_charc_dynarr_dynarr): New variable; renamed from
651         `tty_output_emchar_dynarr_dynarr'.
652         (tty_output_charc_dynarr): New function; delete
653         `tty_output_charc_dynarr'.
654
655         * redisplay-output.c (compare_runes): Modify for `struct rune'.
656         (redisplay_output_layout): Use <Charc_dynarr *> instead of
657         <Emchar_dynarr *> for buf; use
658         `convert_bufbyte_string_into_charc_dynarr' instead of
659         `convert_bufbyte_string_into_emchar_dynarr'.
660
661         * frame.c (title_string_charc_dynarr): New variable; renamed from
662         `title_string_emchar_dynarr'.
663         (generate_title_string): Use `title_string_charc_dynarr' instead
664         of `title_string_emchar_dynarr'; use
665         `convert_charc_string_into_malloced_string' instead of
666         `convert_emchar_string_into_malloced_string'.
667         (init_frame): Use `title_string_charc_dynarr' instead of
668         `title_string_emchar_dynarr'.
669
670         * console.h:
671         - Include "character.h".
672         (struct console_methods): Use <const Charc *> instead of <const
673         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
674         <Emchar_dynarr *> in output_string_method.
675
676         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
677         <Emchar_dynarr *>.
678
679         * console-stream.c (stream_text_width): Use <const Charc *>
680         instead of <const Emchar *>.
681
682         * character.h (Charc_dynarr): New type.
683
684         * char-ucs.h (structure Charc): New structure; define new type
685         `Charc'.
686
687         * char-lb.h (DECODE_CHAR): New inline function.
688         (encode_char_1): New inline function.
689         (ENCODE_CHAR): New macro.
690         (structure Charc): New structure; define new type `Charc'.
691
692         * char-1byte.h (Vcharset_control_1): New macro.
693         (Vcharset_latin_iso8859_1): New macro.
694         (DECODE_CHAR): New inline function.
695         (encode_char_1): New inline function.
696         (ENCODE_CHAR): New macro.
697         (structure Charc): New structure; define new type `Charc'.
698
699         * insdel.c (find_charsets_in_charc_string): New function; delete
700         `find_charsets_in_emchar_string'.
701         (charc_string_displayed_columns): New function; delete
702         `emchar_string_displayed_columns'.
703         (convert_bufbyte_string_into_charc_dynarr): New function; delete
704         `convert_bufbyte_string_into_emchar_dynarr'.
705         (convert_charc_string_into_bufbyte_dynarr): New function; delete
706         `convert_charc_string_into_bufbyte_dynarr'.
707         (convert_charc_string_into_malloced_string): New function; delete
708         `convert_charc_string_into_malloced_string'.
709
710         * buffer.h (find_charsets_in_charc_string): New prototype; delete
711         `find_charsets_in_emchar_string'.
712         (charc_string_displayed_columns): New prototype; delete
713         `emchar_string_displayed_columns'.
714         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
715         `convert_charc_string_into_bufbyte_dynarr'.
716         (convert_charc_string_into_malloced_string): New prototype; delete
717         `convert_charc_string_into_malloced_string'.
718
719 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
722
723 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
726
727         * char-ucs.h: Use <short> for <Charset_ID>.
728
729         * mule-charset.h, char-1byte.h: Use <unsigned char> for
730         <Charset_ID>.
731
732 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
735         to 0.16.
736
737 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
738
739         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
740         variable.
741         (Qmorohashi_daikanwa): New variable.
742         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
743         for `morohashi-daikanwa' attribute.
744         (Fget_char_attribute): Likewise.
745         (Fput_char_attribute): Likewise.
746         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
747         has the same value of `ideograph-daikanwa'.
748         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
749         (vars_of_mule_charset): Setup
750         `Vcharacter_morohashi_daikanwa_table'.
751
752 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
755         attributes.
756         (add_charset_to_list_mapper): Add `key' instead of
757         `XCHARSET_NAME (value)' to return aliases.
758
759 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
760
761         * mule-charset.c (Vcharacter_ideographic_radical_table): New
762         variable.
763         (Vcharacter_ideographic_strokes_table): New variable.
764         (Qideographic_radical): New variable.
765         (Qideographic_strokes): New variable.
766         (Fchar_attribute_alist): Use
767         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
768         attribute; use `Vcharacter_ideographic_strokes_table' for
769         `ideographic-strokes' attribute.
770         (Fget_char_attribute): Likewise.
771         (Fput_char_attribute): Likewise.
772         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
773         `ideographic-strokes'.
774         (vars_of_mule_charset): Setup
775         `Vcharacter_ideographic_radical_table' and
776         `Vcharacter_ideographic_strokes_table'.
777
778 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
781         (Qtotal_strokes): New variable.
782         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
783         `total-strokes' attribute.
784         (Fget_char_attribute): Likewise.
785         (Fput_char_attribute): Likewise.
786         (syms_of_mule_charset): Add new symbol `total-strokes'.
787         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
788
789 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * mule-charset.c (Vcharacter_decomposition_table): New variable.
792         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
793         are found.
794         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
795         `->decomposition' attribute.
796         (Fput_char_attribute): Likewise.
797         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
798
799 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * mule-charset.c (decoding_table_check_elements): New function.
802         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
803
804 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
805
806         * mule-charset.c (Fset_charset_mapping_table): Use
807         `put_char_ccs_code_point'.
808
809 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * mule-charset.c (decoding_table_put_char): New inline function.
812         (put_char_ccs_code_point): Use `decoding_table_put_char'.
813
814 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
817         (XCHARSET_BYTE_SIZE): New macro.
818         (decoding_table_remove_char): New inline function.
819         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
820         `decoding_table_remove_char'.
821         (remove_char_ccs): Use `decoding_table_remove_char'.
822         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
823
824 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * mule-charset.c (Vcharacter_name_table): New variable.
827         (Qname): New variable.
828         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
829         attribute.
830         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
831         `Vcharacter_name_table' for `name' attribute.
832         (Fremove_char_attribute): Use function `remove_char_ccs'.
833         (put_char_ccs_code_point): New function.
834         (remove_char_ccs): New function.
835         (syms_of_mule_charset): Add new symbol `name'.
836         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
837
838 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
839
840         * mule-charset.c (make_byte_table): Add new argument `older'.
841         (make_char_id_table): Likewise.
842         (copy_char_id_table): Comment out because it is not used.
843         (put_char_id_table): Modify for `make_byte_table'.
844         (Fput_char_attribute): Make encoding_table as older object;
845         inherit older bit of `Vcharacter_composition_table'.
846         (mark_charset): Don't mark `cs->encoding_table'.
847         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
848         normal object; make `Vcharacter_composition_table' as an older
849         object; delete staticpro for `Vcharacter_composition_table'; make
850         `Vcharacter_variant_table' as a normal object.
851
852         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
853         (mark_object): Don't check older object in UTF-2000.
854
855         * lrecord.h (struct lrecord_header): Add new member `older' in
856         UTF-2000.
857         (set_lheader_implementation): Setup `SLI_header->older' in
858         UTF-2000.
859         (set_lheader_older_implementation): New macro in UTF-2000.
860         (OLDER_RECORD_P): New macro in UTF-2000.
861         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
862         (alloc_older_lcrecord): New prototype in UTF-2000.
863         (alloc_older_lcrecord_type): New macro in UTF-2000.
864
865 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * mule-charset.c (byte_table_description): Use
868         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
869         (char_id_table_description): Delete bogus `, 1'.
870         (Fget_char_attribute): Refer encoding_table of each coded-charset
871         to get value of coded-charset attribute of a character.
872         (Fput_char_attribute): Use `make_older_vector' instead of
873         `make_vector'; use encoding_table of each coded-charset to store
874         value of coded-charset attribute of a character.
875         (Fremove_char_attribute): Use encoding_table of each coded-charset
876         to store value of coded-charset attribute of a character.
877         (mark_charset): Mark `cs->encoding_table'; don't mark
878         `cs->decoding_table'.
879         (charset_description): Add description of new member
880         `encoding_table'.
881         (make_charset): Initialize `encoding_table'.
882
883         * char-ucs.h (struct Lisp_Charset): Add new member
884         `encoding_table'.
885         (CHARSET_ENCODING_TABLE): New macro.
886         (XCHARSET_ENCODING_TABLE): New macro.
887         (charset_code_point): New implementation.
888         (encode_char_1): Likewise.
889
890         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
891         (disksave_object_finalization_1): Call finalizers of
892         `all_older_lcrecords' in UTF-2000.
893         (make_older_vector): New function in UTF-2000.
894         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
895         UTF-2000.
896
897         * lisp.h (make_older_vector): New prototype in UTF-2000.
898
899 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * lrecord.h (enum lrecord_type): Rename
902         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
903
904         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
905         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
906         `get_char_code_table'.
907
908         * mule-charset.c (mark_char_id_table): Renamed from
909         `mark_char_code_table'.
910         (char_id_table_equal): Renamed from `char_code_table_equal'.
911         (char_id_table_hash): Renamed from `char_code_table_hash'.
912         (make_char_id_table): Renamed from `make_char_code_table'.
913         (copy_char_id_table): Renamed from `copy_char_code_table'.
914         (get_char_id_table): Renamed from `get_char_code_table'.
915         (put_char_id_table): Renamed from `put_char_code_table'.
916         (to_char_id): Renamed from `to_char_code'.
917
918         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
919         `Lisp_Char_Code_Table'.
920         (char_id_table): Renamed from `char_code_table'.
921         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
922         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
923         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
924         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
925         (get_char_id_table): Renamed from `get_char_code_table'.
926
927 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * lrecord.h (enum lrecord_type): Rename
930         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
931
932         * mule-charset.c (mark_byte_table): Renamed from
933         `mark_char_byte_table'.
934         (byte_table_equal): Renamed from `char_byte_table_equal'.
935         (byte_table_hash): Renamed from `byte_table_hash'.
936         (make_byte_table): Renamed from `make_byte_table'.
937         (copy_byte_table): Renamed from `copy_char_byte_table'.
938
939         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
940         `Lisp_Char_Byte_Table'.
941         (byte_table): Renamed from `char_byte_table'.
942         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
943         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
944         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
945         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
946
947 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
948
949         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
950         (dfc_convert_to_internal_format): Likewise.
951         
952         * text-coding.c (Fcoding_system_canonical_name_p): New function.
953         * text-coding.c (Fcoding_system_alias_p): New function.
954         * text-coding.c (Fcoding_system_aliasee): New function.
955         * text-coding.c (append_suffix_to_symbol): New function.
956         * text-coding.c (dangling_coding_system_alias_p): New function.
957         * text-coding.c (Ffind_coding_system):
958         * text-coding.c (Fcopy_coding_system):
959         * text-coding.c (encode_coding_no_conversion):
960         * text-coding.c (syms_of_file_coding):
961         * text-coding.c (vars_of_file_coding):
962         Rewrite coding system alias code.
963         Allow nested aliases, like symbolic links.
964         Allow redefinition of coding system aliases.
965         Prevent existence of dangling coding system aliases.
966         Eliminate convert_to_external_format.
967         Eliminate convert_to_internal_format.
968         
969         * text-coding.c: Change enum eol_type to eol_type_t.
970
971 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
972
973         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
974         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
975
976         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
977         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
978
979 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
980
981         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
982         `ideograph-daikanwa'.
983
984         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
985         (Vcharset_ucs_bmp): Likewise.
986         (Vcharset_mojikyo): Add new extern variable definition.
987         (Vcharset_latin_iso8859_2): Deleted because it is not used.
988         (Vcharset_latin_iso8859_3): Likewise.
989         (Vcharset_latin_iso8859_4): Likewise.
990         (Vcharset_latin_iso8859_9): Likewise.
991         (Vcharset_latin_viscii_lower): Likewise.
992         (Vcharset_latin_viscii_upper): Likewise.
993         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
994         `mojikyo' code-point is used to decode.
995         (encode_char_2): New function [to convert `mojikyo' code-point to
996         Mojikyo font encoding].
997         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
998         (breakup_char_1): Likewise.
999         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1000
1001 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002
1003         * text-coding.c (Fmake_coding_system): Add document about
1004         `disable-composition' property.
1005
1006 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * text-coding.c (Qdisable_composition): New variable; delete
1009         `Qcomposite'.
1010         (Fmake_coding_system): Add new property `disable-composite';
1011         delete property `composite'.
1012         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1013         instead of `!CODING_SYSTEM_COMPOSITE'.
1014         (syms_of_file_coding): Add new symbol `disable-composition';
1015         delete symbol `composite'.
1016
1017         * file-coding.h (struct Lisp_Coding_System): Add
1018         `disable_composition'; delete `enable_composition'.
1019         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1020         `CODING_SYSTEM_COMPOSITE'.
1021         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1022         `XCODING_SYSTEM_COMPOSITE'.
1023
1024 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1027         to 0.15.
1028
1029 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * text-coding.c (Qcomposite): New variable.
1032         (Fmake_coding_system): Add new property `composite'.
1033         (struct decoding_stream): Add `combined_char_count',
1034         `combined_chars' and `combining_table' in UTF-2000.
1035         (COMPOSE_FLUSH_CHARS): New macro.
1036         (COMPOSE_ADD_CHAR): New macro.
1037         (reset_decoding_stream): Reset `str->combined_char_count' and
1038         `str->combining_table' in UTF-2000.
1039         (decode_coding_iso2022): Modify for character-decomposition.
1040         (syms_of_file_coding): Add new symbol `composite'.
1041
1042 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043
1044         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1045         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1046         of `Vcharacter_composition_table' if `->decomposition' property
1047         has only 1 element.
1048         (Qlatin_tcvn5712): New variable.
1049         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1050         (complex_vars_of_mule_charset): Add new coded-charset
1051         `latin-tcvn5712'.
1052
1053         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1054
1055 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1056
1057         * file-coding.h (struct Lisp_Coding_System): Add
1058         `enable_composition'.
1059         (CODING_SYSTEM_COMPOSITE): New macro.
1060         (XCODING_SYSTEM_COMPOSITE): New macro.
1061
1062 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1063
1064         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1065
1066 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1067
1068         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1069         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1070
1071 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1072
1073         * mule-charset.c (Vcharset_mojikyo): New variable.
1074         (Fdefine_char): Don't use coded-charset which does not have
1075         non-builtin character range to allocate character-id.
1076         (Qmojikyo): New variable.
1077         (syms_of_mule_charset): Add new symbol `mojikyo'.
1078         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1079
1080         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1081         (LEADING_BYTE_MOJIKYO): New macro.
1082         (MIN_CHAR_MOJIKYO): New macro.
1083         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1084         (MAX_CHAR_MOJIKYO): New macro.
1085
1086 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1087
1088         * mule-charset.c (remove_char_attribute): Fixed.
1089
1090 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1091
1092         * mule-charset.c (remove_char_attribute): New function.
1093         (Fremove_char_attribute): New function.
1094         (encode_builtin_char_1): Comment out builtin-support for
1095         greek-iso8859-7 and cyrillic-iso8859-5.
1096         (Fdecode_char): Check `code' is an integer.
1097         (syms_of_mule_charset): Add `remove-char-attribute'.
1098         (MIN_CHAR_GREEK): Deleted.
1099         (MAX_CHAR_GREEK): Likewise.
1100         (MIN_CHAR_CYRILLIC): Likewise.
1101         (MAX_CHAR_CYRILLIC): Likewise.
1102         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1103         MAX_CHAR_GREEK for `greek-iso8859-7'.
1104
1105         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1106         (MAX_CHAR_GREEK): Likewise.
1107         (MIN_CHAR_CYRILLIC): Likewise.
1108         (MAX_CHAR_CYRILLIC): Likewise.
1109
1110 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1111
1112         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1113         format is used without `ucs' property.
1114         (Fdecode_char): Fix problem with GR representation.
1115         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1116         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1117
1118 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1119
1120         * mule-charset.c (make_builtin_char): New function.
1121         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1122         (Fset_charset_mapping_table): Modify for new representation of
1123         code-point.
1124         (Fdecode_char): New function.
1125         (syms_of_mule_charset): Add new builtin function `decode-char' in
1126         UTF-2000.
1127
1128         * char-ucs.h (make_builtin_char): New prototype.
1129         (DECODE_CHAR): New inline function.
1130         (MAKE_CHAR): Use `DECODE_CHAR'.
1131
1132 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1133
1134         * text-coding.c (parse_charset_conversion_specs): Use
1135         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1136         `XCHARSET_TYPE'.
1137         (iso2022_designate): Likewise.
1138
1139         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1140         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1141
1142         * mule-charset.c (Vcharset_ucs): New variable.
1143         (print_charset): Change design; use `CHARSET_CHARS' and
1144         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1145         (make_charset): Change signature to specify `chars' and
1146         `dimension' instead of `type'.
1147         (range_charset_code_point): Modify for 256^n-set.
1148         (encode_builtin_char_1): Encode as `ucs' in default.
1149         (Fmake_charset): Modify for `make_charset'.
1150         (Fmake_reverse_direction_charset): Likewise.
1151         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1152         UTF-2000.
1153         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1154         for `make_charset'.
1155
1156         * char-ucs.h (Vcharset_ucs): New variable.
1157         (LEADING_BYTE_UCS): New macro.
1158         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1159         and `chars' to `unsigned short' from `unsigned int'.
1160         (CHARSET_TYPE): Deleted.
1161         (XCHARSET_TYPE): Deleted.
1162
1163 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1164
1165         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1166
1167         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1168         (ENCODE_CHAR): New macro.
1169
1170 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1171
1172         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1173         to 0.14 (Kawachi-Katakami).
1174
1175 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1176
1177         * text-coding.c (char_encode_shift_jis): Modify for
1178         `charset_code_point'.
1179         (char_encode_iso2022): Likewise.
1180
1181         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1182         (integer) instead of list of <Lisp_Object>s (integers) as the
1183         format of code-point of a coded-charset.
1184         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1185         (encode_builtin_char_1): New function; delete
1186         `split_builtin_char'.
1187         (charset_code_point): Return <int> instead of <Lisp_Object>.
1188         (Fsplit_char): Don't use `SPLIT_CHAR'.
1189
1190         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1191         prototype for `split_builtin_char'.
1192         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1193         (charset_code_point): Likewise.
1194         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1195         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1196
1197 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1198
1199         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1200         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1201
1202 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1203
1204         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1205
1206         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1207         (MAX_CHAR_OBS_94x94): Deleted.
1208
1209 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1210
1211         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1212
1213         * char-ucs.h (MAX_CHAR_BMP): New macro.
1214
1215 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1216
1217         * text-coding.c: Sync with r21-2-24.
1218
1219 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1220
1221         * file-coding.c: Modify for UTF-2000.
1222
1223 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1224
1225         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1226         to 0.13 (Takaida).
1227
1228 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1229
1230         * mule-charset.c (split_builtin_char): Delete builtin support for
1231         `katakana-jisx0201'.
1232         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1233         BMP area in builtin representation.
1234
1235         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1236         `Vcharset_katakana_jisx0201'.
1237
1238 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1239
1240         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1241         (Qisolated): New variable.
1242         (Qinitial): New variable.
1243         (Qmedial): New variable.
1244         (Qfinal): New variable.
1245         (Qvertical): New variable.
1246         (Qsmall): New variable.
1247         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1248         `Qvertical' and `Qsmall'.
1249         (Qmojikyo_pj_[1 .. 21]): New variable.
1250         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1251         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1252         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1253         .. 21]'.
1254
1255 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1256
1257         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1258         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1259         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1260
1261 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1262
1263         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1264         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1265         BMP.
1266         (Qjapanese_jisx0208_1990): New variable.
1267         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1268         (complex_vars_of_mule_charset): Add new coded-charset
1269         `japanese-jisx0208-1990'.
1270
1271         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1272         (MIN_CHAR_JIS_X0208_1990): New macro.
1273         (MAX_CHAR_JIS_X0208_1990): New macro.
1274
1275 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1276
1277         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1278         coded-charset is not found.
1279
1280 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1281
1282         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1283         (Fdefine_char): Use `Fmake_char'.
1284
1285 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1286
1287         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1288         (Vcharset_hiragana_jisx0208): Deleted.
1289         (Vcharset_katakana_jisx0208): Deleted.
1290         (Qideograph_daikanwa): New variable.
1291         (Qhiragana_jisx0208): Deleted.
1292         (Qkatakana_jisx0208): Deleted.
1293         (split_builtin_char): Split `ideograph-daikanwa'.
1294         (Fsplit_char): New implementation for UTF-2000.
1295         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1296         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1297         (complex_vars_of_mule_charset): Add new coded-charset
1298         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1299         `katakana-jisx0208'.
1300
1301         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1302         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1303         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1304         (MIN_CHAR_DAIKANWA): New macro.
1305         (MAX_CHAR_DAIKANWA): New macro.
1306
1307 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1308
1309         * data.c (Fstring_to_number): Don't recognize floating point if
1310         base is not 10.
1311
1312 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1313
1314         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1315
1316 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1317
1318         * mule-charset.c (Qsquare): New variable.
1319         (to_char_code): Add `Qsquare'.
1320         (syms_of_mule_charset): Add new symbol `square'.
1321
1322 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1323
1324         * mule-charset.c (Qcircle): New variable.
1325         (to_char_code): Add `Qcircle'.
1326         (syms_of_mule_charset): Add new symbol `circle'.
1327
1328 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1329
1330         * mule-charset.c (Qfont): New variable.
1331         (to_char_code): Add `Qfont'.
1332         (syms_of_mule_charset): Add new symbol `font'.
1333
1334 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1335
1336         * mule-charset.c (Qsub): New variable.
1337         (to_char_code): Add `Qsub'.
1338         (syms_of_mule_charset): Add new symbol `sub'.
1339
1340 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1341
1342         * mule-charset.c (Fput_char_attribute): Convert each element of
1343         VALUE to GL position if ATTRIBUTE is a GR-set,
1344
1345 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1346
1347         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1348         coded-charset is a GR-set.
1349
1350 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1351
1352         * mule-charset.c (Fput_char_attribute): Check each element of
1353         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1354
1355 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1356
1357         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1358         UTF-2000.
1359         (Qethiopic_ucs): New variable in UTF-2000.
1360         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1361         (complex_vars_of_mule_charset): Add new coded-charset
1362         `ethiopic-ucs' in UTF-2000.
1363
1364         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1365         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1366         9)'.
1367         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1368         10)'.
1369         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1370
1371 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1372
1373         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1374         `ascii'.
1375
1376 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1377
1378         * mule-charset.c (Vcharacter_variant_table): New variable.
1379         (Q_ucs): New variable.
1380         (Fchar_variants): New function.
1381         (Fput_char_attribute): Register `->ucs' value to
1382         `Vcharacter_variant_table'.
1383         (syms_of_mule_charset): Add new function `char-variants' and new
1384         symbol `->ucs'.
1385         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1386
1387 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1388
1389         * mule-charset.c (get_char_code_table): Allow negative character
1390         code.
1391         (put_char_code_table): Likewise.
1392         (Vcharacter_composition_table): New variable.
1393         (Q_decomposition): New variable.
1394         (Qwide): New variable.
1395         (Qnarrow): New variable.
1396         (Qcompat): New variable.
1397         (QnoBreak): New variable.
1398         (Qsuper): New variable.
1399         (Qfraction): New variable.
1400         (to_char_code): New function.
1401         (Fget_composite_char): New function.
1402         (Fput_char_attribute): Register `->decomposition' value to
1403         `Vcharacter_composition_table'.
1404         (syms_of_mule_charset): Add new function `get-composite-char', new
1405         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1406         `super' and `fraction'.
1407         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1408
1409 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1410
1411         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1412         character; copy the return value.
1413
1414 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1415
1416         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1417
1418         * mule-charset.c (range_charset_code_point): Must use make_int.
1419         (split_builtin_char): New function.
1420
1421 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1422
1423         * mule-charset.c (char_byte_table): Change name from
1424         "char-code-table" to "char-byte-table".
1425         (mark_char_code_table): New function.
1426         (char_code_table_equal): New function.
1427         (char_code_table_hash): New function.
1428         (char_code_table_description): New constant.
1429         (char_code_table): New type.
1430         (make_char_code_table): New function.
1431         (copy_char_code_table): New function.
1432         (get_char_code_table): Modify for `char_code_table' type.
1433         (put_char_code_table): Likewise.
1434         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1435         (Kashiwara).
1436
1437         * char-ucs.h (char_code_table): New type.
1438         (XCHAR_CODE_TABLE): New macro.
1439         (XSETCHAR_CODE_TABLE): New macro.
1440         (CHAR_CODE_TABLE_P): New macro.
1441         (GC_CHAR_CODE_TABLE_P): New macro.
1442         (struct Lisp_Char_Code_Table): New structure.
1443
1444 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1445
1446         * mule-charset.c (Fmake_charset): Setup byte_offset for
1447         {94|96}^n-set.
1448
1449 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1450
1451         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1452         character.
1453
1454 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1455
1456         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1457         is found.
1458
1459 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1460
1461         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1462         charset, it is regarded as a charset.
1463         (put_char_attribute): New function in UTF-2000.
1464         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1465         charset, mapping-table of the charset is modified.
1466         (Fdefine_char): New function in UTF-2000.
1467         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1468         `Fput_char_attribute'.
1469         (syms_of_mule_charset): Add new function `define-char' and new
1470         symbol `ucs' in UTF-2000.
1471         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1472
1473 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1474
1475         * mule-charset.c (Fcharset_name): Define `byte_offset' in
1476         non-UTF-2000 configuration.
1477
1478 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1479
1480         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1481         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1482
1483         * mule-charset.c (mark_charset): `cs->encoding_table' has been
1484         deleted.
1485         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1486         (Fset_charset_mapping_table): Likewise.
1487
1488         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1489         (CHARSET_ENCODING_TABLE): Delete.
1490         (XCHARSET_ENCODING_TABLE): Delete.
1491         (charset_code_point): New interface.
1492
1493 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1494
1495         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1496         instead of `charset_get_byte1' and `charset_get_byte2'.
1497
1498         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1499         (charset_get_byte2): Deleted.
1500
1501 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1502
1503         * char-ucs.h (SPLIT_CHAR): New inline function.
1504         (breakup_char_1): Use `SPLIT_CHAR'.
1505
1506         * mule-charset.c (range_charset_code_point): New function.
1507         (charset_code_point): New function.
1508
1509         * char-ucs.h (range_charset_code_point): New interface.
1510         (breakup_char_1): Use `range_charset_code_point'.
1511
1512 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1513
1514         * mule-charset.c (Fmake_charset): Delete unused local variable
1515         `code_offset'.
1516
1517         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1518         (breakup_char_1): Find a charset and code-point in
1519         `Vcharacter_attribute_table'.
1520
1521 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1522
1523         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1524         to 0.10 (Yao).
1525
1526 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
1527
1528         * mule-charset.c (Vcharacter_attribute_table): New variable.
1529         (Fchar_attribute_alist): New function.
1530         (Fget_char_attribute): New function.
1531         (Fput_char_attribute): New function.
1532         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
1533         too.
1534         (syms_of_mule_charset): Add new function `char-attribute-alist',
1535         `get-char-attribute' and `put-char-attribute'.
1536         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
1537
1538 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
1539
1540         * mule-charset.c (Fmake_charset): Just use
1541         `get_unallocated_leading_byte'.
1542
1543         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
1544         sets; don't use final-byte based number for private sets.
1545
1546 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1547
1548         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
1549         integer.
1550
1551 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1552
1553         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1554         to 0.9.
1555
1556 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1557
1558         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
1559         of `CHAR_LEADING_BYTE' in UTF-2000.
1560
1561         * insdel.c (find_charsets_in_bufbyte_string): Use
1562         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1563         (find_charsets_in_emchar_string): Likewise.
1564
1565         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
1566         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1567
1568         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
1569         (CHAR_CHARSET_ID): New macro.
1570
1571 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1572
1573         * chartab.c (get_char_table): Don't use type `Charset_ID' for
1574         charset-id - MIN_LEADING_BYTE.
1575         (put_char_table): Likewise.
1576
1577 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1578
1579         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
1580         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
1581         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
1582         (CHARSET_ID_OFFSET): New macro.
1583         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
1584         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
1585         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
1586         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1587         4).
1588         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1589         5).
1590         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
1591         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
1592         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
1593         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
1594         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
1595
1596 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1597
1598         * mule-charset.c (next_allocated_leading_byte): New variable in
1599         UTF-2000.
1600         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
1601         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
1602         (get_unallocated_leading_byte): Simply use
1603         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
1604         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
1605         UTF-2000.
1606
1607         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
1608         (MAX_LEADING_BYTE_PRIVATE): New macro.
1609         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
1610         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
1611
1612 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1613
1614         * mule-charset.c (Fmake_charset): Allocate final-byte based
1615         charset-id for 94-set, 96-set and 94x94-set.
1616
1617 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1618
1619         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
1620         ambiguous `else'.
1621         (Fmake_charset): Likewise.
1622         (complex_vars_of_mule_charset): Modify the font registry of
1623         `ucs-bmp' not to match `Ethiopic-Unicode'.
1624
1625 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1626
1627         * mule-charset.c (complex_vars_of_mule_charset): Add font
1628         registory of `ucs-bmp'.
1629
1630 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1631
1632         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
1633         coded-charsets in `default-coded-charset-priority-list' when
1634         breaking up a character.
1635
1636         * mule-charset.c (Vcharset_latin_viscii): New variable.
1637         (Qlatin_viscii): New variable.
1638         (make_charset): Don't use `decoding_table'.
1639         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
1640         byte_offset.
1641         (Fset_charset_mapping_table): New implementation.
1642         (syms_of_mule_charset): Add new symbol `latin-viscii'.
1643         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
1644         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
1645         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
1646         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
1647         charset `latin_viscii'.
1648
1649         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
1650         (CHARSET_TYPE_94X94): Change to 1 from 2.
1651         (CHARSET_TYPE_96): Change to 2 from 1.
1652         (CHARSET_TYPE_128): New macro.
1653         (CHARSET_TYPE_128X128): Change to 5 from 4.
1654         (CHARSET_TYPE_256): New macro.
1655         (CHARSET_TYPE_256X256): Change to 7 from 5.
1656         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
1657
1658 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1659
1660         * text-coding.c (char_encode_shift_jis): Refer
1661         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
1662         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
1663
1664         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
1665         (char_byte_table_equal): New function in UTF-2000.
1666         (char_byte_table_hash): New function in UTF-2000.
1667         (char_byte_table_description): New constant in UTF-2000.
1668         (char_byte_table): New type in UTF-2000.
1669         (make_char_byte_table): New function in UTF-2000.
1670         (copy_char_byte_table): New function in UTF-2000.
1671         (make_char_code_table): New macro in UTF-2000.
1672         (get_char_code_table): New function in UTF-2000.
1673         (put_char_code_table): New function in UTF-2000.
1674         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1675         (charset_description): Add setting in UTF-2000.
1676         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
1677         `CHARSET_TO_BYTE1_TABLE(cs)'.
1678         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
1679         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
1680         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
1681         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
1682         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
1683         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
1684         `CHARSET_TO_BYTE2_TABLE(cs)'.
1685
1686         * char-ucs.h (char_byte_table): New type.
1687         (XCHAR_BYTE_TABLE): New macro.
1688         (XSETCHAR_BYTE_TABLE): New macro.
1689         (CHAR_BYTE_TABLE_P): New macro.
1690         (GC_CHAR_BYTE_TABLE_P): New macro.
1691         (struct Lisp_Char_Byte_Table): New structure.
1692         (get_char_code_table): New interface.
1693         (Emchar_to_byte_table): Deleted.
1694         (get_byte_from_character_table): Deleted.
1695         (struct Lisp_Charset): Add `encoding_table'; delete
1696         `to_byte1_table' and `to_byte2_table'.
1697         (CHARSET_ENCODING_TABLE): New macro.
1698         (CHARSET_TO_BYTE1_TABLE): Deleted.
1699         (CHARSET_TO_BYTE2_TABLE): Deleted.
1700         (XCHARSET_ENCODING_TABLE): New macro.
1701         (XCHARSET_TO_BYTE1_TABLE): Deleted.
1702         (XCHARSET_TO_BYTE2_TABLE): Deleted.
1703
1704 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
1705
1706         * mule-charset.c (syms_of_mule_charset): Delete charset alias
1707         `vietnamese-viscii-*'.
1708
1709 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
1710
1711         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
1712         (Qvietnamese_viscii_upper): New variable.
1713         (Fdefine_charset_alias): New function.
1714         (syms_of_mule_charset): Add new function `define-charset-alias'.
1715         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
1716         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
1717         `latin-viscii-*'.
1718
1719 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
1720
1721         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
1722         (MAX_CHAR_OBS_94x94): New macro.
1723         (breakup_char_1): Support obsolete XEmacs-UCS private code space
1724         for 94x94 sets.
1725
1726         * mule-charset.c (put_byte_from_character_table): Change unit size
1727         from 128 to 256.
1728         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
1729         not defined.
1730         (Fmake_reverse_direction_charset): Modify dummy argument of
1731         `make_charset' for non-UTF-2000 environment.
1732
1733 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1734
1735         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
1736
1737         * mule-charset.c (destroy_byte_from_character_table): New macro.
1738         (latin_jisx0201_to_ucs): Deleted.
1739         (latin_iso8859_2_to_ucs): Deleted.
1740         (latin_iso8859_3_to_ucs): Deleted.
1741         (latin_iso8859_4_to_ucs): Deleted.
1742         (latin_iso8859_9_to_ucs): Deleted.
1743         (latin_viscii_lower_to_ucs): Deleted.
1744         (latin_viscii_upper_to_ucs): Deleted.
1745         (mark_charset): Mark `cs->decoding_table'.
1746         (Fcharset_mapping_table): Fix DOC-string.
1747         (Fset_charset_mapping_table): New function.
1748         (syms_of_mule_charset): Add nwe function
1749         `set-charset-mapping-table'.
1750         (complex_vars_of_mule_charset): Don't setup and use
1751         `latin_*_to_ucs'.
1752
1753 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1754
1755         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
1756         charset.
1757
1758 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1759
1760         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
1761         (Vcharset_katakana_jisx0208): New variable.
1762         (Qhiragana_jisx0208): New variable.
1763         (Qkatakana_jisx0208): New variable.
1764         (make_charset): Add new argument `byte_offset'.
1765         (charset_get_byte1): Modify for new coded-charset definition; use
1766         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1767         `XCHARSET_BYTE_OFFSET'.
1768         (Fmake_charset): Modify for `make_charset'.
1769         (Fmake_reverse_direction_charset): Likewise.
1770         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
1771         `katakana-jisx0208'.
1772         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
1773         `.'  in font registry of charset `katakana-jisx0201',
1774         `latin-jisx0201', `vietnamese-viscii-lower' and
1775         `vietnamese-viscii-upper'; modify DOC-string of charset
1776         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
1777         registry of charset `japanese-jisx0208' not to use font for JIS
1778         X0208:1990; add new charset `hiragana-jisx0208' and
1779         `katakana-jisx0208'.
1780
1781         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
1782         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
1783         (struct Lisp_Charset): Add `byte_offset'.
1784         (CHARSET_BYTE_OFFSET): New macro.
1785         (XCHARSET_UCS_MIN): New macro.
1786         (XCHARSET_UCS_MAX): New macro.
1787         (XCHARSET_CODE_OFFSET): New macro.
1788         (XCHARSET_BYTE_OFFSET): New macro.
1789         (MIN_CHAR_HIRAGANA): New macro.
1790         (MAX_CHAR_HIRAGANA): New macro.
1791         (MIN_CHAR_KATAKANA): New macro.
1792         (MAX_CHAR_KATAKANA): New macro.
1793         (MAKE_CHAR): Modify for new coded-charset definition; use
1794         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
1795         `XCHARSET_BYTE_OFFSET'.
1796
1797 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1798
1799         * mule-charset.c (CHAR96): Deleted.
1800         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
1801         <Lisp_Object>.
1802         (latin_iso8859_2_to_ucs): Likewise.
1803         (latin_iso8859_3_to_ucs): Likewise.
1804         (latin_iso8859_4_to_ucs): Likewise.
1805         (latin_iso8859_9_to_ucs): Likewise.
1806         (latin_viscii_lower_to_ucs): Likewise.
1807         (latin_viscii_upper_to_ucs): Likewise.
1808         (latin_tcvn5712_to_ucs): Commented out.
1809         (make_charset): Change type of argument `decoding_table' from
1810         <Emchar*> to <Lisp_Object> [vector of characters].
1811         (Fmake_charset): Modify for `make_charset'.
1812         (Fmake_reverse_direction_charset): Likewise.
1813         (Fcharset_mapping_table): New function in UTF-2000.
1814         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
1815         UTF-2000.
1816         (complex_vars_of_mule_charset): Modify for type change of
1817         `*_to_ucs'; modify for `make_charset'.
1818
1819         * char-ucs.h (struct Lisp_Charset): Change type of
1820         `decoding_table' from <Emchar*> to <Lisp_Object>.
1821         (MAKE_CHAR): Modify for new specification of `decoding_table'.
1822
1823 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1824
1825         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
1826         error with non-UTF-2000-Mule.
1827
1828 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
1829
1830         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
1831         in lisp again].
1832         (Vcharset_chinese_cns11643_4): Likewise.
1833         (Vcharset_chinese_cns11643_5): Likewise.
1834         (Vcharset_chinese_cns11643_6): Likewise.
1835         (Vcharset_chinese_cns11643_7): Likewise.
1836         (Qchinese_cns11643_3): Likewise.
1837         (Qchinese_cns11643_4): Likewise.
1838         (Qchinese_cns11643_5): Likewise.
1839         (Qchinese_cns11643_6): Likewise.
1840         (Qchinese_cns11643_7): Likewise.
1841         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
1842         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1843         and `chinese-cns11643-7' to lisp/mule/chinese.el.
1844         (complex_vars_of_mule_charset): Likewise.
1845
1846 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1847
1848         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
1849         96-set.
1850         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
1851         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
1852
1853 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1854
1855         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
1856         0xFF60.
1857         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
1858         (breakup_char_1): Likewise.
1859
1860         * text-coding.c (char_encode_iso2022): Keep designated charsets if
1861         one of them includes the specified character.
1862
1863 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1864
1865         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
1866
1867 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1868
1869         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
1870
1871 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1872
1873         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
1874         definition for non-UTF-2000 Mule.
1875         (latin_iso8859_3_to_ucs): Likewise.
1876         (latin_iso8859_4_to_ucs): Likewise.
1877         (latin_iso8859_9_to_ucs): Likewise.
1878         (latin_jisx0201_to_ucs): Likewise.
1879         (MIN_CHAR_THAI): Likewise.
1880         (MAX_CHAR_THAI): Likewise.
1881         (MIN_CHAR_GREEK): Likewise.
1882         (MAX_CHAR_GREEK): Likewise.
1883         (MIN_CHAR_HEBREW): Likewise.
1884         (MAX_CHAR_HEBREW): Likewise.
1885         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
1886         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
1887         (MIN_CHAR_CYRILLIC): Likewise.
1888         (MAX_CHAR_CYRILLIC): Likewise.
1889
1890 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
1891
1892         * char-ucs.h (breakup_char_1): Use
1893         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
1894         thai-tis620 and katakana-jisx0201 area.
1895
1896 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1897
1898         * char-ucs.h (breakup_char_1): Use
1899         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
1900         area.
1901
1902         * text-coding.c (reset_encoding_stream): Fixed.
1903         (char_encode_ucs4): Delete `& 255'.
1904
1905         * char-ucs.h (breakup_char_1): Use
1906         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
1907
1908 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1909
1910         * file-coding.c (Fmake_coding_system): Don't set up
1911         `codesys->fixed.size'.
1912         (encode_coding_no_conversion): Don't refer
1913         `str->codesys->fixed.size'.
1914
1915 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1916
1917         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
1918         (latin_a_char_to_byte1): Deleted.
1919         (latin_a_char_to_byte2): Deleted.
1920
1921 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1922
1923         * mule-charset.c (make_charset): Add new argument `ucs_min',
1924         `ucs_max' and `code_offset'.
1925         (charset_get_byte1): New implementation [delete specific charset
1926         depended implementations].
1927         (Fmake_charset): Modify for `make_charset'.
1928         (Fmake_reverse_direction_charset): Likewise.
1929         (complex_vars_of_mule_charset): Likewise.
1930
1931         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
1932         `code_offset'.
1933         (CHARSET_UCS_MIN): New macro.
1934         (CHARSET_UCS_MAX): New macro.
1935         (CHARSET_CODE_OFFSET): New macro.
1936         (MAKE_CHAR): Delete charset depended definitions [except
1937         katakana-jisx0201].
1938
1939 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1940
1941         * char-ucs.h (breakup_char_1): Use
1942         `Vdefault_coded_charset_priority_list' for C0-Controls,
1943         Basic-Latin, C1-Controls and Latin-1-Supplement area.
1944
1945 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1946
1947         * char-ucs.h (charset_get_byte1): New function.
1948         (XCHARSET_GET_BYTE1): Deleted.
1949         (charset_get_byte2): New function.
1950         (XCHARSET_GET_BYTE2): Deleted.
1951         (Vdefault_coded_charset_priority_list): New external variable.
1952         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
1953         `Vdefault_preferred_coded_charset_list'.
1954
1955         * mule-charset.c (charset_get_byte1): New function.
1956         (charset_get_byte2): New function.
1957         (Vdefault_coded_charset_priority_list): New variable.
1958         (vars_of_mule_charset): Add new variable
1959         `default-coded-charset-priority-list'.
1960
1961 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1962
1963         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
1964         (XCHARSET_GET_BYTE2): New inline function.
1965         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
1966         `XCHARSET_GET_BYTE2'.
1967
1968 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1969
1970         * mule-charset.c (make_charset): Initialize
1971         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
1972         NULL if table is not defined.
1973
1974 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1975
1976         * text-coding.c (char_encode_shift_jis): Use
1977         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
1978         `ucs_to_latin_jisx0201'.
1979
1980         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
1981         (ucs_to_latin_iso8859_2): Deleted.
1982         (ucs_to_latin_iso8859_3): Deleted.
1983         (ucs_to_latin_iso8859_4): Deleted.
1984         (ucs_to_latin_iso8859_9): Deleted.
1985         (ucs_to_latin_viscii_lower): Deleted.
1986         (ucs_to_latin_viscii_upper): Deleted.
1987         (ucs_to_latin_tcvn5712): Deleted.
1988         (make_charset): Add new argument `decoding_table'; set up
1989         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
1990         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
1991         `decoding_table' is defined in UTF-2000.
1992         (Fmake_charset): Modify for `make_charset'.
1993         (Fmake_reverse_direction_charset): Likewise.
1994         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
1995         and `GENERATE_96_SET'.
1996
1997         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
1998         (ucs_to_latin_jisx0201): Deleted.
1999         (latin_iso8859_2_to_ucs): Deleted.
2000         (ucs_to_latin_iso8859_2): Deleted.
2001         (latin_iso8859_3_to_ucs): Deleted.
2002         (ucs_to_latin_iso8859_3): Deleted.
2003         (latin_iso8859_4_to_ucs): Deleted.
2004         (ucs_to_latin_iso8859_4): Deleted.
2005         (latin_iso8859_9_to_ucs): Deleted.
2006         (ucs_to_latin_iso8859_9): Deleted.
2007         (latin_viscii_lower_to_ucs): Deleted.
2008         (ucs_to_latin_viscii_lower): Deleted.
2009         (latin_viscii_upper_to_ucs): Deleted.
2010         (ucs_to_latin_viscii_upper): Deleted.
2011         (struct Lisp_Charset): Renamed `encoding_table' to
2012         `to_byte1_table'; add `to_byte2_table'.
2013         (CHARSET_DECODING_TABLE): New macro.
2014         (CHARSET_TO_BYTE1_TABLE): New macro.
2015         (CHARSET_TO_BYTE2_TABLE): New macro.
2016         (XCHARSET_DECODING_TABLE): New macro.
2017         (XCHARSET_TO_BYTE1_TABLE): New macro.
2018         (XCHARSET_TO_BYTE2_TABLE): New macro.
2019         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2020         tables.
2021         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2022         don't use `ucs_to_*' tables.
2023
2024 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2025
2026         * text-coding.c (Fmake_coding_system): Don't set up
2027         `codesys->fixed.size'.
2028         (encode_coding_no_conversion): Use `if' instead of `switch'.
2029
2030         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2031
2032 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2033
2034         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2035         (Fmake_charset): Modify for `make_charset'.
2036         (Fmake_reverse_direction_charset): Likewise.
2037         (complex_vars_of_mule_charset): Likewise.
2038
2039 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2040
2041         * text-coding.c (char_encode_shift_jis): Use table
2042         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2043
2044 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2045
2046         * text-coding.c (text_encode_generic): Use `if' instead of
2047         `switch'.
2048         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2049         decode JIS-Latin.
2050
2051 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2052
2053         * text-coding.c (encode_coding_sjis): Deleted.
2054         (char_encode_shift_jis): New function.
2055         (char_finish_shift_jis): New function.
2056         (reset_encoding_stream): Set up `encode_char' and `finish' for
2057         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2058         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2059         (char_encode_utf8): Treat `eol_type'.
2060
2061 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2062
2063         * file-coding.c (decode_coding_iso2022): Use
2064         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2065
2066 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2067
2068         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2069         to 0.7 (Hirano).
2070
2071 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2072
2073         * char-lb.h (CHAR_COLUMNS): New macro.
2074
2075 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2076
2077         * text-coding.c (char_encode_ucs4): New function.
2078         (char_finish_ucs4): New function.
2079         (encode_coding_ucs4): Deleted.
2080         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2081         (text_encode_generic): Delete local variable `charset' and `half'.
2082         (ucs_to_mule_table): Deleted.
2083         (mule_to_ucs_table): Deleted.
2084         (Fset_ucs_char): Deleted.
2085         (ucs_to_char): Deleted.
2086         (Fucs_char): Deleted.
2087         (Fset_char_ucs): Deleted.
2088         (Fchar_ucs): Deleted.
2089         (decode_ucs4): Deleted.
2090         (mule_char_to_ucs4): Deleted.
2091         (encode_ucs4): Deleted.
2092         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2093         (decode_coding_utf8): Likewise.
2094         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2095         (char_encode_iso2022): Fixed.
2096         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2097         `Fset_char_ucs' and `Fchar_ucs'.
2098         (complex_vars_of_file_coding): Don't initialize
2099         `ucs_to_mule_table'.
2100
2101         * objects-tty.c (tty_initialize_font_instance): Don't use
2102         `XCHARSET_COLUMNS'.
2103
2104         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2105         UTF-2000.
2106
2107         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2108         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2109
2110         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2111         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2112         (emchar_string_displayed_columns): Likewise.
2113
2114         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2115         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2116         (string_column_at_point): Likewise.
2117         (Fmove_to_column): Likewise.
2118
2119         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2120         `encoding_table' and `decoding_table'.
2121         (CHARSET_REP_BYTES): Deleted.
2122         (XCHARSET_REP_BYTES): Deleted.
2123         (XCHARSET_COLUMNS): Deleted.
2124         (CHAR_COLUMNS): New macro.
2125         (lookup_composite_char): Deleted unconditionally.
2126         (composite_char_string): Likewise.
2127
2128 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2129
2130         * char-ucs.h (Emchar_to_byte_table): New type.
2131         (get_byte_from_character_table): New function interface.
2132         (Vcharset_latin_jisx0201): New variable.
2133         (latin_jisx0201_to_ucs): New variable.
2134         (ucs_to_latin_jisx0201): New variable.
2135         (Vcharset_latin_iso8859_2): New variable.
2136         (latin_iso8859_2_to_ucs): New variable.
2137         (ucs_to_latin_iso8859_2): New variable.
2138         (Vcharset_latin_iso8859_3): New variable.
2139         (latin_iso8859_3_to_ucs): New variable.
2140         (ucs_to_latin_iso8859_3): New variable.
2141         (Vcharset_latin_iso8859_4): New variable.
2142         (latin_iso8859_4_to_ucs): New variable.
2143         (ucs_to_latin_iso8859_4): New variable.
2144         (Vcharset_latin_iso8859_9): New variable.
2145         (latin_iso8859_9_to_ucs): New variable.
2146         (ucs_to_latin_iso8859_9): New variable.
2147         (Vcharset_latin_viscii_lower): New variable.
2148         (latin_viscii_lower_to_ucs): New variable.
2149         (ucs_to_latin_viscii_lower): New variable.
2150         (Vcharset_latin_viscii_upper): New variable.
2151         (latin_viscii_upper_to_ucs): New variable.
2152         (ucs_to_latin_viscii_upper): New variable.
2153         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2154         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2155         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2156         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2157         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2158         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2159         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2160         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2161         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2162         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2163
2164         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2165         (Vcharset_latin_viscii_upper): New variable.
2166         (make_byte_from_character_table): New function.
2167         (put_byte_from_character_table): New function.
2168         (get_byte_from_character_table): New function.
2169         (CHAR96): New macro.
2170         (ucs_to_latin_jisx0201): New variable.
2171         (latin_jisx0201_to_ucs): New variable.
2172         (ucs_to_latin_iso8859_2): New variable.
2173         (latin_iso8859_2_to_ucs): New variable.
2174         (ucs_to_latin_iso8859_3): New variable.
2175         (latin_iso8859_3_to_ucs): New variable.
2176         (ucs_to_latin_iso8859_4): New variable.
2177         (latin_iso8859_4_to_ucs): New variable.
2178         (ucs_to_latin_iso8859_9): New variable.
2179         (latin_iso8859_9_to_ucs): New variable.
2180         (ucs_to_latin_viscii_lower): New variable.
2181         (latin_viscii_lower_to_ucs): New variable.
2182         (ucs_to_latin_viscii_upper): New variable.
2183         (latin_viscii_upper_to_ucs): New variable.
2184         (ucs_to_latin_tcvn5712): New variable.
2185         (latin_tcvn5712_to_ucs): New variable.
2186         (Qlatin_viscii_lower): New variable.
2187         (Qlatin_viscii_upper): New variable.
2188         (syms_of_mule_charset): Set up new symbol
2189         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2190         (complex_vars_of_mule_charset): Set up new charset
2191         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2192         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2193         `ucs_to_<CHARSET>' tables.
2194
2195 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2196
2197         * text-coding.c: New file.
2198
2199 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2200
2201         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2202
2203         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2204         (MAKE_CHAR): Modify for `ucs-bmp'.
2205         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2206         non-MULE characters of BMP.
2207
2208 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2209
2210         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2211         to 0.6.
2212
2213 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2214
2215         * lstream.h:
2216         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2217         - Include character.h for `CHAR_ASCII_P'.
2218
2219         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2220
2221         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2222         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2223
2224         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2225         (BYTE_C0_P): Likewise.
2226         (BYTE_C1_P): Likewise.
2227         (Lstream_get_emchar_1): Likewise.
2228         (Lstream_fput_emchar): Likewise.
2229         (Lstream_funget_emchar): Likewise.
2230         (copy_internal_to_external): Likewise.
2231         (copy_external_to_internal): Likewise.
2232
2233         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2234         (BYTE_C0_P): Likewise.
2235         (BYTE_C1_P): Likewise.
2236         (Lstream_get_emchar_1): Likewise.
2237         (Lstream_fput_emchar): Likewise.
2238         (Lstream_funget_emchar): Likewise.
2239         (copy_internal_to_external): Likewise.
2240         (copy_external_to_internal): Likewise.
2241
2242         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2243         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2244
2245         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2246         (BYTE_ASCII_P): Moved to mb-1byte.h.
2247
2248 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2249
2250         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2251
2252         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2253         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2254         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2255         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2256         (VALIDATE_CHARPTR_FORWARD): Likewise.
2257         (simple_charptr_emchar): Moved to mb-multibyte.h.
2258         (simple_set_charptr_emchar): Likewise.
2259         (simple_charptr_copy_char): Likewise.
2260         (non_ascii_charptr_emchar): Likewise.
2261         (non_ascii_set_charptr_emchar): Likewise.
2262         (non_ascii_charptr_copy_char): Likewise.
2263         (charptr_emchar): Moved to mb-*byte.h.
2264         (set_charptr_emchar): Likewise.
2265         (charptr_copy_char): Likewise.
2266
2267         * mb-1byte.h, mb-multibyte.h: New files.
2268
2269 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2270
2271         * mb-utf-8.h (MULTIBYTE): New macro.
2272         (MAX_EMCHAR_LEN): Moved from buffer.h.
2273         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2274
2275         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2276
2277         * mb-lb.h, multibyte.h: New files.
2278
2279         * char-1byte.h (Charset_ID): Moved from buffer.h.
2280         (MIN_LEADING_BYTE): Likewise.
2281         (LEADING_BYTE_ASCII): Likewise.
2282         (NUM_LEADING_BYTES): Likewise.
2283         (CHARSETP): Likewise.
2284         (CHARSET_BY_LEADING_BYTE): Likewise.
2285         (XCHARSET_LEADING_BYTE): Likewise.
2286         (XCHARSET_GRAPHIC): Likewise.
2287         (XCHARSET_COLUMNS): Likewise.
2288         (XCHARSET_DIMENSION): Likewise.
2289         (CHAR_CHARSET): Likewise.
2290         (CHAR_LEADING_BYTE): Likewise.
2291         (BREAKUP_CHAR): Likewise.
2292         (Vcharset_ascii): Likewise.
2293
2294         * buffer.h: Include multibyte.h unconditionally.
2295         (VALID_CHARPTR_P): Moved to multibyte.h.
2296         (ASSERT_VALID_CHARPTR): Likewise.
2297         (REAL_INC_CHARPTR): Likewise.
2298         (REAL_INC_CHARBYTIND): Likewise.
2299         (REAL_DEC_CHARPTR): Likewise.
2300         (INC_CHARPTR): Likewise.
2301         (INC_CHARBYTIND): Likewise.
2302         (DEC_CHARPTR): Likewise.
2303         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2304         (VALIDATE_CHARPTR_FORWARD): Likewise.
2305         (charptr_n_addr): Likewise.
2306         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2307         (simple_charptr_emchar): Moved to multibyte.h.
2308         (simple_set_charptr_emchar): Likewise.
2309         (simple_charptr_copy_char): Likewise.
2310         (non_ascii_charptr_emchar): Likewise.
2311         (non_ascii_set_charptr_emchar): Likewise.
2312         (non_ascii_charptr_copy_char): Likewise.
2313         (charptr_emchar): Likewise.
2314         (set_charptr_emchar): Likewise.
2315         (charptr_copy_char): Likewise.
2316         (charptr_emchar_n): Likewise.
2317         (Charset_ID): Moved to char-1byte.h.
2318         (Vcharset_ascii): Likewise.
2319         (CHAR_CHARSET): Likewise.
2320         (CHAR_LEADING_BYTE): Likewise.
2321         (LEADING_BYTE_ASCII): Likewise.
2322         (NUM_LEADING_BYTES): Likewise.
2323         (MIN_LEADING_BYTE): Likewise.
2324         (CHARSETP): Likewise.
2325         (CHARSET_BY_LEADING_BYTE): Likewise.
2326         (XCHARSET_LEADING_BYTE): Likewise.
2327         (XCHARSET_GRAPHIC): Likewise.
2328         (XCHARSET_COLUMNS): Likewise.
2329         (XCHARSET_DIMENSION): Likewise.
2330         (BREAKUP_CHAR): Likewise.
2331
2332 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2333
2334         * character.h: Add document about interface for characters.
2335
2336         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2337         (MAKE_CHAR): Delete comment about
2338         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2339         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2340         (BREAKUP_CHAR): Modify name of arguments.
2341         (CHAR_CHARSET): Modify name of argument.
2342
2343         * buffer.h: Delete document about Emchar accessors.
2344
2345 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2346
2347         * character.h (CHAR_INTP): Moved from buffer.h
2348         (CHAR_OR_CHAR_INTP): Likewise.
2349         (XCHAR_OR_CHAR_INT): Likewise.
2350         (CHECK_CHAR_COERCE_INT): Likewise.
2351
2352         * buffer.h (CHAR_INTP): Moved to character.h
2353         (CHAR_OR_CHAR_INTP): Likewise.
2354         (XCHAR_OR_CHAR_INT): Likewise.
2355         (CHECK_CHAR_COERCE_INT): Likewise.
2356
2357 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2358
2359         * character.h:
2360         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2361         - Include char-1byte.h, char-lb.h or char-ucs.h.
2362
2363         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2364
2365         * buffer.h: Include character unconditionally.
2366         (valid_char_p): Moved to char-*.h.
2367         (non_ascii_valid_char_p): Moved to char-lb.h.
2368
2369         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2370
2371 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2372
2373         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2374         in UTF-2000 because it is not ported yet and not to use
2375         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2376         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2377         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2378
2379         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2380         (CHAR_ASCII_P): Moved from character.h.
2381
2382         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2383         (CHAR_ASCII_P): Likewise.
2384         (CHAR_FIELD1_MASK): Deleted.
2385         (CHAR_FIELD2_MASK): Deleted.
2386         (CHAR_FIELD3_MASK): Deleted.
2387         (MAX_CHAR_BASIC_LATIN): New macro.
2388         (CHAR_FIELD1): Deleted.
2389         (CHAR_FIELD2_INTERNAL): Deleted.
2390         (CHAR_FIELD3_INTERNAL): Deleted.
2391         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2392         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2393         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2394         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2395         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2396         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2397         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2398         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2399         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2400         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2401         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2402         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2403         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2404         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2405         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2406         (MIN_CHAR_COMPOSITION): Deleted.
2407         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2408         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2409
2410 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2411
2412         * buffer.h: Include mb-utf-8.h in UTF-2000.
2413
2414         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2415
2416         * mb-utf-8.h: New file.
2417
2418 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2419
2420         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2421         instead of `int'.
2422
2423         * mule-charset.h, buffer.h (Charset_ID): New type.
2424
2425 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2426
2427         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2428         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2429         instead of `MULE_CHAR_PRIVATE_OFFSET',
2430         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2431         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2432         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2433
2434         * character.h (Vcharset_japanese_jisx0212): New variable
2435         definition.
2436
2437 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2438
2439         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2440         (charset_by_attributes): Delete array about direction.
2441         (latin_a_char_to_charset): New variable in UTF-2000.
2442         (latin_a_char_to_byte1): New variable in UTF-2000.
2443         (latin_a_char_to_byte2): New variable in UTF-2000.
2444         (Qucs_bmp): New variable.
2445         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2446         `Bufbyte'.
2447         (next_allocated_2_byte_leading_byte): Likewise.
2448         (non_ascii_set_charptr_emchar): Likewise.
2449         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2450         `CHARSET_TYPE_256X256' in UTF-2000; modify for
2451         `charset_by_attributes'.
2452         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2453         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2454         and `CHARSET_BY_LEADING_BYTE'.
2455         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2456         `utf-2000-version' to `vars_of_mule_charset'.
2457         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2458         define `leading-code-private-11' in UTF-2000; move setting of
2459         `utf-2000-version' from `syms_of_mule_charset'.
2460         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2461         UTF-2000.
2462
2463         * character.h (Charset_ID): New type.
2464         (LEADING_BYTE_UCS_BMP): New macro.
2465         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2466         (CHARSET_ID_OFFSET_94): New macro.
2467         (MIN_CHARSET_ID_PRIVATE_94): New macro.
2468         (MAX_CHARSET_ID_PRIVATE_94): New macro.
2469         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2470         final-byte.
2471         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2472         (LEADING_BYTE_LATIN_JISX0201): Likewise.
2473         (CHARSET_ID_OFFSET_96): New macro.
2474         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2475         CHARSET_ID_OFFSET_96 and final-byte.
2476         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2477         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2478         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2479         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2480         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2481         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2482         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2483         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2484         (LEADING_BYTE_THAI_TIS620): Likewise.
2485         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2486         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2487         (CHARSET_ID_OFFSET_94x94): New macro.
2488         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2489         CHARSET_ID_OFFSET_94x94 and final-byte.
2490         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2491         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2492         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2493         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2494         (LEADING_BYTE_CHINESE_GB2312): Likewise.
2495         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2496         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2497         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2498         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2499         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2500         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2501         (CHARSET_TYPE_128X128): New macro.
2502         (CHARSET_TYPE_256X256): New macro.
2503         (XCHARSET_PRIVATE_P): Delete unconditionally.
2504         (charset_by_attributes): Delete array about direction.
2505         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2506         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2507         (MIN_CHAR_94): New macro.
2508         (MAX_CHAR_94): New macro.
2509         (MIN_CHAR_96): New macro.
2510         (MAX_CHAR_96): New macro.
2511         (MIN_CHAR_94x94): New macro.
2512         (MAX_CHAR_94x94): New macro.
2513         (MIN_CHAR_96x96): New macro.
2514         (MAX_CHAR_96x96): New macro.
2515         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2516         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2517         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2518         - 32)'.
2519         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2520         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
2521         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
2522         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
2523         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
2524         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
2525         `XCHARSET_LEADING_BYTE' to make code-point.
2526         (latin_a_char_to_charset): New variable.
2527         (latin_a_char_to_byte1): New variable.
2528         (latin_a_char_to_byte2): New variable.
2529         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
2530         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
2531         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
2532
2533         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
2534         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
2535         (find_charsets_in_emchar_string): Likewise.
2536         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
2537
2538         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
2539         `int'.
2540         (decode_coding_iso2022): Likewise.
2541
2542         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
2543         of `unsigned char'.
2544
2545         * redisplay.c (redisplay_text_width_emchar_string): Use
2546         `Charset_ID' instead of `unsigned char'.
2547         (redisplay_frame_text_width_string): Likewise.
2548
2549         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
2550         `unsigned char'.
2551
2552         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
2553         instead of `unsigned char'.
2554         (face_cachel_charset_font_metric_info): Likewise.
2555
2556         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
2557         (get_non_ascii_char_table_value): Likewise.
2558         (get_char_table): Likewise.
2559         (put_char_table): Likewise.
2560         (map_over_other_charset): Likewise.
2561         (map_char_table): Likewise.
2562
2563         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
2564         instead of `unsigned char'.
2565
2566 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
2567
2568         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
2569         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
2570
2571         * mule-charset.c (leading_code_private_11): Don't define in
2572         UTF-2000.
2573
2574         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
2575         in UTF-2000 because it is not ported yet and not to use
2576         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
2577
2578 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
2579
2580         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
2581
2582 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2583
2584         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
2585         in UTF-2000.
2586
2587         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
2588         of unsigned char to store leading-byte.
2589
2590         * chartab.c (get_non_ascii_char_table_value): Don't use
2591         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
2592
2593         * file-coding.c (encode_coding_big5): Delete bogus implementation
2594         in UTF2000.
2595
2596         * character.h (LEADING_BYTE_*): Delete definition for
2597         non-UTF-2000.
2598         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
2599         (LEADING_BYTE_PREFIX_P): Deleted.
2600         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
2601         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
2602         (BUFBYTE_LEADING_BYTE_P): Deleted.
2603         (CHARSET_PRIVATE_P): Deleted unconditionally.
2604         (rep_bytes_by_first_byte): Deleted unconditionally.
2605         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
2606         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
2607         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2608         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
2609         (CHAR_FIELD2): Deleted.
2610         (CHAR_FIELD3): Deleted.
2611         (MAKE_CHAR): Delete definition for non-UTF-2000.
2612         (BREAKUP_CHAR_1_UNSAFE): Deleted.
2613         (breakup_char_1): New implementation.
2614         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
2615         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
2616
2617 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2618
2619         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
2620         condition.
2621
2622 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2623
2624         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
2625         (CHARSET_PRIVATE_P): Likewise.
2626         (XCHARSET_PRIVATE_P): Likewise.
2627         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
2628
2629         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
2630         UTF2000.
2631         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
2632
2633 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2634
2635         * character.h (LEADING_BYTE_*): Changed in UTF2000.
2636         (NUM_LEADING_BYTES): Changed from 128 to 256.
2637         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2638         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
2639         UTF2000.
2640         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
2641
2642         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
2643         UTF2000.
2644         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
2645         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
2646         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
2647         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
2648         (Qchinese_cns11643_3): New variable in UTF2000.
2649         (Qchinese_cns11643_4): New variable in UTF2000.
2650         (Qchinese_cns11643_5): New variable in UTF2000.
2651         (Qchinese_cns11643_6): New variable in UTF2000.
2652         (Qchinese_cns11643_7): New variable in UTF2000.
2653         (syms_of_mule_charset): Define `chinese-cns11643-3',
2654         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2655         and `chinese-cns11643-7' in UTF2000.
2656         (vars_of_mule_charset): Initialize
2657         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
2658         + 1 in UTF2000.
2659         (complex_vars_of_mule_charset): Setup charset
2660         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
2661         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
2662
2663 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2664
2665         * mule-charset.c: Move setting for `leading-code-private-11' from
2666         `syms_of_mule_charset' to `vars_of_mule_charset'.
2667
2668 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2669
2670         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
2671         and `NUM_LEADING_BYTES' in assert.
2672
2673 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2674
2675         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
2676         instead of 128.
2677         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
2678         `NUM_LEADING_BYTES' instead of 128.
2679
2680 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2681
2682         * mule-charset.h (charset_by_leading_byte): Use
2683         `NUM_LEADING_BYTES' instead of 128.
2684         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
2685
2686         * mule-charset.c (charset_by_leading_byte): Use
2687         `NUM_LEADING_BYTES' instead of 128.
2688         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
2689
2690         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
2691         128.
2692
2693 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2694
2695         * mule-charset.c (syms_of_mule_charset): Update to
2696         0.4 (Shin-Imamiya).
2697
2698 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
2699
2700         * file-coding.c (encode_coding_sjis): New implementation for
2701         UTF2000.  (decode_coding_sjis): Ditto.
2702
2703 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2704
2705         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
2706         Don't define in UTF2000.
2707
2708         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
2709         defined.
2710
2711         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2712         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
2713         MULE.
2714
2715 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2716
2717         * config.h.in (CHAR_IS_UCS4): New macro.
2718
2719         * mule-charset.c (rep_bytes_by_first_byte): Modify for
2720         conventional MULE representation.
2721         (syms_of_mule_charset): Update to 0.3 (Imamiya).
2722
2723         * mule-charset.h: Reverted to original.
2724
2725         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
2726         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
2727         "mule-charset.h" if CHAR_IS_UCS4 is defined.
2728
2729         * character.h: New file.
2730
2731         * file-coding.c (Fmake_coding_system): Set 1 to
2732         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
2733         defined.
2734         (encode_coding_no_conversion): New implementation for UTF2000.
2735
2736         * file-coding.h (struct Lisp_Coding_System): Add new member
2737         `fixed.size'.
2738
2739 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
2740
2741         * file-coding.c (decode_coding_iso2022): Code-point arguments of
2742         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
2743         (encode_coding_iso2022): New implementation for UTF2000.
2744
2745 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2746
2747         * mule-canna.c (c2mu): New implementation for UTF2000.
2748         (m2c): Likewise.
2749
2750 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2751
2752         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
2753
2754 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2755
2756         * file-coding.c (reset_encoding_stream): Set 0 to
2757         `str->iso2022.current_char_boundary' in UTF2000.
2758         (encode_utf8): Don't define in UTF2000.
2759         (encode_coding_utf8): New implementation for UTF-8 representation
2760         of UTF2000.
2761         (complex_vars_of_file_coding): Define coding-system `utf-8'.
2762
2763 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2764
2765         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
2766
2767         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
2768         UTF2000.
2769         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2770
2771         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
2772
2773         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
2774         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
2775         as UTF-8 in UTF2000.
2776         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
2777         (non_ascii_valid_char_p): Don't define in UTF2000.
2778         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
2779         (Lstream_get_emchar_1): Likewise.
2780         (utf-2000-version): New variable in UTF2000.
2781
2782         * lread.c (read_escape): Add new reader `u'.
2783
2784         * insdel.c (three_to_one_table): Don't define in UTF2000.
2785         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
2786         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2787         UTF2000.
2788         (bytind_to_bufpos_func): Likewise.
2789         (buffer_mule_signal_inserted_region): Likewise.
2790         (vars_of_insdel): Don't initialize `three_to_one_table'.
2791         (init_buffer_text): Use `buf->text->mule_size' instead of
2792         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
2793         UTF2000.
2794
2795         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
2796         UTF-8 representation in UTF2000.
2797         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
2798         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
2799         (decode_coding_iso2022): Don't define local variable `lb' in
2800         UTF2000; don't use LEADING_BYTE in UTF2000; use
2801         `DECODE_ADD_UCS_CHAR' in UTF2000.
2802         (convert_to_external_format): Decode as UTF-8 in UTF2000.
2803
2804         * config.h.in (UTF2000): New macro.
2805
2806         * buffer.h (struct buffer_text): Add new member `mule_size' and
2807         don't add `mule_shifter' and `mule_three_p' in UTF2000.
2808         (valid_char_p): Return always 1 in UTF2000.
2809         (MAX_EMCHAR_LEN): 6 in UTF2000.
2810         (three_to_one_table): Don't define in UTF2000.
2811         (real_bufpos_to_bytind): Modify for UTF-8 representation in
2812         UTF2000.
2813         (real_bytind_to_bufpos): Likewise.
2814
2815         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
2816
2817 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2818
2819         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
2820         representation change.
2821         (Vutf_2000_version): New variable.
2822         (leading_code_private_11): New variable.
2823         (syms_of_mule_charset): Add new variables `utf-2000-version' and
2824         `leading-code-private-11'.
2825
2826         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
2827         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
2828         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
2829         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
2830         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
2831         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
2832         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
2833         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
2834         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
2835         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
2836         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
2837         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
2838         (MIN_CHAR_GREEK): New macro.
2839         (MAX_CHAR_GREEK): New macro.
2840         (MIN_CHAR_CYRILLIC): New macro.
2841         (MAX_CHAR_CYRILLIC): New macro.
2842         (MIN_CHAR_HEBREW): New macro.
2843         (MAX_CHAR_HEBREW): New macro.
2844         (MIN_CHAR_THAI): New macro.
2845         (MAX_CHAR_THAI): New macro.
2846         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
2847         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
2848         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
2849         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
2850         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
2851         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
2852         (CHAR_FIELD2): New inline function.
2853         (CHAR_FIELD3): New inline function.
2854         (MULE_CHAR_PRIVATE_OFFSET): New macro.
2855         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
2856         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
2857         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
2858         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
2859         (MIN_CHAR_COMPOSITION): Likewise.
2860         (CHAR_LEADING_BYTE): Modified for character representation change.
2861         (MAKE_CHAR): Likewise.
2862
2863         * lisp.h (Vcharset_latin_iso8859_1): New variable.
2864         (Vcharset_greek_iso8859_7): Likewise.
2865         (Vcharset_cyrillic_iso8859_5): Likewise.
2866         (Vcharset_hebrew_iso8859_8): Likewise.
2867         (Vcharset_thai_tis620): Likewise.
2868         (Vcharset_katakana_jisx0201): Likewise.
2869
2870 2001-01-17  Martin Buchholz <martin@xemacs.org>
2871
2872         * XEmacs 21.2.41 "Polyhymnia" is released.
2873
2874 2001-01-16  Didier Verna  <didier@xemacs.org>
2875
2876         * glyphs.c (image_instantiate): don't use fallbacks when
2877         instantiating a face's background pixmap by inheritance.
2878
2879 2001-01-14  Mike Sperber <mike@xemacs.org>
2880
2881         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
2882         Conditionalize accordingly.
2883
2884 2001-01-16  Martin Buchholz  <martin@xemacs.org>
2885
2886         * dumper.c (pdump_file_get): Fix a compiler warning.
2887
2888 2001-01-15  Martin Buchholz  <martin@xemacs.org>
2889
2890         Make Purify happy when pdumping.
2891         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
2892         iniitalizing all bits of new lisp object memory.
2893         * symbols.c (Fmake_local_variable): Likewise.
2894         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
2895         * symbols.c (Fdefvaralias): Likewise.
2896         * mule-charset.c (vars_of_mule_charset): Likewise.
2897
2898 2001-01-15  Martin Buchholz  <martin@xemacs.org>
2899         Add the `-nd' flag when running pre-dump operations under the debugger.
2900         * .dbxrc (run-temacs): Add `-nd'.
2901         * .dbxrc (update-elc): Likewise.
2902         * .dbxrc (dump-temacs): Likewise.
2903         * .gdbinit (run-temacs): Likewise.
2904         * .gdbinit (check-temacs): Likewise.
2905         * .gdbinit (update-elc): Likewise.
2906         * .gdbinit (dump-temacs): Likewise.
2907
2908 2001-01-14  Martin Buchholz  <martin@xemacs.org>
2909
2910         Allow building 64-bit executables on AIX with GNU malloc, e.g.
2911         export OBJECT_MODE=64
2912         configure --pdump --use-union-type=no
2913         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
2914         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
2915
2916         * miscplay.c (sndcnv8U_2mono):
2917         Avoid two uses of `++' in the same expression.
2918         Suppresses a GCC warning.
2919
2920 2001-01-13  Martin Buchholz  <martin@xemacs.org>
2921
2922         Make sure future compilers don't miscompile alloc.c.
2923         * alloc.c:
2924         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
2925         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
2926
2927 2001-01-12  Martin Buchholz  <martin@xemacs.org>
2928
2929         * dumper.c: A little post-pdump-rename comment fixup.
2930
2931 2001-01-09  Jerry James  <james@eecs.ku.edu>
2932
2933         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
2934
2935 2001-01-13  Martin Buchholz  <martin@xemacs.org>
2936
2937         * *.[ch]: Globally rename symbols using the following `pdump-rename'
2938         script:
2939         #!/bin/sh
2940         replace_symbol () {
2941           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
2942         }
2943
2944         replace_symbol pdump_wire_lists pdump_weak_object_chains
2945         replace_symbol pdump_wire_list dump_add_weak_object_chain
2946
2947         replace_symbol pdump_wires pdump_root_objects
2948         replace_symbol pdump_wire dump_add_root_object
2949
2950         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
2951         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
2952
2953         replace_symbol dumpstructinfos pdump_root_struct_ptrs
2954         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
2955         replace_symbol dumpstructinfo pdump_root_struct_ptr
2956         replace_symbol dumpstruct dump_add_root_struct_ptr
2957
2958         replace_symbol dumpopaque dump_add_opaque
2959         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
2960         replace_symbol dumpopaqueinfos pdump_opaques
2961         replace_symbol dumpopaqueinfo pdump_opaque
2962
2963         replace_symbol nb_structdump nb_root_struct_ptrs
2964         replace_symbol nb_opaquedump nb_opaques
2965
2966         replace_symbol align_table pdump_align_table
2967         replace_symbol dump_header pdump_header
2968
2969         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
2970         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
2971
2972
2973 2001-01-12  Martin Buchholz  <martin@xemacs.org>
2974
2975         * s/aix4.h: Keep the C for AIX compiler from overaggressively
2976         optimizing bytecount_to_charcount().
2977
2978 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
2979
2980         * config.h.in:
2981         (HAVE_DLFCN_H): Removed.
2982         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
2983
2984 2001-01-06  Martin Buchholz  <martin@xemacs.org>
2985
2986         Portable dumper maintainability improvements.
2987         * alloc.c (staticpro):
2988         * alloc.c (staticpro_nodump):
2989         * alloc.c (garbage_collect_1):
2990         * alloc.c (reinit_alloc_once_early):
2991         * alloc.c (init_alloc_once_early):
2992         * alloc.c: Move dumper functions to alloc.c.
2993         * dumper.c (pdump_backtrace):
2994         * dumper.c (pdump_dump_structs):
2995         * dumper.c (pdump_dump_opaques):
2996         * dumper.c (pdump_dump_rtables):
2997         * dumper.c (pdump_dump_wired):
2998         * dumper.c (pdump):
2999         * dumper.c (pdump_load_check):
3000         * dumper.c (pdump_load_finish):
3001         * dumper.c (pdump_file_unmap):
3002         * dumper.c (pdump_file_get):
3003         * dumper.c (pdump_resource_free):
3004         * dumper.c (pdump_resource_get):
3005         * dumper.c (pdump_file_free):
3006         * dumper.c (pdump_file_try):
3007         * dumper.c (pdump_load):
3008         Remove fixed size limits on staticpro(), staticpro_nodump(),
3009         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3010         Remove custom code for dumping lrecord_implementations_table - use
3011         dumpopaque instead.
3012         Remove (most of the) custom code for dumping staticpros - dump it
3013         like any other dynarr.
3014
3015         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3016         * dumper.c: Moved functions from alloc.c.
3017         * alloc.c (dumpstruct): Moved to dumper.c.
3018         * alloc.c (dumpopaque): Likewise.
3019         * alloc.c (pdump_wire): Likewise.
3020         * alloc.c (pdump_wire_list): Likewise.
3021
3022         * lisp.h (Dynarr_sizeof): New.
3023         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3024         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3025         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3026
3027         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3028         * lisp.h (dumpopaque): ditto.
3029         * lisp.h (pdump_wire): ditto.
3030         * lisp.h (pdump_wire_list): ditto.
3031
3032 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3033
3034         * make-src-depend (PrintPatternDeps):
3035         Use `sort' to make output independent of perl version.
3036
3037 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3038
3039         Port to Netbsd 1.5.
3040         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3041         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3042
3043 2001-01-03  Didier Verna  <didier@xemacs.org>
3044
3045         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3046         that `focus_frame' is alive before thinking of calling
3047         `redisplay_redraw_cursor' on it.
3048
3049 2001-01-08  Martin Buchholz <martin@xemacs.org>
3050
3051         * XEmacs 21.2.40 is released.
3052
3053 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3054
3055         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3056
3057 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3058
3059         * alloc.c (dbg_valmask): Make const.
3060         * alloc.c (dbg_typemask): Make const.
3061         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3062         * alloc.c (dbg_valbits): Make const.
3063         * alloc.c (dbg_gctypebits): Make const.
3064
3065 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3066
3067         * redisplay-x.c (x_bevel_area):
3068         redisplay.h (struct rune):
3069         Typo fixes in comments.
3070
3071 2001-01-05  Andy Piper  <andy@xemacs.org>
3072
3073         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3074         adjustment.
3075
3076         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3077
3078 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3079
3080         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3081
3082         * mule-ccl.c (stack_idx_of_map_multiple):
3083         Non const global data must not be initialized!
3084         Found by MIYASHITA Hisashi.
3085
3086 2001-01-02  Andy Piper  <andy@xemacs.org>
3087
3088         * frame.c (change_frame_size): make sure frame size is always
3089         marked as changed.
3090
3091         * glyphs.c (image_instance_layout): minor code reuse.
3092
3093         * window.c (Fcurrent_window_configuration): revert previous
3094         change.
3095
3096 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3097
3098         * glyphs.h:
3099         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3100
3101 2000-12-31  Andy Piper  <andy@xemacs.org>
3102
3103         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3104         when widget gets unmapped.
3105
3106         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3107         function. Make sure widgets losing focus don't just drop it.
3108         (handle_focus_event_1): record the widget with focus.
3109
3110 2000-12-31  Andy Piper  <andy@xemacs.org>
3111
3112         * window.c (allocate_window): use
3113         make_image_instance_cache_hash_table.
3114         (make_dummy_parent): ditto.
3115         (Fset_window_configuration): ditto.
3116
3117         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3118
3119         * glyphs.c (process_image_string_instantiator): use
3120         INSTANTIATOR_TYPE.
3121         (get_image_instantiator_governing_domain): ditto.
3122         (normalize_image_instantiator): ditto.
3123         (instantiate_image_instantiator): ditto.
3124         (make_image_instance_1): ditto.
3125         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3126         (instantiator_eq_equal): new function for use with instance hash
3127         tables.
3128         (instantiator_eq_hash): ditto.
3129         (make_image_instance_cache_hash_table): create a suitable hash
3130         table for storing image instances.
3131
3132         * elhash.h (hash_table_weakness): new internal weakness type
3133         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3134         declare new functions.
3135
3136         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3137         another weakness type for glyphs.
3138         (make_standard_lisp_hash_table): new function split out from
3139         make_general_lisp_hash_table.
3140         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3141         (hash_table_instantiate): ditto.
3142         (Fmake_hash_table): ditto.
3143
3144 2000-12-31  Martin Buchholz <martin@xemacs.org>
3145
3146         * XEmacs 21.2.39 is released.
3147
3148 2000-12-29  Andy Piper  <andy@xemacs.org>
3149
3150         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3151
3152         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3153         the frame has changed so that we pick up geometry changes such as
3154         menubar visibility.
3155
3156 2000-12-28  Andy Piper  <andy@xemacs.org>
3157
3158         * lastfile.c (my_ebss): make a char array so we can pad the
3159         bss. Fixes cygwin unexec.
3160
3161         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3162
3163 2000-12-26  Andy Piper  <andy@xemacs.org>
3164
3165         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3166         comments and try and be more precise about a non-/SIGIO world.
3167         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3168         SIGIO.
3169
3170         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3171         we don't normalize to zero width or height.
3172
3173 2000-12-24  Andy Piper  <andy@xemacs.org>
3174
3175         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3176
3177 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3178
3179         * s/sco5.h: SCO 5 has pty support.
3180
3181 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3182
3183         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3184         input-method-xlib.c contains whole contents of input-method-xfs.c,
3185         so we can use input-method-xlib.c's code for USE_XFONTSET
3186         using #ifdefs.
3187         * input-method-xfs.c: removed.
3188
3189 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3190
3191         * file-coding.h (enum coding_category_type): reorder enumerators to
3192         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3193         (now one greater than largest real coding_category_type enumerator).
3194         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3195         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3196         Fcoding_category_list, Fset_coding_priority_list,
3197         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3198         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3199
3200 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3201
3202         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3203         * redisplay-output.c (redisplay_output_window): Clear top of window
3204         when face is changed.
3205         * redisplay-x.c (x_redraw_exposed_window): Call
3206         redisplay_clear_top_of_window.
3207         * redisplay.h: Publish redisplay_clear_top_of_window.
3208
3209 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3210
3211         * buffer.c (Fkill_buffer): Map over all devices.
3212         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3213         (list_windows): New function.
3214         (list_all_windows): Ditto.
3215         (Freplace_buffer_in_windows): Use them.
3216
3217 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3218
3219         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3220         (Fopen_database): Use `db_create' instead of `db_open'.
3221         (syms_of_database): Initialize Qqueue.
3222
3223 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3224
3225         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3226         buffer_local_face_property.
3227         * buffer.h (struct buffer): New member buffer_local_face_property.
3228         * window.c (Fset_window_buffer):  Mark window's face as changed
3229         when buffer has buffer local face.
3230         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3231         * objects.c (color_after_change): Set buffer_local_face_property
3232         when locale of face specifier is buffer.
3233         * objects.c (font_after_change): Ditto.
3234         * objects.c (face_boolean_after_change): Ditto.
3235         * glyphs.c (image_after_change): Ditto.
3236
3237 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3238
3239         * nt.c (mswindows_fstat): Report file permissions, volume serial
3240         number, etc. Code adapted from FSF Emacs 20.7.
3241
3242 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3243
3244         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3245         of stat when we don't have symbolic links, to make sure
3246         mswindows_stat is called on mswindows.
3247
3248 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3249
3250         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3251
3252 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3253
3254         * doprnt.c (emacs_doprnt_1): More printing fixes.
3255         Make printing of numbers compatible with libc and FSF Emacs.
3256         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3257         Use the system printf to do most of the hard work of formatting,
3258         instead of doprnt_1().
3259         Calculate memory to allocate for format string.
3260         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3261         (doprnt_1): Cleaner code and documentation.
3262
3263 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3264
3265         * Makefile.in.in: Use the loop variable to install headers.
3266
3267 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3268
3269         * window.c (Fsplit_window): Don't invalidate face cache.
3270
3271 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3272
3273         * minibuf.c (Fall_completions): Undo the previous change
3274         which removed checking elements start with space.
3275
3276 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3277
3278         * mule-canna.c: Didier suppression.
3279
3280 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3281
3282         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3283         (warning suppression).  Add English comment translations.
3284
3285 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3286
3287         * unexelfsgi.c (unexec): Better test for mmap failure.
3288
3289 2000-12-05  Martin Buchholz <martin@xemacs.org>
3290
3291         * XEmacs 21.2.38 is released.
3292
3293 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3294
3295         * redisplay.c (bar-cursor): Make a user variable.
3296
3297         * symsinit.h: Add init_postgresql_from_environment.
3298
3299 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3300
3301         * regex.c: Convert to clean C.
3302
3303 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3304
3305         * realpath.c:
3306         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3307         initialization.
3308         (sys_readlink): renamed to system_readlink to avoid conflict with
3309         the other sys_readlink.
3310
3311 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3312
3313         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3314
3315 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3316
3317         * postgresql.c (init_postgresql_from_environment): new function.
3318         (vars_of_postgresql): Move code initializing Lisp variables out and
3319         into init_postgresql_from_environment.
3320         emacs.c (main_1): Call init_postgresql_from_environment if and only
3321         if running a dumped XEmacs.
3322
3323 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3324
3325         * buffer.c: Make find-file-compare-truenames default to true on
3326         windows.
3327
3328         * realpath.c (win32_abs_start):
3329         (cygwin_readlink):
3330         (win32_readlink): New functions.
3331         (xrealpath): Return really real filenames on windows.
3332
3333         * fileio.c (Ffile_truename): Make file-truename work on windows.
3334
3335 2000-11-29  Didier Verna  <didier@xemacs.org>
3336
3337         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3338         * faces.c (update_face_cachel_data): use it.
3339         * faces.c (add_face_cachel): use it. Complete background pixmap
3340         frobbing in face cache if `update_face_cachel_data' has not done so.
3341
3342 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3343
3344         * search.c (string_match_1): Don't set last_thing_searched
3345         when search failed.
3346
3347 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3348
3349         * buffer.c: Include casetab.h
3350         (common_init_complex_vars_of_buffer): Use new case-table object.
3351         * buffer.h: Include casetab.h
3352         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3353         (DOWNCASE_TABLE_OF): Ditto.
3354         * bufslots.h: Remove char-tables and add case-table.
3355         * casetab.c: Include casetab.h
3356         (CASE_TABLE_P): Removed.
3357         (mark_case_table): New function.
3358         (allocate_case_table): New function.
3359         (Fcase_table_p): Use new case-table.
3360         (case_table_char): New function.
3361         (Fget_case_table): Ditto.
3362         (Fput_case_table): Ditto.
3363         (Fput_case_table_pair): Ditto.
3364         (Fcopy_case_table): Ditto.
3365         (Fcurrent_case_table): Return case-table.
3366         (Fstandard_case_table): Return case-table.
3367         (Fset_case_table): Fix doc-string.
3368         (set_case_table): Use case-table
3369         (syms_of_casetab): DEFSUBR new functions.
3370         (complex_vars_of_casetab): Set up standard case-table.
3371         * casetab.h: New file.
3372         * editfns.c: Include casetab.h
3373         (Fcompare_buffer_substrings): Use case-table.
3374         * inline.c: Include casetab.h
3375         * lisp.h: Remove bogus extern.
3376         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3377         * search.c: Include casetab.h
3378         (TRANSLATE_ASCII): Removed.
3379         (TRANSLATE): Unconditionally translate character.
3380         (looking_at_1): Use case-table.
3381         (string_match_1): Ditto.
3382         (fast_string_match): Ditto.
3383         (search_command): Ditto.
3384         (search_buffer): Separate boyer_moore.  Check whether
3385         boyer_moore is poosible.
3386         (simple_search): New function.
3387         (boyer_moore): Separated from search_buffer. Translate char.
3388
3389 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3390
3391         * regex.c (RE_TR_ASCII): Removed.
3392         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3393         (PATFETCH): Call PATFETCH_RAW.
3394         (PATFETCH_RAW): Fetch Emchar.
3395         (PATUNFETCH): Decrement charptr.
3396         (GET_BUFFER_SPACE): Rename b to buf_end.
3397         (BUF_PUSH): Ditto.
3398         (BUF_PUSH_2): Ditto.
3399         (BUF_PUSH_3): Ditto.
3400         (EXTEND_BUFFER): Ditto.
3401         (SET_LIST_BIT): Ditto.
3402         (regex_compile): Ditto.  Translate non ASCII char.
3403         (compile_range): Ditto.
3404         (re_search_2): Ditto.
3405         (re_match_2_internal): Compare Emchar.
3406         (bcmp_translate): Ditto.
3407
3408 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3409
3410         * lisp.h (basic char/int typedefs):  comment improvement.
3411
3412 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3413
3414         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3415         unstomp inhibit_site_lisp.  Improve comments.
3416
3417 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3418
3419         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3420
3421 2000-11-28  Andy Piper  <andy@xemacs.org>
3422
3423         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3424         clipped display for windows in the gutter also.
3425         (redisplay_display_boxes_in_window_p): change semantics of return
3426         codes to be more intuitive.
3427
3428         * gutter.h: declare display_boxes_in_gutter_p.
3429
3430         * gutter.c (display_boxes_in_gutter_p): new function for
3431         redisplay.
3432
3433 2000-11-22  Andy Piper  <andy@xemacs.org>
3434
3435         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3436         autodetect domain.
3437
3438 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3439
3440         * callproc.c (Fold_call_process_internal):
3441         * gpm.c (Freceive_gpm_event):
3442         (tty_get_foreign_selection): Might be just warning supression.
3443         * fileio.c (Fwrite_region_internal):
3444         (Fset_visited_file_modtime):
3445         * keymap.c (event_matches_key_specifier_p):
3446         Initialize GCPROed variable.
3447
3448         * menubar-x.c (command_builder_find_menu_accelerator):
3449         Initialize before use.
3450
3451 2000-11-23  Andy Piper  <andy@xemacs.org>
3452
3453         * unexcw.c (unexec): make the resulting executable executable.
3454
3455 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3456
3457         * doc.c (get_doc_string):
3458         Use size_t, not int, for result of XSTRING_LENGTH.
3459
3460         * cmds.c (Fdelete_char):
3461         * cmds.c (Fpoint_at_eol):
3462         * cmds.c (Fself_insert_command):
3463         Use EMACS_INT, not int, for result of XINT.
3464         Someday, someone will want to insert more than 2**31 identical characters.
3465
3466         * cmds.c (Fdelete_char):
3467         * cmds.c (Fdelete_backward_char):
3468         * syntax.c (Fforward_word):
3469         * syntax.c (Fforward_comment):
3470         Make COUNT argument optional, for consistency with forward-char et al.
3471
3472 2000-11-22  Martin Buchholz  <martin@xemacs.org>
3473
3474         * lisp.h:
3475         * print.c (long_to_string):
3476         Return a useful value: the pointer at end of data written.
3477
3478         * doprnt.c:
3479         Use `static const char * const' for constant strings.
3480         (union printf_arg): Delete `i', `ui' members.
3481         (get_doprnt_args):
3482         (emacs_doprnt_1):
3483         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3484         Do all printf-ing via the `l' specifier.
3485         Use EMACS_INT instead of int.
3486         Optimize.
3487
3488 2000-11-20  Didier Verna  <didier@xemacs.org>
3489
3490         * faces.c (update_face_cachel_data): don't frob the background
3491         pixmap when the window is being created. The face is needed but
3492         does not exist yet.
3493
3494 2000-11-20  Andy Piper  <andy@xemacs.org>
3495
3496         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3497         messing with a debug environment.
3498
3499 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3500
3501         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3502
3503 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3504
3505         * casetab.c (Fcase_table_p): Fix compile error and crash.
3506
3507 2000-11-18  Philip Aston  <philipa@mail.com>
3508
3509         * s/cygwin32.h: Cygwin has SVR4-like pty support.
3510
3511 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3512
3513         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
3514         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3515
3516 2000-11-17  Martin Buchholz  <martin@xemacs.org>
3517
3518         * config.h.in: Define HAVE_ELF_H if elf.h exists.
3519         * unexelf.c: Use HAVE_ELF_H.
3520         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
3521         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
3522         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
3523         Greg Harrington <greg_harrington@hotmail.com> provided a machine
3524         for testing.
3525         So this is an unexelfsgi.c from a different line of development.
3526
3527 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3528
3529         * regex.c (RE_TR_ASCII): New function.
3530         (RE_TRANSLATE): Call it.
3531
3532 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3533
3534         * buffer.h (TRT_TABLE_OF): Remove assert.
3535         (IN_TRT_TABLE_DOMAIN): Removed.
3536
3537 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3538
3539         * free-hook.c (log_gcpro):
3540         (show_gcprohist): Add support for GCPRO5.
3541
3542 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
3543
3544         * emacs.c (main_1): Improve -sd error message when --pdump=no.
3545
3546 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
3547
3548         * symeval.h: Declare flush_all_buffer_local_cache.
3549
3550         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
3551         (flush_buffer_local_cache): Added.
3552         (flush_all_buffer_local_cache): Added.
3553
3554         * lrecord.h: Remove unused XD_LO_RESET_NIL.
3555
3556         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
3557         (pdump_dump_data): Ditto.
3558         (pdump_reloc_one): Ditto.
3559         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
3560         before dumping.
3561
3562
3563 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3564
3565         * buffer.c: Remove if 0'ed entry.
3566         * buffer.h: Rewrite TRT to use char-table.
3567         * bufslots.h: Remove mirror tables.
3568         * casetab.c: Remove mirror tables.
3569         (CASE_TABLE_P): New macro.
3570         (Fcase_table_p): Element of a case table is string or char-table.
3571         (make_mirror_trt_table): Removed.
3572         (set_case_table): Setup char-table from strings for backward
3573         compatibility.
3574         * dired.c (Fdirectory_files):
3575         * dired-msw.c: (mswindows_get_files):
3576         * lisp.h: Change prototype of re_pattern_buffer.
3577         * regex.c: (RE_TRANSLATE): New macro.
3578         (TRANSLATE_P): Ditto.
3579         Change translate to type RE_TRANSLATE_TYPE.
3580         * regex.h: Define RE_TRANSLATE_TYPE
3581         * search.c (TRANSLATE): New macro.
3582         (TRANSLATE_ASCII): New macro.
3583         Translate table is changed to Lisp_Object.
3584         (signal_failure): Inhibit return.
3585
3586 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3587
3588         * device-msw.c:
3589         * eldap.c:
3590         * event-Xt.c:
3591         * event-stream.c:
3592         * print.c:
3593         Do UNGCPRO before return.
3594
3595 2000-11-14  Martin Buchholz <martin@xemacs.org>
3596
3597         * XEmacs 21.2.37 is released.
3598
3599 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3600
3601         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
3602         Add comments about discarded return value.
3603
3604 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
3605
3606         * callint.c:
3607         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
3608
3609 2000-10-27  Andy Piper  <andy@xemacs.org>
3610
3611         * gutter.c (Fset_default_gutter_position): default left and right
3612         gutters to visible.
3613         (calculate_gutter_size): calculate resonable heuristic for left
3614         and right gutter sizes.
3615         (specifier_vars_of_gutter): change left and right gutter sizes to
3616         autodetect.
3617         (calculate_gutter_size_from_display_lines): new function.
3618         (output_gutter): check for resizing on left and right gutters.
3619         (clear_gutter): don't special case top and left gutters.
3620         (specifier_vars_of_gutter): use new signature for
3621         set_specifier_caching.
3622
3623         * glyphs-x.c (x_redisplay_widget): spelling fix.
3624         * glyphs.c (specifier_vars_of_glyphs):
3625         * menubar.c (specifier_vars_of_menubar):
3626         * redisplay.c (specifier_vars_of_redisplay):
3627         * toolbar.c (specifier_vars_of_toolbar):
3628         * window.c (specifier_vars_of_window):
3629         * scrollbar.c (specifier_vars_of_scrollbar):
3630         (complex_vars_of_scrollbar): use new signature for
3631         set_specifier_caching.
3632
3633         * specifier.c (set_specifier_caching): include recompute flag.
3634         (recompute_one_cached_specifier_in_window): always recompute if
3635         flag set.
3636         (recompute_one_cached_specifier_in_frame): ditto.
3637
3638         * specifier.h (struct specifier_caching): add recompute flag.
3639
3640 2000-10-24  Andy Piper  <andy@xemacs.org>
3641
3642         * unexcw.c (copy_executable_and_dump_data_section): add new
3643         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
3644         5.0 happy.
3645
3646 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3647
3648         * console-x.h (x_device): New member modifier_release_time.
3649         * event-Xt.c (x_handle_sticky_modifiers):
3650         Bound interval modifier keys are sticky.
3651         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
3652         * events.h: extern it.
3653
3654 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3655
3656         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
3657
3658 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3659
3660         * event-stream.c (execute_command_event): Preserve current_events
3661         and the like when event is misc-user-event.
3662         Inhibit quit during the call to maybe_echo_keys.
3663
3664 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
3665
3666         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
3667         symlink when buffer is killed.
3668         (inhibit_clash_detection): New variable.
3669
3670 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
3671
3672         * console.c (Fset_input_method): Trigger redisplay on tty.
3673
3674 2000-11-07  Martin Buchholz  <martin@xemacs.org>
3675
3676         * process.c (Fprocess_status): Revert to previous behavior:
3677         (process-status "nosuchprocess") ==> nil
3678
3679 2000-11-06  Martin Buchholz  <martin@xemacs.org>
3680
3681         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
3682         Work around another GCC 2.95.2 optimizer bug.
3683
3684 2000-11-02  Martin Buchholz  <martin@xemacs.org>
3685
3686         * process.c (Fget_process): Use LIST_LOOP_2.
3687         (kill_buffer_processes): Use LIST_LOOP_2.
3688
3689         * minibuf.c (Fall_completions):
3690         Delete old non-functional code for FSF fourth argument.
3691
3692         * frame.c (frame_matches_frame_spec):
3693         Renamed from `frame_matches_frametype'.  Update all callers.
3694         (device_matches_device_spec):
3695         Renamed from 'device_matches_console_spec'.  Update all callers.
3696
3697         * doc.c (Fsubstitute_command_keys):
3698         Remove buffer overflow crash.  Small code cleanups.
3699
3700         * casetab.c (check_case_table): Simpler code.
3701
3702         * window.c (Freplace_buffer_in_windows):
3703         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
3704         (and similar implementation) as Fdelete_windows_on.
3705         Update all callers.
3706
3707         * alloc.c (Fmake_list):
3708         * alloc.c (make_vector):
3709         * alloc.c (Fmake_vector):
3710         * alloc.c (make_bit_vector):
3711         * alloc.c (Fmake_bit_vector):
3712         * alloc.c (Fbit_vector):
3713         * alloc.c (Fmake_string):
3714         * alloc.c (Fpurecopy):
3715         * alloc.c (Fmemory_limit):
3716         * buffer.c:
3717         * buffer.c (Fget_buffer):
3718         * buffer.c (Fkill_buffer):
3719         * buffer.c (complex_vars_of_buffer):
3720         * bytecode.c (Fcompiled_function_stack_depth):
3721         * callint.c (Fprefix_numeric_value):
3722         * event-stream.c:
3723         * event-stream.c (Fread_key_sequence):
3724         * casetab.c:
3725         * casetab.c (Fcase_table_p):
3726         * casetab.c (check_case_table):
3727         * casetab.c (Fset_case_table):
3728         * casetab.c (Fset_standard_case_table):
3729         * chartab.c:
3730         * chartab.c (Fchar_table_type):
3731         * chartab.c (Freset_char_table):
3732         * chartab.c (Fget_char_table):
3733         * chartab.c (Fget_range_char_table):
3734         * chartab.c (Fput_char_table):
3735         * chartab.c (Fmap_char_table):
3736         * chartab.c (Fcategory_table_p):
3737         * chartab.c (Fcheck_category_at):
3738         * chartab.c (Fchar_in_category_p):
3739         * chartab.c (Fcategory_table):
3740         * chartab.c (Fcopy_category_table):
3741         * chartab.c (Fset_category_table):
3742         * chartab.c (Fcategory_designator_p):
3743         * chartab.c (Fcategory_table_value_p):
3744         * cmds.c (Fdelete_char):
3745         * cmds.c (Fdelete_backward_char):
3746         * cmds.c (Fself_insert_command):
3747         * cmds.c (Fself_insert_internal):
3748         * console.c (Fvalid_console_type_p):
3749         * console.c (Fcdfw_console):
3750         * console.c (Fconsole_type):
3751         * console.c (Fconsole_name):
3752         * console.c (Fconsole_device_list):
3753         * console.c (Fconsole_on_window_system_p):
3754         * data.c:
3755         * data.c (Feq):
3756         * data.c (Fold_eq):
3757         * data.c (Fsubr_interactive):
3758         * data.c (Fchar_to_int):
3759         * data.c (Fint_to_char):
3760         * data.c (Fsetcar):
3761         * data.c (Fsetcdr):
3762         * data.c (Fnumber_to_string):
3763         * data.c (Fstring_to_number):
3764         * data.c (Frem):
3765         * database.c (mark_database):
3766         * database.c (finalize_database):
3767         * database.c (Fdatabase_live_p):
3768         * database.c (Fdatabasep):
3769         * device-x.c (Fx_get_resource):
3770         * device.c (Fdfw_device):
3771         * dired.c:
3772         * dired.c (Ffile_name_completion):
3773         * dired.c (Ffile_name_all_completions):
3774         * dired.c (Fuser_name_completion):
3775         * dired.c (Fuser_name_completion_1):
3776         * dired.c (Fuser_name_all_completions):
3777         * doc.c (Fdocumentation):
3778         * doc.c (Fdocumentation_property):
3779         * doc.c (Fsubstitute_command_keys):
3780         * editfns.c:
3781         * editfns.c (Fchar_to_string):
3782         * editfns.c (Fstring_to_char):
3783         * editfns.c (Ftemp_directory):
3784         * editfns.c (Finsert_char):
3785         * editfns.c (Fbuffer_substring_no_properties):
3786         * editfns.c (Fnarrow_to_region):
3787         * editfns.c (Fchar_equal):
3788         * editfns.c (Fchar_Equal):
3789         * editfns.c (Ftranspose_regions):
3790         * emacs.c (Fdump_emacs):
3791         * eval.c (Fthrow):
3792         * eval.c (Fcommand_execute):
3793         * eval.c (Fautoload):
3794         * eval.c (Fbacktrace):
3795         * eval.c (Fbacktrace_frame):
3796         * events.c:
3797         * events.c (Fcopy_event):
3798         * events.c (Fcharacter_to_event):
3799         * events.c (Fevent_button):
3800         * events.c (Fevent_process):
3801         * extents.c:
3802         * extents.c (Fnext_extent_change):
3803         * extents.c (Fextent_property):
3804         * faces.c (Ffacep):
3805         * faces.c (Fmake_face):
3806         * file-coding.c:
3807         * file-coding.c (Fencode_shift_jis_char):
3808         * file-coding.c (Fencode_big5_char):
3809         * fileio.c (Ffile_name_directory):
3810         * fileio.c (Ffile_name_nondirectory):
3811         * fileio.c (Ffile_name_as_directory):
3812         * fileio.c (Fdirectory_file_name):
3813         * fileio.c (Ffile_truename):
3814         * fileio.c (Fsubstitute_in_file_name):
3815         * fileio.c (Ffile_modes):
3816         * fileio.c (Fset_file_modes):
3817         * fileio.c (Fset_default_file_modes):
3818         * fileio.c (Fverify_visited_file_modtime):
3819         * floatfns.c (Facos):
3820         * floatfns.c (Fasin):
3821         * floatfns.c (Fatan):
3822         * floatfns.c (Fcos):
3823         * floatfns.c (Fsin):
3824         * floatfns.c (Ftan):
3825         * floatfns.c (Fbessel_j0):
3826         * floatfns.c (Fbessel_j1):
3827         * floatfns.c (Fbessel_jn):
3828         * floatfns.c (Fbessel_y0):
3829         * floatfns.c (Fbessel_y1):
3830         * floatfns.c (Fbessel_yn):
3831         * floatfns.c (Ferf):
3832         * floatfns.c (Ferfc):
3833         * floatfns.c (Flog_gamma):
3834         * floatfns.c (Fexp):
3835         * floatfns.c (Fexpt):
3836         * floatfns.c (Flog):
3837         * floatfns.c (Flog10):
3838         * floatfns.c (Fsqrt):
3839         * floatfns.c (Fcube_root):
3840         * floatfns.c (Facosh):
3841         * floatfns.c (Fasinh):
3842         * floatfns.c (Fatanh):
3843         * floatfns.c (Fcosh):
3844         * floatfns.c (Fsinh):
3845         * floatfns.c (Ftanh):
3846         * floatfns.c (Fabs):
3847         * floatfns.c (Ffloat):
3848         * floatfns.c (Flogb):
3849         * floatfns.c (Fceiling):
3850         * floatfns.c (Ffloor):
3851         * floatfns.c (Fround):
3852         * floatfns.c (Ftruncate):
3853         * floatfns.c (Ffceiling):
3854         * floatfns.c (Fffloor):
3855         * floatfns.c (Ffround):
3856         * floatfns.c (Fftruncate):
3857         * fns.c (Fstring_equal):
3858         * fns.c (Fstring_lessp):
3859         * fns.c (concat2):
3860         * fns.c (concat3):
3861         * fns.c (vconcat2):
3862         * fns.c (vconcat3):
3863         * fns.c (Fsubstring):
3864         * fns.c (Fassoc):
3865         * fns.c (Fold_assoc):
3866         * fns.c (assoc_no_quit):
3867         * fns.c (Fassq):
3868         * fns.c (Fold_assq):
3869         * fns.c (assq_no_quit):
3870         * fns.c (Frassoc):
3871         * fns.c (Fold_rassoc):
3872         * fns.c (Frassq):
3873         * fns.c (Fold_rassq):
3874         * fns.c (rassq_no_quit):
3875         * fns.c (Fremassoc):
3876         * fns.c (remassoc_no_quit):
3877         * fns.c (Fremassq):
3878         * fns.c (remassq_no_quit):
3879         * fns.c (Fremrassoc):
3880         * fns.c (Fremrassq):
3881         * fns.c (remrassq_no_quit):
3882         * fns.c (Fsort):
3883         * fns.c (Fplist_get):
3884         * fns.c (Fplist_put):
3885         * fns.c (Fplist_remprop):
3886         * fns.c (Fplist_member):
3887         * fns.c (Flax_plist_get):
3888         * fns.c (Flax_plist_put):
3889         * fns.c (Flax_plist_remprop):
3890         * fns.c (Flax_plist_member):
3891         * fns.c (Fequal):
3892         * fns.c (Fold_equal):
3893         * fns.c (Frequire):
3894         * fns.c (Fbase64_encode_region):
3895         * fns.c (Fbase64_encode_string):
3896         * fns.c (Fbase64_decode_region):
3897         * frame.c:
3898         * frame.c (frame_matches_frame_spec):
3899         * frame.c (device_matches_device_spec):
3900         * frame.c (next_frame):
3901         * frame.c (previous_frame):
3902         * frame.c (Fnext_frame):
3903         * frame.c (Fprevious_frame):
3904         * frame.c (Fframe_property):
3905         * frame.c (Fset_frame_height):
3906         * frame.c (Fset_frame_size):
3907         * frame.h:
3908         * glyphs.c:
3909         * glyphs.c (if):
3910         * glyphs.c (decode_error_behavior_flag):
3911         * glyphs.c (Fmake_image_instance):
3912         * indent.c (Findent_to):
3913         * intl.c (Fignore_defer_gettext):
3914         * keymap.c (Fkeymapp):
3915         * keymap.c (Flookup_key):
3916         * lread.c:
3917         * lread.c (Fload_internal):
3918         * lread.c (Feval_buffer):
3919         * lread.c (Feval_region):
3920         * macros.c (Fexecute_kbd_macro):
3921         * marker.c (set_marker_internal):
3922         * marker.c (Fset_marker):
3923         * marker.c (set_marker_restricted):
3924         * marker.c (Fcopy_marker):
3925         * marker.c (noseeum_copy_marker):
3926         * menubar.c:
3927         * menubar.c (Fpopup_menu):
3928         * minibuf.c:
3929         * mule-charset.c (Fcharset_name):
3930         * mule-charset.c (Fchar_charset):
3931         * mule-charset.c (Fchar_octet):
3932         * mule-charset.c (Fsplit_char):
3933         * mule-wnnfns.c (Fwnn_open):
3934         * mule-wnnfns.c (Fwnn_dict_comment):
3935         * mule-wnnfns.c (Fwnn_quit_henkan):
3936         * mule-wnnfns.c (Fwnn_word_toroku):
3937         * mule-wnnfns.c (Fwnn_word_sakujo):
3938         * mule-wnnfns.c (Fwnn_word_use):
3939         * mule-wnnfns.c (Fwnn_hindo_set):
3940         * objects.c:
3941         * objects.c (Fmake_color_instance):
3942         * objects.c (Fmake_font_instance):
3943         * print.c (Fwrite_char):
3944         * process.c:
3945         * process.c (mark_process):
3946         * process.c (print_process):
3947         * process.c (get_process_from_usid):
3948         * process.c (Fprocessp):
3949         * process.c (Fprocess_live_p):
3950         * process.c (Fget_process):
3951         * process.c (Fget_buffer_process):
3952         * process.c (get_process):
3953         * process.c (Fprocess_id):
3954         * process.c (Fprocess_name):
3955         * process.c (Fprocess_command):
3956         * process.c (init_process_io_handles):
3957         * process.c (start_process_unwind):
3958         * process.c (Fstart_process_internal):
3959         * process.c (Fopen_multicast_group_internal):
3960         * process.c (Fset_process_window_size):
3961         * process.c (read_process_output):
3962         * process.c (send_process):
3963         * process.c (Fprocess_tty_name):
3964         * process.c (Fset_process_buffer):
3965         * process.c (Fprocess_buffer):
3966         * process.c (Fprocess_mark):
3967         * process.c (set_process_filter):
3968         * process.c (Fset_process_filter):
3969         * process.c (Fprocess_filter):
3970         * process.c (Fprocess_send_region):
3971         * process.c (Fprocess_send_string):
3972         * process.c (exec_sentinel):
3973         * process.c (Fset_process_sentinel):
3974         * process.c (Fprocess_sentinel):
3975         * process.c (status_notify):
3976         * process.c (Fprocess_status):
3977         * process.c (Fprocess_exit_status):
3978         * process.c (process_send_signal):
3979         * process.c (Fprocess_send_eof):
3980         * process.c (deactivate_process):
3981         * process.c (remove_process):
3982         * process.c (Fdelete_process):
3983         * process.c (kill_buffer_processes):
3984         * process.c (Fprocess_kill_without_query):
3985         * process.c (Fprocess_kill_without_query_p):
3986         * rangetab.c:
3987         * rangetab.c (Fget_range_table):
3988         * rangetab.c (Fput_range_table):
3989         * rangetab.c (Fremove_range_table):
3990         * rangetab.c (Fclear_range_table):
3991         * search.c:
3992         * search.c (Fskip_chars_forward):
3993         * search.c (Fskip_chars_backward):
3994         * search.c (Fskip_syntax_forward):
3995         * search.c (Fskip_syntax_backward):
3996         * search.c (search_command):
3997         * search.c (Freplace_match):
3998         * search.c (Fregexp_quote):
3999         * select.c (Fown_selection_internal):
4000         * select.c (Fselection_owner_p):
4001         * select.c (Fselection_exists_p):
4002         * select.c (Fget_selection_internal):
4003         * specifier.c:
4004         * symbols.c:
4005         * symbols.c (Fintern):
4006         * symbols.c (Fintern_soft):
4007         * symbols.c (Funintern):
4008         * symbols.c (Fapropos_internal):
4009         * symbols.c (Fset_default):
4010         * syntax.c:
4011         * syntax.c (Fsyntax_table_p):
4012         * syntax.c (Fcopy_syntax_table):
4013         * syntax.c (Fset_syntax_table):
4014         * syntax.c (Fchar_syntax):
4015         * syntax.c (syntax_match):
4016         * syntax.c (Fmatching_paren):
4017         * syntax.c (Fforward_word):
4018         * syntax.c (scan_lists):
4019         * syntax.c (Fscan_lists):
4020         * syntax.c (Fscan_sexps):
4021         * syntax.c (Fparse_partial_sexp):
4022         * toolbar.c (Fcheck_toolbar_button_syntax):
4023         * tooltalk.doc:
4024         * window.c:
4025         * window.c (Fwindowp):
4026         * window.c (Fwindow_live_p):
4027         * window.c (Fwindow_point):
4028         * window.c (Fdelete_window):
4029         * window.c (Fnext_window):
4030         * window.c (Fprevious_window):
4031         * window.c (Fother_window):
4032         * window.c (window_loop):
4033         * window.c (Fget_lru_window):
4034         * window.c (Fsplit_window):
4035         * window.c (Fenlarge_window):
4036         * window.c (Fenlarge_window_pixels):
4037         * window.c (Fshrink_window):
4038         * window.c (Fshrink_window_pixels):
4039         * window.c (change_window_height):
4040         * window.c (Fwindow_configuration_p):
4041         * window.c (Fcurrent_window_configuration):
4042         * window.h:
4043         * casefiddle.c (casify_object):
4044         * casefiddle.c (Fupcase):
4045         * casefiddle.c (Fdowncase):
4046         * casefiddle.c (Fcapitalize):
4047         * casefiddle.c (Fupcase_initials):
4048         * casefiddle.c (casify_region_internal):
4049         * casefiddle.c (casify_region):
4050         * casefiddle.c (Fupcase_region):
4051         * casefiddle.c (Fdowncase_region):
4052         * casefiddle.c (Fcapitalize_region):
4053         * casefiddle.c (Fupcase_initials_region):
4054         * casefiddle.c (Fupcase_word):
4055         * casefiddle.c (Fdowncase_word):
4056         * casefiddle.c (Fcapitalize_word):
4057         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4058         Replace 0 with '\0' when working with bytes.
4059         Replace initial "(" with "\(" in docstrings.
4060
4061 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4062
4063         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4064
4065         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4066
4067 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4068
4069         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4070
4071 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4072
4073         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4074         correctly.
4075
4076 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4077
4078         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4079         (inhibit_auto_save_session): New variable.
4080         (vars_of_fileio): Declare and initialize them.
4081         * fileio.c (Fdo_auto_save): Don't create session file if
4082         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4083
4084 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4085
4086         * sgiplay.c (play_internal): C++ compilability.
4087         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4088         * callproc.c (Fold_call_process_internal):
4089         Remove unused vars `env', `first'.
4090         * scrollbar.c (update_scrollbar_instance):
4091         #### unused var `current_window'.
4092         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4093         etc. within #ifdef NOT_YET.
4094         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4095         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4096         * specifier.c (specifier_instance):
4097         #### unused var `tag'.
4098         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4099
4100 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4101
4102         * fns.c (Fbutlast):
4103         * fns.c (list_sort):
4104         * fns.c (Ffillarray):
4105         * fns.c (bytecode_nconc2):
4106         * fns.c (Fnconc):
4107         * fns.c (mapcar1):
4108         * fns.c (Fmapconcat):
4109         Be pedantically 64-bit correct.  For the time when someone will
4110         want to have a list with length > 2**32.
4111
4112         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4113         Work around MIPSpro compiler bug.
4114
4115         * process-unix.c (unix_kill_child_process): Add snarky comment.
4116         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4117
4118         * config.h.in: Oops, _getpt ==> _getpty
4119
4120 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4121
4122         * config.h.in:
4123         * regex.c:
4124         Use void*, not char*, as return type of alloca().
4125
4126         * alloc.c (free_marker): Side effect inside assert expression!
4127
4128 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4129
4130         * mule-charset.c (Fset_charset_ccl_program): To check
4131         if the given ccl program is valid, use setup_ccl_program()
4132         instead of CHECK_VECTOR().
4133         (Fmake_charset): Likewise.
4134
4135 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4136
4137         * faces.c (get_extent_fragment_face_cache_index):
4138         Fix cachel.merged_faces memory leak.
4139
4140 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4141
4142         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4143         Reset MSB of octets obtained by DECODE_SJIS
4144         because of the incompatibility with Emacs.
4145         (ccl_driver)<CCL_ENCODE_SJIS>:
4146         Set MSB of octets before passing them to
4147         ENCODE_SJIS because of the incompatibility
4148         with Emacs.
4149
4150 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4151
4152         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4153         (DECLARE_LRECORD): Undo the last change.
4154         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4155
4156 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4157
4158         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4159         the implementation to lrecord_implementations_table.
4160
4161 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4162
4163         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4164         initial value of `lrecord_type_##c_name' and
4165         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4166         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4167         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4168         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4169         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4170
4171 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4172
4173         * miscplay.c (sndcnv8S_2mono):
4174         (sndcnv2monounsigned):
4175         (sndcnvULaw_2linear):
4176         (sndcnv16swap):
4177         Remove implementation-defined behavior.
4178
4179 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4180
4181         * input-method-xlib.c: Warning suppression.
4182
4183 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4184
4185         * mule-ccl.c: Sync up with Emacs 21.0.90.
4186         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4187         Do nothing.
4188         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4189         Likewise.
4190         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4191         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4192         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4193         leading char belongs to official 2-dimensional charset.
4194         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4195         write the given character as is.  Otherwise,
4196         if it is a multibyte char, convert it by
4197         non_ascii_set_charptr_emchar, then write it.
4198         (CCL_WRITE_STRING): Likewise.
4199         (ccl_get_compiled_code): New function.
4200         (setup_ccl_program): When ccl_prog is invalid,
4201         return -1.
4202         (Fregister_code_conversion_map): New function.
4203         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4204
4205         * mule-ccl.h: Sync up with Emacs 21.0.90.
4206         (Fregister_ccl_program): export it.
4207
4208         * redisplay-msw.c (separate_textual_runs):
4209         If ccl program is not valid, don't do ccl conversion.
4210
4211         * redisplay-x.c (separate_textual_runs): Ditto.
4212
4213         * file-coding.c (Fmake_coding_system):
4214         When type is ccl and value is vector, register it
4215         with a proper symbol.  And checks whether the
4216         given ccl program is valid.
4217         (mule_decode): When calling ccl_driver, if src indicates
4218         NULL pointer, set an empty string instead.
4219         (mule_encode): Likewise.
4220
4221 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4222
4223         The following large batch of changes gets us back to a state of
4224         C++ compilability.  Extbyte is now a char, which means that
4225         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4226
4227         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4228
4229         * sound.c (Fplay_sound): Type correctness.
4230
4231         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4232         (x_get_window_property): Type correctness.
4233         (receive_incremental_selection): unsigned char ==> Extbyte
4234         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4235         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4236         (Fx_store_cutbuffer_internal): Type correctness.
4237
4238         * process-unix.c (try_to_initialize_subtty): Type correctness.
4239
4240         * objects-x.c (x_print_color_instance): Type correctness.
4241         (x_print_font_instance): Type correctness.
4242         (x_list_fonts): SExtbyte ==> Extbyte.
4243         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4244         (x_find_charset_font): SExtbyte ==> Extbyte.
4245         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4246         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4247         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4248         Use bufbyte_strcmp.
4249
4250         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4251         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4252         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4253         (BYTE_C0_P): Use bit ops for char-signedness safety.
4254         (BYTE_C1_P): Use bit ops for char-signedness safety.
4255         (CHARSET_BY_LEADING_BYTE):
4256         (CHARSET_BY_ATTRIBUTES):
4257         Always use inline function.
4258         Use type_checking_assert.
4259         Hide chlook.
4260
4261         * mule-charset.c (non_ascii_charptr_copy_char):
4262         Modify to work with both ASCII and non-ASCII characters.
4263         Improve docs and variable names.
4264         Replace over-clever fall-through switch with a simple loop.
4265         (Lstream_get_emchar_1):
4266         Replace over-clever fall-through switch with a simple loop.
4267
4268         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4269         Warning suppression.
4270
4271         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4272         the return value of Lstream_getc, which could be EOF as well.
4273
4274         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4275
4276         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4277         APIs can be used on Extbytes without casts.  Risky!
4278         (SExtbyte): Remove.
4279         (UExtbyte): Remove.
4280
4281         * input-method-xlib.c (XIM_init_device):
4282         Use Xlib.h instead of IntrinsicP.h.
4283         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4284         which will break in X11R7.
4285         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4286         to call XRegisterIMInstantiateCallback with correct types.
4287
4288         * gui-x.c (button_item_to_widget_value): Type correctness.
4289
4290         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4291
4292         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4293         (xbm_instantiate_1): Type correctness.
4294         (BUILD_GLYPH_INST):  Type correctness.
4295
4296         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4297
4298         * file-coding.c:
4299         (decode_coding_sjis):
4300         (decode_coding_big5):
4301         (decode_coding_ucs4):
4302         (decode_coding_utf8):
4303         (decode_coding_iso2022):
4304         (decode_coding_no_conversion):
4305         Make all decoding functions take an Extbyte * arg.
4306         (encode_coding_sjis):
4307         (encode_coding_big5):
4308         (encode_coding_ucs4):
4309         (encode_coding_utf8):
4310         (encode_coding_iso2022):
4311         (encode_coding_no_conversion):
4312         Make all encoding functions take a Bufbyte * arg.
4313         Use size_t instead of unsigned int for memory sizes.
4314         Only cast to unsigned char whenever dereferencing Extbyte *.
4315
4316         * doc.c (unparesseuxify_doc_string): Type correctness.
4317
4318         * console-x.c (split_up_display_spec):
4319         Rewrite without using details of internal string representation.
4320         (x_semi_canonicalize_device_connection): Type correctness.
4321
4322         * config.h.in:
4323         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4324         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4325         (HAVE_XFREE386): Removed.
4326
4327         * buffer.h (DEC_CHARPTR): `const' correctness.
4328         (bufbyte_strcmp): New.
4329         (bufbyte_memcmp): New.
4330
4331         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4332
4333         * buffer.h (XCHAR_OR_CHAR_INT):
4334         Always use inline function.
4335         Remove redundant type checking assert() - XINT will abort quite nicely.
4336
4337 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4338
4339         * search.c (Freplace_match): Set newtext to an empty string.
4340
4341 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4342
4343         * s/decosf1-3.h: Remove #include of stropts.h
4344         * s/ptx.h: Remove #include of stropts.h
4345         * s/usg5-4.h: Remove #include of stropts.h
4346         * sysproc.h:
4347         * config.h.in:
4348         Use stropts.h, not sys/stropts.h.
4349         Use strtio.h, not sys/strtio.h.
4350
4351 2000-10-04  Martin Buchholz <martin@xemacs.org>
4352
4353         * XEmacs 21.2.36 is released.
4354
4355 2000-09-21  Andy Piper  <andy@xemacs.org>
4356
4357         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4358         changes still involve copying the widget tree.
4359         (update_widget_face): make sure a change is register in the widget
4360         tree. Call update_tab_widget_face appropriately.
4361         (update_tab_widget_face): ditto.
4362         (x_tab_control_redisplay): make sure non-structural changes still
4363         involve copying the widget tree.
4364
4365 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4366
4367         * lread.c (locate_file): Check the path element is non-nil.
4368
4369 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4370
4371         * lisp.h: Warning suppression for SCO compilers.
4372
4373         * redisplay-tty.c (reset_tty_modes): Fix crash.
4374         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4375
4376 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4377
4378         Big signal/process handling overhaul.  Bugs fixed:
4379         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4380         M-x comint-kill-subjob should work for both values nil and t of
4381         process-connection-type. It was broken on most platforms.
4382         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4383         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4384         * process-unix.c: Signal/Process handling overhaul.
4385         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4386         (allocate_pty): Use all available modern methods of allocating
4387         ptys, falling back to old style BSD allocation as a last resort.
4388         Use allegedly more secure Unix98 pty allocation by default.
4389         (allocate_pty_the_old_fashioned_way): New. the last resort.
4390         (unix_create_process): Push ptem, ldterm, ttcompat where
4391         available.  Autoconfiscate.
4392         (try_to_initialize_subtty): New.
4393         (unix_kill_child_process): Proper signal handling for ptys on most
4394         platforms, using special knowledge of AIX, BSD, etc...
4395         (unix_create_process): Always disconnect_controlling_terminal() for
4396         subprocesses, whether using ptys or not.
4397         * process.h: Remove old getpt-dependent PTY code.
4398         * process.c (Fprocess_send_signal): New, obvious generic function.
4399         (decode_signal): New.
4400         (Finterrupt_process):
4401         (Fkill_process):
4402         (Fquit_process):
4403         (Fstop_process):
4404         (Fcontinue_process):
4405         (Fsignal_process): Use decode_signal.
4406         (process_send_signal):
4407         Many docstring corrections.
4408         Allow any signal to be sent to a process object.
4409         * config.h.in: Add symbols for big signal/process overhaul.
4410         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4411         * sysproc.h: Include process-related headers, where available:
4412         sys/stropts.h sys/strtio.h pty.h libutil.h
4413         * s/irix4-0.h:
4414         * s/irix5-0.h:
4415         * s/cygwin32.h:
4416         * s/gnu.h:
4417         * s/linux.h:
4418         * s/hpux.h:
4419         * s/aix3-1.h:
4420         Remove old S&M pty stuff.
4421         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4422         * systty.h: Simplify cpp hackery, improve comments.
4423         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4424
4425         * editfns.c (Fformat_time_string):
4426         Be a little more paranoid with the return value of ctime.
4427
4428         * fileio.c (check_executable):
4429         (check_writable):
4430         Use symbolic constants X_OK, W_OK.
4431
4432         * console-x.c (split_up_display_spec): Fix a warning.
4433
4434 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4435
4436         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4437         * ntproc.c (sys_spawnve): make_string ==> build_string
4438         Small clarity improvements.
4439
4440 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4441
4442         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4443
4444         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4445
4446         * config.h.in (HAVE_STRCASECMP): Remove.
4447
4448 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4449
4450         * redisplay-output.c (redisplay_output_pixmap):
4451         Cleaner and possibly more 64-bit correct code.
4452
4453 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4454
4455         * dumper.c (pdump_load_finish): move restoration of
4456         `noninteractive1' to emacs.c (main_1).
4457         * emacs.c (main_1): protect LISP-visible command-line flags
4458         from pdump_load().
4459
4460 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4461
4462         * Makefile.in.in (versionclean):  Use EXE_TARGET and
4463         DUMP_TARGET instead of literal program names.
4464
4465 2000-09-20  Martin Buchholz  <martin@xemacs.org>
4466
4467         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4468
4469 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4470
4471         * *: Spelling mega-patch
4472
4473 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4474
4475         * fns.c (bad_bad_turtle):
4476         Delete "Eek!" comment, since we fixed the bug to which it refers.
4477
4478 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4479
4480         * alloca.c: Replace REGISTER with register.
4481
4482 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
4483
4484         * file-coding.c (ucs_to_char): Use countof.
4485
4486 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4487
4488         * file-coding.c: (ucs_to_char):
4489         (complex_vars_of_file_coding):
4490         Use countof instead of sizeof.
4491         Use CHECK_NATNUM instead of CHECK_INT.
4492
4493         * sysdep.c (strcasecmp): Remove.
4494         * device-x.c (ascii_strcasecmp): New.
4495         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4496         Avoid using non-standard non-portable strcasecmp.
4497
4498 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4499
4500         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4501         * font-lock.c: remove reference to emacsfns.h.
4502         * search.c: small doc improvement.
4503         * event-Xt.c: correct file names in comments.
4504         * console-x.h Correct file names in comments.
4505         * frame.c: Correct file names in comments.
4506         * event-stream.c: remove Energize from comments.
4507
4508 2000-09-15  Martin Buchholz  <martin@xemacs.org>
4509
4510         * symeval.h (DEFERROR_STANDARD):
4511         (DEFERROR):
4512         (DEFSYMBOL):
4513         (DEFSYMBOL_NO_DUMP):
4514         (DEFSYMBOL_MULTIWORD_PREDICATE):
4515         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4516         (DEFKEYWORD):
4517         The construct &##name is not sensible C.
4518         Fixes compilation errors with Unixware native compiler.
4519
4520 2000-09-14  Martin Buchholz  <martin@xemacs.org>
4521
4522         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
4523         (next_frame_internal): Removed.  We now just have next_frame.
4524         (next_frame):
4525         Write a simpler and cleaner one-pass algorithm.
4526         Remove called_from_delete_device arg and #ifdefed-out code.
4527         (previous_frame):
4528         Renamed from prev_frame.  Update callers.
4529         Cleaned up to have an analogous implementation to next_frame.
4530         (other_visible_frames_internal): Remove the
4531         called_from_delete_device bogus arg, and hence, remove this
4532         function.  Just use other_visible_frames().
4533
4534         * window.c (Fnext_window):
4535         Prettify docstring.
4536         Since next_frame() is guaranteed to return a frame, remove check
4537         for nil inserted in previous patch.
4538         (Fprevious_window):
4539         Prettify docstring.
4540         Make code look more like Fnext_window.
4541         (window_loop):
4542         Respect the `console' arg when iterating through windows.
4543         Fixes bug: (get-buffer-window buffer t device) not respecting
4544         the `device' arg.
4545         This function needs more work, as others have pointed out.
4546
4547         * frame.h: Rename prev_frame to previous_frame.
4548         device_matches_console_spec no longer takes a `frame' arg.
4549
4550         * s/gnu.h:
4551         * s/linux.h:
4552         * s/hpux.h:
4553         Use EMACS_BLOCK_SIGNAL instead of sigblock.
4554         From "Golubev I. N." <gin@mo.msk.ru>.
4555
4556         * make-src-depend: Fix typo.
4557
4558 2000-09-13  Martin Buchholz  <martin@xemacs.org>
4559
4560         * window.c (Fnext_window):
4561         next_frame() might return nil, not a frame.
4562         Fixes this crash:
4563         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4564
4565         * frame.c (next_frame_internal):
4566         We've passed a frame if we've passed its device.
4567         Fixes this crash:
4568         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4569 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
4570
4571 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4572
4573         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
4574         Allow option to suppress accelerators in menu/dialog items.
4575         (populate_or_checksum_helper): Pass dialog title through above.
4576
4577 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4578
4579         * event-msw.c (mswindows_key_to_emacs_keysym):
4580         Add "pause" key, fix "menu" key.
4581
4582 2000-09-09  Martin Buchholz  <martin@xemacs.org>
4583
4584         * eval.c (reinit_vars_of_eval):
4585         Increase max_lisp_eval_depth to 1000,
4586         required for thai-xtis.el to byte-compile under some circumstances.
4587
4588 2000-09-04  Martin Buchholz  <martin@xemacs.org>
4589
4590         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
4591         From Kenichi Handa.
4592
4593 2000-09-01  Martin Buchholz  <martin@xemacs.org>
4594
4595         * make-src-depend: Make the generated Makefiles smaller.
4596
4597         * s/hpux.h (SETUP_SLAVE_PTY):
4598         Provide a %d in the format string for the errno argument.
4599
4600         * editfns.c (Ftemp_directory):
4601         Warning fix.
4602         Avoid buffer overrun on very long file name.
4603
4604         * input-method-xlib.c (XIM_init_device):
4605         6th parameter of XRegisterIMInstantiateCallback has different
4606         pointer types on different OSes, so simply cast to (void *).
4607
4608         * unexhp9k800.c: Warning fixes.  Fiddly changes.
4609
4610         * sysdll.c (dll_open):
4611         shl_load will hang hard if passed a NULL filename.
4612         Simply return NULL for compatibility with dlopen.
4613         * sysdll.c: Conform to XEmacs coding standards.
4614
4615         * sysdep.c (get_pty_max_bytes):
4616         Support pty input lines longer than 512 bytes on HP-UX 10.20.
4617
4618 2000-08-31  Martin Buchholz  <martin@xemacs.org>
4619
4620         * tooltalk.c: Add #include <syssignal.h>
4621
4622 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
4623
4624         * s/hpux.h: Don't use undefined function sigunblock().
4625
4626 2000-08-31  Martin Buchholz  <martin@xemacs.org>
4627
4628         * config.h.in: Add HAVE_BALLOON_HELP.
4629         * emacs.c: Use HAVE_BALLOON_HELP.
4630         * Makefile.in.in (x_objs):
4631         Make Balloon Help conditional on finding shape.h.
4632
4633 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
4634
4635         * syntax.c (regex_emacs_buffer_p): New variable.
4636         * syntax.h (regex_emacs_buffer_p): extern.
4637         * search.c (looking_at_1):
4638         (string_match_1):
4639         (fast_string_match):
4640         (search_buffer): Set regex_emacs_buffer_p.
4641         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
4642         when before_dot, at_dot, after_dot.
4643
4644 2000-08-23  Andy Piper  <andy@xemacs.org>
4645
4646         * gui-x.c (popup_selection_callback): Only set action_occurred
4647         when we really have an image instance.
4648         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
4649
4650 2000-08-23  Andy Piper  <andy@xemacs.org>
4651
4652         * gui-msw.c (mswindows_handle_gui_wm_command): set
4653         action_occurred.
4654         * gui-x.c (popup_selection_callback): ditto.
4655
4656         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
4657         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
4658         (struct Lisp_Image_Instance): add action_occurred flag.
4659
4660         * glyphs.c (redisplay_subwindow): use action_occurred flag.
4661         (image_instance_changed): ditto.
4662         (reset_frame_subwindow_instance_cache): only unmap windows - do
4663         not remove them from the cache also.
4664
4665         * glyphs-widget.c (tab_control_update): better debug.
4666         (progress_gauge_update): ditto.
4667         (layout_update): ditto.
4668         (layout_instantiate): ditto.
4669         (tab_control_order_only_changed): cope with null pending items.
4670
4671         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
4672         debug. Force selection of an item when an action occurred. Cope
4673         with null pending_items.
4674         (mswindows_progress_gauge_redisplay): better debug.
4675         * glyphs-x.c (x_tab_control_redisplay): ditto.
4676
4677         * redisplay.c (redisplay_frame): reset the frame cache if the
4678         frame is garbaged.
4679
4680         * window.c (Fset_window_configuration): potentially re-enable
4681         frame cache reset.
4682         (window_unmap_subwindows): need to finalize instances here since
4683         it is only used in mark_window_as_deleted.
4684
4685 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
4686
4687         * nas.c (SndOpenDataForReading):
4688         nas.c (WaveOpenDataForReading):
4689         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
4690         Somehow escaped from the 2000-08-14 patch.
4691
4692 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4693
4694         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
4695         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
4696
4697 2000-08-21  Andy Piper  <andy@xemacs.org>
4698
4699         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
4700         window if it is not already displayed.
4701
4702         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
4703         it is not already displayed.
4704
4705         * window.c (Fset_window_configuration): don't reset the frame
4706         cache.
4707
4708         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
4709         instances from the frame cache if we are actually finalizing them.
4710         (reset_frame_subwindow_instance_cache): reset frame cache only
4711         after unmapping everything.
4712         (map_subwindow): set displayed flag after mapping.
4713
4714 2000-08-21  Martin Buchholz  <martin@xemacs.org>
4715
4716         * data.c (indirect_function):
4717         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
4718
4719         * eval.c (function_argcount):
4720         Use original function when signaling errors.
4721
4722 2000-08-18  Andy Piper  <andy@xemacs.org>
4723
4724         * frame.c (delete_frame_internal): use new
4725         free_frame_subwindow_instances name.
4726
4727         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
4728         (add_tab_item): make return type correct.
4729         (mswindows_tab_control_instantiate): assert index of tab.
4730         (mswindows_tab_control_redisplay): Re-code to use
4731         gui_item_equal_sans_selected and gui_item_list_find_selected.
4732
4733         * glyphs-widget.c (tab_control_update): Correct comment.
4734
4735         * window.c (window_unmap_subwindows): use new
4736         unmap_subwindow_instance_cache_mapper.
4737         (window_unmap_subwindows_cache_mapper): deleted.
4738         (Fset_window_configuration): comparisons should now be with
4739         EQ. Preserve the subwindow instance cache across configuration
4740         changes.
4741         (allocate_window): ditto.
4742         (make_dummy_parent): ditto.
4743
4744         * glyphs.c (free_frame_subwindow_instances): rename from
4745         free_frame_subwindow_instance_cache. finalize all instances rather
4746         than just those in the display cache.
4747         (finalize_all_subwindow_instances): walk windows unmapping and
4748         finalizing subwindows.
4749         (unmap_subwindow_instance_cache_mapper): moved from
4750         window.c. Allow finalization as well as unmapping.
4751
4752         * gui.c (gui_item_list_find_selected): new function.
4753
4754         * gui.h (gui_item_list_find_selected): declare.
4755
4756         * glyphs-x.c (x_tab_control_redisplay): pick tab
4757         explicitly. Re-code to use gui_item_equal_sans_selected and
4758         gui_item_list_find_selected.
4759
4760         * glyphs-x.h: add lwlib-utils.h
4761
4762         * buffer.c (Frecord_buffer): undo previous change.
4763
4764 2000-08-09  Vin Shelton  <acs@xemacs.org>
4765
4766         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
4767         possible.  Create temporary files more securely.  The patch was
4768         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
4769         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
4770         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
4771         for details.
4772
4773 2000-08-07  Ben Wing  <ben@xemacs.org>
4774
4775         * getloadavg.c: remove duplicate (and windows-breaking)
4776         includes of fcntl.h and sys/file.h.
4777
4778         * nt.c: remove duplicate getloadavg() definition.
4779
4780         * sysdll.h (Qdll_filename_encoding): add missing stand-in
4781         encodings.
4782
4783 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4784
4785         * eval.c (function_argcount): If function needs to be autoloaded
4786         actually use the loaded definition.
4787         GCPRO function.
4788
4789 2000-08-05  Ben Wing  <ben@xemacs.org>
4790
4791         * getloadavg.c: add prototype for getloadavg().  remove
4792         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
4793         of the code).  remove duplicate header includes.
4794
4795         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
4796
4797         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
4798         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
4799         useful load average.
4800
4801         * alloc.c (reinit_alloc_once_early): removed references to
4802         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
4803         the lisp vars are the only things referencing the malloc_sbrk_*
4804         vars, and they were already if 0'd out.  these vars only exist
4805         in the older malloc.c, which is basically unused, and they're
4806         only for informational purposes.
4807
4808         * m\*.h: removed useless VIRT_ADDR_VARIES.
4809
4810         * m\powerpc.h: removed stray NO_ARG_ARRAY.
4811
4812 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
4813
4814         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
4815         color if the image is a mono pixmap.
4816
4817 2000-07-30  Ben Wing  <ben@xemacs.org>
4818
4819         * Makefile.in.in (release):
4820         Remove stray @.
4821
4822         * buffer.c (directory_is_current_directory):
4823         * dired-msw.c (mswindows_get_files):
4824         * dired.c:
4825         * dired.c (Fdirectory_files):
4826         * dired.c (file_name_completion_stat):
4827         * dired.c (Ffile_attributes):
4828         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
4829         preprocessor tricks, to avoid problems on some machines
4830         (e.g. SCO).
4831
4832         * callproc.c (egetenv): GC docs.
4833
4834         * console-msw.h:
4835         * console-msw.h (struct mswindows_dialog_id):
4836         * lrecord.h (lrecord_type):
4837         New object for use with MSW dialogs.
4838
4839         * console.h (struct console_methods):
4840         New enable/disable frame methods, for proper modal dialogs.
4841
4842         * device-msw.c (msprinter_default_printer): Fix to follow
4843         proper Mule conventions.
4844
4845         * device-msw.c:
4846         * device-msw.c (signal_open_printer_error):
4847         * device-msw.c (msprinter_init_device):
4848         * device-msw.c (ensure_not_printing):
4849         * device-msw.c (plist_get_margin):
4850         * device-msw.c (Fmsprinter_select_settings):
4851         * device-msw.c (finalize_devmode):
4852         * device-msw.c (Fmsprinter_settings_despecialize):
4853         * device-msw.c (signal_enum_priner_error):
4854         * extents.c (decode_extent):
4855         * extents.c (decode_map_extents_flags):
4856         * extents.c (decode_extent_at_flag):
4857         * extents.c (Fextent_at):
4858         * extents.c (Fextents_at):
4859         * extents.c (symbol_to_glyph_layout):
4860         [[[[2]]]] Use structured errors.
4861
4862         * dialog-msw.c:
4863         * dialog-msw.c (mswindows_is_dialog_msg):
4864         * dialog-msw.c (mark_mswindows_dialog_id):
4865         * dialog-msw.c (dialog_proc):
4866         * dialog-msw.c (handle_question_dialog_box):
4867         * dialog-msw.c (syms_of_dialog_mswindows):
4868         Define new object to clean up marking; use it as a dialog identifier.
4869         Call new delete-dialog-box-hook.
4870
4871         * dialog-x.c (dbox_selection_callback):
4872         * dialog-x.c (dbox_descriptor_to_widget_value):
4873         * dialog-x.c (x_make_dialog_box_internal):
4874         Call new delete-dialog-box-hook.
4875         Return an id.
4876
4877         * dialog.c:
4878         * dialog.c (syms_of_dialog):
4879         * dialog.c (vars_of_dialog):
4880         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
4881
4882         * eval.c:
4883         * eval.c (signal_call_debugger):
4884         when noninteractive, output stack traces on the console instead
4885         of in a (never-seen) buffer.
4886
4887         * eval.c (signal_type_error):
4888         * eval.c (invalid_argument_2):
4889         * lisp.h:
4890         new funs for use w/structured errors.
4891
4892         * event-Xt.c:
4893         * event-Xt.c (x_to_emacs_keysym):
4894         * event-Xt.c (describe_event):
4895         * event-Xt.c (emacs_Xt_event_handler):
4896         * event-Xt.c (vars_of_event_Xt):
4897         * event-msw.c:
4898         * event-msw.c (mswindows_wnd_proc):
4899         * event-msw.c (vars_of_event_mswindows):
4900         rename {x,mswindows}-debug-events to debug-{}-events for
4901         consistency with other debug-foo variables.
4902
4903         * event-stream.c:
4904         document next-event more clearly.
4905
4906         * fileio.c (Ffile_name_directory):
4907         * fileio.c (Ffile_name_nondirectory):
4908         * fileio.c (Funhandled_file_name_directory):
4909         * fileio.c (file_name_as_directory):
4910         * fileio.c (Ffile_name_as_directory):
4911         * fileio.c (directory_file_name):
4912         * fileio.c (Fdirectory_file_name):
4913         * fileio.c (Fmake_temp_name):
4914         * fileio.c (Ffile_truename):
4915         * fileio.c (Fsubstitute_in_file_name):
4916         * fileio.c (expand_and_dir_to_file):
4917         * fileio.c (barf_or_query_if_file_exists):
4918         * fileio.c (check_executable):
4919         * fileio.c (Ffile_exists_p):
4920         * fileio.c (Ffile_writable_p):
4921         * fileio.c (Ffile_directory_p):
4922         * fileio.c (Ffile_regular_p):
4923         * fileio.c (Ffile_modes):
4924         * fileio.c (Ffile_newer_than_file_p):
4925         * fileio.c (Fverify_visited_file_modtime):
4926         * fileio.c (Fset_visited_file_modtime):
4927         * fileio.c (auto_save_1):
4928         (1). (2).
4929         fix up gcpro's.
4930
4931         * frame-msw.c:
4932         * frame-msw.c (mswindows_init_frame_1):
4933         * frame-msw.c (mswindows_enable_frame):
4934         * frame-msw.c (error_frame_unsizable):
4935         * frame-msw.c (msprinter_init_frame_1):
4936         * frame-msw.c (msprinter_init_frame_3):
4937         * frame-msw.c (console_type_create_frame_mswindows):
4938         (2).
4939         implement new enable/disable frame methods.
4940
4941         * frame-x.c:
4942         * frame-x.c (x_enable_frame):
4943         * frame-x.c (console_type_create_frame_x):
4944         implement new enable/disable frame methods.
4945
4946         * frame.c:
4947         * frame.c (Fdisable_frame):
4948         * frame.c (syms_of_frame):
4949         * frame.h (struct frame):
4950         implement new enable/disable frame methods/functions.
4951
4952         * general-slots.h:
4953         add initial-focus.
4954
4955         * glyphs-msw.c (mswindows_widget_instantiate):
4956         comment that initial-focus should be implemented.
4957
4958         * glyphs-widget.c:
4959         * glyphs-widget.c (check_valid_instantiator):
4960         * glyphs-widget.c (check_valid_orientation):
4961         * glyphs-widget.c (check_valid_tab_orientation):
4962         * glyphs-widget.c (check_valid_justification):
4963         * glyphs-widget.c (check_valid_border):
4964         * glyphs-widget.c (check_valid_callback):
4965         * glyphs-widget.c (check_valid_int_or_function):
4966         * glyphs-widget.c (check_valid_string_or_vector):
4967         * glyphs-widget.c (check_valid_item_list_1):
4968         * glyphs-widget.c (widget_validate):
4969         * glyphs-widget.c (combo_box_validate):
4970         * glyphs-widget.c (widget_instantiate):
4971         * glyphs-widget.c (syms_of_glyphs_widget):
4972         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
4973         * glyphs-widget.c (image_instantiator_combo_box):
4974         * glyphs-widget.c (image_instantiator_scrollbar):
4975         * glyphs-widget.c (image_instantiator_tab_control):
4976         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
4977         (2).
4978         support (unimplemented) keyword initial-focus.
4979         reindent long macros.
4980
4981         * glyphs-x.c (x_redisplay_widget):
4982         * glyphs-x.c (x_button_instantiate):
4983         * glyphs-x.c (x_button_redisplay):
4984         * glyphs-x.c (x_progress_gauge_instantiate):
4985         * glyphs-x.c (x_edit_field_instantiate):
4986         * glyphs-x.c (x_combo_box_instantiate):
4987         * glyphs-x.c (x_tab_control_instantiate):
4988         * glyphs-x.c (x_label_instantiate):
4989         * gui-x.c:
4990         * gui-x.c (button_item_to_widget_value):
4991         * gui-x.c (gui_items_to_widget_values_1):
4992         * gui-x.c (gui_item_children_to_widget_values):
4993         * gui-x.c (gui_items_to_widget_values):
4994         * gui-x.h:
4995         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4996         add new flag to gui-parsing routines to indicate whether
4997         accelerator specs should be supported.
4998
4999         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5000
5001         * glyphs.h (struct Lisp_Image_Instance):
5002         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5003         add initial-focus flag.
5004
5005         * gui.c:
5006         * gui.c (syms_of_gui):
5007         * gui.c (vars_of_gui):
5008         clean up menu-no-selection-hook.
5009
5010         * gui.h:
5011         support delete-dialog-box-hook.
5012
5013         * lread.c (Fload_internal):
5014         * lread.c (locate_file_in_directory_mapper):
5015         (1).
5016
5017         * lrecord.h:
5018         * lrecord.h (struct toolbar_button):
5019         * lrecord.h (syms_of_toolbar):
5020         document how to create a new object.
5021
5022         * menubar-msw.c (mswindows_char_is_accelerator):
5023         may be called on frames w/o menus.
5024
5025         * menubar.c (vars_of_menubar):
5026         clean up :filter docs.
5027
5028         * nt.c (readdir):
5029         * ntproc.c:
5030         (1).
5031
5032         * process-nt.c:
5033         * process-nt.c (validate_signal_number):
5034         * process-nt.c (signal_cannot_launch):
5035         * process-nt.c (nt_create_process):
5036         * process-nt.c (nt_send_process):
5037         * process-nt.c (nt_kill_child_process):
5038         * process-nt.c (nt_open_network_stream):
5039         * process-nt.c (syms_of_process_nt):
5040         (2).
5041         delete quote-handling.  call new lisp code that does it better.
5042
5043         * process-unix.c (connect_to_file_descriptor):
5044         * process-unix.c (allocate_pty):
5045         * process-unix.c (unix_send_process):
5046         * process-unix.c (unix_kill_child_process):
5047         * process-unix.c (unix_open_network_stream):
5048         * process-unix.c (unix_open_multicast_group):
5049         (1). (2).
5050
5051         * process.c:
5052         * process.c (Fstart_process_internal):
5053         (2).  need to canonicalize process path even if absolute.
5054
5055         * select-msw.c (symbol_to_ms_cf):
5056         * select-msw.c (ms_cf_to_symbol):
5057         * select-msw.c (cf_is_autofreed):
5058         * select-msw.c (mswindows_destroy_selection):
5059         * select.c:
5060         * select.c (syms_of_select):
5061         * select.h:
5062         support dibv5, fix bugs. (from Mike Alexander)
5063
5064         * select.c (Fget_selection_internal):
5065         * select.c (select_convert_out):
5066
5067         * sysdep.c:
5068         * sysdep.c (xemacs_stat):
5069         renamed.
5070
5071         * sysdep.c (mkdir):
5072         * sysdep.c (rmdir):
5073         but keep original stat() here because we provide encapsulation
5074         around these funs.
5075
5076         * sysfile.h:
5077         * sysfile.h (fstat):
5078         remove stat garbage.
5079
5080         * syswindows.h:
5081         fix X/MSW conflict.
5082         don't include tchar.h.  it's inappropriate because it makes
5083         compile-time distinctions when we want runtime distinctions.
5084         (we provide our own tchar replacements)
5085
5086         * toolbar.c:
5087         use default object printer for toolbar-button.
5088
5089         * unexcw.c:
5090         make sure we don't encapsulate.
5091
5092         * window.c (vars_of_window):
5093         emphasize that temp-buffer-show-hook is obsolete.
5094
5095 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5096
5097         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5098         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5099
5100         * events.c (Fevent_timestamp_lessp):
5101         Not 64-bit clean.  Use EMACS_INT, not int.
5102
5103 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5104
5105         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5106         unsigned int and changed the last enum to
5107         lrecord_type_last_built_in_type.
5108         (lrecord_implementations_table): changed prototype to know how
5109         long the array is supposed to be.
5110         (lrecord_type_count): new unsigned int to keep track of the
5111         current number of lisp lrecord types.
5112         (DEFINE_EXTERNAL_LRECORD):
5113         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5114         dynamic-modules to declare new lisp types. They are the same
5115         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5116         int for each new type, and increment lrecord_type_count by 1.
5117
5118         * alloc.c (lrecord_implementations_table): Changed to reference
5119         lrecord_type_last_built_in_type for the size of the array.
5120         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5121
5122 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5123
5124         * glyphs.h (check_valid_item_list): Renamed from
5125         check_valid_item_list_1.
5126
5127 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5128
5129         * select.c (Qselect_coerce): New.
5130         * select.c (Vselection_coercion_alist): New.
5131         * select.c (syms_of_select): Declare.
5132         * select.c (get-selection-internal): Use it.
5133         Use the new select-coerce functionality.
5134
5135         * select.c (select_coerce): New.
5136         * select.h (select_coerce): Declare.
5137         New function to coerce one type of data into another.
5138
5139 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5140
5141         * callproc.c (Fcall_process_internal):
5142         (Fcall_process_internal):
5143         * process-unix.c (unix_create_process):
5144         Save and restore the value of errno, so that error messages are accurate.
5145
5146 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5147
5148         * elhash.c (print_hash_table):
5149         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5150         Prettify docstrings and indentation.
5151
5152 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5153
5154         * window.c (Fwindow_pixel_edges): Subtract frame border and
5155         gutter size.
5156
5157 2000-07-31  Andy Piper  <andy@xemacs.org>
5158
5159         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5160         will acknowledge the change.
5161
5162         * glyphs.h: declare tab_control_order_only_changed.
5163
5164         * glyphs-x.c (x_tab_control_redisplay): use
5165         tab_control_order_only_changed.
5166
5167         * glyphs-widget.c (tab_control_order_only_changed): new function.
5168
5169         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5170         tab_control_order_only_changed.
5171
5172         * gui.c (gui_item_equal_sans_selected): new function.
5173         (gui_item_equal): use it.
5174
5175         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5176         :properties in favor of :items..
5177
5178         * glyphs-widget.c (check_valid_item_list): rename from
5179         check_valid_item_list_1.
5180         (check_valid_item_list_1): renamed.
5181         (combo_box_validate): deprecate :properties in favor of :items.
5182         (widget_instantiate): ditto.
5183         (tab_control_update): ditto.
5184         (image_instantiator_combo_box): ditto.
5185         (image_instantiator_tree_view): ditto.
5186         (image_instantiator_tab_control): ditto.
5187         (layout_post_instantiate): remove dead code.
5188
5189         * print.c (debug_print_no_newline): only write to debugger if in
5190         WIN32_NATIVE.
5191
5192         * elhash.c (Fmake_hash_table): update doc string.
5193
5194         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5195         messages whilst in GC. This at least stops XEmacs crashing but has
5196         the potential for wierd behaviour.
5197
5198 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5199
5200         * config.h.in:
5201         Make existence of s&m files optional.
5202
5203         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5204         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5205         * s/gnu.h: Remove HAVE_GETLOADAVG.
5206         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5207         * s/sol2.h: Remove HAVE_GETLOADAVG.
5208         * lisp.h: Remove getloadavg() declaration.
5209         * fns.c:
5210         Include <sys/loadavg.h> if available.
5211         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5212         * config.h.in:  Group together getloadavg()-related macros.
5213         Use only configure-time tests to detect getloadavg().
5214
5215 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5216
5217         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5218
5219 2000-07-25  Andy Piper  <andy@xemacs.org>
5220
5221         * syswindows.h: add tchar.h for native builds.
5222
5223         * frame.c (syms_of_frame): remove set-glyph-image.
5224
5225         * general-slots.h: add Qset_glyph_image.
5226
5227         * glyphs-widget.c (layout_update): add domain arg to
5228         set-glyph-image.
5229         (syms_of_glyphs_widget): remove set-glyph-image.
5230
5231 2000-07-23  Ben Wing  <ben@xemacs.org>
5232
5233         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5234         Vpopup_frame_list.
5235
5236 2000-07-22  Andy Piper  <andy@xemacs.org>
5237
5238         * symsinit.h: add syms_of_win32().
5239
5240         * gui-msw.c (syms_of_gui_mswindows): remove
5241         Fmswindows_shell_execute.
5242         (Fmswindows_shell_execute): moved to win32.c.
5243
5244         * emacs.c (main_1): add syms_of_win32 ().
5245
5246         * win32.c (init_potentially_nonexistent_functions): rewrite in
5247         compiler-friendly terms.
5248         (Fmswindows_shell_execute): move here from gui-msw.c.
5249         (syms_of_win32): new.
5250
5251         * device-msw.c (Fmswindows_printer_list): clean up args to
5252         EnumPrinters.
5253         Don't include tchar under cygwin or mingw.
5254         (msprinter_default_printer): make cygwin-friendly.
5255
5256 2000-07-21  Andy Piper  <andy@xemacs.org>
5257
5258         * glyphs-widget.c (image_instantiator_tree_view): use tab
5259         control's update function.
5260         (layout_property): new function. Retrieve items.
5261
5262         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5263         function. Re-populate the tree view from the pending items.
5264
5265         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5266         is designated the parent if the domain is an image instance. This
5267         is needed so that dirtiness can be cascade up the hierarchy and
5268         thus for layout children to be redisplayed correctly.
5269         (allocate_image_instance): rename glyph -> parent.
5270
5271         * redisplay.h: change redisplay_output_layout signature.
5272
5273         * redisplay-msw.c (mswindows_output_display_block): use domain
5274         arg.
5275
5276         * redisplay-x.c (x_output_display_block): use domain arg.
5277
5278 2000-07-10  Andy Piper  <andy@xemacs.org>
5279
5280         * window.c (Fset_window_configuration): add comment.
5281
5282         * redisplay-output.c (compare_runes):
5283         (redisplay_output_subwindow): redisplay rather than update subwindow.
5284         (redisplay_output_layout): ditto.
5285
5286         * redisplay-msw.c (mswindows_frame_output_end):
5287         (mswindows_frame_output_end): make defer window pos optional.
5288
5289         * lisp.h: add Flast.
5290
5291         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5292         normalize method. Change update method to be for changed
5293         instantiators. Add redisplay method. Change signature of layout
5294         method.
5295         (struct Lisp_Image_Instance): add instantiator.
5296         (IMAGE_INSTANCE_INSTANTIATOR): new.
5297         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5298         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5299         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5300
5301         * glyphs.c:
5302         (find_instantiator_differences): new function.
5303         (Fset_instantiator_property): new convenience function.
5304         (check_image_instance_structure): strictly check for vector
5305         instantiators.
5306         (normalize_image_instantiator): make non-static.
5307         (instantiate_image_instantiator): pass on dest_mask and use new
5308         signatures for image_instance_layout and friends.
5309         (mark_image_instance): mark the instantiator. Mark the subwindow
5310         face not the widget face.
5311         (image_instance_equal): add instantiator.
5312         (image_instance_hash): ditto.
5313         (allocate_image_instance): ditto.
5314         (Fset_image_instance_property): removed.
5315         (Fimage_instance_file_name): ditto.
5316         (Fcolorize_image_instance): ditto.
5317         (image_instance_layout): add offsets to be set.
5318         (update_image_instance): new function. update an image instance
5319         from its changed instantiator.
5320         (inherit_normalize): add dest_mask.
5321         (xbm_normalize): ditto.
5322         (xface_normalize): ditto.
5323         (xpm_normalize): ditto.
5324         (text_update): set_property -> update.
5325         (image_instantiate): use the glyph identity as a hash key, not the
5326         instantiator.
5327         (glyph_width): use new image_instance_layout signature.
5328         (glyph_ascent): ditto.
5329         (glyph_descent): ditto.
5330         (glyph_height): ditto.
5331         (glyph_query_geometry): ressurrect.
5332         (glyph_layout): ditto.
5333         (redisplay_subwindow): update -> redisplay.
5334         (syms_of_glyphs): add Fset_instantiator_property.
5335         (image_instantiator_format_create): set_property -> update.
5336
5337         * glyphs-x.c:
5338         (autodetect_normalize): add dest_maks to signature.
5339         (x_redisplay_subwindow): update -> redisplay.
5340         (x_redisplay_widget): ditto.
5341         (x_button_redisplay): ditto.
5342         (x_progress_gauge_redisplay): ditto.
5343         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5344         stacking order.
5345         (console_type_create_glyphs_x): update -> redisplay.
5346         (image_instantiator_format_create_glyphs_x): ditto.
5347
5348         * glyphs-widget.c:
5349         (check_valid_instantiator): disallow glyphs in the instantiator,
5350         they must now be vectors.
5351         (check_valid_instantiator_list): ditto.
5352         (glyph_instantiator_to_glyph): use internal symbol rather than
5353         intern.
5354         (widget_update): renamed from widget_set_property. Call cascaded
5355         update methods.
5356         (redisplay_widget): renamed from update_widget.
5357         (widget_layout): image_instance_layout now takes position as well
5358         as size.
5359         (widget_normalize): ditto.
5360         (widget_instantiate): ditto.
5361         (tab_control_query_geometry) ditto.:
5362         (tab_control_update): renamed from tab_control_set_property.
5363         (progress_gauge_update): set_property -> update.
5364         (layout_normalize): rewrite so that child instantiators are
5365         normalized also.
5366         (layout_update): new function. Create glyphs from the normalized
5367         children and cope with any other layout keywords. We do not
5368         instantiate children here that will be take care of by
5369         redisplay_output_layout.
5370         (layout_instantiate): call layout_update and not much else.
5371         (layout_post_instantiate): not sure whether this is needed
5372         anymore.
5373         (layout_query_geometry): query glyph geometry rather than
5374         image_instance geometry.
5375         (layout_layout): set offsets from pass in parameters. Use glyph
5376         geometry and layout functions rather than image instance ones.
5377         (native_layout_layout): ditto.
5378         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5379         (image_instantiator_widget): set_property -> update.
5380         (image_instantiator_buttons): ditto.
5381         (image_instantiator_progress_guage): ditto.
5382         (image_instantiator_tab_control): ditto.
5383         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5384         (image_instantiator_layout): add update method.
5385
5386         * glyphs-msw.c (bmp_normalize):
5387         (mswindows_resource_normalize): add dest_mask so that it can be
5388         proprogated by layout_normalize.
5389         (begin_defer_window_pos): make optional because it may not be the
5390         right thing to do and it introduces differences with X.
5391         (mswindows_unmap_subwindow): ditto.
5392         (mswindows_map_subwindow): ditto.
5393         (mswindows_redisplay_subwindow): renamed from
5394         mswindows_update_subwindow.
5395         (mswindows_redisplay_widget): ditto.
5396         (mswindows_button_redisplay): renamed from
5397         mswindows_button_update. Update is now what the instantiation
5398         function does for a changed instantiator.
5399         (mswindows_progress_gauge_instantiate): set the progress value
5400         here if appropriate.
5401         (mswindows_tab_control_redisplay): cope with re-ordering of the
5402         members of the tab widget by simply selecting the new top
5403         widget. This makes things appear ok if you click on a tab.
5404         (mswindows_combo_box_instantiate): image_instance_layout now takes
5405         position as well as size.
5406         (mswindows_progress_gauge_redisplay): renamed from
5407         mswindows_progress_gauge_update.
5408         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5409         (image_instantiator_format_create_glyphs_mswindows): ditto.
5410
5411         * glyphs-eimage.c (jpeg_normalize):
5412         (gif_normalize):
5413         (png_normalize):
5414         (tiff_normalize): add dest_mask so that it can be proprogated by
5415         layout_normalize.
5416
5417         * elhash.c:
5418         (print_hash_table):
5419         (hash_table_weakness_validate):
5420         (decode_hash_table_weakness):
5421         (Fhash_table_weakness):
5422         (Fhash_table_type):
5423         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5424
5425         * console.h (struct console_methods): move update_* to
5426         redisplay_*.
5427
5428 2000-07-20  Ben Wing  <ben@xemacs.org>
5429
5430         * *.[ch] (XSETOBJ): remove unused middle argument.
5431         lisp-disunion.h: correct wrap_object() to one argument.
5432
5433 2000-07-15  Ben Wing  <ben@xemacs.org>
5434
5435         * s/cygwin32.h:
5436         * s/cygwin32.h (CYGWIN_CONV_PATH):
5437         Add missing logb prototype for v1.1.
5438         Use post-b20 names and alias to pre-b20 names when pre-b20.
5439
5440         * s/windowsnt.h: [5].
5441
5442 2000-07-15  Ben Wing  <ben@xemacs.org>
5443
5444         * Makefile.in.in (x_objs):
5445         * Makefile.in.in (sheap_objs):
5446         * Makefile.in.in (objs):
5447         added win32.o, cosmetic cleanups.
5448
5449         * alloc.c (Fmake_byte_code):
5450         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5451         etc. macros which declare their own args now.
5452
5453         * alloc.c (syms_of_alloc):
5454         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5455
5456         * buffer.c:
5457         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5458
5459         * buffer.c (Fget_file_buffer):
5460         Fixed GCPRO problem.
5461
5462         * buffer.c (get_truename_buffer):
5463         Fixed comment about GC checking.
5464
5465         * buffer.c (syms_of_buffer):
5466         Undeclared those dedicated frame funs.
5467         [2].
5468
5469         * buffer.h:
5470         Define convenience macros for internal/external conversions.
5471         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5472         and Qenvironment_variable_encoding for cleaner code.
5473
5474         * bufslots.h:
5475         Remove dedicated-frame; in lisp.
5476
5477         * bytecode.c (funcall_compiled_function):
5478         [1].
5479
5480         * bytecode.c (syms_of_bytecode):
5481         [2].
5482
5483         * console-msw.c:
5484         * console-msw.c (mswindows_show_console): Rewrote.
5485
5486         * console-msw.c (Fmswindows_debugging_output): New.
5487         Sends to OutputDebugString (special MSWin debugger interface).
5488
5489         * console-msw.c (Fmswindows_message_box):
5490         Fixed stupid bugs so it works when called from kill-emacs.
5491
5492         * console-msw.c (syms_of_console_mswindows):
5493         Declare Fmswindows_debugging_output.
5494
5495         * console-msw.h:
5496         New MSWin prototypes.
5497
5498         * console-msw.h (struct mswindows_frame):
5499         New entry last-click-mods for improved button-modifier support.
5500
5501         * console-msw.h (FRAME_MSWINDOWS_POPUP):
5502         New struct entry `popup' with corresponding accessor.
5503
5504         * console-x.c:
5505         * console-x.c (split_up_display_spec):
5506         * console-x.c (get_display_arg_connection):
5507         * console-x.c (x_semi_canonicalize_console_connection):
5508         * console-x.c (x_canonicalize_device_connection):
5509         [[[6]]]: Change char to more specific type.
5510         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5511
5512         * console-x.c (x_semi_canonicalize_console_connection):
5513         * console-x.c (x_canonicalize_device_connection):
5514         [[[9]]]: Fix up error signalling to use new structured error system.
5515
5516         * console-x.h:
5517         [[[4]]]: Define codesys aliases:
5518         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5519         Qx_color_name_encoding, Qx_display_name_encoding.
5520
5521         * console.h (struct console_methods):
5522         New method make_dialog_box_internal supersedes older
5523         popup_dialog_box method.
5524
5525         * data.c:
5526         Define many new errors, part of new structured errors.
5527
5528         * data.c (init_errors_once_early):
5529         * data.c (syms_of_data):
5530         [2].
5531
5532         * device-msw.c (mswindows_init_device):
5533         [[[5]]]: Cleanup to support NT 3.51.
5534
5535         * device-msw.c (decode_devmode): Cleanup.
5536
5537         * device-msw.c (mswindows_handle_print_setup_dialog_box):
5538         * device-msw.c (mswindows_handle_print_dialog_box):
5539         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5540         * device-msw.c (syms_of_device_mswindows):
5541         Delete the dialog box primitives recently introduced by Kirill and
5542         instead interface to general dialog box interface.
5543
5544         * device-x.c:
5545         * device-x.c (compute_x_app_name):
5546         * device-x.c (x_init_device):
5547         * device-x.c (Fx_valid_keysym_name_p):
5548         * device-x.c (Fx_set_font_path):
5549         [6].
5550         [7].
5551
5552         * device.h (wrap_device): New.
5553         First of its kind; meant to replace XSETDEVICE.
5554
5555         * dialog-msw.c: Many file-dialog symbols.
5556
5557         * dialog-msw.c (mswindows_register_popup_frame): New.
5558         * dialog-msw.c (mswindows_is_dialog_msg): New.
5559         For supporting kbd traversal in dialog boxes.
5560
5561         * dialog-msw.c (dialog_proc):
5562         Support hitting ESC in dialogs.
5563
5564         * dialog-msw.c (struct):
5565         Common dialog box errors.
5566
5567         * dialog-msw.c (handle_file_dialog_box): New.
5568         Add file dialog code.
5569
5570         * dialog-msw.c (handle_question_dialog_box):
5571         Redo existing code to support new question dialog syntax.
5572
5573         * dialog-msw.c (console_type_create_dialog_mswindows):
5574         We support new dialog console method.
5575
5576         * dialog-msw.c (syms_of_dialog_mswindows):
5577         * dialog-msw.c (vars_of_dialog_mswindows):
5578         New file dialog symbols, vars.
5579
5580         * dialog-x.c:
5581         * dialog-x.c (maybe_run_dbox_text_callback):
5582         * dialog-x.c (dbox_descriptor_to_widget_value):
5583         * dialog-x.c (x_make_dialog_box_internal):
5584         * dialog-x.c (console_type_create_dialog_x):
5585         Mule-ize entire file.
5586         Redo to support question dialog syntax.
5587         [6].
5588
5589         * dialog.c:
5590         * dialog.c (Fmake_dialog_box_internal):
5591         * dialog.c (syms_of_dialog):
5592         Kill old popup-dialog-box, replace with new primitive.
5593         Just call device method or signal error.
5594
5595         * eldap.c (Fldap_open):
5596         * eldap.c (Fldap_search_basic):
5597         * eldap.c (Fldap_add):
5598         * eldap.c (Fldap_modify):
5599         [1].
5600         [7].
5601
5602         * emacs.c:
5603         * emacs.c (make_arg_list_1):
5604         * emacs.c (make_arg_list):
5605         Mule-ize call to dll_init().
5606         [6].
5607         [8].
5608
5609         * emacs.c (make_argc_argv):
5610         * emacs.c (free_argc_argv):
5611         * emacs.c (init_cmdargs):
5612         * emacs.c (main_1):
5613         * emacs.c (Fkill_emacs):
5614         * emacs.c (Fdump_emacs):
5615         Update comments about what can be used in syms_* etc.
5616         Call init_win32() when necessary.
5617         Fix up MS Win dialog box in kill-buffer to actually work right.
5618         [7].
5619
5620         * eval.c:
5621         * eval.c (For):
5622         * eval.c (Fand):
5623         * eval.c (Fprogn):
5624         * eval.c (Fprog1):
5625         * eval.c (Fprog2):
5626         * eval.c (FletX):
5627         * eval.c (Flet):
5628         * eval.c (condition_case_3):
5629         * eval.c (Feval):
5630         * eval.c (function_argcount):
5631         * eval.c (funcall_lambda):
5632         [1].
5633
5634         * eval.c (type_error): New.
5635         * eval.c (maybe_type_error): New.
5636         * eval.c (continuable_type_error): New.
5637         * eval.c (maybe_continuable_type_error): New.
5638         * eval.c (type_error_with_frob): New.
5639         * eval.c (maybe_type_error_with_frob): New.
5640         * eval.c (continuable_type_error_with_frob): New.
5641         * eval.c (maybe_continuable_type_error_with_frob): New.
5642         New functions for use with structured errors.
5643
5644         * event-Xt.c:
5645         * event-Xt.c (x_event_to_emacs_event):
5646         Buttons are now modifiers too.
5647
5648         * event-Xt.c (emacs_Xt_current_event_timestamp):
5649         Implement new event method.
5650         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
5651
5652         * event-msw.c:
5653         * event-msw.c (ntpipe_shove_writer): [5].
5654         * event-msw.c (mswindows_enqueue_mouse_button_event):
5655         * event-msw.c (mswindows_drain_windows_queue):
5656         * event-msw.c (mswindows_wnd_proc): [7].
5657         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
5658         * event-msw.c (mswindows_modifier_state):
5659         Throughout: support new button modifiers.
5660
5661         * event-msw.c (emacs_mswindows_current_event_timestamp):
5662         Implement new event method.
5663         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
5664
5665         * event-stream.c:
5666         * event-stream.c (event_stream_current_event_timestamp): New.
5667         * event-stream.c (maybe_kbd_translate): New functionality.
5668         * event-stream.c (vars_of_event_stream):
5669         Document new kbd-translate-table functionality.
5670
5671         * event-stream.c (Fcurrent_event_timestamp): New.
5672         New primitive for use in fabricated events.
5673         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
5674
5675         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
5676
5677         * events.c:
5678         * events.c (Fmake_event):
5679         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
5680         [1].
5681         [9].
5682
5683         * events.c (format_event_object): fix gcc warnings.
5684
5685         * events.c (Fevent_timestamp): Document new primitives.
5686
5687         * events.c (TIMESTAMP_HALFSPACE): New.
5688
5689         * events.c (Fevent_timestamp_lessp): New.  New primitive for
5690         comparing timestamps correctly (half-space algorithm).
5691
5692         * events.c (Fevent_modifier_bits): Doc fix.
5693
5694         * events.c (Fevent_modifiers): Major doc addition.
5695         * events.c (event_x_y_pixel_internal): Typo fix.
5696         * events.c (syms_of_events): Declare new primitives.
5697
5698         * events.h:
5699         Update long comment for button modifiers, timestamps.
5700
5701         * events.h (struct event_stream):
5702         New current_event_timestamp method.
5703
5704         * extents.c:
5705         * extents.c (extent_in_region_p):
5706         * extents.c (decode_extent):
5707         * extents.c (Fset_extent_parent):
5708         * extents.c (decode_map_extents_flags):
5709         Fix gcc warnings.
5710         [9].
5711
5712         * extents.c (struct extent_at_arg):
5713         * extents.c (decode_extent_at_flag):
5714         * extents.c (extent_at_mapper):
5715         * extents.c (extent_at_bytind):
5716         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
5717         * extents.c (Fextents_at): New primitive. [9].
5718         * extents.c (symbol_to_glyph_layout): [9].
5719         Support new primitive `extents-at'.
5720
5721
5722         * extents.c (get_text_property_bytind):
5723         extent_at_bytind has another arg.
5724         [9].
5725
5726         * extents.c (syms_of_extents): New primitive.
5727
5728         * file-coding.c (Fmake_coding_system): [1].
5729         * file-coding.c (subsidiary_coding_system): fix gcc warning
5730         * file-coding.c (syms_of_file_coding): [2].
5731
5732         * fileio.c (Fexpand_file_name):
5733         * fileio.c (Fsysnetunam):
5734         * fileio.c (Ffile_exists_p):
5735         * fileio.c (Ffile_executable_p):
5736         * fileio.c (Fverify_visited_file_modtime):
5737         Clean up GCPROing.
5738
5739         * fileio.c (syms_of_fileio): [2].
5740
5741         * filelock.c (lock_file_1):
5742         * filelock.c (current_lock_owner):
5743         * filelock.c (lock_if_free):
5744         * filelock.c (lock_file):
5745         * filelock.c (unlock_file):
5746         Clean up GCPROing.
5747
5748         * fns.c (concat): Fix gcc warning.
5749
5750         * fns.c (Fmember):
5751         * fns.c (Fold_member):
5752         * fns.c (Fmemq):
5753         * fns.c (Fold_memq):
5754         * fns.c (memq_no_quit):
5755         * fns.c (Fassoc):
5756         * fns.c (Fold_assoc):
5757         * fns.c (Fassq):
5758         * fns.c (Fold_assq):
5759         * fns.c (assq_no_quit):
5760         * fns.c (Frassoc):
5761         * fns.c (Fold_rassoc):
5762         * fns.c (Frassq):
5763         * fns.c (Fold_rassq):
5764         * fns.c (rassq_no_quit):
5765         * fns.c (Fdelete):
5766         * fns.c (Fold_delete):
5767         * fns.c (Fdelq):
5768         * fns.c (Fold_delq):
5769         * fns.c (delq_no_quit):
5770         * fns.c (Fremassoc):
5771         * fns.c (Fremassq):
5772         * fns.c (remassq_no_quit):
5773         * fns.c (Fremrassoc):
5774         * fns.c (Fremrassq):
5775         * fns.c (remrassq_no_quit):
5776         * fns.c (Freverse):
5777         * fns.c (mapcar1):
5778         [1].
5779
5780         * frame-msw.c (mswindows_init_frame_1):
5781         * frame-msw.c (mswindows_delete_frame):
5782         Register popups with dialog code so keyboard traversing works.
5783
5784         * frame-tty.c (tty_raise_frame_no_select): [1].
5785
5786         * frame-x.c:
5787         * frame-x.c (x_set_frame_text_value):
5788         * frame-x.c (x_set_frame_properties):
5789         * frame-x.c (x_create_widgets):
5790         [7].
5791
5792         * frame.c:
5793         * frame.c (Fmouse_pixel_position): Minor doc fixes.
5794
5795         * frame.h (wrap_frame): New.
5796         Macro like wrap_device.
5797
5798         * general.c:
5799         * general.c (SYMBOL):
5800         * general.c (syms_of_general):
5801         Major reorg.  This is now just a wrapper and symbols themselves
5802         are listed in general-slots.h.
5803
5804         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
5805         * glyphs-msw.c (mswindows_resource_instantiate): [5].
5806
5807         * glyphs-msw.c (mswindows_native_layout_instantiate):
5808         Add DS_CONTROL so keyboard traversal will work.
5809
5810         * glyphs-widget.c:
5811         * glyphs-widget.c (syms_of_glyphs_widget):
5812         Move some symbols to general-slots.h.
5813
5814         * glyphs-x.c:
5815         * glyphs-x.c (xbm_instantiate_1):
5816         * glyphs-x.c (x_xbm_instantiate):
5817         * glyphs-x.c (x_xface_instantiate):
5818         * glyphs-x.c (autodetect_instantiate):
5819         * glyphs-x.c (cursor_font_instantiate):
5820         * glyphs-x.c (x_update_widget):
5821         * glyphs-x.c (x_widget_instantiate):
5822         * glyphs.c (bitmap_to_lisp_data):
5823         * glyphs.c (pixmap_to_lisp_data):
5824         [7].
5825
5826         * glyphs.c (syms_of_glyphs):
5827         [2].
5828
5829         * gui-x.c:
5830         * gui-x.c (print_widget_value):
5831         * gui-x.c (menu_separator_style_and_to_external):
5832         * gui-x.c (add_accel_and_to_external):
5833         * gui-x.c (button_item_to_widget_value):
5834         * gui-x.c (gui_items_to_widget_values_1):
5835         * gui-x.c (gui_items_to_widget_values):
5836         * gui-x.c (syms_of_gui_x):
5837         * gui-x.c (vars_of_gui_x):
5838         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
5839         [9].
5840
5841         * gui-x.h:
5842         Muleize, prototype changes matching gui-x.c.
5843
5844         * gui.c:
5845         * gui.c (separator_string_p):
5846         * gui.c (gui_item_add_keyval_pair):
5847         * gui.c (make_gui_item_from_keywords_internal):
5848         * gui.c (signal_too_long_error):
5849         * gui.c (parse_gui_item_tree_item):
5850         * gui.c (syms_of_gui):
5851         * gui.c (vars_of_gui):
5852         * gui.h:
5853         menu-no-selection-hook moved here (used by MSWin).
5854         Move some symbols to general-slots.h.
5855         [6].
5856         [9].
5857
5858         * insdel.c (get_buffer_pos_char):
5859         * insdel.c (get_buffer_range_char):
5860         Add GC comments.
5861
5862         * keymap.c (keymap_lookup_directly):
5863         * keymap.c (keymap_store):
5864         * keymap.c (ensure_meta_prefix_char_keymapp):
5865         * keymap.c (describe_map):
5866         * keymap.h:
5867         Support new button modifiers.
5868
5869         * lisp-disunion.h (wrap_object):
5870         * lisp-disunion.h (XSETOBJ):
5871         Rename make_obj to wrap_object.
5872
5873         * lisp-union.h:
5874         * lisp-union.h (make_int):
5875         * lisp-union.h (make_char):
5876         Support wrap_object.
5877
5878         * lisp.h:
5879         * lisp.h (LIST_LOOP):
5880         * lisp.h (EXTERNAL_LIST_LOOP):
5881         * lisp.h (LIST_LOOP_2):
5882         * lisp.h (EXTERNAL_LIST_LOOP_1):
5883         * lisp.h (EXTERNAL_LIST_LOOP_2):
5884         * lisp.h (EXTERNAL_LIST_LOOP_3):
5885         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
5886         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5887         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
5888         * lisp.h (EXTERNAL_ALIST_LOOP_5):
5889         * lisp.h (EXTERNAL_ALIST_LOOP_6):
5890         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
5891         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
5892         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
5893         * lisp.h (struct Lisp_Symbol):
5894         * lisp.h (maybe_continuable_error_with_frob):
5895         Fix up section comments.
5896         Add new types for char to indicate usage.
5897         Delete symbols auto-generated from general-slots.h.
5898         Add prototypes for structured error functions.
5899         Add long comments describing looping macros and change interface
5900         so that lvalues are automatically declared.
5901         Add NO_DECLARE macro in case callers want to declare lvalues
5902         themselves.
5903
5904         * lread.c (read_syntax_error):
5905         * lread.c (continuable_read_syntax_error):
5906         * lread.c (read_structure):
5907         * lread.c (sequence_reader):
5908         * lread.c (read_list_conser):
5909         * lread.c (read_compiled_function):
5910         Rename syntax_error and continuable_syntax_error to avoid clash
5911         with same-named structured error functions.
5912
5913         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5914         * menubar-msw.c (populate_menu_add_item):
5915         * menubar-msw.c (populate_or_checksum_helper):
5916         [5].
5917         [9].
5918
5919         * menubar-x.c:
5920         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5921         Mule-ize whole file.
5922
5923         * menubar.c (Fnormalize_menu_item_name): Add optimization.
5924
5925         * mule-charset.c (Fmake_charset):
5926         * mule-wnnfns.c (Fwnn_set_param):
5927         [1].
5928
5929         * ntproc.c (create_child):
5930         * ntproc.c (Fwin32_set_current_locale):
5931         Add comments portending doom.
5932
5933         * objects-msw.c:
5934         * objects-msw.c (old_font_enum_callback_2):
5935         * objects-msw.c (font_enum_callback_1):
5936         * objects-msw.c (mswindows_enumerate_fonts):
5937         [5].
5938
5939         * objects-x.c:
5940         * objects-x.c (allocate_nearest_color):
5941         * objects-x.c (x_parse_nearest_color):
5942         * objects-x.c (x_initialize_color_instance):
5943         * objects-x.c (x_print_color_instance):
5944         * objects-x.c (x_finalize_color_instance):
5945         * objects-x.c (x_valid_color_name_p):
5946         * objects-x.c (x_initialize_font_instance):
5947         * objects-x.c (x_print_font_instance):
5948         * objects-x.c (valid_x_font_name_p):
5949         * objects-x.c (truename_via_FONT_prop):
5950         * objects-x.c (truename_via_random_props):
5951         * objects-x.c (truename_via_XListFonts):
5952         * objects-x.c (x_font_truename):
5953         * objects-x.c (x_font_instance_truename):
5954         * objects-x.c (x_font_instance_properties):
5955         * objects-x.c (x_list_fonts):
5956         * objects-x.c (x_find_charset_font):
5957         Mule-ize entire file.
5958         [7].
5959
5960         * objects-x.h:
5961         Mule-verify.
5962
5963         * print.c:
5964         * print.c (std_handle_out_external):
5965         * print.c (debug_print_no_newline):
5966         * print.c (syms_of_print):
5967         Output to all debugger kinds in debug-print.
5968         Fix console-output code under MSWin to actually work.
5969
5970         * process-nt.c (send_signal):
5971         * process-nt.c (nt_create_process):
5972         Use newer Unicode macros.
5973
5974         * process-unix.c (unix_create_process):
5975         * process-unix.c (unix_canonicalize_host_name):
5976         * process-unix.c (unix_open_network_stream):
5977         [7].
5978
5979         * scrollbar-x.c:
5980         Mule-verify.
5981
5982         * search.c (syms_of_search):
5983         [2].
5984
5985         * select-msw.c (mswindows_destroy_selection):
5986         Use LIST_LOOP_2.
5987
5988         * select-x.c (symbol_to_x_atom):
5989         [7].
5990
5991         * select.c (syms_of_select):
5992         [2].
5993
5994         * sound.c (Fplay_sound_file):
5995         [7].
5996
5997         * specifier.c:
5998         * specifier.c (decode_specifier_type):
5999         * specifier.c (Fvalid_specifier_locale_type_p):
6000         * specifier.c (check_valid_locale_or_locale_type):
6001         * specifier.c (decode_locale):
6002         * specifier.c (decode_locale_type):
6003         * specifier.c (decode_locale_list):
6004         * specifier.c (check_valid_domain):
6005         * specifier.c (decode_specifier_tag_set):
6006         * specifier.c (Fcanonicalize_tag_set):
6007         * specifier.c (Fdefine_specifier_tag):
6008         * specifier.c (Fspecifier_tag_predicate):
6009         * specifier.c (check_valid_inst_list):
6010         * specifier.c (check_valid_spec_list):
6011         * specifier.c (decode_how_to_add_specification):
6012         * specifier.c (check_modifiable_specifier):
6013         * specifier.c (specifier_add_spec):
6014         * specifier.c (boolean_validate):
6015         * specifier.c (display_table_validate):
6016         [9].
6017
6018         * specifier.c (syms_of_specifier):
6019         Move some symbols to general-slots.h.
6020         [2].
6021
6022         * symbols.c:
6023         * symbols.c (Fmapatoms):
6024         * symbols.c (Fapropos_internal):
6025         Add GCPROs.
6026
6027         * symbols.c (set_default_buffer_slot_variable):
6028         * symbols.c (set_default_console_slot_variable):
6029         [1].
6030
6031         * symbols.c (defsymbol_massage_name_1):
6032         * symbols.c (defkeyword_massage_name):
6033         * symbols.c (deferror_1):
6034         * symbols.c (deferror):
6035         * symbols.c (deferror_massage_name_and_message):
6036         * symeval.h:
6037         * symeval.h (DEFSYMBOL):
6038         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6039
6040         * symbols.c (syms_of_symbols):
6041         [2].
6042
6043         * symsinit.h:
6044         * symsinit.h (init_win32): New.
6045         Also new is syms_of_dialog_mswindows.
6046
6047         * syswindows.h:
6048         Add new Unicode macros, missing Cygwin wide-char functions,
6049         convenience conversion macros for Qmswindows_tstr, macros for
6050         encapsulating required MSWin <-> Cygwin filename conversions,
6051         prototype for dynamically-extracted (not in NT 3.51) functions.
6052
6053         * toolbar-x.c:
6054         Mule-verify.
6055
6056         * tooltalk.c (Fadd_tooltalk_message_arg):
6057         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6058         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6059         [7].
6060
6061         * tooltalk.c (syms_of_tooltalk):
6062         [2].
6063
6064         * unexnt.c:
6065         * unexnt.c (unexec):
6066         Fix up headers, declaration of unexec() to be more standard.
6067
6068 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6069
6070         * offix.h: Revert change to guard macros - they're used in offix.c!
6071
6072 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6073
6074         * lisp.h: Defsubred Fdelete.
6075
6076         * console-msw.h:  (msprinter_default_printer): Added.
6077
6078         * console-msw.c (msprinter_canonicalize_console_connection):
6079         (msprinter_canonicalize_device_connection): Added.
6080
6081         * device-msw.c (msprinter_default_printer):
6082         (Fmswingows_get_default_printer):
6083         (signal_enum_priner_error):
6084         (Fmswingows_printer_list): Added.
6085
6086 2000-07-19  Martin Buchholz <martin@xemacs.org>
6087
6088         * XEmacs 21.2.35 is released.
6089
6090 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6091
6092         * select-x.c (x_handle_selection_request):
6093         Text selected in xemacs and pasted into xterm failed to appear.
6094         Spelling fixes and cosmetic changes.
6095
6096 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6097
6098         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6099         XEmacs frame (fix for doubling chars in dialog boxes).
6100
6101 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6102
6103         * select.c (select_convert_in, select_convert_out):
6104         Don't call intern() every time.
6105
6106         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6107         * select.c (vars_of_select): Initialise them.
6108
6109 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6110
6111         * select.c (selection-coercible-types): New.
6112
6113         * select.c (own-selection-internal):
6114         * select.c (get-selection-internal):
6115         MULE bug fix - these should default to COMPOUND_TEXT and not
6116         STRING for MULE. I think.
6117
6118         * select.c (select_convert_out): Use selection-coercible-types
6119         to find types that we can attempt to perform coercions on.
6120
6121 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6122
6123         * mule-wnnfns.c:
6124         * mule-canna.c:
6125         Add coding: cookie to identify encoding.
6126
6127         * mule-canna.c (CANNA_mode_keys): make static.
6128         Use proper prototypes, even for functions of no arguments.
6129         Remove external prototype for Fding().
6130
6131         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6132
6133         * select.c (syms_of_select): Add missing DEFSUBR.
6134
6135 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6136
6137         * select.c (get_selection_internal, own_selection_internal):
6138         Make the type default to STRING, rather than placing a nil type
6139         into Vselection_alist.
6140
6141 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6142
6143         * gpmevent.c (tty_selection_exists_p):
6144         * gpmevent.c (tty_own_selection):
6145         Updated parameter lists.
6146
6147 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6148
6149         * select.h (selection-alist): Removed declaration.
6150
6151         * select.h (get_local_selection):
6152         * select.c (get_local_selection):
6153         Made static.
6154
6155         * select.h (convert_selection): Removed declaration.
6156         * select.c (convert_selection): Removed.
6157         This function belongs in Lisp.
6158
6159         * select.h (select_convert_in): Declare.
6160         * select.h (select_convert_out): Declare.
6161         * select.c (select_convert_in): New.
6162         * select.c (select_convert_out): New.
6163         New conversion functions for other files to call.
6164
6165         * select.h (select_notify_buffer_kill): Declare.
6166         * select.c (select_notify_buffer_kill): New.
6167         New functions that get called from kill-buffer.
6168
6169         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6170         X-specific lisp code.
6171
6172         * select.h: Declare some of the lisp-visible functions for
6173         external use.
6174
6175         * select.c (clean_local_selection_data): Removed. This was
6176         a disgusting function, and previously should have been in
6177         select-x.c in any case. The functionality is now provided
6178         in select-convert-from-integer (select.el).
6179
6180         * select.c (available-selection-types): Fixed stupidity where
6181         INTEGER and ATOM got added twice. Also add STRING when we see an
6182         extent.
6183
6184         * select.c (get-selection-internal): Removed symbol stripping. No
6185         longer causes conversion when data comes from the internal cache.
6186
6187         * select.c (syms_of_select): Added new functions.
6188
6189         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6190         error checking - previously this called abort!
6191
6192         * select-x.c (x_own_selection): Changed comment.
6193
6194         * select-x.c (x_handle_selection_request): Use select_convert_out.
6195         Don't mess with selection-alist; it's an internal variable of select.c.
6196
6197         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6198
6199         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6200         rather than messing with selection-alist.
6201
6202         * select-msw.c (mswindows_get_foreign_selection):
6203         Use TO_INTERNAL_FORMAT rather than hacking.
6204
6205 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6206
6207         * process-unix.c (unix_open_multicast_group):
6208         (unix_open_multicast_group): Remove useless casts.
6209
6210 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6211
6212         * sound.c (Fplay_sound): Fix `unused variable' warning.
6213
6214         * emacs.c (main): Use correct type for _environ on SCO5.
6215
6216 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6217
6218         * console.h (own_selection_method):
6219         * console.h (selection_exists_p_method):
6220         * console.h (available_selection_types_method): New.
6221         * console.h (register_selection_data_type_method): New.
6222         * console.h (selection_data_type_name): New.
6223
6224         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6225         function & alist to track GlobalAlloc()'d handles that need
6226         releasing when the clipboard data gets replaced or emptied.
6227
6228         * event-msw.c (mswindows_wnd_proc): Call it.
6229
6230         * lisp.h, general.c (Qappend): New symbol representing a
6231         `how-to-add' mode.
6232
6233         * select.c (own-selection-internal):
6234         * select.c (selection-exists-p):
6235         * select.c (available-selection-types): New.
6236         * select.c (register-selection-data-type): New.
6237         * select.c (selection-data-type-name): New.  New functions to deal
6238         with device-specific selection data formats.
6239         * select.c (selection-converter-out-alist): Renamed.
6240         * select.c (selection-converter-in-alist): New.
6241         * select.c (selection-appender-alist): New.  Added new alists.
6242         * select.c (syms_of_select, vars_of_select): Added new symbols &
6243         variables.
6244         * select.c (get_local_selection): Split.
6245         * select.c: Removed spurious type checking - selections may now be
6246         of any type, not just strings.
6247         * select.c (own-selection-internal):
6248
6249         * select.h, select.c (convert_selection): New. Created
6250         convert_selection() function based on get_local_selection().
6251         * select.h, select.c (QCF_*): New symbols representing mswindows
6252         clipboard formats.
6253         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6254         symbols representing `how-to-add' modes.
6255
6256         * select-msw.c (x_sym_p): New.
6257         * select-msw.c (symbol_to_ms_cf): New.
6258         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6259         symbols & clipboard formats. Can also handle string names.
6260         * select-msw.c (mswindows_own_selection):
6261         * select-msw.c (mswindows_selection_exists_p):
6262         Added `data-type' parameter. Use it.
6263         * select-msw.c (mswindows_available_selection_types): New.
6264         * select-msw.c (mswindows_register_selection_data_type): New.
6265         * select-msw.c (mswindows_selection_data_type_name): New.
6266         * select-msw.c (mswindows_own_selection):
6267         * select-msw.c (mswindows_get_foreign_selection):
6268         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6269         * select-msw.c (console_create_select_mswindows): Added new methods.
6270         * select-msw.c (mswindows_destroy_selection): New.
6271         * select-msw.c (Vhandle_alist): New list.
6272         * select-msw.c (mswindows_own_selection):
6273
6274         * select-x.c (x_own_selection):
6275         * select-x.c (x_selection_exists_p):
6276         * select-x.c: Added some comments about maybe using new
6277         functionality.
6278         * select-x.c (x_own_selection):
6279
6280         * specifier.c: Remove definition of Qappend (now in general.c)
6281         * specifier.c (syms_of_specifier): Remove Qappend.
6282
6283 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6284
6285         * config.h.in: Add socklen_t.
6286
6287         * s/decosf4-0.h: No special compiler flags needed or desired.
6288         In particular, undefine _BSD for DEC OSF 4.0.
6289
6290 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6291
6292         * redisplay-msw.c (msprinter_frame_output_end): Added.
6293         (console_type_create_redisplay_mswindows): Referred the above.
6294
6295         * frame.c (setup_frame_without_minibuffer): Do not create a
6296         default minibuffer frame on a printer device.
6297
6298         * frame-msw.c (apply_dc_geometry): Added.
6299         (msprinter_start_page):
6300         (msprinter_init_frame_3):
6301         (msprinter_eject_page): Use it.
6302
6303         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6304         and removed residual duplex and orientation properties.
6305
6306 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6307
6308         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6309
6310         * unexalpha.c: Remove system prototypes from C sources!
6311
6312 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6313
6314         * eval.c: Remove references to M-x edit-options in DEFUNs for
6315         `defvar' and `defconst'.
6316
6317 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6318
6319         * config.h.in: Remove SMART_INCLUDE hackery.
6320
6321         PostgreSQL hacking:
6322         * config.h.in: Don't use SMART_INCLUDE.
6323
6324         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6325         * inline.c: Simply #include "postgresql.h"
6326         * postgresql.c:
6327         - Don't use SMART_INCLUDE
6328         - Use simply "const".
6329         - Use standard doc string conventions.
6330         - Use correct type for result of PQstatus.
6331
6332 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6333
6334         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6335
6336         C++ compilation changes.
6337         * config.h.in (EXTERN_C): Define.
6338         * config.h.in (not): This is also a C++ keyword.
6339         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6340         * cm.c: Use EXTERN_C.
6341         * redisplay-tty.c: Use EXTERN_C.
6342         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6343
6344 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6345
6346         * general.c: Remove duplicate definition for Qfunction.
6347
6348 2000-07-08  Ben Wing  <ben@xemacs.org>
6349
6350         * device-msw.c (msprinter_init_device):
6351         * device-msw.c (sync_printer_with_devmode):
6352         * device-msw.c (handle_devmode_changes):
6353         * device-msw.c (print_dialog_worker):
6354         * device-msw.c (Fmsprinter_apply_settings):
6355         * device-msw.c (hash_devmode):
6356         * device-msw.c (Fmsprinter_settings_despecialize):
6357         use Qmswindows_tstr, not Qctext.
6358
6359         * vm-limit.c (check_memory_limits):
6360         avoid infinite loop printing warning messages.
6361
6362 2000-07-05  Craig Lanning  <lanning@scra.org>
6363
6364         * Makefile.in.in: Add support for including the Windows resources
6365         when building with the cygwin and mingw targets.
6366
6367         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6368         not set or not correct.
6369         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6370         (init_initial_directory): Don't try to use $PWD on the
6371         WIN32_NATIVE target.
6372
6373         * s\cygwin32.h:
6374         [[Add -mwindows to eliminate console window.]] not required --ben
6375         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6376         (MAIL_USE_POP): removed; now handled by configure.
6377
6378         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6379         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6380         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6381         (MAIL_USE_POP): removed; now handled by configure.
6382         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6383         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6384         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6385         constant string.
6386         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6387         up from <winsock.h> via systime.h.
6388         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6389         (getpagesize): from Dan Holmsand, added.
6390         Added #endif which was left dangling by Ben's mega patch; added
6391         comment to help prevent this in the future.
6392
6393         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6394
6395 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6396
6397         * console-msw.h (struct mswindows_device): Removed unnecessary
6398         cached device geometry values.
6399         Added update_tick and an accessor macro.
6400         (Lisp_Devmode): Added lrecord declaration.
6401         (struct msprinter_device): Contain devmode as a Lisp object.
6402         Added mswindows_get_selected_frame_hwnd();
6403
6404         * console.h (struct console_methods): Indentation nitpicking.
6405
6406         * device-msw.c (mswindows_init_device): Do not initialize geometry
6407         cache. Initialize update tick.
6408         (mswindows_device_system_metrics): Ask the device for its geometry.
6409         (global_free_2_maybe):
6410         (devmode_to_hglobal):
6411         (handle_printer_changes):
6412         (ensure_not_printing):
6413         (print_dialog_worker):
6414         (Fmsprinter_print_setup_dialog):
6415         (Fmsprinter_print_dialog):
6416         (plist_get_margin):
6417         (plist_set_margin):
6418         (Fmsprinter_page_setup_dialog): Added functions.
6419         (sync_printer_with_devmode):
6420         (handle_devmode_changes):
6421         (Fmsprinter_get_settings):
6422         (Fmsprinter_select_settings):
6423         (Fmsprinter_apply_settings):
6424         (allocate_devmode):
6425         (Fmsprinter_settings_copy):
6426         (Fmsprinter_settings_despecialize):
6427         (print_devmode):
6428         (finalize_devmode):
6429         (equal_devmode):
6430         (hash_devmode): Added functions
6431         (syms_of_device_mswindows): Init devmode lrecord class.
6432
6433         * device.h: Added an exfun for find-device.
6434
6435         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6436         geometry; although, recreate the device compatible DC.
6437
6438         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6439         (msprinter_init_frame_3):
6440         (msprinter_frame_property):
6441         (msprinter_internal_frame_property_p):
6442         (msprinter_frame_properties):
6443         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6444         print job properties (will move to device settings).
6445
6446         * lisp.h: Added symbols.
6447
6448         * general.c (syms_of_general): Declared them.
6449
6450         * hash.c (string_hash): Added.
6451
6452         * lrecord.h (lrecord_type): Added devmode lrecord type.
6453
6454 2000-07-02  Mike Sperber <mike@xemacs.org>
6455
6456         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6457         FreeBSD 4.0.
6458
6459 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6460
6461         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6462         integer.
6463
6464 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
6465
6466         * data.c (Fstring_to_number): Don't recognize floating point if
6467         base is not 10.
6468
6469 2000-06-22  Martin Buchholz  <martin@xemacs.org>
6470
6471         * glyphs-widget.c (tab_control_query_geometry):
6472         (widget_query_geometry):
6473         (button_query_geometry):
6474         * glyphs.c (text_query_geometry):
6475         Enforce type correctness.
6476
6477 2000-06-18  Martin Buchholz  <martin@xemacs.org>
6478
6479         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6480         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6481
6482 2000-06-17  Martin Buchholz  <martin@xemacs.org>
6483
6484         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6485         conflicts with gcc's fixincluded version of FOO.h.
6486
6487         * glyphs.h (image_instance_geometry): Remove trailing `,'
6488
6489 2000-06-08  Mike Alexander  <mta@arbortext.com>
6490
6491         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6492         (shove_thread): Don't write the same output twice
6493         (make_ntpipe_output_stream): Increase priority of shove thread
6494         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6495         chance to run
6496         (ntpipe_shove_closer): Don't delete the pipe until we're done with
6497         it.
6498
6499 2000-06-12  Ben Wing  <ben@xemacs.org>
6500
6501         * s\mingw32.h (sigset):
6502         * s\windowsnt.h (sigset):
6503         rename msw_ to mswindows_ for consistency with general convention.
6504
6505 2000-06-12  Ben Wing  <ben@xemacs.org>
6506
6507         * console-msw.c:
6508         * console-msw.c (mswindows_get_console_hwnd):
6509         * console-msw.c (mswindows_ensure_console_allocated):
6510         * console-msw.c (mswindows_hide_console):
6511         * console-msw.c (mswindows_show_console):
6512         * console-msw.c (mswindows_ensure_console_buffered):
6513         * console-msw.c (mswindows_output_console_string):
6514         * console-msw.c (mswindows_windows9x_p):
6515         * console-msw.h:
6516         * device-msw.c (mswindows_get_workspace_coords):
6517         * device-msw.c (mswindows_device_system_metrics):
6518         * dialog-msw.c (mswindows_popup_dialog_box):
6519         * event-msw.c (mswindows_wnd_proc):
6520         * frame-msw.c (mswindows_size_frame_internal):
6521         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6522         * menubar-msw.c (displayable_menu_item):
6523         * menubar-msw.c (mswindows_char_is_accelerator):
6524         * nt.c:
6525         * nt.c (mswindows_sigset):
6526         * nt.c (mswindows_sigrelse):
6527         * nt.c (mswindows_sigpause):
6528         * nt.c (mswindows_raise):
6529         * nt.c (timer_proc):
6530         * ntproc.c:
6531         * ntproc.c (find_child_console):
6532         * ntproc.c (sys_kill):
6533         * print.c:
6534         * print.c (std_handle_out_external):
6535         * process-nt.c (find_child_console):
6536         * process-nt.c (send_signal_the_95_way):
6537         * process-nt.c (ensure_console_window_exists):
6538         * process-nt.c (nt_create_process):
6539         * syssignal.h:
6540         rename msw_ to mswindows_ for consistency with general convention.
6541
6542         * emacs.c:
6543         * dumper.c:
6544         include nt.h, not syswindows.h.
6545
6546         * nt.c (mswindows_fstat):
6547         * nt.c (mswindows_stat):
6548         prefix mswindows_ instead of attempting to directly override the
6549         library functions.  fix declarations.
6550
6551         * nt.h:
6552         include syswindows.h.  move some sysdep.h stuff here.
6553
6554         * ntheap.h:
6555         include syswindows.h, not <windows.h>.
6556
6557         * ntplay.c:
6558         clean up headers.
6559
6560         * sysdep.c:
6561         clean up headers.
6562
6563         * sysdep.c (sys_fstat):
6564         * sysdep.c (sys_stat):
6565         call mswindows versions when appropriate.
6566
6567         * sysdep.h:
6568         move mswin decls to nt.h.
6569
6570         * syswindows.h:
6571         add long comment describing appropriate use of the various windows
6572         headers.
6573
6574 2000-06-11  Ben Wing  <ben@xemacs.org>
6575
6576         * device-x.c: Correct doc string for sixth arg of x-get-resource.
6577
6578 2000-06-10  Ben Wing  <ben@xemacs.org>
6579
6580         * Makefile.in.in (release):
6581         Correction to make sure xemacs.exe always dumped when correct.
6582
6583         * alloca.c:
6584         * balloon_help.c:
6585         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
6586
6587         * buffer.c (set_buffer_internal):
6588         [[[[2]]]]: Remove HAVE_FEP code.
6589
6590         * buffer.c (init_initial_directory):
6591         [3].
6592
6593         * bytecode.c:
6594         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
6595         individual files.
6596
6597         * callproc.c:
6598         * callproc.c (call_process_cleanup):
6599         * callproc.c (Fold_call_process_internal):
6600         * callproc.c (child_setup):
6601         * callproc.c (getenv_internal):
6602         * callproc.c (init_callproc):
6603         * callproc.c (vars_of_callproc):
6604         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
6605         __CYGWIN32__ -> CYGWIN.
6606         DOS_NT -> WIN32_NATIVE.
6607         Remove MSDOS support/references, converting to WIN32_NATIVE
6608           where correct.
6609         __MINGW32__ -> MINGW.
6610         Fix windows.h includes.
6611         Remove bogus HAVE_NTGUI.
6612
6613         * config.h.in:
6614         [2].
6615
6616         * console-msw.c:
6617         mswindows_message_outputted added for use in allowing startup
6618         errors on the console to be seen.
6619
6620         * console-msw.c (msw_ensure_console_allocated):
6621         * console-msw.c (msw_output_console_string):
6622         * console-msw.c (DHEADER):
6623         * console-msw.c (DOPAQUE_DATA):
6624         * console-msw.c (DEVENT):
6625         * console-msw.c (DCONS):
6626         * console-msw.c (DCONSCDR):
6627         * console-msw.c (DSTRING):
6628         * console-msw.c (DVECTOR):
6629         * console-msw.c (DSYMBOL):
6630         * console-msw.c (DSYMNAME):
6631         Fix warnings.
6632
6633         * console-stream.c (stream_init_console):
6634         Fix text/binary problems.
6635
6636         * device-msw.c:
6637         * device-msw.c (mswindows_finish_init_device):
6638         * device-msw.c (mswindows_delete_device):
6639         [1].
6640
6641         * device.c (handle_asynch_device_change):
6642         [3].
6643
6644         * dgif_lib.c:
6645         * dgif_lib.c (DGifOpenFileName):
6646         * dgif_lib.c (DGifOpenFileHandle):
6647         * dgif_lib.c (DGifGetLine):
6648         * dgif_lib.c (DGifGetPixel):
6649         Added config.h/lisp.h, fix up includes.
6650         [1].
6651
6652         * dired-msw.c:
6653         [4].
6654
6655         * dired.c:
6656         * dired.c (file_name_completion):
6657         * dired.c (Ffile_attributes):
6658         * dired.c (syms_of_dired):
6659         [1].
6660
6661         * dumper.c:
6662         * dumper.c (pdump_file_unmap):
6663         * dumper.c (pdump_load):
6664         [1].
6665
6666         * editfns.c:
6667         * editfns.c (Ftemp_directory):
6668         * editfns.c (user_login_name):
6669         * editfns.c (Fuser_real_login_name):
6670         * editfns.c (get_home_directory):
6671         [1].
6672
6673         * elhash.c (finish_marking_weak_hash_tables):
6674         [[[[5]]]]: Fix GCC warnings.
6675
6676         * emacs.c:
6677         * emacs.c (mswindows_handle_hardware_exceptions):
6678         * emacs.c (make_arg_list_1):
6679         * emacs.c (main_1):
6680         * emacs.c (Fkill_emacs):
6681         * emacs.c (Fdump_emacs):
6682         [1].
6683         Fix problems with nested crashes, add long comment.
6684
6685         * event-Xt.c (init_event_Xt_late):
6686         [1].
6687
6688         * event-msw.c:
6689         * event-msw.c (mswindows_dde_callback):
6690         * event-msw.c (mswindows_handle_sticky_modifiers):
6691         * event-msw.c (mswindows_wnd_proc):
6692         [1].
6693         [5].
6694
6695         * events.c (character_to_event):
6696         [1].
6697
6698         * fileio.c:
6699         * fileio.c (Ffile_name_directory):
6700         * fileio.c (Ffile_name_nondirectory):
6701         * fileio.c (directory_file_name):
6702         * fileio.c (Fexpand_file_name):
6703         * fileio.c (Fsubstitute_in_file_name):
6704         * fileio.c (Ffile_name_absolute_p):
6705         * fileio.c (check_executable):
6706         * fileio.c (Ffile_readable_p):
6707         * fileio.c (Ffile_accessible_directory_p):
6708         * fileio.c (Ffile_modes):
6709         * fileio.c (Funix_sync):
6710         * fileio.c (vars_of_fileio):
6711         [1]. [4].
6712
6713         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
6714
6715         Expand getdefdir defn.
6716         Fix bogus rename() comment.
6717
6718         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
6719         to use standard XEmacs include files, e.g. sysfile.h, rather
6720         than system-specific includes.
6721
6722         * fns.c:
6723         * fns.c (Fsubseq):
6724         [5]. [6].
6725
6726         * frame.c (vars_of_frame):
6727         [1].
6728
6729         * getloadavg.c:
6730         * getloadavg.c (getloadavg):
6731         [1]. [6].
6732         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
6733         (We don't use it elsewhere in the code; just add a comment.)
6734
6735         * gif_io.c:
6736         [6].
6737         Add config.h.
6738
6739         * glyphs-msw.c:
6740         * glyphs-msw.c (mswindows_resource_instantiate):
6741         [1].
6742
6743         * glyphs-x.c (x_native_layout_instantiate):
6744         [5].
6745
6746         * gui-msw.c (Fmswindows_shell_execute):
6747         [1].
6748
6749         * insdel.c:
6750         [4].
6751
6752         * lisp.h:
6753         [4]. [5].
6754
6755         * lread.c (locate_file_in_directory_mapper):
6756         [1].
6757
6758         * lstream.c:
6759         [4].
6760
6761         * mem-limits.h:
6762         * mem-limits.h (get_lim_data):
6763         [1].
6764
6765         * menubar-msw.c:
6766         [4].
6767
6768         * ndir.h:
6769         [1].
6770
6771         * nt.c:
6772         * nt.c (getwd):
6773         * nt.c (closedir):
6774         * nt.c (rva_to_section):
6775         * nt.c (mswindows_executable_type):
6776         [1]. [6].
6777         Fix closedir() defn.
6778
6779         * nt.h:
6780         [[[[8]]]]: *_OK defs moved to sysfile.h.
6781
6782         * ntproc.c:
6783         [6]. [7].
6784
6785         * objects-x.c:
6786         [4].
6787
6788         * print.c:
6789         * print.c (std_handle_out_external):
6790         [1]. [4].
6791
6792         * process-nt.c:
6793         * process-nt.c (nt_create_process):
6794         [6].
6795         try to fix process quoting somewhat.
6796
6797         * process-unix.c (unix_create_process):
6798         [1].
6799
6800         * process.c:
6801         * process.c (vars_of_process):
6802         Add Vnull_device.
6803
6804         * process.h:
6805         [1].
6806
6807         * realpath.c:
6808         * realpath.c (xrealpath):
6809         [1].
6810
6811         * redisplay-tty.c (init_tty_for_redisplay):
6812         [3].
6813
6814         * redisplay.c:
6815         [4]. [6].
6816
6817         * scrollbar-msw.c:
6818         [4].
6819
6820         * sheap.c:
6821         * sheap.c (more_static_core):
6822         * sheap.c (report_sheap_usage):
6823         [5]. [6].
6824
6825         * signal.c:
6826         * signal.c (alarm_signal):
6827         [1]. [6].
6828
6829         * sound.c:
6830         [6].
6831
6832         * strftime.c:
6833         * strftime.c (zone_name):
6834         [1]. [5].
6835
6836         * symsinit.h (init_sunpro):
6837         [1].
6838
6839         * syscommctrl.h:
6840         commctrl.h not in Cygwin b20.1.
6841
6842         * sysdep.c:
6843         * sysdep.c (endif):
6844         * sysdep.c (sys_subshell):
6845         * sysdep.c (init_baud_rate):
6846         * sysdep.c (emacs_get_tty):
6847         * sysdep.c (emacs_set_tty):
6848         * sysdep.c (tty_init_sys_modes_on_device):
6849         * sysdep.c (init_system_name):
6850         * sysdep.c (sys_open):
6851         * sysdep.c (interruptible_open):
6852         * sysdep.c (sys_fopen):
6853         * sysdep.c (sys_mkdir):
6854         * sysdep.c (sys_rename):
6855         * sysdep.c (get_process_times_1):
6856         [1]. [6].
6857
6858         * sysdep.h:
6859         [1].
6860
6861         * sysdir.h:
6862         * sysdir.h (DIRENTRY_NONEMPTY):
6863         [1]. [6].
6864
6865         * sysdll.c (dll_init):
6866         * sysdll.h:
6867         [1].
6868
6869         * sysfile.h:
6870         [1]. [6]. [8].
6871         added text/binary defs.
6872
6873         * sysfloat.h:
6874         [1].
6875
6876         * sysproc.h:
6877         * sysproc.h (EDESTADDRREQ):
6878         * sysproc.h (poll_fds_for_input):
6879         [1]. [6].
6880
6881         * syspwd.h:
6882         [6].
6883
6884         * syssignal.h:
6885         [1].
6886
6887         * systime.h:
6888         [1]. [6].
6889
6890         * systty.h:
6891         [1].
6892
6893         * syswindows.h:
6894         [1].
6895         Always define WIN32_LEAN_AND_MEAN.
6896
6897         * unexcw.c (unexec):
6898         [5].
6899
6900         * unexec.c:
6901         * unexec.c (copy_text_and_data):
6902         * unexec.c (adjust_lnnoptrs):
6903         [1].
6904
6905         * unexnt.c:
6906         * unexnt.c (_start):
6907         [1].
6908
6909 2000-06-07  Ben Wing  <ben@xemacs.org>
6910
6911         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
6912         was used only as a model.  We've long since extracted any useful
6913         logic or code out of this. (I just did an exhaustive search.)
6914
6915         * s\msdos.h: Removed.
6916
6917         * s\windows95.h: Removed.
6918
6919 2000-06-10  Ben Wing  <ben@xemacs.org>
6920
6921         * s\cygwin32.h:
6922         [1]. [5].
6923         Don't use extern with fun defs.
6924
6925         * s\mingw32.h:
6926         [1]. [7].
6927         Remove nt\inc include.
6928         Remove getdisk, getdefdir. (The former is unused, the latter
6929         expanded in fileio.h.)
6930
6931         * s\windowsnt.h:
6932         * s\windowsnt.h (WIN32_NATIVE):
6933         * s\windowsnt.h (HAVE_STRCASECMP):
6934         [1]. [7].
6935         Add long comment about preprocessor changes.
6936         Remove getdisk, getdefdir. (The former is unused, the latter
6937         expanded in fileio.h.)
6938
6939 2000-06-10  Ben Wing  <ben@xemacs.org>
6940
6941         * m\arm.h:
6942         * m\delta.h:
6943         * m\intel386.h:
6944         * m\sequent.h:
6945         * m\template.h:
6946         * m\windowsnt.h:
6947         [1].
6948         Remove bogus/unused NO_SOCK_SIGIO.
6949
6950 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
6951
6952         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
6953         not an Emchar.
6954
6955 2000-06-04  Mike Sperber <mike@xemacs.org>
6956
6957         * casetab.c (set_case_table): For `set-standard-case-table',
6958         actually deposit the new case tables where the rest of XEmacs can
6959         see them.
6960
6961 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
6962
6963         * data.c (Faset): Don't cast XCHAR() to unsigned char.
6964
6965 2000-06-05  Ben Wing  <ben@xemacs.org>
6966
6967         * callproc.c (child_setup): Don't do close_load_descs() under
6968         MS Windows.  Put in a comment explaining why.
6969
6970 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
6971
6972         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
6973         Toolkit shell" which breaks `kill-compilation' on Windows NT
6974         native, retaining STDERR handling improvements.
6975
6976 2000-06-01  Andreas Jaeger  <aj@suse.de>
6977
6978         * s/s390.h: Support for S390, based on a patch by Martin
6979         Schwidefsky <schwidefsky@de.ibm.com>.
6980
6981 2000-05-30  Andy Piper  <andy@xemacs.org>
6982
6983         * window.c (allocate_window):
6984         (make_dummy_parent):
6985         (Fset_window_configuration): use new hashtable type.
6986
6987         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
6988         (struct image_instantiator_methods):
6989         (struct Lisp_Image_Instance): make instance geometry signed.
6990
6991         * glyphs.c (instantiate_image_instantiator):
6992         (image_instance_query_geometry):
6993         (image_instance_layout):
6994         (image_instance_layout):
6995         (query_string_geometry):
6996         (text_query_geometry):
6997         (image_instantiate):
6998         (image_instantiate):
6999         (cache_subwindow_instance_in_frame_maybe):
7000         (subwindow_query_geometry): make instance geometry signed.
7001
7002         * glyphs-widget.c (widget_query_geometry):
7003         (widget_layout):
7004         (button_query_geometry):
7005         (tree_view_query_geometry):
7006         (tab_control_query_geometry):
7007         (layout_query_geometry):
7008         (layout_layout):
7009         (native_layout_layout): make instance geometry signed.
7010
7011 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7012
7013         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7014         constant.
7015
7016         * general.c (syms_of_general): Add Qfull_assoc symbol.
7017
7018         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7019         correctly.
7020         (decode_weak_list_type): Decode full-assoc type.
7021         (encode_weak_list_type): Encode full-assoc type.
7022         (Fmake_weak_list): Update doc string.
7023
7024 2000-05-30  Andy Piper  <andy@xemacs.org>
7025
7026         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7027
7028         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7029         (decode_hash_table_weakness): ditto.
7030         (Fhash_table_weakness): ditto.
7031         (Fhash_table_type): ditto.
7032         (finish_marking_weak_hash_tables): ditto.
7033         (hash_table_weakness_validate): ditto.
7034         (syms_of_elhash): ditto.
7035
7036 2000-05-28  Martin Buchholz <martin@xemacs.org>
7037
7038         * XEmacs 21.2.34 is released.
7039
7040 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7041
7042         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7043         start cache.
7044         (updating_line_start_cache): Gone.
7045         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7046         generic code to force a minimum of 1 line laid out in the
7047         CMOTION_DISP case.
7048
7049 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7050
7051         * glyphs.c (instantiate_image_instantiator): Check for initialized
7052         height & width no longer special cases IMAGE_NOTHING.
7053         (nothing_instantiate): Set height and width of instance.
7054
7055 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7056
7057         * unexelf.c (unexec): Search for ".data" section.
7058         Initialize new_data2_offset from old_data_index.
7059         Remove redundant check for ElfW.
7060
7061 2000-05-23  Andy Piper  <andy@xemacs.org>
7062
7063         * glyphs.c (get_image_instantiator_governing_domain): allow more
7064         specific domains as the governing domain rather than expecting an
7065         exact match. This fixes problems with layouts.
7066
7067 2000-05-22  Andy Piper  <andy@xemacs.org>
7068
7069         * redisplay-output.c (compare_runes): check for non-images
7070
7071         * glyphs.c (set_glyph_dirty_p): ditto.
7072         (update_glyph_cachel_data): ditto.
7073
7074         * glyphs-widget.c (layout_post_instantiate): ditto.
7075         (layout_post_instantiate): ditto.
7076
7077         * event-msw.c (mswindows_wnd_proc): warning removal.
7078
7079 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7080
7081         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7082
7083         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7084
7085         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7086
7087         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7088         (mswindows_executable_type): mingw32 now has enough headers for
7089         this to work.
7090
7091 2000-05-20  Andy Piper  <andy@xemacs.org>
7092
7093         * console-msw.c (mswindows_output_last_error): ; -> ,
7094
7095 2000-05-12  Andy Piper  <andy@xemacs.org>
7096
7097         * console-msw.c (FROB): compare ints with ints.
7098
7099 2000-05-11  Andy Piper  <andy@xemacs.org>
7100
7101         * glyphs-x.c (x_finalize_image_instance): make minimal build
7102         happy.
7103
7104 2000-05-20  Ben Wing  <ben@xemacs.org>
7105
7106         * event-Xt.c:
7107         * event-Xt.c (vars_of_event_Xt):
7108         move modifier-keys-are-sticky to event-stream.c.
7109
7110         * event-msw.c:
7111         * event-msw.c (mswindows_enqueue_mouse_button_event):
7112         * event-msw.c (key_needs_default_processing_p):
7113         * event-msw.c (XEMSW_LCONTROL):
7114         * event-msw.c (mswindows_handle_sticky_modifiers):
7115         * event-msw.c (FROB):
7116         * event-msw.c (clear_sticky_modifiers):
7117         * event-msw.c (output_modifier_keyboard_state):
7118         * event-msw.c (output_alt_keyboard_state):
7119         * event-msw.c (mswindows_wnd_proc):
7120         * event-msw.c (mswindows_modifier_state):
7121         * event-msw.c (emacs_mswindows_handle_magic_event):
7122         implement sticky modifiers.
7123
7124         * event-stream.c:
7125         * event-stream.c (vars_of_event_stream):
7126         move modifier-keys-are-sticky here.
7127
7128         * lisp.h:
7129         add CHECK_FUNCTION.
7130
7131         * rangetab.c:
7132         implement map-range-table.
7133
7134
7135 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7136
7137         * redisplay-tty.c (reset_tty_modes):
7138         (tty_redisplay_shutdown): Adjust argument type to
7139         tty_frame_output_end.
7140
7141 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7142
7143         * eval.c (Fbacktrace): Don't output a line with only right
7144         parenthesis.
7145
7146 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7147
7148         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7149         (Fpq_reset_poll): Ditto.
7150
7151 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7152
7153         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7154
7155 2000-05-16  Ben Wing  <ben@xemacs.org>
7156
7157         * buffer.c:
7158         * buffer.c (dfc_convert_to/from_internal_format):
7159         * buffer.c (reinit_vars_of_buffer):
7160         Fix conversion functions to allow reentrancy.
7161
7162         * console-msw.c:
7163         * console-msw.c (mswindows_output_last_error):
7164         New fun, generally useful -- output a human-readable
7165         version of GetLastError() on the console.
7166
7167         * console-msw.h:
7168         * console-msw.h (struct mswindows_frame):
7169         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7170
7171         * console-stream.c (stream_output_begin):
7172         * console-stream.c (stream_output_end):
7173         * console-stream.c (stream_output_vertical_divider):
7174         * console-stream.c (stream_clear_region):
7175         * console-stream.c (stream_flash):
7176         * console-stream.c (console_type_create_stream):
7177         Delete blank stream methods, not needed.
7178
7179         * console.h (struct console_methods):
7180         Split begin/end methods into window and frame.
7181
7182         * event-msw.c:
7183         * event-msw.c (mswindows_handle_paint):
7184         * event-msw.c (output_alt_keyboard_state):
7185         * event-msw.c (mswindows_wnd_proc):
7186         * event-msw.c (vars_of_event_mswindows):
7187         Comment about problems with ignored-expose.
7188         Define mswindows-debug-events; not really implemented.
7189
7190         * frame-msw.c (mswindows_init_frame_1):
7191         random cleanups.
7192
7193         * glyphs-msw.c:
7194         * glyphs-msw.c (begin_defer_window_pos):
7195         * glyphs-msw.c (mswindows_unmap_subwindow):
7196         * glyphs-msw.c (mswindows_map_subwindow):
7197         * glyphs-msw.c (mswindows_resize_subwindow):
7198         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7199
7200         * glyphs.c (make_image_instance_1):
7201         Fix crash.
7202
7203         * gutter.c (Fredisplay_gutter_area):
7204         Use new begin/end methods.
7205
7206         * lisp.h (Dynarr_new2):
7207         New creation fun.
7208
7209         * redisplay-msw.c:
7210         * redisplay-msw.c (mswindows_frame_output_begin):
7211         * redisplay-msw.c (mswindows_frame_output_end):
7212         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7213         New begin/end methods -- handle DeferWindowPos.
7214
7215         * redisplay-output.c (redisplay_move_cursor):
7216         * redisplay-output.c (redraw_cursor_in_window):
7217         * redisplay-output.c (redisplay_update_line):
7218         * redisplay-output.c (redisplay_output_window):
7219         New begin/end methods.
7220
7221         * redisplay-tty.c:
7222         * redisplay-tty.c (tty_frame_output_begin):
7223         * redisplay-tty.c (tty_frame_output_end):
7224         * redisplay-tty.c (console_type_create_redisplay_tty):
7225         New begin/end methods.
7226
7227         * redisplay-x.c:
7228         * redisplay-x.c (x_window_output_begin):
7229         * redisplay-x.c (x_window_output_end):
7230         * redisplay-x.c (console_type_create_redisplay_x):
7231         New begin/end methods.
7232
7233         * redisplay.c (redisplay_frame):
7234         * redisplay.c (Fredisplay_echo_area):
7235         New begin/end methods.
7236         use MAYBE_DEVMETH for clear_frame; it may not exist.
7237
7238         * window.h (WINDOW_XFRAME):
7239         WINDOW_XFOO macros -- get locale and decode struct pointer.
7240
7241
7242 2000-05-12  Ben Wing  <ben@xemacs.org>
7243
7244         * emacs.c:
7245         * emacs.c (ensure_no_quitting_from_now_on):
7246         * emacs.c (fatal_error_signal):
7247         * emacs.c (mswindows_handle_hardware_exceptions):
7248         * emacs.c (main):
7249         * emacs.c (Fkill_emacs):
7250         * emacs.c (shut_down_emacs):
7251         * emacs.c (assert_failed):
7252         various improvements in fatal error handling.
7253
7254         * eval.c:
7255         move preparing_for_armageddon to emacs.c.
7256
7257         * lisp.h:
7258         declare fatal_error_in_progress.
7259
7260         * print.c:
7261         * print.c (std_handle_out_external):
7262         * print.c (std_handle_out_va):
7263         * print.c (stderr_out):
7264         * print.c (stdout_out):
7265         use console under mswin when no standard output.
7266         don't do code conversion during fatal error.
7267
7268         * scrollbar.c (Fscrollbar_page_up):
7269         * scrollbar.c (Fscrollbar_page_down):
7270         fix missing else.  reindent.
7271
7272 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7273
7274         Emergency fix.
7275
7276         * glyphs.h (GLYPH_CACHEL_DESCENT):
7277         (GLYPH_CACHEL_DESCENT):
7278         (GLYPH_CACHEL_DESCENT):
7279         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7280         used in case these are inline functions.
7281         Use more absurd values to error check.
7282
7283         include window.h for error check functions.
7284
7285 2000-05-11  Ben Wing  <ben@xemacs.org>
7286
7287         * cmdloop.c (Freally_early_error_handler):
7288         Display message box under windows; otherwise, message will disappear
7289         before it can be viewed.
7290
7291         * console-msw.c:
7292         * console-msw.c (Fmswindows_message_box):
7293         * console-msw.c (FROB):
7294         * console-msw.c (syms_of_console_mswindows):
7295         Define new fun `mswindows-message-box'.
7296         #### I will merge this into `popup-dialog-box'; just give me
7297         a bit of time.
7298
7299         * general.c:
7300         * general.c (syms_of_general):
7301         Some new symbols used in `mswindows-message-box'.
7302
7303         * glyphs.c:
7304         * glyphs.c (Fset_image_instance_property):
7305         put warning in this fun.
7306
7307         * glyphs.h:
7308         * glyphs.h (GLYPH_CACHEL_WIDTH):
7309         * glyphs.h (GLYPH_CACHEL_ASCENT):
7310         * glyphs.h (GLYPH_CACHEL):
7311         * glyphs.h (GLYPH_CACHEL_GLYPH):
7312         define error-checking versions to try to catch a bug i've seen --
7313         redisplay gets in an infinite loop because the glyph width of the
7314         continuation glyph is 65535.
7315
7316         * lisp.h:
7317         Extern message-box stuff.
7318
7319         * window.c (allocate_window):
7320         * window.c (make_dummy_parent):
7321         * window.c (Fset_window_configuration):
7322         Use EQUAL not EQ for subwindow caches to make them work a bit
7323         better. (Something is still very broken.)
7324
7325
7326 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7327
7328         * glyphs.c (image_instantiate): Suppress gcc warnings.
7329         (Fmake_image_instance): Fix doc string.
7330         * specifier.c (Fmake_specifier): Ditto.
7331
7332 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7333
7334         * paths.h.in (PATH_LOCK): Removed.
7335         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7336         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7337
7338 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7339
7340         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7341         Document (featurep '(and xemacs 21.02)).
7342
7343 2000-05-09  Ben Wing  <ben@xemacs.org>
7344
7345         * buffer.c (complex_vars_of_buffer):
7346         update modeline-format doc.
7347
7348         * device.h:
7349         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7350
7351         * emacs.c:
7352         timeline of all released versions of Emacs, for use in creating
7353         authorship comments and in synching up.
7354
7355         * glyphs-widget.c (image_instantiator_buttons):
7356         * glyphs-widget.c (image_instantiator_edit_fields):
7357         * glyphs-widget.c (image_instantiator_combo_box):
7358         * glyphs-widget.c (image_instantiator_scrollbar):
7359         * glyphs-widget.c (image_instantiator_progress_guage):
7360         * glyphs-widget.c (image_instantiator_tree_view):
7361         * glyphs-widget.c (image_instantiator_tab_control):
7362         * glyphs-widget.c (image_instantiator_labels):
7363         * glyphs-widget.c (image_instantiator_layout):
7364         * glyphs-widget.c (image_instantiator_native_layout):
7365         rename decode_domain method to governing_domain.
7366
7367         * glyphs.c:
7368         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7369         * glyphs.c (add_entry_to_device_ii_format_list):
7370         make sure we don't put an entry more than once into the list.
7371         * glyphs.c (check_instance_cache_mapper):
7372         *************************************************************
7373         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7374         HAVE BEEN GETTING.
7375         *************************************************************
7376         * glyphs.c (get_image_instantiator_governing_domain):
7377         clean up, expand on new concept of governing domain.
7378         * glyphs.c (instantiate_image_instantiator):
7379         * glyphs.c (allocate_image_instance):
7380         use governing_domain instead of cache_domain in naming.
7381         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7382         * glyphs.c (make_image_instance_1):
7383         * glyphs.c (Fmake_image_instance):
7384         allow for any domain (not just device), and process the
7385         governing domain correctly.  very big doc fix.
7386         * glyphs.c (Fimage_instance_domain):
7387         new primitive, to retrieve the governing domain of an image instance.
7388         * glyphs.c (image_instantiate):
7389         use new governing_domain stuff.  this fixes a crash you could get
7390         by instantiating certain widget glyphs in frame locales. (should
7391         signal an error instead of crashing.)
7392         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7393         * glyphs.c (Fglyphp): clean up doc.
7394         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7395         * glyphs.c (syms_of_glyphs):
7396         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7397         * glyphs.c (image_instantiator_format_create): add some comments about
7398         bogus code.
7399         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7400         for current-display-table. (Apparently Hrjove implemented in 1998 a
7401         design I wrote up in 1996, but didn't update the doc string.)
7402
7403         * glyphs.h: clean up a doc string.
7404         * glyphs.h (governing_domain):
7405         * glyphs.h (struct image_instantiator_methods):
7406         changes for governing_domain stuff.
7407
7408         * gutter.c:
7409         * gutter.c (Fgutter_specifier_p):
7410         * gutter.c (Fgutter_size_specifier_p):
7411         * gutter.c (Fgutter_visible_specifier_p):
7412         * objects.c:
7413         * objects.c (Fcolor_specifier_p):
7414         * objects.c (Ffont_specifier_p):
7415         * objects.c (Fface_boolean_specifier_p):
7416         doc strings moved to make-*-specifier.
7417
7418         * redisplay.c (add_disp_table_entry_runes_1):
7419         * redisplay.c (generate_fstring_runes):
7420         * redisplay.c (screen):
7421         add random comments and doc strings.
7422
7423         * specifier.c:
7424         * specifier.c (Fmake_specifier):
7425         major overhaul of this doc string.
7426
7427         * specifier.c (Fvalid_specifier_domain_p):
7428         comment about the bogosity of image instances being domains.
7429         * specifier.c (decode_domain):
7430         now non-static, used in glyphs.c.
7431         * specifier.c (specifier_instance):
7432         comment about the bogosity of image instances being domains.
7433         * specifier.c (Fgeneric_specifier_p):
7434         move doc string to make-generic-specifier.
7435         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7436         rebackslashify.
7437
7438         * specifier.h:
7439         * specifier.h (DOMAIN_FRAME):
7440         * specifier.h (DOMAIN_LIVE_P):
7441         * specifier.h (DOMAIN_XDEVICE):
7442         rebackslashify.
7443         add comments about problems with these macros.
7444         prototype for decode_domain.
7445
7446         * toolbar.c:
7447         * toolbar.c (Ftoolbar_specifier_p):
7448         move doc string to `make-toolbar-specifier'.
7449
7450         * window.c (window_unmap_subwindows_cache_mapper):
7451         *************************************************************
7452         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7453         HAVE BEEN GETTING.
7454         *************************************************************
7455
7456 2000-05-09  Andy Piper  <andy@xemacs.org>
7457
7458         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7459
7460         * window.c (Fset_window_configuration): reset the frame subwindow
7461         cache and re-initialize the window subwindow caches.
7462
7463         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7464
7465 2000-05-09  Ben Wing  <ben@xemacs.org>
7466
7467         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7468         DWORD.
7469
7470 2000-04-26  Mike Woolley  <mike@bulsara.com>
7471
7472         * ntheap.c: Changed recreate_heap to limit the amount reserved
7473         for the heap to that which is actually available. Also now
7474         displays a message box (with some dignostics) in the event that
7475         it still can't start.
7476
7477 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
7478
7479         * callproc.c (Fold_call_process_internal): GCPRO path
7480
7481 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
7482
7483         Patch by Bill Perry.
7484
7485         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7486         back data instead of #ifdef.
7487         (Fscrollbar_page_down): ditto.
7488
7489 2000-05-07  Ben Wing  <ben@xemacs.org>
7490
7491         * buffer.h:
7492         Kludge for defining Qmswindows_tstr.
7493
7494         * nt.c:
7495         * nt.c (open_input_file):
7496         * nt.c (open_output_file):
7497         * nt.c (rva_to_section):
7498         * nt.c (mswindows_executable_type):
7499         Move all memory-mapped-file routines here (some were in unexnt.c,
7500         which is bad because they are used by process-nt.c, and unexnt
7501         won't be around when portable dumping).  Synched the above routines
7502         with FSF 20.6.
7503
7504         * nt.h:
7505         Removed ifdef'd out bogus code.
7506         Fixed some prototypes.
7507
7508         * nt.h (file_data):
7509         * nt.h (OFFSET_TO_RVA):
7510         * nt.h (RVA_TO_OFFSET):
7511         * nt.h (RVA_TO_PTR):
7512         Moved the memory-mapped-file structures, macros and prototypes
7513         here, to parallel nt.c.  ntheap.h should really be removed
7514         entirely, and it's a non-portable-dumper specific file.
7515
7516         * ntheap.h (round_to_next):
7517         Moved the memory-mapped-file structures, macros and prototypes
7518         to nt.h.
7519
7520         * ntproc.c (compare_env):
7521         Moved rva_to_section and mswindows_executable_type to nt.c.
7522         Moved compare_env to process-nt.c.
7523         ntproc.c will die, one day.
7524
7525         * ntproc.c (sys_spawnve):
7526         Account for win32_ -> mswindows_.
7527
7528         * process-nt.c:
7529         * process-nt.c (struct nt_process_data):
7530         * process-nt.c (ensure_console_window_exists):
7531         * process-nt.c (compare_env):
7532         * process-nt.c (nt_create_process):
7533         * process-nt.c (nt_kill_process_by_pid):
7534         * process-nt.c (syms_of_process_nt):
7535         * process-nt.c (vars_of_process_nt):
7536         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
7537         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
7538         changes).  Eliminate our old `nt-quote-process-args' mechanism.
7539         Synch up nt_create_process with FSF 20.6 sys_spawnve.
7540         Move compare_env here from ntproc.c.
7541
7542         * process.c (Fprocess_send_region):
7543         Takes an optional fourth argument, BUFFER, which should fix some
7544         problems with call-process.
7545
7546         * syscommctrl.h:
7547         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
7548
7549         * syswindows.h:
7550         Move ICC_BAR_CLASSES to syscommctrl.h.
7551         Add preliminary macros for MSWindows/Mule.  More to come.
7552
7553         * unexnt.c:
7554         * unexnt.c (unexec):
7555         open_output_file moved to nt.c.
7556
7557
7558 2000-05-05  Andy Piper  <andy@xemacs.org>
7559
7560         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
7561         instance from the frame cache also since GC may catch up too late
7562         to make frame deletion sane.
7563
7564 2000-05-04  Andy Piper  <andy@xemacs.org>
7565
7566         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
7567         (x_finalize_image_instance): ungcpro on deletion.
7568
7569         * glyphs.c (image_instantiator_format_create): give pointers a
7570         query geometry method so that the geometry is at least set.
7571
7572         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
7573         initialize layouts if using widgets.
7574
7575 2000-05-03  Andy Piper  <andy@xemacs.org>
7576
7577         * nt.c: remove bogus reference to sysmmsystem.h
7578
7579         * gui-x.c (popup_selection_callback): fix no selection abort.
7580
7581 2000-05-02  Andy Piper  <andy@xemacs.org>
7582
7583         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
7584         (mswindows_widget_instantiate): ditto.
7585
7586         * glyphs-widget.c (initialize_widget_image_instance): initialize
7587         children correctly.
7588         (widget_instantiate): cope with children and items in the same
7589         instance.
7590
7591         * glyphs.c (mark_image_instance): cope with children as a first
7592         class member.
7593         (image_instance_equal): ditto.
7594         (image_instance_hash): ditto.
7595         (image_instance_changed): ditto.
7596
7597 2000-04-30  Andy Piper  <andy@xemacs.org>
7598
7599         * glyphs.c (subwindow_query_geometry): new function. Return some
7600         defaults.
7601         (subwindow_instantiate): don't assign dimensions if none have been
7602         given.
7603         (image_instantiator_format_create): add subwindow_query_geometry.
7604         (print_image_instance): cope with layouts as widgets.
7605
7606 2000-04-29  Andy Piper  <andy@xemacs.org>
7607
7608         * frame.c (delete_frame_internal): call
7609         free_frame_subwindow_instance_cache so that all subwindows are
7610         finalized before their parent.
7611         (mark_frame): remove subwindow_cachels.
7612         (Fmake_frame): remove subwindow_cachel manipulation.
7613         (allocate_frame_core): subwindow_instance_cache is a weak list.
7614         (delete_frame_internal): set subwindow_instance_cache to nil.
7615
7616         * glyphs-msw.c (mswindows_finalize_image_instance): make double
7617         finalization safe.
7618         (mswindows_finalize_image_instance): use the device
7619         not the domain as the domain may have died already.
7620
7621         * glyphs-x.c (x_finalize_image_instance): ditto.
7622         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
7623         HEIGHT.
7624
7625         * redisplay-output.c (redisplay_unmap_subwindows): update for
7626         subwindow instance cache as a weak list.
7627         (redisplay_unmap_subwindows_maybe): ditto.
7628         (redisplay_unmap_subwindows_except_us): ditto.
7629
7630         * glyphs.c (unmap_subwindow): error checking will check the domain
7631         so don't deal with it here. Don't use cachels anymore.
7632         (map_subwindow): ditto.
7633         (update_subwindow_cachel_data): remove old accessor names.
7634         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
7635         (Fresize_subwindow): don't update cachel.
7636         (mark_subwindow_cachels):
7637         (update_subwindow_cachel_data):
7638         (add_subwindow_cachel):
7639         (get_subwindow_cachel_index):
7640         (update_subwindow_cachel):
7641         (reset_subwindow_cachels):
7642         (mark_subwindow_cachels_as_not_updated): deleted.
7643         (cache_subwindow_instance_in_frame_maybe): new function. Add a
7644         subwindow instance to the frame cache.
7645         (find_matching_subwindow): update for subwindow instance cache as
7646         a weak list.
7647         (update_widget_instances): ditto.
7648         (image_instance_type_to_mask):inlined.
7649         (free_frame_subwindow_instance_cache): new function. finalize all
7650         subwindows that are instantiated.
7651
7652         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
7653         of cachel information.
7654         (IMAGE_INSTANCE_DISPLAY_X):
7655         (IMAGE_INSTANCE_DISPLAY_Y):
7656         (IMAGE_INSTANCE_DISPLAY_WIDTH):
7657         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
7658         (XIMAGE_INSTANCE_DISPLAY_X):
7659         (XIMAGE_INSTANCE_DISPLAY_Y):
7660         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
7661         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
7662         remove subwindow_cachel structure and function references.
7663         (image_instance_type_to_mask): inline from glyphs.c
7664
7665         * redisplay.c (redisplay_frame): remove subwindow_cachel
7666         references.
7667
7668         * frame.h (struct frame): remove subwindow_cachels.
7669         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
7670
7671         * frameslots.h: add subwindow_instance_cache.
7672
7673         * window.c (replace_window): check subwindow cache of replacement.
7674         (window_unmap_subwindows_cache_mapper):
7675         (window_unmap_subwindows): new functions. Unmap all subwindows
7676         cached on this window.
7677         (mark_window_as_deleted): unmap all subwindows.
7678
7679 2000-04-27  Andy Piper  <andy@xemacs.org>
7680
7681         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
7682
7683         * glyphs-widget.c (widget_layout): return something.
7684         (layout_layout): return something. Fail if not initialized.
7685         (layout_query_geometry): ditto.
7686         (image_instantiator_native_layout): new function. Initialized the
7687         native layout type.
7688         (widget_instantiate): don't do layout stuff here.
7689
7690         * glyphs.c (instantiate_image_instantiator): reorded calling or
7691         instantiate and post_instantiate with layout in between.
7692         (image_instance_layout): be more selective about deciding whether
7693         the layout has been done or not.
7694
7695         * glyphs.h (struct image_instantiator_methods): return a value
7696         from layout_method.
7697
7698 2000-04-26  Andy Piper  <andy@xemacs.org>
7699
7700         * glyphs.c (allocate_image_instance): make initial width and
7701         height unspecified. Set initialized to 0.
7702
7703         * syscommctrl.h new file. Encapsulates commctrl.h.
7704
7705         * syswindows.h new file. Encapsulates windows.h.
7706
7707         * ntplay.c: use new syswindows.h and syscommctrl.h header.
7708         * nt.c: ditto.
7709         * console-msw.h: ditto.
7710
7711         * redisplay-tty.c (tty_output_display_block): remove layout references.
7712
7713         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
7714         window handle rather than just the frame.
7715
7716         * glyphs.c (mark_image_instance): remove layout references.
7717         (print_image_instance): ditto.
7718         (image_instance_equal): ditto.
7719         (image_instance_hash): ditto.
7720         (decode_image_instance_type): ditto.
7721         (encode_image_instance_type): ditto.
7722         (image_instantiate): ditto.
7723         (allocate_glyph): ditto.
7724         (Fimage_instance_height): ditto.
7725         (Fimage_instance_width): ditto.
7726         (update_subwindow): ditto.
7727
7728         * redisplay-x.c (x_output_display_block): recode for layouts as
7729         widgets.
7730
7731         * redisplay-output.c (redisplay_output_layout): recode for layouts
7732         as widgets.
7733         (compare_runes): remove layout references.
7734
7735         * redisplay-msw.c (mswindows_output_display_block): recode for
7736         layouts as widgets.
7737
7738         * glyphs-widget.c (image_instantiator_layout): remove
7739         layout_possible_dest_types.
7740         (layout_possible_dest_types): deleted.
7741
7742         * glyphs.h (image_instance_type): remove layout references.
7743         (struct Lisp_Image_Instance): ditto. Add initialized flag.
7744         (IMAGE_INSTANCE_INITIALIZED): new accessor.
7745         (XIMAGE_INSTANCE_INITIALIZED): ditto.
7746
7747 2000-04-25  Andy Piper  <andy@xemacs.org>
7748
7749         * glyphs-widget.c (image_instantiator_buttons):
7750         (image_instantiator_edit_fields):
7751         (image_instantiator_combo_box):
7752         (image_instantiator_scrollbar):
7753         (image_instantiator_progress_guage):
7754         (image_instantiator_tree_view):
7755         (image_instantiator_tab_control):
7756         (image_instantiator_labels):
7757         (image_instantiator_layout): call default post_instantiate method.
7758         (widget_post_instantiate): new function. Simply lays out the
7759         widgets.
7760
7761         * glyphs.h (struct image_instantiator_methods): add
7762         post_instantiate method.
7763
7764         * glyphs.c (instantiate_image_instantiator): add post_instantiate
7765         method calls.
7766
7767 2000-04-23  Andy Piper  <andy@xemacs.org>
7768
7769         * glyphs.h (struct image_instantiator_methods): add
7770         decode_domain_method.
7771         (struct Lisp_Image_Instance): remove subwindow frame - it can be
7772         derived from the domain.
7773         (IMAGE_INSTANCE_FRAME): new accessor.
7774         (XIMAGE_INSTANCE_FRAME): ditto.
7775
7776         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
7777         instead of _SUBWINDOW_FRAME.
7778         (finalize_image_instance): ditto.
7779         (Fimage_instance_foreground): ditto.
7780         (Fimage_instance_background): ditto.
7781         (image_instantiate): ditto.
7782         (update_subwindow_cachel): ditto.
7783         (update_subwindow): ditto.
7784         (unmap_subwindow): ditto.
7785         (map_subwindow): ditto
7786         (subwindow_instantiate): ditto.
7787         * glyphs-msw.c (mswindows_update_widget): ditto.
7788         (mswindows_progress_gauge_instantiate): ditto.
7789         (mswindows_tab_control_update): ditto.
7790         * glyphs-x.c (x_update_widget): ditto.
7791         (x_widget_instantiate): ditto.
7792         (x_tab_control_instantiate): ditto.
7793         (x_tab_control_update): ditto.
7794         * event-msw.c (mswindows_wnd_proc): ditto
7795
7796         * glyphs-widget.c (image_instantiator_layout): use
7797         subwindow_decode_domain.
7798         (image_instantiator_buttons): ditto.
7799         (image_instantiator_edit_fields): ditto.
7800         (image_instantiator_combo_box): ditto.
7801         (image_instantiator_scrollbar): ditto.
7802         (image_instantiator_progress_guage): ditto.
7803         (image_instantiator_tree_view): ditto.
7804         (image_instantiator_tab_control): ditto.
7805         (image_instantiator_labels): ditto.
7806         (image_instantiator_layout): ditto.
7807
7808         * glyphs.c: add instance error checking to many functions.
7809         (instantiate_image_instantiator): decode device from cache_domain.
7810         (image_instantiate): partially rewrite by using
7811         decode_image_instantiator_domain to determine what domain the
7812         instance needs to be cached in.
7813         (decode_image_instantiator_domain): new function. Determine what
7814         domain the image needs to be cached in.
7815         (check_window_subwindow_cache): new error checking function.
7816         (check_instance_cache_mapper): ditto.
7817         (check_image_instance_structure): ditto.
7818         (subwindow_decode_domain): new function. Encodes a window as a
7819         subwindow's cache domain.
7820         (image_instantiator_format_create): use it for text and
7821         subwindows.
7822
7823 2000-04-21  Andy Piper  <andy@xemacs.org>
7824
7825         * glyphs.c (image_instance_device): new function.
7826         (image_instance_frame): new function.
7827         (image_instance_window): new function.
7828         (image_instance_live_p): new function.
7829
7830         * window.c (mark_window_as_deleted): reset the subwindow_instance_
7831         cache to nil.
7832
7833         * glyphs.h (struct Lisp_Image_Instance): device->domain.
7834         (IMAGE_INSTANCE_DOMAIN): new accessor.
7835         (XIMAGE_INSTANCE_DOMAIN): ditto.
7836
7837         * glyphs-x.c (x_finalize_image_instance): device->domain.
7838
7839         * glyphs-msw.c (init_image_instance_geometry): device->domain.
7840         (mswindows_finalize_image_instance): ditto.
7841
7842         * glyphs-eimage.c (jpeg_instantiate): device->domain.
7843         (gif_instantiate): ditto.
7844         (png_instantiate): ditto.
7845         (tiff_instantiate): ditto.
7846
7847         * glyphs.c (instantiate_image_instantiator): use domain rather
7848         than device.
7849         (mark_image_instance): device -> domain.
7850         (print_image_instance): ditto.
7851         (finalize_image_instance): ditto.
7852         (image_instance_equal): ditto.
7853         (allocate_image_instance): ditto.
7854         (Fcolorize_image_instance): ditto.
7855         (query_string_geometry): ditto.
7856         (image_instantiate): ditto
7857         (query_string_font): ditto.
7858         (image_instantiate): ditto.
7859         (update_subwindow): ditto.
7860         (unmap_subwindow): ditto.
7861         (map_subwindow): ditto.
7862         (subwindow_instantiate): ditto.
7863
7864         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
7865         (DOMAIN_FRAME): ditto.
7866         (DOMAIN_WINDOW): ditto.
7867         (DOMAIN_LIVE_P): ditto.
7868         (XDOMAIN_DEVICE): ditto.
7869         (XDOMAIN_FRAME): ditto.
7870         (XDOMAIN_WINDOW): ditto.
7871
7872         * specifier.c (Fvalid_specifier_domain_p): add image instances as
7873         a valid specifier domain.
7874
7875 2000-04-19  Andy Piper  <andy@xemacs.org>
7876
7877         * glyphs-widget.c (syms_of_glyphs_widget): remove
7878         widget-callback-current-channel.
7879         (vars_of_glyphs_widget): ditto.
7880         * glyphs.h: ditto
7881
7882         * gui.c (get_gui_callback): revert to previous behaviour.
7883
7884 2000-04-18  Andy Piper  <andy@xemacs.org>
7885
7886         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
7887         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
7888         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
7889
7890         * glyphs.c (image_instance_equal): add margin_width.
7891         (image_instance_hash): ditto.
7892
7893         * glyphs-widget.c (widget_instantiate): deal with margin-width.
7894         (layout_query_geometry): ditto.
7895         (layout_layout): ditto.
7896         (syms_of_glyphs_widget): add margin-width.
7897         (image_instantiator_layout): allow margin-width.
7898
7899         * glyphs.c (update_widget_instances): make a normal function.
7900         (syms_of_glyphs): remove Qupdate_widget_instances.
7901         * glyphs.h: ditto.
7902
7903         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
7904         so that we don't corrupt ideas about the last event or
7905         command. Remove widget-callback-current-channel fiddling.
7906         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
7907
7908 2000-05-01  Martin Buchholz <martin@xemacs.org>
7909
7910         * XEmacs 21.2.33 is released.
7911
7912 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
7913
7914         * make-src-depend: Allow dots in header file name.
7915
7916 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
7917
7918         * mule-charset.h (struct charset_lookup): Add
7919         next_allocated_1_byte_leading_byte and
7920         next_allocated_2_byte_leading_byte.
7921         * mule-charset.c: Move above two variables so that those values
7922         will be dumped.
7923
7924 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
7925
7926         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
7927         when string length is zero.
7928         (find_charsets_in_emchar_string): Ditto.
7929
7930 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
7931
7932         * lisp.h: extern Qdialog and Qmenubar.
7933
7934         * gui-x.c: added events.h.
7935                 also fixed typo which made the file uncompilable.
7936
7937         * general.c: Added Qmenubar and Qdialog
7938
7939 2000-04-28  Ben Wing  <ben@xemacs.org>
7940
7941         * frame-msw.c (mswindows_init_frame_1):
7942         * frame-msw.c (mswindows_mark_frame):
7943         * event-msw.c (mswindows_enqueue_dispatch_event):
7944         * console-msw.h:
7945         * console-msw.h (struct mswindows_frame):
7946         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
7947         there are now three hash tables for callbacks.
7948         mswindows_enqueue_dispatch_event is no longer static.
7949
7950         * dialog-x.c (maybe_run_dbox_text_callback):
7951         * dialog-x.c (dbox_descriptor_to_widget_value):
7952         switch to new cons3 form for callbacks.
7953
7954         * glyphs-msw.c (mswindows_register_gui_item):
7955         * glyphs-msw.c (mswindows_widget_instantiate):
7956         * glyphs-msw.c (add_tree_item):
7957         * glyphs-msw.c (add_tab_item):
7958         new image instance parameter, so it can be passed to callback-ex.
7959         respect :callback-ex as well as :callback.
7960
7961         * glyphs-widget.c (VALID_GUI_KEYWORDS):
7962         add :callback-ex.
7963
7964         * glyphs.c (print_image_instance):
7965         prettify, e.g. now prints widget type.
7966
7967         * gui-x.h:
7968         certain funs have new image instance parameter.
7969
7970         * gui.c:
7971         * gui.c (get_gui_callback):
7972         * gui.c (gui_item_add_keyval_pair):
7973         * gui.c (gui_item_init):
7974         * gui.c (gui_add_item_keywords_to_plist):
7975         * gui.c (mark_gui_item):
7976         * gui.c (gui_item_hash):
7977         * gui.c (gui_item_equal):
7978         * gui.c (copy_gui_item):
7979         * gui.c (syms_of_gui):
7980         recognize callback-ex in a number of places.
7981         also, fix the annoying "can't get out of yes-no dialog" bug.
7982
7983         * gui.h:
7984         * gui.h (struct Lisp_Gui_Item):
7985         recognize callback-ex in a number of places.
7986
7987         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7988         new parameter in button_item_to_widget_value.
7989
7990         * glyphs-x.c (x_update_widget):
7991         * glyphs-x.c (x_button_instantiate):
7992         * glyphs-x.c (x_button_update):
7993         * glyphs-x.c (x_progress_gauge_instantiate):
7994         * glyphs-x.c (x_edit_field_instantiate):
7995         * glyphs-x.c (x_combo_box_instantiate):
7996         * glyphs-x.c (x_tab_control_instantiate):
7997         * glyphs-x.c (x_label_instantiate):
7998         new image instance parameter in various places.
7999
8000         * event-Xt.c:
8001         * event-Xt.c (enqueue_Xt_dispatch_event):
8002         this fun gets exported.
8003
8004         * gui-msw.c:
8005         * gui-msw.c (mswindows_handle_gui_wm_command):
8006         handle both :callback and :callback-ex, and generate our own
8007         event because it's one of the callback-ex arguments.
8008
8009         * gui-x.c:
8010         * gui-x.c (popup_selection_callback):
8011         handle both :callback and :callback-ex, and generate our own
8012         event because it's one of the callback-ex arguments.
8013         * gui-x.c (button_item_to_widget_value):
8014         * gui-x.c (gui_items_to_widget_values_1):
8015         * gui-x.c (gui_item_children_to_widget_values):
8016         * gui-x.c (gui_items_to_widget_values):
8017         new image instance parameter in various places.
8018
8019         * fns.c (Freplace_list):
8020         fix small typo in doc string.
8021
8022         * lisp.h:
8023         declare enqueue_Xt_dispatch_event.
8024
8025 2000-04-28  Ben Wing  <ben@xemacs.org>
8026
8027         * buffer.c:
8028         * buffer.c (Frecord_buffer):
8029         * buffer.c (syms_of_buffer):
8030         delete record-buffer-hook.
8031
8032         * fns.c:
8033         * fns.c (Freplace_list):
8034         * fns.c (syms_of_fns):
8035         new primitive replace-list.
8036
8037         * frameslots.h:
8038         slot for old buffer-alist.
8039
8040         * lisp.h:
8041         exfun replace-list.
8042
8043         * redisplay.c:
8044         * redisplay.c (redisplay_frame):
8045         * redisplay.c (syms_of_redisplay):
8046         * redisplay.c (vars_of_redisplay):
8047         new hook buffer-list-changed-hook.
8048         call it.
8049
8050 2000-04-27  Ben Wing  <ben@xemacs.org>
8051
8052         * extents.h: extern in_modeline_generation.
8053
8054         * redisplay.c (generate_formatted_string_db): set
8055         in_modeline_generation.
8056
8057         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8058         flags if in modeline generation.  otherwise frame-modified-tick
8059         is ticked far too often.
8060         Declare in_modeline_generation.
8061
8062 2000-04-26  Ben Wing  <ben@xemacs.org>
8063
8064         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8065         option.
8066         (vars_of_emacs): add quick-build as an error-checking option.
8067         A bit kludgy, but there doesn't seem much point in creating
8068         a real var for this.
8069
8070         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8071
8072 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8073
8074         * redisplay.h (struct display_line): Add a new variable,
8075         line_continuation.
8076
8077         * redisplay.c (create_text_block): Set dl->line_continuation if
8078         the line continues.
8079         (create_string_text_block): Ditto.
8080         (regenerate_window_incrementally): Use line_continuation instead
8081         of searching continuation glyph.
8082         (add_margin_runes): Call add_glyph_rune.
8083         (add_glyph_rune): Handle margin glyph.
8084
8085 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8086
8087         * filelock.c (fill_in_lock_file_name):
8088         ANSIfy.
8089         Check for IS_ANY_SEP instead of '/'.
8090         (lock_file_1):
8091         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8092         Never check errno without first seeing that system call failed.
8093         (unlock_file): Add GCPRO.
8094         (Flock_buffer): Fix docstring.
8095         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8096
8097 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8098
8099         * sysdep.c (get_pty_max_bytes):
8100         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8101         strings longer than 252 bytes.
8102
8103         * md5.c: Unconditionally include ANSI header <limits.h>
8104
8105         * glyphs-x.c (convert_EImage_to_XImage):
8106         * lisp-union.h (union Lisp_Object):
8107         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8108
8109 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8110
8111         * filelock.c (current_lock_owner): Remove unused variable o, p.
8112
8113 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8114
8115         * callint.c: Remove multiply defined symbol Qlet
8116         (syms_of_callint): ditto.
8117
8118 2000-04-14  Andy Piper  <andy@xemacs.org>
8119
8120         * general.c (syms_of_general): add last-command, this-command, let
8121         and funcall.
8122
8123         * lisp.h: declare various symbols.
8124
8125         * glyphs.h: declare Qwidget_callback_current_channel;
8126
8127         * glyphs-widget.c (syms_of_glyphs_widget): add
8128         Qgui_callback_current_channel.
8129         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8130
8131         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8132         widget-callback-current-channel when invoking the interactive
8133         arg. Also bind last-command and next-command when invoking the
8134         widget updates.
8135         * gui-x.c (popup_selection_callback): ditto.
8136
8137         * gui.c (get_gui_callback): massage args so that we are always
8138         calling eval. This allows us to add our own variable bindings
8139         outside.
8140
8141         * glyphs-x.c (x_button_instantiate): use
8142         gui_items_to_widget_values since this is GC safe.
8143         (x_progress_gauge_instantiate): ditto.
8144         (x_edit_field_instantiate): ditto.
8145         (x_label_instantiate): ditto.
8146
8147         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8148         (emacs_Xt_event_widget_focus_out): new function
8149         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8150         focus.
8151         (emacs_Xt_event_add_widget_actions): new function. add focus
8152         functions as actions.
8153         (init_event_Xt_late): use it.
8154
8155 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8156
8157         * event-stream.c (Fdispatch_event): Doc fix.
8158
8159 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8160
8161         * postgresql.c: Remove all references to PQsetenv*.
8162
8163         * postgresql.h: Remove references to PGsetenvHandler object.
8164         * lrecord.h (lrecord_type): Ditto.
8165
8166 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8167
8168         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8169         real_heigh and real_width members, and accessor macros for these.
8170
8171         * glyphs-msw.c (init_image_instance_geometry): New function.
8172         (init_image_instance_from_dibitmap): Use it.
8173         (mswindows_resource_instantiate): Use it.
8174         (init_image_instance_from_xbm_inline): Use it.
8175         (mswindows_initialize_image_instance_mask): Use real bitmap
8176         geometry.
8177         (mswindows_create_resized_bitmap): Ditto.
8178         (mswindows_create_resized_mask): Ditto.
8179
8180         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8181         and bitmap to their surface size.
8182
8183 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8184
8185         * process-unix.c (unix_send_process): Guard against process MIA
8186         after Faccept_process_output.
8187
8188 2000-04-11  Ben Wing  <ben@xemacs.org>
8189
8190         * eval.c (unbind_to_hairy): fix brokenness introduced by
8191         nanosecond speed improvements.
8192
8193 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8194
8195         * sunplay.c (init_device): To play sounds correctly, the device
8196         apparently needs to be initialized at least once by XEmacs.  Make
8197         it so.
8198
8199 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8200
8201         * redisplay.c (add_margin_runes): Add text image glyph
8202           handling.
8203
8204 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8205
8206         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8207         gcc is newer than 2.5.
8208
8209 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8210
8211         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8212
8213         * fns.c (size_bit_vector):
8214         * alloc.c (size_vector):
8215         (make_vector_internal):
8216         (make_bit_vector_internal):
8217         (sweep_bit_vectors_1):
8218         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8219
8220 2000-04-06  Andy Piper  <andy@xemacs.org>
8221
8222         * gmalloc.c (malloc): undo previous change.
8223         (malloc): ditto.
8224         (free): ditto.
8225         (realloc): ditto.
8226
8227 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8228
8229         * line-number.c (buffer_line_number): Revert to former version.
8230
8231 2000-04-06  Andy Piper  <andy@xemacs.org>
8232
8233         * gmalloc.c (malloc): add error checking.
8234         (malloc): ditto.
8235         (free): ditto.
8236         (realloc): ditto.
8237
8238         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8239         button_item_to_widget_value arg.
8240
8241         * glyphs-x.c (x_button_instantiate): add extra
8242         button_item_to_widget_value arg.
8243         (x_progress_gauge_instantiate): ditto.
8244         (x_edit_field_instantiate): ditto.
8245         (x_label_instantiate): ditto.
8246
8247         * gui-x.c (gui_items_to_widget_values_1): add extra
8248         button_item_to_widget_value arg.
8249         (button_item_to_widget_value): add extra menu_item_p arg.
8250
8251         * gui-x.h: change signature of button_item_to_widget_value.
8252
8253         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8254         button_item_to_widget_value arg.
8255
8256 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8257
8258         * buffer.h (struct buffer): auto_save_modified should be long.
8259
8260 2000-04-05  Andy Piper  <andy@xemacs.org>
8261
8262         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8263         type.
8264         (button_query_geometry): give a little more room so that athena
8265         buttons fit.
8266
8267 2000-04-05  Andy Piper  <andy@xemacs.org>
8268
8269         * faces.c (complex_vars_of_faces): The widget face should inherit
8270         the font of the gui-element face.
8271
8272 2000-04-04  Andy Piper  <andy@xemacs.org>
8273
8274         * glyphs-x.c (x_button_update): new function. unconditionally
8275         update a button's state when the instance is dirty.
8276         (image_instantiator_format_create_glyphs_x): add x_button_update.
8277         (x_widget_instantiate): remove old resize cruft.
8278
8279 2000-04-02  Andy Piper  <andy@xemacs.org>
8280
8281         * frame.c (change_frame_size_1): The introduction of gutters means
8282         that we need to allow 0 as a potential frame dimension.
8283
8284 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8285
8286         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8287         image glyph if allow_cursor.
8288         (add_hscroll_rune): Don't allow cursor to border glyph.
8289         (create_text_block): Ditto.
8290
8291         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8292         text not in buffer.
8293         (redisplay_output_layout): Call ensure_face_cachel_complete for
8294         text image glyph.
8295
8296
8297 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8298
8299         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8300
8301         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8302         not in buffer
8303
8304         * redisplay-tty.c (tty_output_display_block): Delete the routine
8305         for text image glyph
8306         * redisplay-x.c (x_output_display_block): ditto
8307         * redisplay-msw.c (mswindows_output_display_block): ditto
8308
8309 2000-02-02  Mike Alexander  <mta@arbortext.com>
8310
8311         Note: Some of these were committed by accident as part of other
8312         patches.
8313
8314         * regex.c (regex_compile): Avoid compiler warnings.
8315
8316         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8317
8318         * nt.h: Declare term_ntproc correctly.
8319
8320         * nt.c: Remove incorrect declaration of get_home_directory which
8321         is declared correctly in lisp.h.
8322
8323         * keymap.c (get_keyelt): Avoid compiler warnings.
8324         (raw_lookup_key_mapper): Avoid compiler warnings.
8325
8326         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8327
8328         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8329
8330         * filemode.c (mode_string): Avoid compiler warnings.
8331
8332         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8333         avoid warning.
8334
8335         * events-mod.h: Undef some things that winuser.h defines differently.
8336
8337         * data.c (Faset): Avoid compiler warnings.
8338
8339         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8340
8341 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8342
8343         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8344         Fall through to simple beep on error.
8345         Replace "extern" by real header file.
8346
8347         * linuxplay.c: Use nativesound.h
8348         (play_sound_data): Return error code. Be less verbose on error.
8349
8350         * sunplay.c: Use nativesound.h
8351         (play_sound_data): Return error code. Be less verbose on error.
8352
8353         * ntplay.c: Use nativesound.h
8354         (play_sound_data): Return fake error code
8355
8356         * sgiplay.c: Use nativesound.h
8357         (play_sound_data): Return error code
8358
8359         * hpplay.c: Use nativesound.h, partially implement
8360         new error code. Break compilation until finished.
8361         (play_sound_data): error code.
8362
8363         * nativesound.h (play_sound_file):
8364           (play_sound_data): Prototype in new header.
8365
8366 2000-03-31  Andy Piper  <andy@xemacs.org>
8367
8368         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8369         for toggle and radio buttons.
8370         (image_instantiator_buttons): use it.
8371
8372 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8373
8374         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8375         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8376         found. Scrollbar event probably belonged to some old config.
8377
8378 2000-03-31  Andy Piper  <andy@xemacs.org>
8379
8380         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8381         than 1.
8382         (initialize_widget_image_instance): default layout to
8383         LAYOUT_HORIZONTAL rather than 0.
8384         (widget_instantiate): reverse the item list at the end rather than
8385         every iteration.
8386         (layout_layout): re-code for the border text at the front of the
8387         item list rather than at the end.
8388         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8389         provided by the user.
8390         (widget_query_geometry): comment.
8391
8392 2000-03-30  Andy Piper  <andy@xemacs.org>
8393
8394         * glyphs-widget.c (image_instantiator_layout): allow standard
8395         widget keywords in layouts.
8396
8397         * gutter.c (output_gutter): cope with nil gutter contents.
8398
8399         * frame.c (Fset_frame_properties): add gutter docs.
8400
8401 2000-03-29  Andy Piper  <andy@xemacs.org>
8402
8403         * toolbar-msw.c (TBSTYLE_FLAT): add.
8404         (mswindows_output_toolbar): minor fiddling.
8405
8406 2000-03-29  Andy Piper  <andy@xemacs.org>
8407
8408         * gutter.c (output_gutter): force gutter size recalculation if
8409         what we are trying to display won't fit.
8410         (update_gutter_geometry): new function. A per-gutter version of
8411         update_frame_gutter_geometry.
8412         (update_frame_gutter_geometry): use it.
8413         (redraw_exposed_gutter): add extra debugging output.
8414
8415 2000-03-28  Mike Alexander  <mta@arbortext.com>
8416
8417         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8418         (pdump_file_unmap): Implement it on Windows
8419         (pdump_file_get): Save alocated handles for pdump_file_unmap
8420
8421 2000-03-28  Andy Piper  <andy@xemacs.org>
8422
8423         * gui.c (get_gui_callback): treat Quit specially.
8424
8425 2000-03-27  Andy Piper  <andy@xemacs.org>
8426
8427         * glyphs.c (image_instantiate): be careful to check in the same
8428         way we assigned.
8429
8430 2000-03-27  Didier Verna  <didier@xemacs.org>
8431
8432         * config.h.in: define the proper SMART_INCLUDE macro.
8433         handle renaming of `foo_h_path' to `foo_h_file'.
8434
8435         * database.c: ditto.
8436
8437         * emacs.c: ditto.
8438
8439         * linuxplay.c: ditto.
8440
8441         * terminfo.c: ditto.
8442
8443         * tooltalk.h: ditto.
8444
8445 2000-03-27  Andy Piper  <andy@xemacs.org>
8446
8447         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8448         gets updated whenever the face might have changed.
8449
8450 2000-03-26  Mike Alexander  <mta@arbortext.com>
8451
8452         * dumper.c (pdump_resource_free): Fix the comment.
8453
8454 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8455
8456         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8457
8458 2000-03-22  Mike Alexander  <mta@arbortext.com>
8459
8460         * dumper.c: Include Windows headers on Windows
8461         (pdump_resource_free): Add a body to the function
8462         (pdump_load): exe_name -> exe_path and add some comments.
8463
8464 2000-03-25  Mike Alexander  <mta@arbortext.com>
8465
8466         * gui.c (copy_gui_item_tree): Return a value in all cases
8467
8468 2000-03-21  Didier Verna  <didier@xemacs.org>
8469
8470         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8471         lwlib/config.h.in.
8472         (SMART_INCLUDE): new macro.
8473         (POSTGRES_INCLUDE): new macro to include postgresql headers from
8474         the proper location.
8475
8476         * postgresql.c: use it.
8477
8478         * inline.c: ditto.
8479
8480 2000-03-24  Andy Piper  <andy@xemacs.org>
8481
8482         * gutter.c (redraw_exposed_gutters): must be "in display" when we
8483         do this.
8484
8485 2000-03-24  Andy Piper  <andy@xemacs.org>
8486
8487         * redisplay-output.c (compare_runes): use image_instance_changed
8488         to detect changes. Do not depend on glyphs_changed, only depend on
8489         dirtiness.
8490          (redisplay_output_layout): add debug messages.
8491         (compare_runes): ditto.
8492
8493         * glyphs.h: declare new functions.
8494         (struct Lisp_Image_Instance): remove percent and associated
8495         accessors.
8496
8497         * gui.h: declare new copying functions.
8498
8499         * gui.c (copy_gui_item_tree): new function.
8500         (copy_gui_item): new function.
8501         (gui_item_id_hash): revert to standard hash.
8502         (gui_item_hash): ditto.
8503         (gui_item_hash_internal): deleted.
8504         (mark_gui_item): mark value.
8505         (gui_item_add_keyval_pair): add value.
8506         (gui_item_init): ditto.
8507         (gui_add_item_keywords_to_plist): ditto.
8508         (gui_item_equal): ditto.
8509         (syms_of_gui): add Q_value.
8510
8511         * glyphs-x.c (x_progress_gauge_update): use pending items and
8512         value for setting the state.
8513         (x_update_widget): don't set items from pending here.
8514
8515         * glyphs-widget.c (update_widget): update items here.
8516         (progress_gauge_set_property): use items for storing value. Put
8517         new value in pending items.
8518
8519         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8520         items for new value. Convert percent -> value.
8521         (mswindows_tab_control_update): don't update items here.
8522
8523         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
8524         (update_subwindow): ditto.
8525         (image_instance_changed): new function. Compare hash values and
8526         past and present widget items.
8527         (image_instantiate): We more careful about where we instantiate
8528         things.
8529         (image_instantiate): add error checking.
8530
8531         * gutter.c (syms_of_gutter): use -hook.
8532
8533 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
8534
8535         * console-tty.c (Fset_console_tty_input_coding_system): Use
8536         Qkeyboard.
8537         (Fset_console_tty_output_coding_system): Use Qterminal.
8538         (tty_init_console): Use Qkeyboard and Qterminal.
8539
8540 2000-03-21  Ben Wing  <ben@xemacs.org>
8541
8542         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
8543         From Mike Alexander <mta@arbortext.com>.
8544
8545 2000-03-21  Ben Wing  <ben@xemacs.org>
8546
8547         * event-msw.c (mswindows_need_event): Horrible kludge to fix
8548         process brokenness.  Proper implementation to come.
8549         * callproc.c:
8550         Rename call-process-internal to old-call-process-internal.
8551         New impl. in process.el.
8552
8553 2000-03-21  Martin Buchholz  <martin@xemacs.org>
8554
8555         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
8556
8557 2000-03-20  Andy Piper  <andy@xemacs.org>
8558
8559         * glyphs.c (full_list_hash): make hashes of the same elements in
8560         different orders return different values.
8561
8562 2000-03-20  Martin Buchholz <martin@xemacs.org>
8563
8564         * XEmacs 21.2.32 is released.
8565
8566 2000-03-20  Martin Buchholz  <martin@xemacs.org>
8567
8568         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
8569         (DFC_MALLOC_USE_CONVERTED_DATA):
8570         Add aliasing-safe casts to allow use with char* or unsigned char*
8571         lvalues.
8572
8573         * eldap.c (Fldap_open):
8574         (Fldap_search_basic):
8575         (Fldap_add):
8576         (Fldap_modify):
8577         Make C++-compilable.
8578         Make sure GCPRO'ed variables are initialized.
8579         Use temp variables to avoid repeated calls to Flength.
8580
8581 2000-03-16  Martin Buchholz  <martin@xemacs.org>
8582
8583         * sysfile.h:
8584         Make sure PATH_MAX is always defined.
8585         Include limits.h for PATH_MAX.
8586         Deprecate use of MAXPATHLEN.
8587
8588 2000-03-10  Martin Buchholz  <martin@xemacs.org>
8589
8590         * emacs.c: Add reinit_vars_of_fileio.
8591         * symsinit.h: Add reinit_vars_of_fileio.
8592         * fileio.c (reinit_vars_of_fileio): New.
8593         * fileio.c (Fmake_temp_name):
8594         Initialize temp_name random number from microseconds to make
8595         collisions even less likely.  Initialize always at process startup
8596         time.  (make-temp-name) used to return the same file name twice in
8597         a row when PDUMP.
8598         Random stylistic fiddling.
8599         Comment fixes.
8600
8601 2000-03-20  Andy Piper  <andy@xemacs.org>
8602
8603         * glyphs.c (image_instantiate): allow text glyphs to be
8604         instantiated in the minibuffer window.
8605
8606 2000-03-19  Andy Piper  <andy@xemacs.org>
8607
8608         * glyphs.c (image_instance_hash): be careful about which items we
8609         hash on.
8610
8611         * glyphs-widget.c (tab_control_set_property): record into pending
8612         items rather than the actual items.
8613
8614         * glyphs-x.c (x_update_widget): use pending items to update with.
8615
8616         * glyphs-msw.c (mswindows_tab_control_update): use pending items
8617         to update with.
8618
8619         * glyphs.c (mark_image_instance): mark pending items.
8620
8621         * window.c (Fset_window_configuration): record the buffer.
8622         (Fselect_window): totally revert previous change which breaks many
8623         things.
8624
8625 2000-03-18  Andy Piper  <andy@xemacs.org>
8626
8627         * glyphs-msw.c (mswindows_tab_control_update): force selected
8628         item.
8629
8630         * glyphs.c (image_instantiate): don't allow the minibuffer as a
8631         window domain cache, otherwise we get inconsistencies at
8632         startup. There is something fishy at startup which can lead to the
8633         minibuffer being the selected window when the gutter content is
8634         instantiated.
8635
8636         * gui.c (parse_gui_item_tree_list): add probably unnecessary
8637         gcpros.
8638         (parse_gui_item_tree_children): ditto.
8639         (parse_gui_item_tree_item): ditto.
8640
8641         * glyphs.c (Fupdate_widget_instances): return something.
8642
8643 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8644
8645         * window.c (Fselect_window): Undo 2000-03-17 change.
8646
8647 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
8648
8649         * postgresql.c (Fpq_setenv): Remove this turkey when linking
8650         against v7.0 libraries.  Insta-coredump city until the postgres
8651         folks fix it.
8652
8653 2000-03-17  Andy Piper  <andy@xemacs.org>
8654
8655         * faces.c (complex_vars_of_faces): don't give the widget face an
8656         inherited background pixmap.
8657
8658         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
8659         selected item.
8660
8661         * event-stream.c (Fdispatch_non_command_events): return something.
8662
8663         * gutter.c (output_gutter): use widget face.
8664         (clear_gutter): ditto.
8665
8666         * NEWS: adjust again.
8667
8668         * window.c (Fselect_window): make sure this runs to completion to
8669         avoid oddities with Fset_window_configuration.
8670         (Fcurrent_window_configuration): in general do not save the
8671         minibuffer as the selected window.
8672
8673         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
8674
8675 2000-03-16  Olivier Galibert  <galibert@pobox.com>
8676
8677         * emacs.c (Frunning_temacs_p): Revert previous patch.
8678         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
8679
8680 2000-03-16  Andy Piper  <andy@xemacs.org>
8681
8682         * glyphs-x.c (x_tab_control_update): if no widget values then
8683         return.
8684
8685         * NEWS: update for new features.
8686
8687         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
8688         synthetic event to the native system.
8689         (reinit_vars_of_event_Xt): set force_event_pending to
8690         emacs_Xt_force_event_pending.
8691
8692         * events.h (struct event_stream): add force_event_pending.
8693
8694         * specifier.c (recompute_one_cached_specifier_in_window): add
8695         comment.
8696
8697         * redisplay.c (redisplay_frame): don't call
8698         update_frame_subwindows. Reset subwindow cachels when
8699         subwindows_changed, removing this was an optimization too far.
8700
8701         * redisplay-output.c (compare_runes): reorganize so that we catch
8702         glyph changes when we want them. Set optimize_output when this
8703         would help layouts.
8704         (redisplay_output_layout): remove frame_really_changed, use
8705         optimize_output instead.
8706
8707         * redisplay-msw.c (mswindows_output_display_block): reset
8708         optimize_output after outputting a glyph.
8709         * redisplay-x.c (x_output_display_block): ditto.
8710         * redisplay-tty.c (tty_output_display_block): ditto.
8711
8712         * gutter.c: (specifier_vars_of_gutter): use new spec changed
8713         functions.
8714         (gutter_specs_changed): do specific gutter positions.
8715         (top_gutter_specs_changed): new function. Only update the
8716         specified gutter specs.
8717         (bottom_gutter_specs_changed): ditto.
8718         (left_gutter_specs_changed): ditto.
8719         (right_gutter_specs_changed): ditto.
8720
8721         * gui.c (gui_item_hash_internal): new function, does a real hash.
8722         (gui_item_id_hash): use it.
8723         (gui_item_hash): hash the eval'ed gui_item.
8724
8725         * gui-x.c (popup_selection_callback): send an eval event to call
8726         Fupdate_widget_instances.
8727
8728         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
8729         to call Fupdate_widget_instances.
8730
8731         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
8732         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
8733
8734         * glyphs.c: (update_frame_subwindows): deleted.
8735         (Fupdate_widget_instances): new function for updating the dirty
8736         state of widgets that might have changed.
8737         (syms_of_glyphs): add Qupdate_widget_instances.
8738         (full_list_hash): hash a list completely.
8739         (image_instance_hash): use it for items and properties.
8740
8741         * frame-msw.c (mswindows_size_frame_internal): remove unused
8742         variable.
8743
8744         * faces.h (struct face_cachel): fix comment.
8745
8746         * event-stream.c (Fdispatch_non_command_events): new
8747         function. Process non-command events, forcing an event cycle
8748         beforehand.
8749         (syms_of_event_stream): declare.
8750         (event_stream_force_event_pending): new function. Force an event
8751         on the native event queue so that an event cycle will occur next
8752         time we check.
8753
8754         * event-msw.c:
8755         (struct ntpipe_shove_stream):
8756         (mswindows_enqueue_dispatch_event):
8757         (mswindows_dequeue_dispatch_event):
8758         (mswindows_cancel_dispatch_event):
8759         (mswindows_pump_outstanding_events):
8760         (mswindows_drain_windows_queue):
8761         (mswindows_handle_paint):
8762         (mswindows_wnd_proc):
8763         (mswindows_key_to_emacs_keysym):
8764         (get_process_input_waitable):
8765         (emacs_mswindows_delete_stream_pair): re-indent file.
8766         (mswindows_need_event): do not process further fds if the windows
8767         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
8768         fixes the 100% cpu problem.
8769         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
8770
8771 2000-03-15  Olivier Galibert  <galibert@pobox.com>
8772
8773         * alloc.h: New.
8774         * dumper.h: New.
8775         * dumper.c: New.
8776
8777         * emacs.c: Moved dump file searching to dumper.c.
8778         (Frunning_temacs_p): Fixed.
8779
8780         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
8781         last_lrecord_type_index_assigned.
8782
8783 2000-02-20  Olivier Galibert  <galibert@pobox.com>
8784
8785         * symsinit.h: Added reinit parameter to init_console_stream
8786         declaration.
8787
8788         * lisp.h: Added file parameter to pdump_load declaration.
8789
8790         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
8791         support.  Added dump file searching.
8792
8793         * config.h.in: Added EMACS_PROGNAME.
8794
8795         * console-stream.c (init_console_stream): Fix reinitialisation
8796         when running from temacs.
8797
8798         * alloc.c (pdump): Add id support.
8799         (pdump_load): Add file parameter and signature/id support.
8800
8801         * Makefile.in.in: Add full pdump support.
8802
8803 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
8804
8805         * postgresql.c: Update documentation to reflect latest code
8806         status.
8807         (print_result): Show tuple counts in printed representation when
8808         appropriate.
8809         (Fpq_put_nbytes): MULE-ize.
8810         (Fpq_get_line_async): Ditto.
8811
8812 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
8813
8814         * postgresql.c (Fpq_lo_import): Fix return value.
8815         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
8816
8817 2000-03-13  Ben Wing  <ben@xemacs.org>
8818
8819         * alloc.c (pdump_load):
8820         Fix compile warning under mswin.
8821
8822 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
8823
8824         * postgresql.c: Mule-ization, bug fixes.
8825         Use PG_CODING to encapsulate coding system name changes.
8826         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
8827         (pg-coding-system): Create.
8828
8829         (Fpq_conn_defaults): Mule-ize.
8830         (Fpq_connectdb): Mule-ize & bug fix.
8831         (Fpq_connect_start): Mule-ize.
8832         (Fpq_set_client_encoding): Mule-ize.
8833         (Fpq_finish): Document `DEAD' connection status.
8834         (Fpq_clear): Ditto.
8835         (Fpq_pgconn): Mule-ize.
8836         (Fpq_exec): Mule-ize & bug fix.
8837         (Fpq_send_query): Ditto.
8838         (Fpq_get_result): Ditto.
8839         (Fpq_res_status): Mule-ize.
8840         (Fpq_result_error_message): Mule-ize.
8841         (Fpq_ntuples): fix comments.
8842         (Fpq_fname): Mule-ize.
8843         (Fpq_fnumber): Mule-ize.
8844         (Fpq_ftype): fix comments.
8845         (Fpq_get_value): Mule-ize.
8846         (Fpq_cmd_status): Ditto.
8847         (Fpq_cmd_tuples): Ditto.
8848         (Fpq_oid_value): Ditto.
8849         (Fpq_notifies): Ditto.
8850         (Fpq_lo_import): Ditto.
8851         (Fpq_lo_export): Ditto.
8852         (Fpq_get_line): Ditto.
8853         (Fpq_put_line): Mule-ize and bug fix.
8854         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
8855
8856 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
8857
8858         * postgresql.c (vars_of_postgresql): Mule-ize.
8859         (Fpq_conn_defaults): Ditto.
8860
8861 2000-03-12  Ben Wing  <ben@xemacs.org>
8862
8863         * alloc.c (Fmake_byte_code):
8864         * alloc.c (debug_string_purity_print):
8865         * alloc.c (pdump_backtrace):
8866         * alloc.c (pdump_get_indirect_count):
8867         * alloc.c (pdump_register_sub):
8868         * alloc.c (pdump_register_object):
8869         * alloc.c (pdump_register_struct):
8870         * alloc.c (pdump_dump_data):
8871         * alloc.c (pdump_reloc_one):
8872         Minor cleanups.
8873
8874         * console-msw.c:
8875         * console-msw.c (GetConsoleHwnd):
8876         * console-msw.c (msw_hide_console):
8877         * console-msw.c (msw_show_console):
8878         * console-msw.c (msw_ensure_console_buffered):
8879         * console-msw.c (msw_output_console_string):
8880         * console-msw.c (console_type_create_mswindows):
8881
8882         a) Added functions to manipulate the console window for use with
8883         shell support.
8884
8885         b) Added support for writing text to the console, which is now
8886         used under Windows when xemacs is not being run non-interactively,
8887         to write text that would otherwise be destined for stdout because
8888         under these circumstances, text written to stdout tends to
8889         disappear and not be seen.
8890
8891         * console-msw.h:
8892         * event-Xt.c:
8893         * event-Xt.c (x_event_to_emacs_event):
8894         * event-Xt.c (describe_event_window):
8895         * events-mod.h (XEMACS_MOD_CONTROL):
8896         * events.c:
8897         * events.c (Fmake_event):
8898         * events.c (character_to_event):
8899         * events.c (event_to_character):
8900         * events.c (format_event_object):
8901         * events.c (Fevent_modifiers):
8902         * events.h:
8903         * events.h (struct key_data):
8904         * events.h (struct button_data):
8905         * events.h (struct misc_user_data):
8906         * frame-x.c (Fcde_start_drag_internal):
8907         * frame-x.c (Foffix_start_drag_internal):
8908         * gpmevent.c (Freceive_gpm_event):
8909         * keymap.c:
8910         * keymap.c (bucky_sym_to_bucky_bit):
8911         * keymap.c (control_meta_superify):
8912         * keymap.c (make_key_description):
8913         * keymap.c (keymap_lookup_directly):
8914         * keymap.c (create_bucky_submap):
8915         * keymap.c (keymap_store):
8916         * keymap.c (define_key_check_and_coerce_keysym):
8917         * keymap.c (define_key_parser):
8918         * keymap.c (define_key_alternate_name):
8919         * keymap.c (Fdefine_key):
8920         * keymap.c (raw_lookup_key_mapper):
8921         * keymap.c (struct map_keymap_unsorted_closure):
8922         * keymap.c (map_keymap_unsorted_mapper):
8923         * keymap.c (map_keymap_sort_predicate):
8924         * keymap.c (map_keymap_sorted):
8925         * keymap.c (accessible_keymaps_mapper_1):
8926         * keymap.c (where_is_recursive_mapper):
8927         * keymap.c (describe_map_mapper):
8928         * keymap.c (describe_map_sort_predicate):
8929         * keymap.c (describe_map):
8930         * keymap.c (complex_vars_of_keymap):
8931         And a number of other files, the key modifier preprocessor
8932         constants that xemacs uses have names that conflict with constants
8933         defined under MS Windows for other purposes, so they were renamed
8934         to begin with the prefix XEMACS_. The variables that hold such
8935         modifiers were changed to consistently be of type int to fix
8936         various compile warnings.
8937
8938         * console.c (complex_vars_of_console):
8939         * device.c:
8940         * device-msw.c:
8941         * device-msw.c (mswindows_finish_init_device):
8942         * device-msw.c (msw_get_workspace_coords):
8943         * device-msw.c (mswindows_device_system_metrics):
8944         and various other files, added support for a new
8945         device property called offset-workspace which returns the position
8946         of the upper left corner of the workspace area and goes along with
8947         the existing size-workspace property.
8948
8949         * dialog-msw.c:
8950         * dialog-msw.c (push_bufbyte_string_as_unicode):
8951         * dialog-msw.c (mswindows_popup_dialog_box):
8952         Added support for XEmacs-style accelerator specifications in
8953         button text.  Note: I didn't add support for this under X Windows,
8954         and somebody needs to do this.
8955
8956         * dialog.c:
8957         * dialog.c (Fpopup_dialog_box):
8958         Documented the support for accelerators that was just mentioned.
8959
8960         editfns.c (get_home_directory): Changed behavior under Windows
8961         when HOME not defined; former behavior was irretrievably broken.
8962
8963         * emacs.c:
8964         * emacs.c (main_1):
8965         * emacs.c (main):
8966         * minibuf.c (clear_echo_area_internal):
8967         * minibuf.c (echo_area_append):
8968         * print.c:
8969         * print.c (std_handle_out_external):
8970         * print.c (std_handle_out_va):
8971         * print.c (fatal):
8972         * print.c (write_string_to_stdio_stream):
8973         * print.c (output_string):
8974         * print.c (debug_print):
8975         * print.c (debug_backtrace):
8976         * print.c (debug_short_backtrace):
8977         Cleaned up the code that prints text to stdout so that this can be
8978         changed to output into a console window instead under MS Windows,
8979         as described above.
8980
8981         * eval.c:
8982         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
8983         * eval.c (internal_catch):
8984         * eval.c (unwind_to_catch):
8985         * eval.c (throw_or_bomb_out):
8986         * eval.c (condition_case_1):
8987         * eval.c (signal_1):
8988         * eval.c (check_error_state_sanity):
8989         * eval.c (call_with_suspended_errors_1):
8990         * eval.c (call_with_suspended_errors):
8991         * eval.c (reinit_vars_of_eval):
8992         Added code to catch throw loops and check for a pesky bug that may
8993         be gone now.
8994
8995         * event-msw.c:
8996         * event-msw.c (key_needs_default_processing_p):
8997         * event-msw.c (mswindows_wnd_proc):
8998         * event-msw.c (mswindows_modifier_state):
8999         * event-msw.c (emacs_mswindows_quit_p):
9000         * event-msw.c (vars_of_event_mswindows):
9001         a) Added support for using the alt key to select menu items as is
9002         standard under MS Windows.  This is controlled using the variable
9003         menu-accelerator-enabled, just like under X Windows.  There is an
9004         option on the options menu to turn this support on.  I really
9005         think that it should be on by default under Windows, but I'm not
9006         going to make this change yet.
9007
9008         b)  Added support for dynamic display size changes under Windows.
9009
9010         * event-stream.c:
9011         * event-stream.c (maybe_echo_keys):
9012         * event-stream.c (Fnext_event):
9013         * event-stream.c (command_builder_find_leaf):
9014         * event-stream.c (lookup_command_event):
9015         * event-stream.c (execute_command_event):
9016         * event-stream.c (pre_command_hook):
9017         * event-stream.c (post_command_hook):
9018         * event-stream.c (syms_of_event_stream):
9019         * event-stream.c (vars_of_event_stream):
9020         * event-stream.c (complex_vars_of_event_stream):
9021         * events.h (struct command_builder):
9022
9023         a) Tried to clean up a little bit the horribly written x-specific
9024         accelerator code that crept into this file.  I moved this code
9025         into menubar-x.c where it belongs. I also needed to move the
9026         command builder structure into the file events.h because it is
9027         accessed directly by this accelerator code.  What I didn't do, but
9028         which should be done at some point, is to properly abstract this
9029         code using device methods instead of the kludgy way that it
9030         currently hooks into the event code.
9031
9032         b) Added the lisp variables this-command-properties and
9033         last-command- properties, which should be used to synchronize two
9034         adjacent commands in preference to playing games with the variable
9035         this-command, which is typically what happens.
9036
9037         c) Added some slightly nasty code to hook into the lisp support
9038         for shifted- motion-key selection.  This is actually necessary for
9039         somewhat complicated reasons, which are described in
9040         simple.el. (NB: I think the proper thing would be to have the code
9041         that calls the pre and post command hooks also call out to generic
9042         lisp functions in simple.el, where all built-in stuff could be
9043         added.  I will think about this more.)
9044
9045         * event-unixoid.c (poll_fds_for_input):
9046         * lread.c (readchar):
9047         * redisplay-tty.c (tty_clear_frame):
9048         * redisplay-x.c (x_get_gc):
9049         * signal.c (interrupt_signal):
9050         And a whole bunch of other files: fixed up places that printed
9051         directly to stderr to instead call the function stderr_out so that
9052         the changes I made under Windows work correctly.
9053
9054         * filemode.c (mode_string):
9055         Warning fixes.
9056
9057         * frame-msw.c:
9058         * frame-msw.c (mswindows_size_frame_internal):
9059         Fixed the computation of frame size and position to keep the frame
9060         within the workspace area, rather than within the physical
9061         dimensions of the screen, so that the frame doesn't overlap window
9062         manager decorations, such as the start menu and toolbar, typically
9063         at the bottom of the screen.
9064
9065         * frame.c (vars_of_frame):
9066         Changed the default frame title format under MS Windows to consist
9067         of buffername-XEmacs, which is standard under MS Windows.  I think
9068         it might be a good idea to change this everywhere because I think
9069         it is superior to the current frame title format, but this is the
9070         kind of change that is likely to cause some people to get annoyed,
9071         so I'm not making it.
9072
9073         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9074
9075         * gui-msw.c (mswindows_handle_gui_wm_command):
9076         Fixed compile warnings.
9077
9078         * gui-x.c:
9079         * gui-x.c (strdup_and_add_accel):
9080         * gui-x.c (button_item_to_widget_value):
9081         * gui-x.h:
9082         Added code to automatically put an accelerator onto the beginning
9083         of menu items that don't have one as is now the standard, and is
9084         described more later.  Also fixed things so that the menu item
9085         name can be an evaluated expression, again a new standard.
9086
9087         * gui.c:
9088         * gui.c (gui_item_add_keyval_pair):
9089         * gui.c (make_gui_item_from_keywords_internal):
9090         * gui.c (gui_add_item_keywords_to_plist):
9091         * gui.c (gui_item_accelerator):
9092         * gui.c (gui_name_accelerator):
9093         * gui.c (gui_item_included_p):
9094         * gui.c (gui_item_display_flush_left):
9095         * gui.c (gui_item_display_flush_right):
9096         * gui.c (parse_gui_item_tree_item):
9097         * gui.c (parse_gui_item_tree_children):
9098         * gui.c (parse_gui_item_tree_list):
9099         Mule-ized.  Cleanup.  GCPRO addition.
9100
9101         * line-number.c (buffer_line_number):
9102         * lisp.h:
9103         * lisp.h (EMACS_INT_MAX):
9104         Added the manifest constant EMACS_INT_MIN corresponding to the
9105         existing constant EMACS_INT_MAX.  This is partially to fix compile
9106         warnings under Windows, and partly for cleanliness.
9107
9108         * menubar-msw.c:
9109         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9110         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9111         * menubar-msw.c (displayable_menu_item):
9112         * menubar-msw.c (populate_menu_add_item):
9113         * menubar-msw.c (populate_or_checksum_helper):
9114         * menubar-msw.c (populate_menu):
9115         * menubar-msw.c (update_frame_menubar_maybe):
9116         * menubar-msw.c (prune_menubar):
9117         * menubar-msw.c (msw_char_is_accelerator):
9118         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9119         * menubar-msw.c (mswindows_handle_wm_command):
9120         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9121         * menubar-msw.c (mswindows_handle_wm_initmenu):
9122         * menubar-msw.c (mswindows_update_frame_menubars):
9123         * menubar-msw.c (mswindows_free_frame_menubars):
9124         * menubar-msw.c (mswindows_popup_menu):
9125         Fixed a bug in handling accelerators where an extra character
9126         would be displayed in the menu item.  Also generalized the
9127         function displayable_menu_item because it is now used by the
9128         dialog box code as well.  And finally, added code in the functions
9129         that create the menubar to extract a list of accelerators for the
9130         top level menubar, which is used in the event code to determine
9131         whether a particular alt-key combination should be used to invoke
9132         a menu item, or should be passed through to access the standard
9133         XEmacs keymap binding for this key combination.
9134
9135         Much needed GCPROing.
9136
9137         * menubar-x.c:
9138         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9139         * menubar-x.c (menu_item_descriptor_to_widget_value):
9140         * menubar-x.c (restore_in_menu_callback):
9141         * menubar-x.c (x_popup_menu):
9142         * menubar-x.c (menu_move_up):
9143         * menubar-x.c (menu_move_down):
9144         * menubar-x.c (menu_move_left):
9145         * menubar-x.c (menu_move_right):
9146         * menubar-x.c (menu_select_item):
9147         * menubar-x.c (command_builder_operate_menu_accelerator):
9148         * menubar-x.c (menu_accelerator_junk_on_error):
9149         * menubar-x.c (command_builder_find_menu_accelerator):
9150         * menubar-x.c (Faccelerate_menu):
9151         * menubar.h:
9152         Moved a whole bunch of code here that was previously in
9153         event-stream.c as described above.  There is also code connected
9154         to the new standard of adding an accelerator to the beginning of
9155         menu items that don't have one as described above and below.
9156
9157         * menubar.c:
9158         * menubar.c (menu_parse_submenu_keywords):
9159         * menubar.c (Fmenu_find_real_submenu):
9160         * menubar.c (Fnormalize_menu_item_name):
9161         * menubar.c (syms_of_menubar):
9162         * menubar.c (vars_of_menubar):
9163         * menubar.c (complex_vars_of_menubar):
9164
9165         a) Cleaned up a bunch of documentation and improved it.
9166
9167         b) XEmacs now automatically adds an accelerator onto the beginning
9168         of any menu items that don't have one.  I did this because there
9169         will inevitably be some menu items on the main menubar that don't
9170         have accelerators on them because the package that adds that
9171         particular menu item hasn't yet been fixed up to have accelerators
9172         in them and it looked rather strange to have some items with and
9173         some items without accelerators, especially since even in items
9174         without accelerators, you can, at least under windows, still
9175         access the item through an accelerator corresponding to the first
9176         character in the item's name.  If people don't like this behavior,
9177         I can add a variable to turn it off optionally, but I'm not sure
9178         this is a good idea because we really do need to have accelerators
9179         on all of the menu items, and if a package doesn't like the
9180         accelerators being put on the first character, then it should put
9181         the accelerators where they belong.
9182
9183         c) I made a behavior change, which is that the descriptor that
9184         specifies the text of the menu item, which formerly was just a
9185         string, can now also be an evaluated expression.  This makes this
9186         descriptor parallel with all of the others, which could also be
9187         evaluated expressions.  This also obviates the need for the
9188         keyword :label, which was previously listed in the documentation
9189         as unimplemented, and which was for the same purpose.
9190
9191         d) GCPROing.
9192
9193         * ntproc.c:
9194         * ntproc.c (new_child):
9195         * ntproc.c (sys_spawnve):
9196         * ntproc.c (find_child_console):
9197         * ntproc.c (sys_kill):
9198         Fixed compile warnings.  By the way, this file should really go
9199         away entirely, and this will happen as soon as Kirill makes his
9200         final round of process cleanups, which affect the function
9201         call-process.
9202
9203         * process-nt.c:
9204         * process-nt.c (struct nt_process_data):
9205         * process-nt.c (find_process_from_pid):
9206         * process-nt.c (send_signal_the_nt_way):
9207         * process-nt.c (enable_child_signals):
9208         * process-nt.c (find_child_console):
9209         * process-nt.c (send_signal_the_95_way):
9210         * process-nt.c (nt_finalize_process_data):
9211         * process-nt.c (ensure_console_window_exists):
9212         * process-nt.c (nt_create_process):
9213         * process-nt.c (nt_kill_child_process):
9214         * process-nt.c (nt_kill_process_by_pid):
9215         * process-nt.c (nt_open_network_stream):
9216         * process-nt.c (vars_of_process_nt):
9217         Copied over code from Emacs 20.5 to correctly send signals to sub-
9218         processes under Windows 95.  Also added code to automatically
9219         create and hide console window when a sub-process is created under
9220         Windows 95, which obviates the need for the separate runemacs.exe
9221         executable, and finally implemented some variables that were
9222         implemented in Emacs 20.5, but previously not in XEmacs.  These
9223         include mswindows- start-process-share-console and
9224         mswindows-start-process-inherit-error-mode. (Both of these only
9225         apply to Windows 95.)
9226
9227         * regex.c (regex_compile): Fixed a compile warning.
9228
9229         * select-msw.c:
9230         * select-msw.c (mswindows_own_selection):
9231         * select-msw.c (mswindows_get_foreign_selection):
9232         * select-msw.c (mswindows_disown_selection):
9233         * select-msw.c (console_type_create_select_mswindows):
9234         * select-msw.c (syms_of_select_mswindows):
9235         Cleaned up the file and implemented the device method
9236         selection_exists_p, which had accidentally been left out.  Also
9237         removed four lisp functions that were remnants from before the
9238         time when the selection code was properly device abstracted.
9239         These functions are no longer needed because there are generic
9240         equivalents, and because they were added recently and don't exist
9241         in FSF Emacs, I don't think there's any problem with just deleting
9242         them.
9243
9244         * sysdep.c:
9245         * sysdep.c (sys_subshell):
9246         Fixed a compile warning, although in this case there's probably
9247         something wrong with this code, and it ought to be looked into
9248         more thoroughly by somebody who understands it.
9249
9250         * window.c:
9251         * window.c (Fwindow_text_area_height):
9252         * window.c (Fwindow_width):
9253         * window.c (Fwindow_full_width):
9254         * window.c (Fwindow_pixel_width):
9255         * window.c (debug_print_window):
9256         * window.c (syms_of_window):
9257         Added functions window-text-area-height and window-full-width,
9258         which are functions for returning various width and height
9259         characteristics of a window. (One of these functions is necessary
9260         for making the file dialog box work correctly, and the other one
9261         was added for completeness.)  Also added a table to the
9262         documentation for window-height which describes the entire scheme
9263         for accessing width and height characteristics of a window.
9264
9265 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9266
9267         * nt.c (fstat): Added a comment for another problem with
9268         non-encapsulated [f]stat(), reported by Adrian Aichner
9269         <aichner@ecf.teradyne.com>.
9270
9271 2000-03-11  Andy Piper  <andy@xemacs.org>
9272
9273         * window.c (make_dummy_parent): initialize subwindow instance
9274         cache.
9275         (Fset_window_configuration): zero extent_modiff.
9276
9277 2000-03-10  Andy Piper  <andy@xemacs.org>
9278
9279         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9280         more changes can be triggered.
9281         (Fredisplay_frame): ditto.
9282         (Fredraw_device): ditto.
9283         (Fredisplay_device): ditto.
9284         (redisplay_frame): make non-static.
9285         (redisplay_frame): call update_frame_gutter_geometry outside of
9286         display proper.
9287
9288         * gutter.h: declare update_frame_gutter_geometry.
9289
9290         * redisplay.h: declare redisplay_frame.
9291
9292         * gutter.c (update_frame_gutter_geometry): move geometry changes
9293         in update_frame_gutters here. Geometry changes can only occur
9294         outside of redisplay.
9295         (update_frame_gutters): remove geometry change code.
9296         (Fredisplay_gutter_area): make sure that we are in display when we
9297         update and that we have flushed any size changes.
9298
9299 2000-03-11  Andy Piper  <andy@xemacs.org>
9300
9301         * alloc.c (pdump_dump_data): remove i & count shadows.
9302
9303 2000-02-27  Mike Alexander  <mta@arbortext.com>
9304
9305         * sysdep.h: Declare pdump_read_file
9306
9307         * sysdep.c (pdump_read_file): New function
9308
9309         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9310         dump data
9311
9312 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9313
9314         * lrecord.h: add `lrecord_type_pgsetenv'.
9315
9316 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9317
9318         * symsinit.h: declare (vars|syms)_of* functions.
9319         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9320
9321 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9322
9323         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9324
9325         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9326         GCCs.
9327
9328         * emacs.c (main_1): Call postgres initialization code.
9329
9330         * postgresql.h: New file.  PostgreSQL RDBMS support.
9331         * postgresql.c: New file.
9332
9333 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9334
9335         * redisplay-output.c (redisplay_output_display_block): Disable
9336         redundant code.
9337
9338 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9339
9340         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9341         (Fcanna_henkan_next): Ditto.
9342         (Fcanna_bunsetu_henkou): Ditto.
9343         (Fcanna_henkan_kakutei): Ditto.
9344         (Fcanna_henkan_end): Ditto.
9345         (Fcanna_henkan_quit): Ditto.
9346         (Fcanna_henkan_next): Set retun value correctly.
9347         (c2mu): Use unsigned char instead of signed char.
9348
9349 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9350
9351         * emacs.c (main_1): Always call syms_of_gui.
9352         * inline.c: include gui.h
9353
9354 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9355
9356         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9357         converted to Lisp_Object.
9358         (Qtop_bottom): New variable.
9359         (syms_of_redisplay): Initialize it.
9360         * redisplay.h (Vvisible_bell): Ditto.
9361         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9362         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9363         only flash top and bottom.
9364
9365 2000-03-08  Andy Piper  <andy@xemacs.org>
9366
9367         * buffer.c (Frename_buffer): record new buffer name the right way.
9368
9369 2000-03-08  Andy Piper  <andy@xemacs.org>
9370
9371         * glyphs.c (update_subwindow): increase hash depth so that widget
9372         items get picked up properly.
9373
9374         * redisplay-output.c (compare_runes): increase hash depth so that
9375         widget items get picked up properly.
9376
9377 2000-03-08  Andy Piper  <andy@xemacs.org>
9378
9379         * gutter.c (output_gutter): add some debug.
9380
9381         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9382         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9383         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9384
9385         * redisplay-output.c (compare_runes): use display_hash to
9386         determine if glyphs really are not the same.
9387
9388         * glyphs.c (update_subwindow): check display_hash to see if
9389         anything really needs to be updated. If not then do
9390         nothing. Record the display_hash after updating.
9391         (image_instance_equal): compare the image_instance face also.
9392
9393 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9394
9395         * redisplay.h: Fix comment style.
9396
9397 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9398
9399         * consle-msw.h (struct mswindows_frame):
9400         Added new member paint_pending to indicate whether a WM_PAINT
9401         magic event has been queued for this frame.
9402
9403         * event-msw.c (mswindows_drain_windows_queue):
9404         Don't queue a WM_PAINT magic event if one is already queued.
9405         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9406
9407         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9408
9409 2000-03-07  Didier Verna  <didier@xemacs.org>
9410
9411         * dired.c: #include `regex.h' after `sysfile.h'.
9412
9413 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9414
9415         * sound.c (init_nas_sound): Fix compiler warning.
9416
9417         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9418         (FREE_STRUCT_P):
9419         (MARK_STRUCT_AS_FREE):
9420         (MARK_STRUCT_AS_NOT_FREE):
9421         Make `gcc -fstrict-aliasing' work properly.
9422
9423 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9424
9425         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9426         (mswindows_delete_device): Call CoUnnitialize().
9427
9428         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9429
9430 2000-02-25    <CraigL@DyCon.com>
9431
9432         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9433         <errno.h>.
9434
9435         * sysdep.c: This extern declaration for environ prevents MinGW
9436         from finding the variable in CRTDLL.DLL.
9437
9438         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9439         windows headers.
9440         (SHGFI_EXETYPE): ..
9441         (WM_MOUSEWHEEL): ..
9442         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9443         definitions.
9444         (MMRESULT): Removed, now defined in cygwin's windows headers.
9445         (TIMECAPS): ..
9446         (uid_t,gid_t,pid_t,ssize_t): ..
9447         (_timeb): Removed, MinGW defines both _timeb and timeb.
9448         (HAVE_H_ERRNO): Added.
9449         (HAVE_TZNAME): Added, configure is not detecting this.
9450
9451 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9452
9453         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9454         * syntax.c (syntax_match): Use it.
9455
9456         * cmds.c: Import auto-fill-chars from FSF Emacs.
9457         (Vauto_fill_chars): New variables.
9458         (internal_self_insert): Check Vauto_fill_chars.
9459         (vars_of_cmds):
9460         Declare auto-fill-chars as a Lisp variable and initialize it.
9461
9462 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9463
9464         * fileio.c (Fmake_symbolic_link):
9465         (Ffile_symlink_p):
9466         Run handlers even if local machine doesn't have symlinks.
9467
9468 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9469
9470         * event-msw.c (mswindows_drain_windows_queue):
9471         Don't generate paint magic events for non-XEmacs frames.
9472
9473 2000-03-05  Andy Piper  <andy@xemacs.org>
9474
9475         * redisplay.c (redisplay_frame): generate_displayable_area and
9476         friends assumes that we are not in GC, we therefore have to make
9477         sure that this doesn't happen.
9478
9479         * gutter.c (calculate_gutter_size): generate_displayable_area
9480         assumes that we are not in GC, we therefore have to make sure that
9481         this doesn't happen.
9482
9483 2000-03-05  Martin Buchholz  <martin@xemacs.org>
9484
9485         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9486
9487 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9488
9489         * redisplay.c (regenerate_window): Make sure we set a sane value
9490         for end_pos even if we jump out of the loop.
9491         (regenerate_window): Answer Ben's question :-).
9492         (start_end_of_last_line): Add may_error argument.
9493         (start_of_last_line):
9494         (end_of_last_line): Pass may_error = 0.
9495         (end_of_last_line_may_error): New function.
9496         (pixel_to_glyph_translation): Use it, so we don't crash in
9497         event_to_glyph.
9498
9499 2000-03-04  Andy Piper  <andy@xemacs.org>
9500
9501         * window.h (struct window): add gutter_extent_modiff.
9502
9503         * window.c (allocate_window): zero out gutter_extent_modiff.
9504
9505         * redisplay.h: declare sync_display_line_structs.
9506
9507         * redisplay.c (add_glyph_rune): add a better comment.
9508
9509         * redisplay-output.c (sync_display_line_structs): made non-static.
9510         (compare_runes): remove unneccesary glyph cachel access.
9511
9512         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9513
9514         * gutter.c (output_gutter): don't output the gutter if extent
9515         changes only involve extents in buffers. use 4 sets of display
9516         lines.
9517         (gutter_extent_signal_changed_region_maybe): new function. Mark
9518         extents in gutters as changed.
9519         (update_frame_gutters): use 4 sets of display lines.
9520         (reset_gutter_display_lines): ditto.
9521         (free_frame_gutters): ditto.
9522         (redraw_exposed_gutter): force output of gutters.
9523
9524         * frame.h (struct frame): add 4 sets of gutter display lines.
9525
9526         * extents.c: (extent_changed_for_redisplay): signal changes to
9527         extents in strings in the gutter as well as extents in buffers.
9528
9529 2000-03-02  Andy Piper  <andy@xemacs.org>
9530
9531         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
9532
9533         * frame.c (Fmake_frame): make sure the gutters get initialized
9534         after the frame is visible.
9535         (set_frame_selected_window): re-arrange compilation macros a
9536         little.
9537         (change_frame_size_1): mark gutters changed.
9538
9539         * device.c (Fset_device_class): mark gutters changed.
9540
9541 2000-03-01  Andy Piper  <andy@xemacs.org>
9542
9543         * window.c (window_top_frame_gutter_height): deleted.
9544         (window_bottom_frame_gutter_height): ditto.
9545         (window_left_frame_gutter_height): ditto.
9546         (window_right_frame_gutter_height): ditto.
9547         (window_top_gutter_height): don't use them.
9548         (window_bottom_gutter_height): ditto.
9549         (window_left_gutter_width): ditto.
9550         (window_right_gutter_width): ditto.
9551         (Fsplit_window): ditto.
9552         (Fwindow_pixel_edges): don't use border dimensions here.
9553
9554         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
9555         (update_scrollbar_instance): ditto.
9556
9557         * redisplay.c (generate_modeline): don't take gutters into account.
9558         (generate_modeline): ditto.
9559         (redisplay_frame): small gutter display optimization.
9560
9561         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
9562
9563         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
9564         gutters into account.
9565
9566         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
9567         for window position and type.
9568
9569         * gutter.c (get_gutter_coords): fix for frame gutters.
9570         (update_frame_gutters): update frame geometry if the gutters have
9571         changed.
9572         (init_frame_gutters): record current gutter geometries.
9573
9574         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
9575         var.
9576         (mswindows_widget_instantiate): ditto.
9577
9578         * frame.h (struct frame): add current_gutter_bounds.
9579
9580         * frame.c (change_frame_size_1): position window and minibuffer
9581         appropriately taking into account the frame gutters.
9582
9583         * frame-x.c: (x_initialize_frame_size): take into account the
9584         frame gutters.
9585
9586 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9587
9588         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
9589
9590 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9591
9592         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
9593
9594 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
9595
9596         * file-coding.c (reset_decoding_stream): Clear previous
9597         detection state when autodetect.
9598
9599 2000-02-29  Didier Verna  <didier@xemacs.org>
9600
9601         * extents.c (set_extent_glyph_1): don't require extents to be
9602         attached.
9603
9604 2000-02-27  Andy Piper  <andy@xemacs.org>
9605
9606         * gutter.c (Fset_default_gutter_position): don't default left and
9607         right gutter visibility to t.
9608         (Fset_default_gutter_position): run
9609         default-gutter-position-changed-hook.
9610         (syms_of_gutter): add default-gutter-position-changed-hook.
9611
9612 2000-02-26  Andy Piper  <andy@xemacs.org>
9613
9614         * specifier.c (Fmake_specifier): add gutter references.
9615
9616         * gutter.h (RAW_WINDOW_GUTTER): new macro.
9617
9618         * lisp.h: declare Fvalid_plist_p.
9619
9620         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
9621         as changed.
9622         (default_gutter_visible_p_changed_in_window): invalidate gutter as
9623         well as its visibility so that it gets reconstructed.
9624         (construct_window_gutter_spec): new function. Construct a string
9625         to be displayed in the gutter from a plist of strings. Take care
9626         to only use elements that are declared as visible.
9627         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
9628         WINDOW_GUTTER.
9629         (gutter_validate): allow plists of strings in the specifier.
9630         (gutter_specs_changed): construct the real_gutter from the gutter
9631         specs using construct_window_gutter_spec.
9632         (gutter_visible_validate): gutter-visible is a new specifier type.
9633         (Fgutter_visible_specifier_p): new function for the new specifier.
9634         (syms_of_gutter): declare gutter-visible and
9635         Fgutter_visible_specifier_p.
9636         (specifier_type_create_gutter): intitalize new gutter-visible
9637         specifier.
9638         (reinit_specifier_type_create_gutter): ditto.
9639         (specifier_vars_of_gutter): use new specifier type for gutter
9640         visibility.
9641         (init_frame_gutters): construct real_gutter correctly.
9642         (Fgutter_specifier_p): beef up documentation.
9643         (Fgutter_size_specifier_p): ditto.
9644
9645         * winslots.h: add real_gutter slots.
9646
9647 2000-02-25  Andy Piper  <andy@xemacs.org>
9648
9649         * device-msw.c: Be kind to older cygwin versions. From Raymond
9650         Toy <toy@rtp.ericsson.se>.
9651
9652         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
9653         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
9654
9655 2000-02-25  Martin Buchholz  <martin@xemacs.org>
9656
9657         * elhash.c (MARK_OBJ): Practice macro hygiene.
9658
9659 2000-02-24  Martin Buchholz  <martin@xemacs.org>
9660
9661         * miscplay.c: s/__inline__/inline/g;
9662         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
9663         (get_device_compdc): INLINE ==> static inline
9664         * *.[ch]: Change INLINE to INLINE_HEADER globally.
9665         find -name '*.h' | \
9666         xargs global-replace \
9667         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
9668
9669 2000-02-25  Andy Piper  <andy@xemacs.org>
9670
9671         * window.c (window_top_frame_gutter_height): new function.
9672         (window_top_window_gutter_height): ditto.
9673         (window_top_gutter_height): use them.
9674         (window_bottom_frame_gutter_height): new function.
9675         (window_bottom_window_gutter_height): ditto.
9676         (window_bottom_gutter_height): use them.
9677         (window_left_window_gutter_width): new function.
9678         (window_left_frame_gutter_width): ditto.
9679         (window_left_gutter_width): use them.
9680         (window_right_window_gutter_width): new function.
9681         (window_right_frame_gutter_width): ditto.
9682         (window_right_gutter_width): use them.
9683         (window_pixel_height): new function. calulate window pixel height
9684         with frame gutter involvement.
9685         (Fsplit_window): calculate new sizes taking frame gutters into
9686         account.
9687         (window_char_height_to_pixel_height): don't include frame gutters.
9688         (window_char_height): use window_pixel_height.
9689         (window_pixheight): rename from window_pixel_height.
9690         (change_window_height): use it.
9691         (window_pixel_height_to_char_height): don't include frame gutters.
9692         (window_char_width_to_pixel_width): ditto.
9693
9694 2000-02-25  Andy Piper  <andy@xemacs.org>
9695
9696         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
9697         if it is.
9698
9699 2000-02-24  Martin Buchholz  <martin@xemacs.org>
9700
9701         * alloc.c (staticpro):
9702         (staticpro_nodump):
9703         (dumpstruct):
9704         (dumpopaque):
9705         (pdump_wire):
9706         (pdump_wire_list):
9707         (compact_string_chars):
9708         (pdump_dump_wired):
9709         Convert:  if (foo) abort();  ==>  assert (! foo);
9710
9711         * eldap.c (Fldap_search_basic):
9712         (Fldap_add):
9713         (Fldap_modify):
9714         (Fldap_delete):
9715         Fix compiler warnings, and possible crashes if (random) return
9716         value were to be used.
9717
9718 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9719
9720         * device-msw.c: Workaround ResetDC failure.
9721
9722         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
9723         applying a devmode.
9724
9725         * redisplay-msw.c (get_frame_dc): Added start_page_p.
9726         (mswindows_text_width): Do not start printer page.
9727
9728         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
9729
9730         * glyphs-msw.c: Added image methods to msprinter console and
9731         msprinter-specific image instantiation.
9732
9733 2000-02-20  Mike Alexander  <mta@arbortext.com>
9734
9735         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
9736         to avoid crashes when selection-sets-clipboard is on
9737         (mswindows_own_selection): ditto
9738
9739 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9740
9741         * glyphs-msw.c:
9742         * redisplay-msw.c (get_frame_dc):
9743         (get_frame_compdc):
9744         * console-msw.h:
9745         * device-msw.c (mswindows_init_device):
9746         (mswindows_delete_device):
9747         (msprinter_init_device):
9748         (msprinter_delete_device):
9749         * frame-msw.c (mswindows_init_frame_1):
9750         (mswindows_delete_frame):
9751         (msprinter_init_frame_3):
9752         (msprinter_delete_frame): Move compatible DC to device object from
9753         frame object, for both mswindows and msprinter. Only one at a time
9754         is needed, it is a real waste to have one per frame!
9755
9756 2000-02-23  Andy Piper  <andy@xemacs.org>
9757
9758         * glyphs.c: add dynamic width and height elements.
9759         (image_instance_equal): ditto.
9760
9761         * glyphs-widget.c (widget_query_geometry): calculate width and
9762         height dynamically if required.
9763         (initialize_widget_image_instance): initialize dynamic dimensions.
9764         (widget_instantiate): pick-up dynamic dimensions.
9765
9766         * glyphs.h (struct Lisp_Image_Instance): add width and height for
9767         dynamic determination. Add appropriate macros.
9768
9769         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
9770         dimensions safe.
9771         (WINDOW_GUTTER_SIZE): ditto.
9772         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
9773
9774         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
9775         inline.
9776         (get_frame_dc): ditto.
9777
9778         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
9779         here.
9780
9781 2000-02-23  Martin Buchholz <martin@xemacs.org>
9782
9783         * XEmacs 21.2.31 is released.
9784
9785 2000-02-22  Ben Wing <ben@xemacs.org>
9786
9787         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
9788
9789 2000-02-22  Andy Piper  <andy@xemacs.org>
9790
9791         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
9792
9793 2000-02-21  Mike Sperber <mike@xemacs.org>
9794
9795         * .dbxrc:
9796         * .gdbinit:
9797         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
9798         variables.
9799
9800 2000-02-21  Mike Sperber <mike@xemacs.org>
9801
9802         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
9803
9804 2000-02-21  Martin Buchholz <martin@xemacs.org>
9805
9806         * XEmacs 21.2.30 is released.
9807
9808 2000-02-20  Martin Buchholz  <martin@xemacs.org>
9809
9810         Performance hacking.
9811         * *.c (syms_of_*):
9812         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
9813         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
9814         * emacs.c (main_1):
9815         * lisp.h (DEFUN):
9816         * console.c (DEFVAR_CONSOLE_LOCAL_1):
9817         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
9818         * symeval.h (DEFVAR_SYMVAL_FWD):
9819         * symbols.c (guts_of_unbound_marker):
9820         Make all c_readonly objects also lisp_readonly and marked for life.
9821         * lrecord.h (struct lrecord_implementation):
9822         Document flags better.
9823         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
9824         * lrecord.h (DECLARE_LRECORD):
9825         * lrecord.h (XSETRECORD):
9826         * lrecord.h (RECORDP):
9827         * lrecord.h (RECORD_TYPEP):
9828         * lrecord.h (RECORD_MARKER): New.
9829         * lrecord.h (error_check_*):
9830         * lrecord.h (CONCHECK_NONRECORD):
9831         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
9832         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
9833         * lrecord.h (set_lheader_implementation):
9834         * lrecord.h (enum lrecord_type): New.
9835         * symeval.h (SYMBOL_VALUE_MAGIC_P):
9836         * alloc.c (disksave_object_finalization_1):
9837         * alloc.c (mark_object):
9838         * alloc.c (lrecord_type_index):
9839         * alloc.c (tick_lcrecord_stats):
9840         * alloc.c (Fgarbage_collect):
9841         * alloc.c (init_alloc_once_early):
9842         * alloc.c (pdump_load):
9843         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
9844         * alloc.c (lrecord_type_index): Delete.
9845         Make lisp object type indexes be constant.
9846           Makes (byte-compile) 5% faster.
9847         Put all marker functions into their own array.
9848           Makes (garbage-collect) 5% faster.
9849         Optimize SYMBOL_VALUE_MAGIC_P.
9850           Makes (byte-compile) 2-3% faster.
9851         * config.h.in (gc_checking_assert): New.
9852         * alloc.c: Use gc_checking_assert().
9853         * .dbxrc: Make compatible with new object type implementation.
9854         * .gdbinit: Make compatible with new object type implementation.
9855         * alloc.c: Delete all symbols defined only for debugging, such as
9856         Lisp_Type_Vector and lrecord_charset.
9857
9858 2000-02-21  Andy Piper  <andy@xemacs.org>
9859
9860         * gui-msw.c (Fmswindows_shell_execute): fix file location
9861         problems.
9862
9863         * buffer.c (Fkill_buffer): remove buffer from alist buffer
9864         unshowing so that set_window_buffer doesn't undo
9865         kill_buffer_hook's hard work.
9866
9867         * glyphs-widget.c (tab_control_query_geometry): don't count the
9868         first item when calculating geometry.
9869
9870         * glyphs.c (map_subwindow): remove redundant code.
9871         (update_frame_subwindows): be more circumspect about when to
9872         update subwindows.
9873
9874         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
9875         when items haven't changed. Update faces if faces have changed as
9876         well as just the widget face.
9877         (x_tab_control_update): Update faces if faces have changed as well
9878         as just the widget face.
9879
9880 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9881
9882         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
9883         registration.
9884         (build_syscolor_string): Use mswindows_color_to_string to try to
9885         get a named color.
9886         (mswindows_device_system_metrics): Reverse the foreground and
9887         background colors so that they match the documentation.
9888
9889         * objects-msw.c: (mswindows_X_color_map): tweak some values so
9890         they match the default Windows palette.
9891         (mswindows_color_to_string): New function.
9892
9893 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9894
9895         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
9896
9897 2000-02-18  Olivier Galibert  <galibert@pobox.com>
9898
9899         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
9900         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
9901
9902         * symbols.c (init_symbols_once_early): Removed obsolete
9903         DATA_SEG_BITS related kludge.
9904         (defvar_magic): Ditto.
9905
9906         * malloc.c: Removed obsolete DATA_SEG_BITS
9907         * ralloc.c: Ditto.
9908         * mem-limits.h: Ditto.
9909
9910         * Makefile.in.in: Removed obsolete HAVE_SHM
9911         * emacs.c: Ditto.
9912
9913 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9914
9915         *  device-msw.c (mswindows_delete_device): Free DDE string
9916         handles.
9917
9918 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9919
9920         * keymap.c (get_keyelt):
9921         * unexnt.c (unexec):
9922         * vm-limit.c (memory_warnings):
9923         * ntheap.c (recreate_heap):
9924         * ntheap.h (UNINIT_PTR):
9925         * select-msw.c (Fmswindows_get_clipboard):
9926         (Fmswindows_set_clipboard):
9927         * objects-msw.h (MSWINDOWS_BAD_HFONT):
9928         * objects-msw.c:
9929         * menubar-msw.c (displayable_menu_item):
9930         * glyphs-msw.c:
9931         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
9932         * sysdep.c (sys_subshell):
9933         * process-nt.c (nt_create_process):
9934         * nt.c (normalize_filename):
9935         (dostounix_filename):
9936         (unixtodos_filename):
9937         * ntproc.c (win32_executable_type):
9938         * ntplay.c (play_sound_data_1):
9939         (play_sound_file):
9940         * editfns.c (get_home_directory):
9941         * event-msw.c (struct winsock_stream):
9942         (mswindows_dde_callback):
9943         * device-msw.c (msprinter_init_device):
9944         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
9945
9946         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
9947         mswindows_clear_toolbar were swapped!
9948
9949         * objects-msw.c:(colormap_t):
9950         (fontmap_t):
9951         * emacs.c (struct standard_args): Fixed const jumble.
9952
9953         * glyphs-widget.c (update_widget): Fixed comparison notation.
9954
9955         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
9956
9957         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
9958         __declspec(noreturn) syntax.
9959
9960 2000-02-19  Martin Buchholz  <martin@xemacs.org>
9961
9962         * eldap.c (Fldap_open):
9963         (Fldap_search_basic):
9964         (Fldap_add):
9965         (Fldap_modify):
9966         Use new coding system conversion macros.
9967
9968 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
9969
9970         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
9971
9972 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
9973
9974         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
9975         (Fldap_add, Fldap_modify, Fldap_delete): New functions
9976
9977         * eldap.c (Qadd, Qreplace): New constant symbols
9978         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
9979         interruptions by XEmacs signals
9980         Remove unnecessary calls to slow_down_interrupts and
9981         speed_up_interrupts
9982         (Fldap_search_basic): Renamed from Fldap_search_internal
9983         Added new optional parameter VERBOSE that triggers the
9984         display of progress messages
9985         Remove unnecessary calls to slow_down_interrupts and
9986         speed_up_interrupts
9987         LDAP result code analysis rewritten
9988         (Fldap_add, Fldap_modify, Fldap_delete): New functions
9989         (syms_of_eldap): Define the new symbols and functions
9990
9991
9992 2000-02-17  Martin Buchholz  <martin@xemacs.org>
9993
9994         * realpath.c: Determine PATH_MAX maximally portably.
9995
9996         * insdel.c (bytecount_to_charcount): Optimize.
9997         The function used to be optimized for entirely ASCII sequences.
9998         Now it is optimized for successive characters from the same
9999         charset.  This also wins big for _mostly_ ASCII sequences.
10000
10001         * fileio.c (Ffile_truename): convert return from realpath() using
10002         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10003         - Rewrite GCPROing slightly.
10004
10005         * sysdep.c (sys_open): Do filename conversion, like all other
10006         sys_* functions.  Fixes bug:
10007         (let ((file-name-coding-system 'iso-8859-2))
10008            (write-region x y latin2-name))
10009         ==> writes filename using internal encoding.
10010
10011 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10012
10013         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10014         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10015         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10016         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10017         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10018         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10019         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10020         (CONST_IF_NOT_DEBUG): Delete.
10021         * alloc.c (this_one_is_unmarkable): Delete.
10022         (mark_object): Don't check for this_one_is_unmarkable. Use the
10023         c_readonly flag instead.
10024         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10025
10026 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10027
10028         * event-msw.c (mswindows_drain_windows_queue):
10029         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10030         away redundant repaint events.
10031
10032 2000-02-17  Andy Piper  <andy@xemacs.org>
10033
10034         * redisplay.h: declare mark_redisplay_structs.
10035
10036         * redisplay.c (redisplay_window):
10037         (redisplay_frame): don't check subwindows_state_changed.
10038         (mark_redisplay): mark gutters here.
10039
10040         * glyphs.c: (instantiate_image_instantiator): always layout if we
10041         haven't done so already.
10042         (allocate_image_instance): don't mark as dirty.
10043         (update_subwindow): bind inhibit_quit.
10044
10045         * gutter.c (mark_gutters): new function.
10046
10047         * glyphs-x.c (x_update_widget): Always resize to get round a
10048         widget bug.
10049
10050         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10051         breaking absolutely everything.
10052
10053         * gutter.h: declare mark_gutters.
10054
10055 2000-02-16  Martin Buchholz <martin@xemacs.org>
10056
10057         * XEmacs 21.2.29 is released.
10058
10059 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10060
10061         * fns.c (size_bit_vector): Fix computation of the size.
10062
10063 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10064
10065         * *.[ch]: Change CONST to const globally.
10066         find -name '*.[ch]' | \
10067         xargs global-replace \
10068         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10069         - Remove vestigial references to CONST_IS_LOSING
10070
10071 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10072
10073         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10074         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10075         events instead of dispatching them directly.
10076         (mswindows_handle_paint): New function to do repainting.
10077         (mswindows_wnd_proc):
10078         (emacs_mswindows_handle_magic_event): Call above function.
10079
10080 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10081
10082         * objects-msw.c (mswindows_create_font_variant): Return the new
10083         font handle.
10084         (initialize_font_instance): Get font metrics from the underlined
10085         variant of the font to cope with the case where the underlined
10086         font has a bigger descent.
10087
10088 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10089
10090         * gui.c (gui_item_accelerator): Return the first underlined
10091         character in item name.
10092
10093 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10094
10095         * lisp.h: Added Qprinter.
10096
10097         * general.c (syms_of_general): Initialized it.
10098
10099         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10100         (get_frame_dc):
10101         (get_frame_compdc): Made inline.
10102
10103         * console.h (struct console_methods): Added eject_page method.
10104
10105         * frame.h: Added FRAME_DISPLAY_P and friends.
10106         Aligned backslahes in many macros in more readable fashion.
10107         Added page_number to struct frame, and an accessor macro
10108         for it.
10109
10110         * defice.h: Added DEVICE_DISPLAY_P and friends.
10111
10112         * device.c (Fdevice_printer_p): Used these.
10113
10114         * frame.c (allocate_frame_core): Initialize page number.
10115         (Fprint_job_page_number):
10116         (Fprint_job_eject_page): Implemented.
10117
10118         * frame-msw.c (msprinter_eject_page): Added method.
10119         (msprinter_start_page): Added.
10120
10121         * window.c (Fwindow_truncated_p): Fixed docstring.
10122         (Fwindow_last_line_visible_height): Implemented.
10123
10124 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10125
10126         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10127
10128 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10129
10130         * syntax.c (scan_words): Always advance at least one character.
10131
10132 2000-02-13  Andy Piper  <andy@xemacs.org>
10133
10134         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10135         to make sure the glyph is in the cachels.
10136
10137         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10138         global image instance flag.
10139         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10140         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10141
10142         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10143         (Fset_image_instance_property): mark layout as changed.
10144         (invalidate_glyph_geometry_maybe): mark layout as changed.
10145         (glyph_width): use new NEEDS_LAYOUT macro.
10146         (glyph_ascent): ditto.
10147         (glyph_descent): ditto.
10148         (glyph_height): ditto.
10149         (image_instance_layout): mark layout as clean after laying out.
10150         (update_subwindow): don't mark layout as clean here.
10151
10152         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10153         should no longer be needed.
10154
10155         * glyphs-x.c (x_update_widget): sanitize asserts.
10156         (x_finalize_image_instance): sanitize assignment to widgets.
10157
10158         * glyphs-widget.c (widget_instantiate): don't need to clear the
10159         layout flag here.
10160
10161 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10162
10163         * sysdep.c (getcwd): Use standard prototype.
10164         * sysdep.h (getcwd): Use standard prototype.
10165
10166         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10167         (sequence, start, end).
10168         Remove redundant type checking.
10169         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10170         view of `caller-protects') to avoid a crash where the real fix was
10171         found elsewhere.
10172
10173 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10174
10175         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10176
10177         * s/sol2.h: Remove feature macro initialization.
10178
10179         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10180         (vector_hash): New.  Code from internal_hash.
10181         * lrecord.h:
10182         Fix up allocation subsystem comments.
10183
10184         * config.h.in: Add __EXTENSIONS__ for Solaris.
10185
10186         * systime.h (EMACS_GETTIMEOFDAY): New.
10187         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10188         Remove Solaris-specific code.
10189         Use void* for the (ignored) second arg for gettimeofday().
10190
10191         * elhash.c (hash_table_hash): Implement it, finally.
10192         * elhash.c:  Use hashcode_t.
10193
10194         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10195         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10196
10197         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10198         * fns.c (size_bit_vector):
10199         * alloc.c (size_vector):
10200         (make_vector_internal):
10201         (make_bit_vector_internal):
10202         (sweep_bit_vectors_1):
10203         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10204
10205 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10206
10207         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10208         Include strings.h to avoid warnings for bzero and strcasecmp.
10209
10210 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10211
10212         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10213         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10214
10215         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10216         sequence.
10217
10218 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10219
10220         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10221         use a value field instead.
10222         (symbol_value_forward_forward): Use value field.
10223         (DEFVAR_SYMVAL_FWD): Use value field.
10224         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10225         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10226         (DEFVAR_CONST_INT): Ditto.
10227         (DEFVAR_BOOL): Ditto.
10228         (DEFVAR_CONST_BOOL): Ditto.
10229         (DEFVAR_INT_MAGIC): Ditto.
10230         (DEFVAR_BOOL_MAGIC): Ditto.
10231
10232         * symbols.c (guts_of_unbound_marker): Use value field.
10233         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10234         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10235
10236         * lisp.h: Declare dumpopaque and noninteractive1.
10237
10238         * alloc.c (dumpopaque): Added.
10239         (pdump_dump_opaquevec): Added.
10240         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10241         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10242         noninteractive.
10243
10244 2000-02-10  Andy Piper  <andy@xemacs.org>
10245
10246         * glyphs.c (image_instance_layout): if the size changes, mark it
10247         as such.
10248
10249         * redisplay-output.c (redisplay_output_layout): Update the
10250         subwindow here.
10251         (redisplay_output_subwindow): ditto.
10252
10253         * glyphs.c (update_subwindow): make sure we reset flags for
10254         layouts as well as everything else.
10255
10256         * glyphs-widget.c (layout_layout): don't need to set the instances
10257         dimensions here.
10258
10259 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10260
10261         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10262         not HAVE_DLOPEN, which is a lower-level thing.
10263
10264         * .cvsignore: Ignore gmon.out
10265
10266 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10267
10268         * .cvsignore: Ignore portable dumper xemacs.dmp file
10269
10270 2000-02-09  Andy Piper  <andy@xemacs.org>
10271
10272         * redisplay-output.c (redisplay_output_layout): be more clever
10273         about when we output based on the changed flags.
10274
10275         * glyphs.h (struct image_instantiator_methods): add update_method.
10276         (struct Lisp_Image_Instance): add changed flags. Declare new
10277         macros for manipulating them.
10278
10279         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10280         (image_instance_parent_glyph): find an image_instance's parent
10281         glyph or image_instance.
10282         (image_instance_layout): mark the size as changed.
10283         (set_image_instance_dirty_p): new function. mark an image
10284         instance, plus all of its parents, as dirty.
10285         (Fset_image_instance_property): use it.
10286         (Fglyph_animated_timeout_handler): use it.
10287         (update_subwindow): call update_widget and device methods for
10288         update_subwindow. Mark all changed flags as clean.
10289         (Fresize_subwindow): mark size as changed.
10290
10291         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10292         failures.
10293         (x_update_subwindow): only resize subwindows here.
10294         (x_update_widget): new function. Update all changed properties of
10295         a widget.
10296         (x_resize_subwindow): deleted.
10297         (x_widget_set_property): deleted.
10298         (x_progress_gauge_set_property): deleted.
10299         (x_progress_gauge_update): new function. Implement recorded
10300         changes.
10301         (x_tab_control_update): ditto.
10302         (x_tab_control_set_property): deleted.
10303         (console_type_create_glyphs_x): declare new functions.
10304         (image_instantiator_format_create_glyphs_x): ditto.
10305
10306         * glyphs-widget.c (widget_set_property): mark text changed.
10307         (update_widget): new function. Update properties of a widget.
10308         (widget_instantiate): for layouts make sure we set their
10309         children's parent correctly.
10310         (tab_control_set_property): new function. Record changes that will
10311         take place under redisplay's control.
10312         (progress_gauge_set_property): ditto.
10313         (image_instantiator_progress_guage): declare new functions.
10314         (image_instantiator_tab_control): ditto.
10315
10316         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10317         now.
10318         (mswindows_update_widget): new function. Update all properties on
10319         a widget that have changed.
10320         (mswindows_button_update): new function. Update a button's set
10321         state.
10322         (mswindows_tab_control_update): new function. Update the items in
10323         a tab.
10324         (mswindows_tab_control_set_property): deleted.
10325         (mswindows_progress_gauge_update): new function. Update the
10326         progress gauge's progress.
10327         (mswindows_widget_set_property): deleted. This is all done
10328         asynchronously now.
10329         (mswindows_progress_gauge_set_property): ditto.
10330         (console_type_create_glyphs_mswindows): declare new methods.
10331         (image_instantiator_format_create_glyphs_mswindows): ditto.
10332
10333         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10334         (msprinter_set_frame_properties): ditto.
10335
10336         * console.h (struct console_methods): Add update_widget_method.
10337
10338 2000-02-09  Andy Piper  <andy@xemacs.org>
10339
10340         * gui-msw.c (Fmswindows_shell_execute): Make
10341         mswindows-shell-execute industrial strength.
10342
10343 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10344
10345         * lrecord.h: Make macro argument `props' match member function `plist'.
10346         * fns.c (Fget):
10347         * fns.c (Fput):
10348         * fns.c (Fremprop):
10349         * fns.c (Fobject_plist):
10350         * alloc.c:
10351         * symbols.c:
10352         Object property list frobbing cleanup.
10353         - Allow any lisp object (compared with `eq'), not just symbols, as
10354           keys in object plists.
10355         - Move symbol plist frobbing into symbols.c, where it belongs.
10356         - Move string plist frobbing into alloc.c, where it belongs.
10357         - Everything's an lrecord now, so no need to test for symbolp, etc.
10358         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10359
10360         * extents.c: Reorder code to remove declarations.
10361
10362         * frame.h (store_in_alist): Remove useless declaration.
10363
10364 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10365
10366         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10367         * config.h.in: Add HAVE_XCONVERTCASE.
10368
10369 2000-02-07  Andy Piper  <andy@xemacs.org>
10370
10371         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10372         it breaks many things.
10373
10374 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10375
10376         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10377         actually can start a common comment type.
10378         * src/syntax.h (SYNTAX_END_P): ditto for end.
10379
10380 2000-02-07  Martin Buchholz <martin@xemacs.org>
10381
10382         * XEmacs 21.2.28 is released.
10383
10384 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10385
10386         * event-Xt.c (x_keysym_to_character): New.
10387         (maybe_define_x_key_as_self_inserting_character): New.
10388         (x_has_keysym): New.
10389         Auto-define all keys on the keyboard as self-insert-key.
10390
10391 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10392
10393         * menubar.c (vars_of_menubar): A small code simplification.
10394
10395         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10396
10397         * ExternalShell.c:
10398         * ExternalClient.c:
10399         * EmacsShell-sub.c:
10400         * EmacsManager.c:
10401         * EmacsFrame.c:
10402         Use consistent style for specifying X resources.
10403
10404         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10405         This makes (dontusethis-set-symbol-value-handler) actually usable.
10406
10407         * lrecord.h (lrecord_decription_type):
10408         * alloc.c (pdump_register_sub):
10409         (pdump_dump_data):
10410         (pdump_reloc_one):
10411         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10412         Comply with XEmacs coding style.
10413         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10414         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10415
10416         * keymap.c (Faccessible_keymaps):
10417         Make (accessible-keymaps map "\C-h") do the Right Thing.
10418         Make (accessible-keymaps map []) do the Right Thing.
10419         Make (accessible-keymaps map "") do the Right Thing.
10420         (check_keymap_definition_loop): New function.
10421         (keymap_store_internal): Keep luser from shooting self in foot,
10422           via (define-key ctl-x-4-map "p" global-map).
10423         Remove fullness slot from struct Lisp_Keymap, since hash tables
10424         are now reliable.
10425         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10426
10427 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10428
10429         * redisplay.c (init_redisplay): Fix small memory leak.
10430         * elhash.h:
10431         * elhash.c (pdump_reorganize_hash_table):
10432         Rename from reorganize_hash_table. Change prototype.
10433         Reuse the original memory for hentries.  Save 100k.
10434         * alloc.c (PDUMP_READ): new macro.
10435         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10436         * alloc.c: No need to #ifndef before #undef.
10437
10438         * print.c: Allow debug_print() to print readably by modifying
10439         debug_print_readably.  Use consistent variable names.
10440
10441         * .dbxrc: Try to get things to work even if stopped in a function
10442         without source available by explicitly specifying source files.
10443 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10444
10445         * unexnt.c (_start): Removed bogus code which caused loading heap
10446         from differrent executable file.
10447         Removed bogus assignment to _fmode, which caused inconsistencies.
10448
10449 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10450
10451         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10452         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10453         Do not preliminary `#define signal sigset'.
10454
10455         * systime.h: Do not prototype environ on windows nt and cygwin,
10456         this conflicts with system header.
10457
10458         * syssignal.h: Use correct define for WINDOWSNT
10459
10460         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10461         with system header.
10462
10463         * sysdep.c (near start of file): Fixed commentary and rearranged
10464         ifdefs in readable order.
10465         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10466         (start_of_text):
10467         (end_of_text):
10468         (end_of_data): Do not compile in if using PDUMP.
10469
10470         * symsinit.h: Prototyped vars_of_nt().
10471
10472         * ntproc.c (windows9x_p): Added, instead of os_subtype.
10473         (find_child_console): Use it.
10474         (sys_kill): Use it.
10475
10476         * ntheap.h: Do not extern os_subtype.
10477
10478         * ntheap.c (cache_system_info): Do not cache unneeded:
10479         nt_major_version, nt_minor_version and os_subtype.
10480         (recreate_heap): Do not compile in when PDUMPing.
10481
10482         * nt.c (geteuid and friends): Use the new varibale
10483         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10484         (init_user_info): Removed the above mentioned hackery.
10485         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10486         stat has been fixed in the C runtime.
10487         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10488
10489         * file-coding.c (struct file_coding_dump): Do not define
10490         ucs_to_mule_table in the struct if not MULE.
10491         (struct struct lrecord_description fcd_description_1): Do not dump
10492         the above.
10493
10494         * emacs.c (main_1): Call vars_of_nt().
10495         (right before Fdump_emacs_data): Don't need lastfile if using both
10496         portabe dumper and system malloc.
10497
10498         * alloc.c (Fmemory_limit): Conditionalized out.
10499         (pdump): Use OPEN_BINARY for the portable dump file.
10500         (pdump_load): Ditto.
10501
10502 2000-02-02  Mike Alexander  <mta@arbortext.com>
10503
10504         * nt.c (convert_time): Set tm_isdst before calling mktime and
10505         avoid calling it at all if the compiler supports 64 bit integers.
10506         Also initialize utc_base_ft before using it.
10507
10508 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10509
10510         * frame.c (change_frame_size_1): Take f->internal_border_width
10511         into consideration when calculating the width of the frame.
10512
10513 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10514
10515         * window.c (frame_min_height):
10516         (frame_size_valid_p):
10517         (frame_pixsize_valid_p): Added.
10518         (check_frame_size): Generalized.
10519
10520         * window.h: Prototyped the above.
10521
10522         * lisp.h:
10523         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
10524         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
10525         Deleted Vwin32_* and Vbinary_process_* unused variables.
10526
10527         * device-msw.c (msprinter_init_device): Do not get printer font
10528         list; Added DEVMODE functions.
10529
10530         * frame-msw.c: Added lots of printer code.
10531
10532         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
10533         general.c.
10534
10535         * console-msw.h: Added more msprinter device private slots.
10536
10537 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10538
10539         * event-msw.c (key_needs_default_processing_p): Added.
10540         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
10541
10542 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10543
10544         * glyphs.c (image_instance_layout): Mark image instance as clean
10545         after layout.
10546         (glyph_dirty_p): Removed redundant function.
10547         (invalidate_glyph_geometry_maybe): Added.
10548         (update_glyph_cachel_data): Call it.
10549
10550         * glyphs.h: Prototyped it.
10551
10552         * redisplay.c (add_glyph_rune): Call it.
10553         (redisplay_window): Reset glyphs cachels when frame faces have
10554         changed, thus forcing recomputation of built-in border glyphs.
10555
10556 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10557
10558         * Makefile.in.in: Make portable dumper and purify play well together.
10559         Add imperfect, but better than nothing, support for pdump.
10560         Remove xemacs.dmp when temacs is re-generated.
10561         Don't ignore errors when dumping xemacs.
10562
10563         * symbols.c (maybe_call_magic_handler): Remove one magic number.
10564
10565 2000-01-28  Andy Piper  <andy@xemacs.org>
10566
10567         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
10568         (setup_normal_frame): ditto.
10569         (setup_frame_without_minibuffer): ditto.
10570         (setup_minibuffer_frame): ditto.
10571         (delete_frame_internal): ditto.
10572         (Fmake_frame_invisible): ditto.
10573         (Ficonify_frame): ditto.
10574
10575         * window.h: change Fset_window_buffer signature.
10576
10577         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
10578         (Fset_window_buffer): allow recording of buffer if the window is
10579         the selected window.
10580         (window_loop): Use new Fset_window signature.
10581
10582 2000-01-23  Daniel Pittman  <daniel@danann.net>
10583
10584         * config.h.in: Added template for `HAVE_ATHENA_3D'
10585
10586 2000-01-29  Andy Piper  <andy@xemacs.org>
10587
10588         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
10589
10590         * gutter.c (output_gutter): Don't output if the window isn't live.
10591
10592 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10593
10594         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
10595         of 01/12/00: Moved SetFocus back here where it belongs.
10596
10597 2000-01-23  Andy Piper  <andy@xemacs.org>
10598
10599         * s/cygwin32.h: declare printer things.
10600
10601 2000-01-26  Andy Piper  <andy@xemacs.org>
10602
10603         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
10604         Alexander.
10605
10606 2000-01-24  Andy Piper  <andy@xemacs.org>
10607
10608         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
10609         (mswindows_button_instantiate): Make sure glyph is a pixmap.
10610
10611         * glyphs-widget.c (widget_instantiate): Avoid shadows.
10612
10613         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
10614
10615         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
10616
10617         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
10618         (mswindows_output_display_block): Avoid local shadows.
10619
10620         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
10621         (mswindows_enqueue_mouse_button_event): ditto.
10622         (mswindows_handle_gui_wm_command): remove declaration.
10623
10624         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
10625         warnings.
10626
10627         * console-msw.h: Avoid shadows.
10628         (mswindows_get_toolbar_button_text):
10629         (emacs_mswindows_create_stream_pair):
10630         (emacs_mswindows_delete_stream_pair):
10631         (mswindows_handle_toolbar_wm_command): declare.
10632
10633         * device-msw.c (build_syscolor_string): Avoid shadows.
10634
10635 2000-01-23  Andy Piper  <andy@xemacs.org>
10636
10637         * glyphs-widget.c (widget_instantiate): reverse the items for
10638         layouts so that children are in the expected order.
10639
10640 2000-01-28  Martin Buchholz  <martin@xemacs.org>
10641
10642         * ralloc.c: safe_bcopy ==> memmove
10643         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
10644         * s/msdos.h: Remove BCOPY macros.
10645         * insdel.c (gap_right): Remove BCOPY conditional code.
10646         * insdel.c (gap_left): Remove BCOPY conditional code.
10647         XEmacs demands a working ANSI C compiler - hence memmove.
10648
10649         * regex.c (regex_compile): Remove accidental use of trigraphs.
10650
10651 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10652
10653         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
10654         event timestamp.
10655
10656 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10657
10658         * event-msw.c (mswindows_drain_windows_queue): Added the
10659         parameter.
10660         (mswindows_need_event): Commented the call to
10661         mswindows_drain_windows_queue().
10662         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
10663         only.
10664
10665         * console-msw.h: Moved a few function prototypes here from
10666         event-msw.c.
10667
10668         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
10669         parameter from unsigned short to unsigned long.
10670         (Fmswindows_shell_execute): Added return value.
10671
10672 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10673
10674         * sysdep.c (init_system_name):
10675           process-unix.c (unix_canonicalized_host_name):
10676         Don't call freeaddrinfo() if getaddrinfo() fails.
10677
10678         * process-unix.c (unix_open_unix_network_stream):
10679         Moved the code to get a port # into address loop.
10680
10681 2000-01-27  Martin Buchholz  <martin@xemacs.org>
10682
10683         * buffer.c (reinit_vars_of_buffer):
10684         The right place to initialize conversion_in_dynarr and
10685         conversion_out_dynarr.
10686
10687         * alloc.c (pdump): Use the real open() till sys_open() is functional.
10688
10689         * process-unix.c (unix_canonicalize_host_name): Muleize.
10690         (unix_open_network_stream): Muleize.
10691
10692         * buffer.h: Fix up prototypes for ralloc.c functions.
10693
10694 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10695         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
10696         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
10697                 instead of gethostbyname()
10698         * process-unix.c: In unix_canonicalize_host_name() and
10699                 unix_open_network_stream(), add code to use getaddrinfo()
10700                 instead of gethostbyname().
10701
10702 2000-01-27  Daniel Pittman <daniel@danann.net>
10703
10704         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
10705         libs when built with flat Athena.
10706
10707 2000-01-27  Martin Buchholz  <martin@xemacs.org>
10708
10709         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
10710         Use coding standards for function prototypes.
10711
10712 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10713
10714         * dialog-msw.c (push_lisp_string_as_unicode):
10715         * doc.c (unparesseuxify_doc_string):
10716         * dired.c (Fuser_name_completion_1):
10717         * dired.c (Fuser_name_all_completions):
10718         * dired.c (free_user_cache):
10719         * dired.c (user_name_completion):
10720         * console-x.c (get_display_arg_connection):
10721         * minibuf.c (clear_echo_area_internal):
10722         * minibuf.c (echo_area_append):
10723         * eldap.c (Fldap_open):
10724         * eldap.c (Fldap_search_internal):
10725         * frame-x.c (x_set_frame_text_value):
10726         * frame-x.c (x_set_frame_properties):
10727         * frame-x.c (x_create_widgets):
10728         * redisplay-tty.c (term_get_fkeys_1):
10729         * objects-x.c (x_parse_nearest_color):
10730         * objects-x.c (x_valid_color_name_p):
10731         * objects-x.c (x_initialize_font_instance):
10732         * objects-x.c (x_list_fonts):
10733         * objects-x.c (x_find_charset_font):
10734         * tooltalk.c (Fadd_tooltalk_message_arg):
10735         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10736         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10737         * process-unix.c (unix_create_process):
10738         * ntproc.c (sys_spawnve):
10739         * sound.c (Fplay_sound_file):
10740         * sound.c (Fplay_sound):
10741         * buffer.c (init_initial_directory):
10742         * buffer.c (init_buffer):
10743         * editfns.c (init_editfns):
10744         * editfns.c (Ftemp_directory):
10745         * editfns.c (Fuser_full_name):
10746         * editfns.c (uncache_home_directory):
10747         * editfns.c (get_home_directory):
10748         * editfns.c (Fuser_home_directory):
10749         * editfns.c (Fformat_time_string):
10750         * editfns.c (Fcurrent_time_string):
10751         * gui-x.c (button_item_to_widget_value):
10752         * database.c (Fopen_database):
10753         * event-Xt.c (x_to_emacs_keysym):
10754         * event-Xt.c (x_event_to_emacs_event):
10755         * event-Xt.c (describe_event_window):
10756         * event-msw.c (mswindows_wnd_proc):
10757         * glyphs-eimage.c (jpeg_instantiate):
10758         * glyphs-eimage.c (gif_instantiate):
10759         * glyphs-eimage.c (png_instantiate):
10760         * glyphs-eimage.c (tiff_instantiate):
10761         * glyphs-x.c (xbm_instantiate_1):
10762         * glyphs-x.c (x_xbm_instantiate):
10763         * glyphs-x.c (x_xface_instantiate):
10764         * glyphs-x.c (autodetect_instantiate):
10765         * glyphs-x.c (cursor_font_instantiate):
10766         * glyphs-x.c (x_widget_instantiate):
10767         * glyphs-x.c (x_widget_set_property):
10768         * glyphs-x.c (x_widget_property):
10769         * glyphs-x.c (BUILD_GLYPH_INST):
10770         * print.c (write_string_to_stdio_stream):
10771         * print.c (output_string):
10772         * print.c (Falternate_debugging_output):
10773         * print.c (Fexternal_debugging_output):
10774         * glyphs-msw.c (extract_xpm_color_names):
10775         * glyphs-msw.c (mswindows_xpm_instantiate):
10776         * glyphs-msw.c (bmp_instantiate):
10777         * glyphs-msw.c (resource_name_to_resource):
10778         * glyphs-msw.c (mswindows_resource_instantiate):
10779         * glyphs-msw.c (xbm_instantiate_1):
10780         * glyphs-msw.c (mswindows_xbm_instantiate):
10781         * glyphs-msw.c (mswindows_xface_instantiate):
10782         * glyphs-msw.c (mswindows_widget_instantiate):
10783         * glyphs-msw.c (add_tree_item):
10784         * glyphs-msw.c (add_tab_item):
10785         * glyphs-msw.c (mswindows_combo_box_instantiate):
10786         * glyphs-msw.c (mswindows_widget_property):
10787         * glyphs-msw.c (mswindows_combo_box_property):
10788         * glyphs-msw.c (mswindows_widget_set_property):
10789         * console.c (stuff_buffered_input):
10790         * objects-msw.c (mswindows_initialize_color_instance):
10791         * objects-msw.c (mswindows_valid_color_name_p):
10792         * objects-msw.c (mswindows_list_fonts):
10793         * objects-msw.c (mswindows_font_instance_truename):
10794         * bytecode.c (optimize_compiled_function):
10795         * select-x.c (symbol_to_x_atom):
10796         * select-x.c (x_atom_to_symbol):
10797         * select-x.c (hack_motif_clipboard_selection):
10798         * select-x.c (selection_data_to_lisp_data):
10799         * select-x.c (lisp_data_to_selection_data):
10800         * select-x.c (Fx_get_cutbuffer_internal):
10801         * select-x.c (Fx_store_cutbuffer_internal):
10802         * buffer.h (TO_EXTERNAL_FORMAT): New function.
10803         * buffer.h (TO_INTERNAL_FORMAT): New function.
10804         * emacs.c (make_arg_list_1):
10805         * emacs.c (make_argc_argv):
10806         * emacs.c (main_1):
10807         * emacs.c (Fdump_emacs):
10808         * emacs.c (split_string_by_emchar_1):
10809         * file-coding.h:
10810         * lisp.h:
10811         * lstream.h:
10812         * symsinit.h:
10813         * device-x.c (x_init_device):
10814         * device-x.c (Fx_valid_keysym_name_p):
10815         * device-x.c (Fx_get_font_path):
10816         * device-x.c (Fx_set_font_path):
10817         * glyphs.c (bitmap_to_lisp_data):
10818         * glyphs.c (pixmap_to_lisp_data):
10819         * alloc.c (make_ext_string): Use coding system arguments.  Update
10820         all callers.
10821         * alloc.c (build_string):
10822         * callproc.c (child_setup):
10823         * callproc.c (init_callproc):
10824         * fileio.c (lisp_strerror):
10825         * fileio.c (directory_file_name):
10826         * fileio.c (Fexpand_file_name):
10827         * fileio.c (Ffile_truename):
10828         * fileio.c (Fsysnetunam):
10829         * fileio.c (Fdo_auto_save):
10830         * sysdep.c (sys_readdir):
10831         * tests.c: New file.  Allow adding C tests.
10832         Replace GET_* macros with a more comprehensible and flexible
10833         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
10834         Modify all calls.
10835         Any coding system can be used to do format conversion.
10836         Eliminate enum external_data_format.
10837         Eliminate convert_to_external_format.
10838         Eliminate convert_to_internal_format.
10839         Make sure file-name, keyboard, terminal, and ctext are always
10840         defined as coding systems or aliases.  Make
10841         file-name-coding-system, terminal-coding-system, and
10842         keyboard-coding-system magical variables that are equivalent to
10843         defining the corresponding coding system aliases.
10844
10845         * file-coding.c (Fcoding_system_canonical_name_p): New function.
10846         * file-coding.c (Fcoding_system_alias_p): New function.
10847         * file-coding.c (Fcoding_system_aliasee): New function.
10848         * file-coding.c (append_suffix_to_symbol): New function.
10849         * file-coding.c (dangling_coding_system_alias_p): New function.
10850         * file-coding.c (Ffind_coding_system):
10851         * file-coding.c (Fcopy_coding_system):
10852         * file-coding.c (encode_coding_no_conversion):
10853         * file-coding.c (syms_of_file_coding):
10854         * file-coding.c (vars_of_file_coding):
10855         Rewrite coding system alias code.
10856         Allow nested aliases, like symbolic links.
10857         Allow redefinition of coding system aliases.
10858         Prevent existence of dangling coding system aliases.
10859
10860         * dired.c (Fuser_name_completion_1):
10861         * dired.c (Fuser_name_all_completions):
10862         A crash would happen if user did QUIT in the middle of building
10863         user_name_cache.  Remove redundant code in mainline and unwind_protect.
10864
10865         * lisp.h:
10866         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
10867
10868         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
10869         an unsigned char *.  Update all callers.
10870
10871 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10872
10873         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
10874
10875 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10876
10877         * elhash.c (hentry_description): Use more portable definition.
10878         (resize_hash_table): Initialize new hentries using
10879         xnew_array_and_zero, thereby simplifying the code.
10880
10881         * mule-charset.c (make_charset): Make sure entire object is
10882         initialized, to avoid Purify warnings.
10883
10884         * alloc.c (resize_string): Fix unlikely crash with big strings.
10885
10886 2000-01-24  Martin Buchholz  <martin@xemacs.org>
10887
10888         * realpath.c (xrealpath):
10889         Don't call getwd().
10890
10891 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10892
10893         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
10894
10895 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
10896
10897         * unexelfsgi.c (unexec): Change the way we decide which segment
10898         should be extended.
10899
10900         Assumption that .bss section should be outside the PT_LOADable
10901         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
10902         it's present) is inside the 'data' segment. This would fail the
10903         test which was used to find a segment to grow and cover new
10904         heap. Instead of this assumption, I created another one - on IRIX
10905         the segment to grow should start below .bss and it's address
10906         should extent above the end of .bss. Once this segment is
10907         identified, it's grown to accommodate the new heap and new
10908         zero-length .bss section is added at the end of .data2.
10909
10910 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10911
10912         * eval.c (Feval): Wrong number of arguments should use original
10913         function, not the indirect_function version of it.
10914
10915 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10916
10917         * glyphs-x.c (x_button_instantiate): Don't add image if
10918         it is not a pixmap.
10919         (x_locate_pixmap_file): Call Fexpand_file_name when file name
10920         is relative.
10921
10922 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10923
10924         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
10925         declaration.
10926         (DEFVAR_INT_MAGIC): Ditto.
10927         (DEFVAR_BOOL_MAGIC): Ditto.
10928         * glyphs.h: Reindent backslash.
10929
10930 2000-01-24  Martin Buchholz  <martin@xemacs.org>
10931
10932         * glyphs-widget.c (layout_query_geometry):
10933         (layout_layout): Use correct types for gheight, gwidth.
10934
10935 2000-01-24  Martin Buchholz  <martin@xemacs.org>
10936
10937         * EmacsManager.c (QueryGeometry): Purified.
10938
10939 2000-01-23  Martin Buchholz  <martin@xemacs.org>
10940
10941         * alloc.c (make_float): Make sure entire object is initialized, to
10942         avoid Purify warnings.
10943         (pdump_register_sub): Remove useless assignment.
10944         (pdump): Use xmalloc, not malloc.
10945         (pdump_load): Use xmalloc, not malloc.
10946
10947 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10948
10949         * callproc.c:
10950         * dired-msw.c:
10951         * fileio.c:
10952         * process-nt.c:
10953         * redisplay-msw.c:
10954         * sysdep.c: Removed redundant #include <windows.h>
10955
10956 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10957
10958         * frame.c (delete_frame_internal): Do not delete device when its
10959         implementation so declares.
10960         (delete_frame_internal): Set device selected frame to nil when
10961         last frame goes away.
10962
10963         * device-msw.c (msprinter_device_system_metrics): Implemented.
10964         (mswindows_device_system_metrics): Added 'device-dpi property.
10965
10966         * device.c: (Fdevice_printer_p): Added.
10967         Added 'offset-workspace device metric.
10968
10969         * console.h (device_metrics): Declared DM_offset_workspace.
10970
10971 2000-01-23  Martin Buchholz  <martin@xemacs.org>
10972
10973         * fileio.c (Ffile_truename): Remove pointless and confusing
10974         initialization of elen.
10975
10976         * glyphs-widget.c: Compiler warning fixes.
10977
10978 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10979
10980         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
10981         instead of a Lisp_Object as argument to make it consistent with
10982         the other LIVE_P macros.
10983         (CHECK_LIVE_PROCESS): New macro.
10984
10985         * process.c: Declare Qprocess_live_p.
10986         (Fprocess_live_p): New function.
10987         (create_process): Use PROCESS_LIVE_P.
10988         (read_process_output): Ditto.
10989         (set_process_filter): Ditto.
10990         (Fdelete_process): Ditto.
10991         (kill_buffer_processes): Ditto
10992         (process_send_signal): Use CHECK_LIVE_PROCESS.
10993         (Fprocess_input_coding_system): Check whether process is still
10994         alive (fix PR#1061).
10995         (Fprocess_output_coding_system): Ditto.
10996         (Fprocess_coding_system): Ditto.
10997         (Fset_process_input_coding_system): Ditto.
10998         (Fset_process_output_coding_system): Ditto.
10999
11000 2000-01-23  Andy Piper  <andy@xemacs.org>
11001
11002         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11003         layout and widget.
11004
11005         * glyphs.c (mark_image_instance): take into account changed
11006         image_instance format.
11007         (image_instance_equal): ditto.
11008         (image_instance_hash): ditto.
11009
11010         * glyphs-widget.c (widget_instantiate): Incorporate layout
11011         instantiation here. Delay layout of the layout until later.
11012         (layout_instantiate): deleted.
11013         (layout_query_geometry): new function. get the geometry of a
11014         layout.
11015         (layout_layout): layout a layout dynamically.
11016         (image_instantiator_widget): New function - splitting up
11017         image_instantiator_format_create_glyphs_widget for netwinder
11018         compilation.
11019         (image_instantiator_buttons):
11020         (image_instantiator_edit_fields):
11021         (image_instantiator_combo_box):
11022         (image_instantiator_scrollbar):
11023         (image_instantiator_progress_guage):
11024         (image_instantiator_tree_view):
11025         (image_instantiator_tab_control):
11026         (image_instantiator_labels):
11027         (image_instantiator_layout): ditto.
11028         (image_instantiator_format_create_glyphs_widget): Call preceding
11029         functions.
11030
11031 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11032
11033         * process.c (Fset_process_coding_system):
11034         * device-x.c (Fx_keysym_hash_table):
11035         Docstring fixes.
11036
11037         * lstream.c (Lstream_write): Return documented value, not 0.
11038
11039         * fileio.c (directory_file_name):
11040         (Fsubstitute_in_file_name):
11041         (Fsubstitute_insert_file_contents_internal):
11042         (Fwrite_region_internal):
11043         * emacs.c:
11044         * sysdep.c:
11045         * getloadavg.c:
11046         * systty.h:
11047         Remove vestigial APOLLO-conditional code.
11048
11049 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11050
11051         * getpagesize.h: Add guard macros.
11052         * libsst.h: Add guard macros.
11053         * libst.h: Add guard macros.
11054         * line-number.h: Add guard macros.
11055         * ndir.h: Add guard macros.
11056         * sysfloat.h: Add guard macros.
11057         * sysfile.h: Add guard macros.
11058         * sysproc.h: Add guard macros.
11059         * syswait.h: Add guard macros.
11060         * xintrinsic.h: Add guard macros.
11061         * xintrinsicp.h: Add guard macros.
11062         * xmmanager.h: Add guard macros.
11063         * xmmanagerp.h: Add guard macros.
11064         * xmprimitive.h: Add guard macros.
11065         * xmu.h: Add guard macros.
11066         * gpmevent.h: Add copyright statement. Add guard macros.
11067         * miscplay.h: Add guard macros.
11068         * *.h: Use consistent C-standards-approved guard macro names.
11069
11070         * opaque.c (make_opaque): Switch parameter order.
11071         * opaque.h (make_opaque): Switch parameter order.
11072         Update all callers.
11073         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11074
11075         * config.h.in (type_checking_assert): Added.
11076         (bufpos_checking_assert): Added.
11077
11078 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11079
11080         * alloc.c: Harmless pdump changes.
11081         - Use countof().
11082         - spell alignment correctly.
11083         * sysdep.c: Use countof()
11084
11085 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11086
11087         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11088         initially_selected_for_input() console method, default to 0.
11089         (semi_canonicalize_console_connection): Try to delegate to
11090         canonicalize_console_connection if no such console method.
11091         (canonicalize_console_connection): Vice versa.
11092         (print_console): Do not print nil connection.
11093
11094         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11095         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11096         (XDEVIMPF_FRAMELESS_OK): Added.
11097         (CONSOLE_INHERITS_METHOD): Added.
11098
11099         * console-msw.c (mswindows_canonicalize_console_connection):
11100         Added.
11101         (mswindows_canonicalize_device_connection): Added.
11102
11103         * console-msw.h (struct msprinter_device): Added this struct and
11104         accessor macros.
11105         (mswindows_device): Made fontlist a lisp object.
11106
11107         * device.c (semi_canonicalize_device_connection):  Try to delegate
11108         to canonicalize_device_connection if no such console method.
11109         (canonicalize_device_connection): Vice versa.
11110         (print_device): Do not print nil connection.
11111
11112         * device-msw.c (mswindows_init_device): Call InitCommonControls
11113         when have widgets.
11114         (mswindows_delete_device): Removed fontlist deallocation.
11115         (mswindows_mark_device): Added.
11116
11117         * events.c (event_equal): Added abort() at unreached code.
11118         (event_hash): Ditto.
11119
11120         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11121         fallback tags of Windows devices.
11122
11123         * general.c (syms_of_general): Initialized Qmsprinter.
11124
11125         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11126         of fallback tags of Windows devices.
11127
11128         * lisp.h: Declared Qmsprinter.
11129
11130         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11131         of strings.
11132         (mswindows_list_fonts): Ditto.
11133         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11134         that it can be used by both mswindows and msprinter devices.
11135         (initialize_font_instance): Added.
11136         (mswindows_initialize_font_instance): Use it.
11137         (msprinter_initialize_font_instance): Added.
11138
11139         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11140         and implementation flags check.
11141         (redisplay_without_hooks): Changed the call to the above.
11142         (Fredraw_device): Ditto.
11143         (Fredisplay_device): Ditto.
11144
11145         * redisplay-msw.c (get_frame_dc): Implemented.
11146         (get_frame_compdc): Implemented.
11147         (many functions): Use the two functions above to get device
11148         contexts, ether for a window or a printer.
11149
11150 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11151
11152         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11153         initialization here.
11154         (init_symbols_once_early): Call it.
11155         * emacs.c (main_1): Call it.
11156         * symsinit.h: Declare it.
11157
11158 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11159
11160         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11161         Lisp_Object.
11162         (pdump_backtrace): Ditto.
11163         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11164         (pdump_get_entry): Abort if trying to register a null pointer.
11165         (pdump_dump_data): Cleanup types when relocating.
11166         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11167         (pdump_dump_rtables): Remove bad casts.
11168         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11169         Lisp_Object instead of a EMACS_INT for the hashtable
11170         reorganization.
11171
11172 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11173
11174         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11175
11176         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11177
11178         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11179
11180         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11181
11182 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11183
11184         * faces.h (FACE_STRIKETHRU_P): Added.
11185
11186         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11187         of font variants.
11188
11189         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11190         (mswindows_set_dc_font): New function, aware of font variants,
11191         separated from mswindows_update_dc.
11192
11193         * objects-msw.h (struct mswindows_font_instance_data): Added
11194         definition.
11195
11196         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11197         cached fonts and the data structure.
11198         (mswindows_initialize_font_instance): Added creation of font data
11199         structure.
11200         (mswindows_print_font_instance): Print at least something.
11201         (mswindows_create_font_variant): Implemented.
11202         (mswindows_get_hfont): Implemented.
11203
11204 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11205
11206         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11207         prototyping problem with msvc.
11208
11209         * emacs.c (main_1): added syms_of_gui_mswindows() call
11210
11211         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11212         syms_of_gui_mswindows() function
11213
11214         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11215
11216 2000-01-18  Martin Buchholz <martin@xemacs.org>
11217
11218         * XEmacs 21.2.27 is released.
11219
11220 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11221
11222         * glyphs-eimage.c (struct tiff_error_struct):
11223         (tiff_error_func):
11224         (tiff_warning_func):
11225         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11226
11227         * unexmips.c:
11228         * unexhp9k3.c:
11229         * unexfreebsd.c:
11230         * unexec.c: Remove vestigial Lucid C code.
11231         * unexalpha.c:
11232         * unexaix.c:
11233         * termcap.c:
11234         * libsst.c: Ansify.
11235         Remove declarations of errno and strerror().
11236
11237         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11238
11239         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11240
11241 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11242
11243         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11244         Optimize.
11245
11246 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11247
11248         * md5.c:
11249         * file-coding.c:
11250         * file-coding.h:
11251         Change enum eol_type to eol_type_t.
11252
11253 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11254
11255         * gui.c (get_gui_callback): Check cons before accessing car.
11256
11257 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11258
11259         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11260         (XSETSPECIFIER_TYPE): Ditto.
11261
11262 2000-01-17  Didier Verna  <didier@xemacs.org>
11263
11264         * redisplay.c (generate_fstring_runes): compute string size in
11265         characters, not bytes.
11266
11267 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11268
11269         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11270
11271 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11272
11273         * print.c (print_error_message): Call print_prepare().
11274
11275 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11276
11277         * .dbxrc: Renamed from dbxrc.
11278
11279         * events.c (event_to_character):
11280         Use `assert (foo)' instead of `if (!foo) abort()'
11281
11282         * .gdbinit (xtype): Add documentation.
11283         * .gdbinit (check-temacs): New function.
11284         * .gdbinit (check-xemacs): New function.
11285         * dbxrc (check-xemacs): New function.
11286         * dbxrc (check-xemacs): New function.
11287
11288 2000-01-14  Andy Piper  <andy@xemacs.org>
11289
11290         * glyphs-widget.c (widget_query_geometry): Make sure that we
11291         calculate default dimensions correctly.
11292
11293 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11294
11295         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11296
11297         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11298         pdump_wire'd variable.
11299
11300         * emacs.c: (main_1): Conditionalized calls to
11301         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11302
11303 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11304
11305         * window.c (Fset_window_configuration):
11306         * sysdep.c (_start):
11307         * input-method-motif.c (res):
11308         * event-Xt.c (Xt_process_to_emacs_event):
11309         Simple compiler warning fixes.
11310
11311         * bytecode.c (funcall_compiled_function): Use the original
11312         function symbol on the backtrace list in preference to the
11313         compiled_function object in error messages.
11314
11315 2000-01-13  Andy Piper  <andy@xemacs.org>
11316
11317         * glyphs-x.c (update_widget_face): Make sure we update the widget
11318         background as well as foreground.
11319
11320 2000-01-13  Andy Piper  <andy@xemacs.org>
11321
11322         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11323         fields to subwindow.
11324         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11325         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11326         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11327         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11328
11329         * glyphs-widget.c (check_valid_tab_orientation): new function.
11330         (initialize_widget_image_instance): zero orientation and
11331         justification.
11332         (widget_instantiate): pick up orientation.
11333         (tab_control_query_geometry): return appropriate values for
11334         vertical tabs.
11335
11336         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11337         appropriate creation flags for left, right and bottom tabs.
11338
11339         * s/cygwin32.h: add tab definitions.
11340
11341 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11342
11343         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11344         frame upon hiding a subwindow.
11345         (mswindows_button_instantiate): Changed the push button style to
11346         BS_PUSHBUTTON.
11347         (mswindows_button_instantiate): Removed button BS_NOTIFY
11348         style.
11349         (mswindows_button_instantiate): Removed redundant check for
11350         a disabled gui item.
11351         (mswindows_button_instantiate): Made use of WS_TABSTOP
11352         consistent: "operable" controls (edit, button, tree, scroll) have
11353         this style, "display-only" ones (static, progress gauge) do
11354         not. This style is currently ignored by XEmacs though. Also,
11355         removed the WS_EX_CONTROLPARENT style - it is not for children,
11356         it is for their parents!
11357         (mswindows_edit_field_instantiate): Ditto.
11358         (mswindows_progress_gauge_instantiate): Ditto.
11359         (mswindows_tree_view_instantiate): Ditto.
11360         (mswindows_tab_control_instantiate): Ditto.
11361         (mswindows_scrollbar_instantiate): Ditto.
11362         (mswindows_combo_box_instantiate): Ditto.
11363         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11364         style to the "clip" window.
11365         (mswindows_button_instantiate): Removed compilation warning by
11366         equally typing terms of the ?: operator.
11367
11368 2000-01-12  Didier Verna  <didier@xemacs.org>
11369
11370         * redisplay.c (generate_fstring_runes): new parameter holding the
11371         last modeline-format extent.
11372         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11373         extent, fill the glyph block with it.
11374         (generate_fstring_runes): handle these parameters.
11375         (generate_formatted_string_db): ditto.
11376
11377         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11378         glyphs'extents in the modeline.
11379
11380 1999-01-11  Mike Woolley  <mike@bulsara.com>
11381
11382         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11383         256Mb, as a workaround for the non-starting problem many people
11384         have experienced.
11385
11386 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11387
11388         * console-tty.c (Fset_console_tty_output_coding_system):
11389         Force redrawing tty frame.
11390
11391 2000-01-10  Didier Verna  <didier@xemacs.org>
11392
11393         * redisplay.c (generate_fstring_runes): fix size computation bug.
11394
11395 2000-01-09  William M. Perry <wmperry@aventail.com>
11396
11397         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11398
11399 2000-01-09  Andy Piper  <andy@xemacs.org>
11400
11401         * glyphs-msw.c: index -> i to avoid shadows.
11402         (xbm_create_bitmap_from_data): make static.
11403         (check_valid_string_or_int): deleted.
11404         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11405
11406         * glyphs-x.c (x_update_subwindow): remove unused args.
11407
11408         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11409         back pointer - this is done in allocate_image_instance.
11410         (query_string_font): return Qnil to make the compiler happy.
11411         (unmap_subwindow): set to ~0 to make the compiler happy.
11412         (glyph_query_geometry): comment out until used.
11413         (glyph_layout): ditto.
11414
11415 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11416
11417         * insdel.c (signal_after_change): Remove extraneous unbind_to().