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