(SPLIT_CHAR): Don't make new cell if a charset slot is found.
[chise/xemacs-chise.git] / src / ChangeLog
1 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2
3         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4         charset, it is regarded as a charset.
5         (put_char_attribute): New function in UTF-2000.
6         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
7         charset, mapping-table of the charset is modified.
8         (Fdefine_char): New function in UTF-2000.
9         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
10         `Fput_char_attribute'.
11         (syms_of_mule_charset): Add new function `define-char' and new
12         symbol `ucs' in UTF-2000.
13         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
14
15 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
16
17         * mule-charset.c (Fcharset_name): Define `byte_offset' in
18         non-UTF-2000 configuration.
19
20 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
21
22         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
23         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
24
25         * mule-charset.c (mark_charset): `cs->encoding_table' has been
26         deleted.
27         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
28         (Fset_charset_mapping_table): Likewise.
29
30         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
31         (CHARSET_ENCODING_TABLE): Delete.
32         (XCHARSET_ENCODING_TABLE): Delete.
33         (charset_code_point): New interface.
34
35 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
36
37         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
38         instead of `charset_get_byte1' and `charset_get_byte2'.
39
40         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
41         (charset_get_byte2): Deleted.
42
43 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
44
45         * char-ucs.h (SPLIT_CHAR): New inline function.
46         (breakup_char_1): Use `SPLIT_CHAR'.
47
48         * mule-charset.c (range_charset_code_point): New function.
49         (charset_code_point): New function.
50
51         * char-ucs.h (range_charset_code_point): New interface.
52         (breakup_char_1): Use `range_charset_code_point'.
53
54 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
55
56         * mule-charset.c (Fmake_charset): Delete unused local variable
57         `code_offset'.
58
59         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
60         (breakup_char_1): Find a charset and code-point in
61         `Vcharacter_attribute_table'.
62
63 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
64
65         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
66         to 0.10 (Yao).
67
68 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
69
70         * mule-charset.c (Vcharacter_attribute_table): New variable.
71         (Fchar_attribute_alist): New function.
72         (Fget_char_attribute): New function.
73         (Fput_char_attribute): New function.
74         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
75         too.
76         (syms_of_mule_charset): Add new function `char-attribute-alist',
77         `get-char-attribute' and `put-char-attribute'.
78         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
79
80 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
81
82         * mule-charset.c (Fmake_charset): Just use
83         `get_unallocated_leading_byte'.
84
85         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
86         sets; don't use final-byte based number for private sets.
87
88 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
89
90         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
91         integer.
92
93 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
94
95         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
96         to 0.9.
97
98 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
99
100         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
101         of `CHAR_LEADING_BYTE' in UTF-2000.
102
103         * insdel.c (find_charsets_in_bufbyte_string): Use
104         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
105         (find_charsets_in_emchar_string): Likewise.
106
107         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
108         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
109
110         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
111         (CHAR_CHARSET_ID): New macro.
112
113 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
114
115         * chartab.c (get_char_table): Don't use type `Charset_ID' for
116         charset-id - MIN_LEADING_BYTE.
117         (put_char_table): Likewise.
118
119 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
120
121         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
122         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
123         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
124         (CHARSET_ID_OFFSET): New macro.
125         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
126         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
127         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
128         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
129         4).
130         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
131         5).
132         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
133         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
134         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
135         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
136         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
137
138 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
139
140         * mule-charset.c (next_allocated_leading_byte): New variable in
141         UTF-2000.
142         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
143         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
144         (get_unallocated_leading_byte): Simply use
145         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
146         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
147         UTF-2000.
148
149         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
150         (MAX_LEADING_BYTE_PRIVATE): New macro.
151         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
152         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
153
154 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
155
156         * mule-charset.c (Fmake_charset): Allocate final-byte based
157         charset-id for 94-set, 96-set and 94x94-set.
158
159 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
160
161         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
162         ambiguous `else'.
163         (Fmake_charset): Likewise.
164         (complex_vars_of_mule_charset): Modify the font registry of
165         `ucs-bmp' not to match `Ethiopic-Unicode'.
166
167 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
168
169         * mule-charset.c (complex_vars_of_mule_charset): Add font
170         registory of `ucs-bmp'.
171
172 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
173
174         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
175         coded-charsets in `default-coded-charset-priority-list' when
176         breaking up a character.
177
178         * mule-charset.c (Vcharset_latin_viscii): New variable.
179         (Qlatin_viscii): New variable.
180         (make_charset): Don't use `decoding_table'.
181         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
182         byte_offset.
183         (Fset_charset_mapping_table): New implementation.
184         (syms_of_mule_charset): Add new symbol `latin-viscii'.
185         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
186         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
187         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
188         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
189         charset `latin_viscii'.
190
191         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
192         (CHARSET_TYPE_94X94): Change to 1 from 2.
193         (CHARSET_TYPE_96): Change to 2 from 1.
194         (CHARSET_TYPE_128): New macro.
195         (CHARSET_TYPE_128X128): Change to 5 from 4.
196         (CHARSET_TYPE_256): New macro.
197         (CHARSET_TYPE_256X256): Change to 7 from 5.
198         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
199
200 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
201
202         * text-coding.c (char_encode_shift_jis): Refer
203         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
204         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
205
206         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
207         (char_byte_table_equal): New function in UTF-2000.
208         (char_byte_table_hash): New function in UTF-2000.
209         (char_byte_table_description): New constant in UTF-2000.
210         (char_byte_table): New type in UTF-2000.
211         (make_char_byte_table): New function in UTF-2000.
212         (copy_char_byte_table): New function in UTF-2000.
213         (make_char_code_table): New macro in UTF-2000.
214         (get_char_code_table): New function in UTF-2000.
215         (put_char_code_table): New function in UTF-2000.
216         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
217         (charset_description): Add setting in UTF-2000.
218         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
219         `CHARSET_TO_BYTE1_TABLE(cs)'.
220         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
221         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
222         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
223         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
224         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
225         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
226         `CHARSET_TO_BYTE2_TABLE(cs)'.
227
228         * char-ucs.h (char_byte_table): New type.
229         (XCHAR_BYTE_TABLE): New macro.
230         (XSETCHAR_BYTE_TABLE): New macro.
231         (CHAR_BYTE_TABLE_P): New macro.
232         (GC_CHAR_BYTE_TABLE_P): New macro.
233         (struct Lisp_Char_Byte_Table): New structure.
234         (get_char_code_table): New interface.
235         (Emchar_to_byte_table): Deleted.
236         (get_byte_from_character_table): Deleted.
237         (struct Lisp_Charset): Add `encoding_table'; delete
238         `to_byte1_table' and `to_byte2_table'.
239         (CHARSET_ENCODING_TABLE): New macro.
240         (CHARSET_TO_BYTE1_TABLE): Deleted.
241         (CHARSET_TO_BYTE2_TABLE): Deleted.
242         (XCHARSET_ENCODING_TABLE): New macro.
243         (XCHARSET_TO_BYTE1_TABLE): Deleted.
244         (XCHARSET_TO_BYTE2_TABLE): Deleted.
245
246 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
247
248         * mule-charset.c (syms_of_mule_charset): Delete charset alias
249         `vietnamese-viscii-*'.
250
251 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
252
253         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
254         (Qvietnamese_viscii_upper): New variable.
255         (Fdefine_charset_alias): New function.
256         (syms_of_mule_charset): Add new function `define-charset-alias'.
257         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
258         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
259         `latin-viscii-*'.
260
261 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
262
263         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
264         (MAX_CHAR_OBS_94x94): New macro.
265         (breakup_char_1): Support obsolete XEmacs-UCS private code space
266         for 94x94 sets.
267
268         * mule-charset.c (put_byte_from_character_table): Change unit size
269         from 128 to 256.
270         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
271         not defined.
272         (Fmake_reverse_direction_charset): Modify dummy argument of
273         `make_charset' for non-UTF-2000 environment.
274
275 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
276
277         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
278
279         * mule-charset.c (destroy_byte_from_character_table): New macro.
280         (latin_jisx0201_to_ucs): Deleted.
281         (latin_iso8859_2_to_ucs): Deleted.
282         (latin_iso8859_3_to_ucs): Deleted.
283         (latin_iso8859_4_to_ucs): Deleted.
284         (latin_iso8859_9_to_ucs): Deleted.
285         (latin_viscii_lower_to_ucs): Deleted.
286         (latin_viscii_upper_to_ucs): Deleted.
287         (mark_charset): Mark `cs->decoding_table'.
288         (Fcharset_mapping_table): Fix DOC-string.
289         (Fset_charset_mapping_table): New function.
290         (syms_of_mule_charset): Add nwe function
291         `set-charset-mapping-table'.
292         (complex_vars_of_mule_charset): Don't setup and use
293         `latin_*_to_ucs'.
294
295 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
296
297         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
298         charset.
299
300 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
301
302         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
303         (Vcharset_katakana_jisx0208): New variable.
304         (Qhiragana_jisx0208): New variable.
305         (Qkatakana_jisx0208): New variable.
306         (make_charset): Add new argument `byte_offset'.
307         (charset_get_byte1): Modify for new coded-charset definition; use
308         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
309         `XCHARSET_BYTE_OFFSET'.
310         (Fmake_charset): Modify for `make_charset'.
311         (Fmake_reverse_direction_charset): Likewise.
312         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
313         `katakana-jisx0208'.
314         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
315         `.'  in font registry of charset `katakana-jisx0201',
316         `latin-jisx0201', `vietnamese-viscii-lower' and
317         `vietnamese-viscii-upper'; modify DOC-string of charset
318         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
319         registry of charset `japanese-jisx0208' not to use font for JIS
320         X0208:1990; add new charset `hiragana-jisx0208' and
321         `katakana-jisx0208'.
322
323         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
324         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
325         (struct Lisp_Charset): Add `byte_offset'.
326         (CHARSET_BYTE_OFFSET): New macro.
327         (XCHARSET_UCS_MIN): New macro.
328         (XCHARSET_UCS_MAX): New macro.
329         (XCHARSET_CODE_OFFSET): New macro.
330         (XCHARSET_BYTE_OFFSET): New macro.
331         (MIN_CHAR_HIRAGANA): New macro.
332         (MAX_CHAR_HIRAGANA): New macro.
333         (MIN_CHAR_KATAKANA): New macro.
334         (MAX_CHAR_KATAKANA): New macro.
335         (MAKE_CHAR): Modify for new coded-charset definition; use
336         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
337         `XCHARSET_BYTE_OFFSET'.
338
339 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
340
341         * mule-charset.c (CHAR96): Deleted.
342         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
343         <Lisp_Object>.
344         (latin_iso8859_2_to_ucs): Likewise.
345         (latin_iso8859_3_to_ucs): Likewise.
346         (latin_iso8859_4_to_ucs): Likewise.
347         (latin_iso8859_9_to_ucs): Likewise.
348         (latin_viscii_lower_to_ucs): Likewise.
349         (latin_viscii_upper_to_ucs): Likewise.
350         (latin_tcvn5712_to_ucs): Commented out.
351         (make_charset): Change type of argument `decoding_table' from
352         <Emchar*> to <Lisp_Object> [vector of characters].
353         (Fmake_charset): Modify for `make_charset'.
354         (Fmake_reverse_direction_charset): Likewise.
355         (Fcharset_mapping_table): New function in UTF-2000.
356         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
357         UTF-2000.
358         (complex_vars_of_mule_charset): Modify for type change of
359         `*_to_ucs'; modify for `make_charset'.
360
361         * char-ucs.h (struct Lisp_Charset): Change type of
362         `decoding_table' from <Emchar*> to <Lisp_Object>.
363         (MAKE_CHAR): Modify for new specification of `decoding_table'.
364
365 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
366
367         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
368         error with non-UTF-2000-Mule.
369
370 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
371
372         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
373         in lisp again].
374         (Vcharset_chinese_cns11643_4): Likewise.
375         (Vcharset_chinese_cns11643_5): Likewise.
376         (Vcharset_chinese_cns11643_6): Likewise.
377         (Vcharset_chinese_cns11643_7): Likewise.
378         (Qchinese_cns11643_3): Likewise.
379         (Qchinese_cns11643_4): Likewise.
380         (Qchinese_cns11643_5): Likewise.
381         (Qchinese_cns11643_6): Likewise.
382         (Qchinese_cns11643_7): Likewise.
383         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
384         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
385         and `chinese-cns11643-7' to lisp/mule/chinese.el.
386         (complex_vars_of_mule_charset): Likewise.
387
388 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
389
390         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
391         96-set.
392         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
393         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
394
395 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
396
397         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
398         0xFF60.
399         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
400         (breakup_char_1): Likewise.
401
402         * text-coding.c (char_encode_iso2022): Keep designated charsets if
403         one of them includes the specified character.
404
405 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
406
407         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
408
409 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
410
411         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
412
413 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
414
415         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
416         definition for non-UTF-2000 Mule.
417         (latin_iso8859_3_to_ucs): Likewise.
418         (latin_iso8859_4_to_ucs): Likewise.
419         (latin_iso8859_9_to_ucs): Likewise.
420         (latin_jisx0201_to_ucs): Likewise.
421         (MIN_CHAR_THAI): Likewise.
422         (MAX_CHAR_THAI): Likewise.
423         (MIN_CHAR_GREEK): Likewise.
424         (MAX_CHAR_GREEK): Likewise.
425         (MIN_CHAR_HEBREW): Likewise.
426         (MAX_CHAR_HEBREW): Likewise.
427         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
428         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
429         (MIN_CHAR_CYRILLIC): Likewise.
430         (MAX_CHAR_CYRILLIC): Likewise.
431
432 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
433
434         * char-ucs.h (breakup_char_1): Use
435         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
436         thai-tis620 and katakana-jisx0201 area.
437
438 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
439
440         * char-ucs.h (breakup_char_1): Use
441         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
442         area.
443
444         * text-coding.c (reset_encoding_stream): Fixed.
445         (char_encode_ucs4): Delete `& 255'.
446
447         * char-ucs.h (breakup_char_1): Use
448         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
449
450 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
451
452         * file-coding.c (Fmake_coding_system): Don't set up
453         `codesys->fixed.size'.
454         (encode_coding_no_conversion): Don't refer
455         `str->codesys->fixed.size'.
456
457 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
458
459         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
460         (latin_a_char_to_byte1): Deleted.
461         (latin_a_char_to_byte2): Deleted.
462
463 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
464
465         * mule-charset.c (make_charset): Add new argument `ucs_min',
466         `ucs_max' and `code_offset'.
467         (charset_get_byte1): New implementation [delete specific charset
468         depended implementations].
469         (Fmake_charset): Modify for `make_charset'.
470         (Fmake_reverse_direction_charset): Likewise.
471         (complex_vars_of_mule_charset): Likewise.
472
473         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
474         `code_offset'.
475         (CHARSET_UCS_MIN): New macro.
476         (CHARSET_UCS_MAX): New macro.
477         (CHARSET_CODE_OFFSET): New macro.
478         (MAKE_CHAR): Delete charset depended definitions [except
479         katakana-jisx0201].
480
481 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
482
483         * char-ucs.h (breakup_char_1): Use
484         `Vdefault_coded_charset_priority_list' for C0-Controls,
485         Basic-Latin, C1-Controls and Latin-1-Supplement area.
486
487 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
488
489         * char-ucs.h (charset_get_byte1): New function.
490         (XCHARSET_GET_BYTE1): Deleted.
491         (charset_get_byte2): New function.
492         (XCHARSET_GET_BYTE2): Deleted.
493         (Vdefault_coded_charset_priority_list): New external variable.
494         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
495         `Vdefault_preferred_coded_charset_list'.
496
497         * mule-charset.c (charset_get_byte1): New function.
498         (charset_get_byte2): New function.
499         (Vdefault_coded_charset_priority_list): New variable.
500         (vars_of_mule_charset): Add new variable
501         `default-coded-charset-priority-list'.
502
503 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
504
505         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
506         (XCHARSET_GET_BYTE2): New inline function.
507         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
508         `XCHARSET_GET_BYTE2'.
509
510 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
511
512         * mule-charset.c (make_charset): Initialize
513         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
514         NULL if table is not defined.
515
516 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
517
518         * text-coding.c (char_encode_shift_jis): Use
519         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
520         `ucs_to_latin_jisx0201'.
521
522         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
523         (ucs_to_latin_iso8859_2): Deleted.
524         (ucs_to_latin_iso8859_3): Deleted.
525         (ucs_to_latin_iso8859_4): Deleted.
526         (ucs_to_latin_iso8859_9): Deleted.
527         (ucs_to_latin_viscii_lower): Deleted.
528         (ucs_to_latin_viscii_upper): Deleted.
529         (ucs_to_latin_tcvn5712): Deleted.
530         (make_charset): Add new argument `decoding_table'; set up
531         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
532         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
533         `decoding_table' is defined in UTF-2000.
534         (Fmake_charset): Modify for `make_charset'.
535         (Fmake_reverse_direction_charset): Likewise.
536         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
537         and `GENERATE_96_SET'.
538
539         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
540         (ucs_to_latin_jisx0201): Deleted.
541         (latin_iso8859_2_to_ucs): Deleted.
542         (ucs_to_latin_iso8859_2): Deleted.
543         (latin_iso8859_3_to_ucs): Deleted.
544         (ucs_to_latin_iso8859_3): Deleted.
545         (latin_iso8859_4_to_ucs): Deleted.
546         (ucs_to_latin_iso8859_4): Deleted.
547         (latin_iso8859_9_to_ucs): Deleted.
548         (ucs_to_latin_iso8859_9): Deleted.
549         (latin_viscii_lower_to_ucs): Deleted.
550         (ucs_to_latin_viscii_lower): Deleted.
551         (latin_viscii_upper_to_ucs): Deleted.
552         (ucs_to_latin_viscii_upper): Deleted.
553         (struct Lisp_Charset): Renamed `encoding_table' to
554         `to_byte1_table'; add `to_byte2_table'.
555         (CHARSET_DECODING_TABLE): New macro.
556         (CHARSET_TO_BYTE1_TABLE): New macro.
557         (CHARSET_TO_BYTE2_TABLE): New macro.
558         (XCHARSET_DECODING_TABLE): New macro.
559         (XCHARSET_TO_BYTE1_TABLE): New macro.
560         (XCHARSET_TO_BYTE2_TABLE): New macro.
561         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
562         tables.
563         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
564         don't use `ucs_to_*' tables.
565
566 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
567
568         * text-coding.c (Fmake_coding_system): Don't set up
569         `codesys->fixed.size'.
570         (encode_coding_no_conversion): Use `if' instead of `switch'.
571
572         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
573
574 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
575
576         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
577         (Fmake_charset): Modify for `make_charset'.
578         (Fmake_reverse_direction_charset): Likewise.
579         (complex_vars_of_mule_charset): Likewise.
580
581 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
582
583         * text-coding.c (char_encode_shift_jis): Use table
584         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
585
586 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
587
588         * text-coding.c (text_encode_generic): Use `if' instead of
589         `switch'.
590         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
591         decode JIS-Latin.
592
593 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
594
595         * text-coding.c (encode_coding_sjis): Deleted.
596         (char_encode_shift_jis): New function.
597         (char_finish_shift_jis): New function.
598         (reset_encoding_stream): Set up `encode_char' and `finish' for
599         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
600         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
601         (char_encode_utf8): Treat `eol_type'.
602
603 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
604
605         * file-coding.c (decode_coding_iso2022): Use
606         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
607
608 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
609
610         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
611         to 0.7 (Hirano).
612
613 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
614
615         * char-lb.h (CHAR_COLUMNS): New macro.
616
617 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
618
619         * text-coding.c (char_encode_ucs4): New function.
620         (char_finish_ucs4): New function.
621         (encode_coding_ucs4): Deleted.
622         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
623         (text_encode_generic): Delete local variable `charset' and `half'.
624         (ucs_to_mule_table): Deleted.
625         (mule_to_ucs_table): Deleted.
626         (Fset_ucs_char): Deleted.
627         (ucs_to_char): Deleted.
628         (Fucs_char): Deleted.
629         (Fset_char_ucs): Deleted.
630         (Fchar_ucs): Deleted.
631         (decode_ucs4): Deleted.
632         (mule_char_to_ucs4): Deleted.
633         (encode_ucs4): Deleted.
634         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
635         (decode_coding_utf8): Likewise.
636         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
637         (char_encode_iso2022): Fixed.
638         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
639         `Fset_char_ucs' and `Fchar_ucs'.
640         (complex_vars_of_file_coding): Don't initialize
641         `ucs_to_mule_table'.
642
643         * objects-tty.c (tty_initialize_font_instance): Don't use
644         `XCHARSET_COLUMNS'.
645
646         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
647         UTF-2000.
648
649         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
650         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
651
652         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
653         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
654         (emchar_string_displayed_columns): Likewise.
655
656         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
657         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
658         (string_column_at_point): Likewise.
659         (Fmove_to_column): Likewise.
660
661         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
662         `encoding_table' and `decoding_table'.
663         (CHARSET_REP_BYTES): Deleted.
664         (XCHARSET_REP_BYTES): Deleted.
665         (XCHARSET_COLUMNS): Deleted.
666         (CHAR_COLUMNS): New macro.
667         (lookup_composite_char): Deleted unconditionally.
668         (composite_char_string): Likewise.
669
670 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
671
672         * char-ucs.h (Emchar_to_byte_table): New type.
673         (get_byte_from_character_table): New function interface.
674         (Vcharset_latin_jisx0201): New variable.
675         (latin_jisx0201_to_ucs): New variable.
676         (ucs_to_latin_jisx0201): New variable.
677         (Vcharset_latin_iso8859_2): New variable.
678         (latin_iso8859_2_to_ucs): New variable.
679         (ucs_to_latin_iso8859_2): New variable.
680         (Vcharset_latin_iso8859_3): New variable.
681         (latin_iso8859_3_to_ucs): New variable.
682         (ucs_to_latin_iso8859_3): New variable.
683         (Vcharset_latin_iso8859_4): New variable.
684         (latin_iso8859_4_to_ucs): New variable.
685         (ucs_to_latin_iso8859_4): New variable.
686         (Vcharset_latin_iso8859_9): New variable.
687         (latin_iso8859_9_to_ucs): New variable.
688         (ucs_to_latin_iso8859_9): New variable.
689         (Vcharset_latin_viscii_lower): New variable.
690         (latin_viscii_lower_to_ucs): New variable.
691         (ucs_to_latin_viscii_lower): New variable.
692         (Vcharset_latin_viscii_upper): New variable.
693         (latin_viscii_upper_to_ucs): New variable.
694         (ucs_to_latin_viscii_upper): New variable.
695         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
696         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
697         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
698         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
699         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
700         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
701         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
702         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
703         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
704         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
705
706         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
707         (Vcharset_latin_viscii_upper): New variable.
708         (make_byte_from_character_table): New function.
709         (put_byte_from_character_table): New function.
710         (get_byte_from_character_table): New function.
711         (CHAR96): New macro.
712         (ucs_to_latin_jisx0201): New variable.
713         (latin_jisx0201_to_ucs): New variable.
714         (ucs_to_latin_iso8859_2): New variable.
715         (latin_iso8859_2_to_ucs): New variable.
716         (ucs_to_latin_iso8859_3): New variable.
717         (latin_iso8859_3_to_ucs): New variable.
718         (ucs_to_latin_iso8859_4): New variable.
719         (latin_iso8859_4_to_ucs): New variable.
720         (ucs_to_latin_iso8859_9): New variable.
721         (latin_iso8859_9_to_ucs): New variable.
722         (ucs_to_latin_viscii_lower): New variable.
723         (latin_viscii_lower_to_ucs): New variable.
724         (ucs_to_latin_viscii_upper): New variable.
725         (latin_viscii_upper_to_ucs): New variable.
726         (ucs_to_latin_tcvn5712): New variable.
727         (latin_tcvn5712_to_ucs): New variable.
728         (Qlatin_viscii_lower): New variable.
729         (Qlatin_viscii_upper): New variable.
730         (syms_of_mule_charset): Set up new symbol
731         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
732         (complex_vars_of_mule_charset): Set up new charset
733         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
734         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
735         `ucs_to_<CHARSET>' tables.
736
737 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
738
739         * text-coding.c: New file.
740
741 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
742
743         * mule-charset.c (Fmake_char): Fix problem of 256-set.
744
745         * char-ucs.h (Vcharset_ucs_bmp): New variable.
746         (MAKE_CHAR): Modify for `ucs-bmp'.
747         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
748         non-MULE characters of BMP.
749
750 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
751
752         * mule-charset.c (vars_of_mule_charset):
753         Update `utf-2000-version' to 0.6.
754
755 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
756
757         * lstream.h:
758         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
759         - Include character.h for `CHAR_ASCII_P'.
760
761         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
762
763         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
764         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
765
766         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
767         (BYTE_C0_P): Likewise.
768         (BYTE_C1_P): Likewise.
769         (Lstream_get_emchar_1): Likewise.
770         (Lstream_fput_emchar): Likewise.
771         (Lstream_funget_emchar): Likewise.
772         (copy_internal_to_external): Likewise.
773         (copy_external_to_internal): Likewise.
774
775         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
776         (BYTE_C0_P): Likewise.
777         (BYTE_C1_P): Likewise.
778         (Lstream_get_emchar_1): Likewise.
779         (Lstream_fput_emchar): Likewise.
780         (Lstream_funget_emchar): Likewise.
781         (copy_internal_to_external): Likewise.
782         (copy_external_to_internal): Likewise.
783
784         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
785         (REP_BYTES_BY_FIRST_BYTE): Likewise.
786
787         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
788         (BYTE_ASCII_P): Moved to mb-1byte.h.
789
790 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
791
792         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
793
794         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
795         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
796         (VALID_CHARPTR_P): Moved to mb-*byte.h.
797         (VALIDATE_CHARPTR_BACKWARD): Likewise.
798         (VALIDATE_CHARPTR_FORWARD): Likewise.
799         (simple_charptr_emchar): Moved to mb-multibyte.h.
800         (simple_set_charptr_emchar): Likewise.
801         (simple_charptr_copy_char): Likewise.
802         (non_ascii_charptr_emchar): Likewise.
803         (non_ascii_set_charptr_emchar): Likewise.
804         (non_ascii_charptr_copy_char): Likewise.
805         (charptr_emchar): Moved to mb-*byte.h.
806         (set_charptr_emchar): Likewise.
807         (charptr_copy_char): Likewise.
808
809         * mb-1byte.h, mb-multibyte.h: New files.
810
811 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
812
813         * mb-utf-8.h (MULTIBYTE): New macro.
814         (MAX_EMCHAR_LEN): Moved from buffer.h.
815         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
816
817         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
818
819         * mb-lb.h, multibyte.h: New files.
820
821         * char-1byte.h (Charset_ID): Moved from buffer.h.
822         (MIN_LEADING_BYTE): Likewise.
823         (LEADING_BYTE_ASCII): Likewise.
824         (NUM_LEADING_BYTES): Likewise.
825         (CHARSETP): Likewise.
826         (CHARSET_BY_LEADING_BYTE): Likewise.
827         (XCHARSET_LEADING_BYTE): Likewise.
828         (XCHARSET_GRAPHIC): Likewise.
829         (XCHARSET_COLUMNS): Likewise.
830         (XCHARSET_DIMENSION): Likewise.
831         (CHAR_CHARSET): Likewise.
832         (CHAR_LEADING_BYTE): Likewise.
833         (BREAKUP_CHAR): Likewise.
834         (Vcharset_ascii): Likewise.
835
836         * buffer.h: Include multibyte.h unconditionally.
837         (VALID_CHARPTR_P): Moved to multibyte.h.
838         (ASSERT_VALID_CHARPTR): Likewise.
839         (REAL_INC_CHARPTR): Likewise.
840         (REAL_INC_CHARBYTIND): Likewise.
841         (REAL_DEC_CHARPTR): Likewise.
842         (INC_CHARPTR): Likewise.
843         (INC_CHARBYTIND): Likewise.
844         (DEC_CHARPTR): Likewise.
845         (VALIDATE_CHARPTR_BACKWARD): Likewise.
846         (VALIDATE_CHARPTR_FORWARD): Likewise.
847         (charptr_n_addr): Likewise.
848         (MAX_EMCHAR_LEN): Moved to mb-*.h.
849         (simple_charptr_emchar): Moved to multibyte.h.
850         (simple_set_charptr_emchar): Likewise.
851         (simple_charptr_copy_char): Likewise.
852         (non_ascii_charptr_emchar): Likewise.
853         (non_ascii_set_charptr_emchar): Likewise.
854         (non_ascii_charptr_copy_char): Likewise.
855         (charptr_emchar): Likewise.
856         (set_charptr_emchar): Likewise.
857         (charptr_copy_char): Likewise.
858         (charptr_emchar_n): Likewise.
859         (Charset_ID): Moved to char-1byte.h.
860         (Vcharset_ascii): Likewise.
861         (CHAR_CHARSET): Likewise.
862         (CHAR_LEADING_BYTE): Likewise.
863         (LEADING_BYTE_ASCII): Likewise.
864         (NUM_LEADING_BYTES): Likewise.
865         (MIN_LEADING_BYTE): Likewise.
866         (CHARSETP): Likewise.
867         (CHARSET_BY_LEADING_BYTE): Likewise.
868         (XCHARSET_LEADING_BYTE): Likewise.
869         (XCHARSET_GRAPHIC): Likewise.
870         (XCHARSET_COLUMNS): Likewise.
871         (XCHARSET_DIMENSION): Likewise.
872         (BREAKUP_CHAR): Likewise.
873
874 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
875
876         * character.h: Add document about interface for characters.
877
878         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
879         (MAKE_CHAR): Delete comment about
880         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
881         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
882         (BREAKUP_CHAR): Modify name of arguments.
883         (CHAR_CHARSET): Modify name of argument.
884
885         * buffer.h: Delete document about Emchar accessors.
886
887 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
888
889         * character.h (CHAR_INTP): Moved from buffer.h
890         (CHAR_OR_CHAR_INTP): Likewise.
891         (XCHAR_OR_CHAR_INT): Likewise.
892         (CHECK_CHAR_COERCE_INT): Likewise.
893
894         * buffer.h (CHAR_INTP): Moved to character.h
895         (CHAR_OR_CHAR_INTP): Likewise.
896         (XCHAR_OR_CHAR_INT): Likewise.
897         (CHECK_CHAR_COERCE_INT): Likewise.
898
899 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
900
901         * character.h:
902         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
903         - Include char-1byte.h, char-lb.h or char-ucs.h.
904
905         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
906
907         * buffer.h: Include character unconditionally.
908         (valid_char_p): Moved to char-*.h.
909         (non_ascii_valid_char_p): Moved to char-lb.h.
910
911         * char-1byte.h, char-lb.h, char-ucs.h: New files.
912
913 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
914
915         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
916         in UTF-2000 because it is not ported yet and not to use
917         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
918         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
919         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
920
921         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
922         (CHAR_ASCII_P): Moved from character.h.
923
924         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
925         (CHAR_ASCII_P): Likewise.
926         (CHAR_FIELD1_MASK): Deleted.
927         (CHAR_FIELD2_MASK): Deleted.
928         (CHAR_FIELD3_MASK): Deleted.
929         (MAX_CHAR_BASIC_LATIN): New macro.
930         (CHAR_FIELD1): Deleted.
931         (CHAR_FIELD2_INTERNAL): Deleted.
932         (CHAR_FIELD3_INTERNAL): Deleted.
933         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
934         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
935         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
936         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
937         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
938         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
939         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
940         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
941         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
942         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
943         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
944         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
945         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
946         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
947         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
948         (MIN_CHAR_COMPOSITION): Deleted.
949         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
950         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
951
952 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
953
954         * buffer.h: Include mb-utf-8.h in UTF-2000.
955
956         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
957
958         * mb-utf-8.h: New file.
959
960 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
961
962         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
963         instead of `int'.
964
965         * mule-charset.h, buffer.h (Charset_ID): New type.
966
967 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
968
969         * mule-canna.c (c2mu): Use `MAKE_CHAR',
970         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
971         instead of `MULE_CHAR_PRIVATE_OFFSET',
972         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
973         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
974         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
975
976         * character.h (Vcharset_japanese_jisx0212): New variable
977         definition.
978
979 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
980
981         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
982         (charset_by_attributes): Delete array about direction.
983         (latin_a_char_to_charset): New variable in UTF-2000.
984         (latin_a_char_to_byte1): New variable in UTF-2000.
985         (latin_a_char_to_byte2): New variable in UTF-2000.
986         (Qucs_bmp): New variable.
987         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
988         `Bufbyte'.
989         (next_allocated_2_byte_leading_byte): Likewise.
990         (non_ascii_set_charptr_emchar): Likewise.
991         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
992         `CHARSET_TYPE_256X256' in UTF-2000; modify for
993         `charset_by_attributes'.
994         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
995         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
996         and `CHARSET_BY_LEADING_BYTE'.
997         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
998         `utf-2000-version' to `vars_of_mule_charset'.
999         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
1000         define `leading-code-private-11' in UTF-2000; move setting of
1001         `utf-2000-version' from `syms_of_mule_charset'.
1002         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
1003         UTF-2000.
1004
1005         * character.h (Charset_ID): New type.
1006         (LEADING_BYTE_UCS_BMP): New macro.
1007         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
1008         (CHARSET_ID_OFFSET_94): New macro.
1009         (MIN_CHARSET_ID_PRIVATE_94): New macro.
1010         (MAX_CHARSET_ID_PRIVATE_94): New macro.
1011         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
1012         final-byte.
1013         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
1014         (LEADING_BYTE_LATIN_JISX0201): Likewise.
1015         (CHARSET_ID_OFFSET_96): New macro.
1016         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
1017         CHARSET_ID_OFFSET_96 and final-byte.
1018         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
1019         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
1020         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
1021         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
1022         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
1023         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
1024         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
1025         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
1026         (LEADING_BYTE_THAI_TIS620): Likewise.
1027         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
1028         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
1029         (CHARSET_ID_OFFSET_94x94): New macro.
1030         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
1031         CHARSET_ID_OFFSET_94x94 and final-byte.
1032         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
1033         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
1034         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
1035         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
1036         (LEADING_BYTE_CHINESE_GB2312): Likewise.
1037         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
1038         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
1039         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
1040         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
1041         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
1042         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
1043         (CHARSET_TYPE_128X128): New macro.
1044         (CHARSET_TYPE_256X256): New macro.
1045         (XCHARSET_PRIVATE_P): Delete unconditionally.
1046         (charset_by_attributes): Delete array about direction.
1047         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
1048         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
1049         (MIN_CHAR_94): New macro.
1050         (MAX_CHAR_94): New macro.
1051         (MIN_CHAR_96): New macro.
1052         (MAX_CHAR_96): New macro.
1053         (MIN_CHAR_94x94): New macro.
1054         (MAX_CHAR_94x94): New macro.
1055         (MIN_CHAR_96x96): New macro.
1056         (MAX_CHAR_96x96): New macro.
1057         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
1058         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
1059         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
1060         - 32)'.
1061         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
1062         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
1063         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
1064         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
1065         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
1066         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
1067         `XCHARSET_LEADING_BYTE' to make code-point.
1068         (latin_a_char_to_charset): New variable.
1069         (latin_a_char_to_byte1): New variable.
1070         (latin_a_char_to_byte2): New variable.
1071         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
1072         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
1073         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
1074
1075         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
1076         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
1077         (find_charsets_in_emchar_string): Likewise.
1078         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
1079
1080         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
1081         `int'.
1082         (decode_coding_iso2022): Likewise.
1083
1084         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
1085         of `unsigned char'.
1086
1087         * redisplay.c (redisplay_text_width_emchar_string): Use
1088         `Charset_ID' instead of `unsigned char'.
1089         (redisplay_frame_text_width_string): Likewise.
1090
1091         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
1092         `unsigned char'.
1093
1094         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
1095         instead of `unsigned char'.
1096         (face_cachel_charset_font_metric_info): Likewise.
1097
1098         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
1099         (get_non_ascii_char_table_value): Likewise.
1100         (get_char_table): Likewise.
1101         (put_char_table): Likewise.
1102         (map_over_other_charset): Likewise.
1103         (map_char_table): Likewise.
1104
1105         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
1106         instead of `unsigned char'.
1107
1108 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
1109
1110         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
1111         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
1112
1113         * mule-charset.c (leading_code_private_11): Don't define in
1114         UTF-2000.
1115
1116         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
1117         in UTF-2000 because it is not ported yet and not to use
1118         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
1119
1120 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
1121
1122         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
1123
1124 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1125
1126         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
1127         in UTF-2000.
1128
1129         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
1130         of unsigned char to store leading-byte.
1131
1132         * chartab.c (get_non_ascii_char_table_value): Don't use
1133         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
1134
1135         * file-coding.c (encode_coding_big5): Delete bogus implementation
1136         in UTF2000.
1137
1138         * character.h (LEADING_BYTE_*): Delete definition for
1139         non-UTF-2000.
1140         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
1141         (LEADING_BYTE_PREFIX_P): Deleted.
1142         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
1143         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
1144         (BUFBYTE_LEADING_BYTE_P): Deleted.
1145         (CHARSET_PRIVATE_P): Deleted unconditionally.
1146         (rep_bytes_by_first_byte): Deleted unconditionally.
1147         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
1148         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
1149         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
1150         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
1151         (CHAR_FIELD2): Deleted.
1152         (CHAR_FIELD3): Deleted.
1153         (MAKE_CHAR): Delete definition for non-UTF-2000.
1154         (BREAKUP_CHAR_1_UNSAFE): Deleted.
1155         (breakup_char_1): New implementation.
1156         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
1157         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
1158
1159 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1160
1161         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
1162         condition.
1163
1164 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1165
1166         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
1167         (CHARSET_PRIVATE_P): Likewise.
1168         (XCHARSET_PRIVATE_P): Likewise.
1169         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
1170
1171         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
1172         UTF2000.
1173         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
1174
1175 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1176
1177         * character.h (LEADING_BYTE_*): Changed in UTF2000.
1178         (NUM_LEADING_BYTES): Changed from 128 to 256.
1179         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
1180         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
1181         UTF2000.
1182         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
1183
1184         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
1185         UTF2000.
1186         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
1187         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
1188         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
1189         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
1190         (Qchinese_cns11643_3): New variable in UTF2000.
1191         (Qchinese_cns11643_4): New variable in UTF2000.
1192         (Qchinese_cns11643_5): New variable in UTF2000.
1193         (Qchinese_cns11643_6): New variable in UTF2000.
1194         (Qchinese_cns11643_7): New variable in UTF2000.
1195         (syms_of_mule_charset): Define `chinese-cns11643-3',
1196         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
1197         and `chinese-cns11643-7' in UTF2000.
1198         (vars_of_mule_charset): Initialize
1199         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
1200         + 1 in UTF2000.
1201         (complex_vars_of_mule_charset): Setup charset
1202         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
1203         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
1204
1205 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1206
1207         * mule-charset.c: Move setting for `leading-code-private-11' from
1208         `syms_of_mule_charset' to `vars_of_mule_charset'.
1209
1210 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1211
1212         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
1213         and `NUM_LEADING_BYTES' in assert.
1214
1215 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1216
1217         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
1218         instead of 128.
1219         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
1220         `NUM_LEADING_BYTES' instead of 128.
1221
1222 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1223
1224         * mule-charset.h (charset_by_leading_byte): Use
1225         `NUM_LEADING_BYTES' instead of 128.
1226         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
1227
1228         * mule-charset.c (charset_by_leading_byte): Use
1229         `NUM_LEADING_BYTES' instead of 128.
1230         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
1231
1232         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
1233         128.
1234
1235 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
1236
1237         * mule-charset.c (syms_of_mule_charset): Update to
1238         0.4 (Shin-Imamiya).
1239
1240 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
1241
1242         * file-coding.c (encode_coding_sjis): New implementation for
1243         UTF2000.  (decode_coding_sjis): Ditto.
1244
1245 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1246
1247         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
1248         Don't define in UTF2000.
1249
1250         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
1251         defined.
1252
1253         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
1254         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
1255         MULE.
1256
1257 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1258
1259         * config.h.in (CHAR_IS_UCS4): New macro.
1260
1261         * mule-charset.c (rep_bytes_by_first_byte): Modify for
1262         conventional MULE representation.
1263         (syms_of_mule_charset): Update to 0.3 (Imamiya).
1264
1265         * mule-charset.h: Reverted to original.
1266
1267         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
1268         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
1269         "mule-charset.h" if CHAR_IS_UCS4 is defined.
1270
1271         * character.h: New file.
1272
1273         * file-coding.c (Fmake_coding_system): Set 1 to
1274         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
1275         defined.
1276         (encode_coding_no_conversion): New implementation for UTF2000.
1277
1278         * file-coding.h (struct Lisp_Coding_System): Add new member
1279         `fixed.size'.
1280
1281 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
1282
1283         * file-coding.c (decode_coding_iso2022): Code-point arguments of
1284         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
1285         (encode_coding_iso2022): New implementation for UTF2000.
1286
1287 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1288
1289         * mule-canna.c (c2mu): New implementation for UTF2000.
1290         (m2c): Likewise.
1291
1292 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1293
1294         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
1295
1296 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1297
1298         * file-coding.c (reset_encoding_stream): Set 0 to
1299         `str->iso2022.current_char_boundary' in UTF2000.
1300         (encode_utf8): Don't define in UTF2000.
1301         (encode_coding_utf8): New implementation for UTF-8 representation
1302         of UTF2000.
1303         (complex_vars_of_file_coding): Define coding-system `utf-8'.
1304
1305 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1306
1307         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
1308
1309         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
1310         UTF2000.
1311         (REP_BYTES_BY_FIRST_BYTE): Likewise.
1312
1313         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
1314
1315         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
1316         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
1317         as UTF-8 in UTF2000.
1318         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
1319         (non_ascii_valid_char_p): Don't define in UTF2000.
1320         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
1321         (Lstream_get_emchar_1): Likewise.
1322         (utf-2000-version): New variable in UTF2000.
1323
1324         * lread.c (read_escape): Add new reader `u'.
1325
1326         * insdel.c (three_to_one_table): Don't define in UTF2000.
1327         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
1328         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
1329         UTF2000.
1330         (bytind_to_bufpos_func): Likewise.
1331         (buffer_mule_signal_inserted_region): Likewise.
1332         (vars_of_insdel): Don't initialize `three_to_one_table'.
1333         (init_buffer_text): Use `buf->text->mule_size' instead of
1334         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
1335         UTF2000.
1336
1337         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
1338         UTF-8 representation in UTF2000.
1339         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
1340         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
1341         (decode_coding_iso2022): Don't define local variable `lb' in
1342         UTF2000; don't use LEADING_BYTE in UTF2000; use
1343         `DECODE_ADD_UCS_CHAR' in UTF2000.
1344         (convert_to_external_format): Decode as UTF-8 in UTF2000.
1345
1346         * config.h.in (UTF2000): New macro.
1347
1348         * buffer.h (struct buffer_text): Add new member `mule_size' and
1349         don't add `mule_shifter' and `mule_three_p' in UTF2000.
1350         (valid_char_p): Return always 1 in UTF2000.
1351         (MAX_EMCHAR_LEN): 6 in UTF2000.
1352         (three_to_one_table): Don't define in UTF2000.
1353         (real_bufpos_to_bytind): Modify for UTF-8 representation in
1354         UTF2000.
1355         (real_bytind_to_bufpos): Likewise.
1356
1357         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
1358
1359 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1360
1361         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
1362         representation change.
1363         (Vutf_2000_version): New variable.
1364         (leading_code_private_11): New variable.
1365         (syms_of_mule_charset): Add new variables `utf-2000-version' and
1366         `leading-code-private-11'.
1367
1368         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
1369         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
1370         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
1371         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
1372         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
1373         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
1374         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
1375         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
1376         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
1377         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
1378         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
1379         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
1380         (MIN_CHAR_GREEK): New macro.
1381         (MAX_CHAR_GREEK): New macro.
1382         (MIN_CHAR_CYRILLIC): New macro.
1383         (MAX_CHAR_CYRILLIC): New macro.
1384         (MIN_CHAR_HEBREW): New macro.
1385         (MAX_CHAR_HEBREW): New macro.
1386         (MIN_CHAR_THAI): New macro.
1387         (MAX_CHAR_THAI): New macro.
1388         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
1389         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
1390         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
1391         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
1392         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
1393         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
1394         (CHAR_FIELD2): New inline function.
1395         (CHAR_FIELD3): New inline function.
1396         (MULE_CHAR_PRIVATE_OFFSET): New macro.
1397         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
1398         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
1399         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
1400         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
1401         (MIN_CHAR_COMPOSITION): Likewise.
1402         (CHAR_LEADING_BYTE): Modified for character representation change.
1403         (MAKE_CHAR): Likewise.
1404
1405         * lisp.h (Vcharset_latin_iso8859_1): New variable.
1406         (Vcharset_greek_iso8859_7): Likewise.
1407         (Vcharset_cyrillic_iso8859_5): Likewise.
1408         (Vcharset_hebrew_iso8859_8): Likewise.
1409         (Vcharset_thai_tis620): Likewise.
1410         (Vcharset_katakana_jisx0201): Likewise.
1411
1412 1999-08-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
1413
1414         * file-coding.c (determine_real_coding_system): Treat `coding:'
1415         cookie.
1416
1417 1999-08-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
1418
1419         * file-coding.c (struct decoding_stream): New member `counter'.
1420         (reset_decoding_stream): Initialize `counter'.
1421         (decode_coding_ucs4): Use `counter'.
1422         (decode_coding_utf8): Likewise.
1423
1424 1999-07-30  XEmacs Build Bot <builds@cvs.xemacs.org>
1425
1426         * XEmacs 21.2.19 is released
1427
1428 1999-07-27  Jeff Miller  <jmiller@smart.net>
1429
1430         * add a "#ifdef HAVE_MENUBARS"  wrapper to gui.c around 
1431           menubar_show_keybindings.
1432
1433 1999-07-23  SL Baur  <steve@miho>
1434
1435         * mule-charset.c (syms_of_mule_charset): Delete duplicated
1436         definition of Qccl_program.
1437
1438         * mule-ccl.h: Make a global declaration of it here.
1439
1440 1999-07-20  Bob Weiner  <weiner@beopen.com>
1441
1442         * s/sco7.h: Added from rr@sco.com.
1443
1444 1999-06-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
1445
1446         * mule-ccl.c (ccl_driver): Fix `CCL_WriteMultibyteChar2'.
1447
1448 1999-06-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1449
1450         * file-coding.c (mule_decode): Setup `str->ccl.last_block'.
1451         (mule_encode): Likewise.
1452
1453         * mule-ccl.c (Qccl_program): New variable.
1454         (CCL_SUSPEND): New macro.
1455         (CCL_INVALID_CMD): New macro.
1456         (CCL_READ_CHAR): Don't regard as invalid command while processing
1457         the last block even if input is empty; use
1458         `CCL_STAT_SUSPEND_BY_SRC' instead of `CCL_STAT_SUSPEND'.
1459         (vars_of_mule_ccl): Setup `Qccl_program' and `Qccl_program_idx'.
1460
1461         * mule-ccl.h (CCL_STAT_SUCCESS): Moved from mule-ccl.c.
1462         (CCL_STAT_SUSPEND_BY_SRC): Imported from Emacs 20.3.10.
1463         (CCL_STAT_SUSPEND_BY_DST): Likewise.
1464         (CCL_STAT_INVALID_CMD): Moved from mule-ccl.c; change value from 2.
1465         (CCL_STAT_QUIT): Moved from mule-ccl.c; change value from 3.
1466
1467 1999-05-04  Ken'ichi Handa  <handa@gnu.org>
1468
1469         * mule-ccl.h (struct ccl_program): New member stack_idx.
1470
1471         * mule-ccl.c (ccl_prog_stack_struct): Declare it as static.
1472         (ccl_driver): Setup stack_idx and ccl_prog correctly.  Update them
1473         before returing.
1474         (setup_ccl_program): Initialize ccl->stack_idx to 0.
1475
1476 1998-10-12  Kenichi Handa  <handa@etl.go.jp>
1477
1478         * mule-ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the
1479         definitions.
1480
1481 1998-08-18  Kenichi Handa  <handa@etl.go.jp>
1482
1483         * mule-ccl.c (CCL_READ_CHAR): If eof is encounterd while
1484         processing the last block, don't just finish but processes eol
1485         block of the current CCL program.
1486         (ccl_driver): Add a new jump label ccl_repeat for the above
1487         change.
1488
1489 1998-04-15  Kenichi Handa  <handa@etl.go.jp>
1490
1491         * mule-ccl.c: Typo in comments fixed.
1492         (Qccl_program_idx): New variables.
1493         (CCL_ReadMultibyteChar2): Macro name changed from
1494         CCL_ReadMultibyteCharacter.
1495         (CCL_WriteMultibyteChar2): Macro name changed from
1496         CCL_WriteMultibyteChar2.
1497         (ccl_driver): Adjusted for the above changes.
1498         (resolve_symbol_ccl_program): New function.
1499         (Fccl_execute): The arg CCL-PROGRAM can be a symbol of CCL
1500         program.  If CCL-PRGRAM is a vector, convert symbols in it to ID
1501         numbers by resolve_symbol_ccl_program.
1502         (Fccl_execute_on_string): Likewise.
1503         (Fregister_ccl_program): If the arg CCL-PRGRAM is a vector,
1504         convert symbols in it to ID numbers by resolve_symbol_ccl_program.
1505
1506 1998-01-21  Kenichi Handa  <handa@etl.go.jp>
1507
1508         * mule-ccl.h: (struct ccl_program): New member private_state.
1509
1510         * mule-ccl.c
1511         (CCL_Call): Fix the comment.
1512         (CCL_ReadMultibyteCharacter, CCL_WriteMultibyteCharacter): New
1513         macros for CCL Commands.
1514         (EXCMD): New macro.
1515         (ccl_driver): New case lable `CCL_Extention'.
1516         (setup_ccl_program): Initialize the member `private_state' of CCL.
1517
1518 1999-07-08  Katsumi Yamaoka <yamaoka@jpl.org>
1519
1520         * keymap.c (copy_keymap_internal): Inherit the default binding.
1521
1522 1999-07-14  Kazuyuki IENAGA <kazz@imasy.or.jp>
1523
1524         * event-Xt.c (handle_focus_event_1): Re-enable Motif/XIM to get
1525         focus the event (XIM_focus_event).
1526         (emacs_Xt_handle_magic_event): No side effect on Motif/XIM because 
1527         XIM_SetGeometry does nothing in input_method_motif.c, but re-unify
1528         the interface for future use (XIM_SetGeometry).
1529         * redisplay-x.c (x_output_string): Re-enable Motif/XIM to set spot 
1530         location (XIM_SetSpotLocation).
1531         (x_output_eol_cursor): Ditto.
1532
1533 1999-07-17  Gunnar Evermann  <ge204@eng.cam.ac.uk>
1534
1535         * gdbinit (pobj): change lrecord_foo to &lrecord_foo to match
1536         Olivier's change to lrecord.h of 1999-04-22
1537
1538 1999-07-20  Robert Pluim  <rpluim@bigfoot.com>
1539
1540         * gutter.c (redraw_exposed_gutter): Change type of pos from
1541         enum toolbar_pos -> enum gutter_pos, since former is only defined
1542         if toolbar support is.
1543
1544 1999-07-19  Andy Piper  <andy@xemacs.org>
1545
1546         * glyphs-x.c (x_resize_subwindow): cope with widgets as well as
1547         subwindows.
1548
1549         * gutter.c (gutter_validate): new function for the gutter specifier.
1550         (specifier_type_create_gutter): declare specifier validator.
1551
1552         * buffer.h (INC_CHARBYTIND): add for no error checking version.
1553
1554 1999-07-18  Andy Piper  <andy@xemacs.org>
1555
1556         * redisplay.c (add_emchar_rune): use XSTRING_DATA not string_data.
1557
1558         * glyphs-msw.c (console_type_create_glyphs_mswindows): add
1559         resize_subwindow.
1560         (mswindows_resize_subwindow): new function.
1561
1562         * gutter.c (redraw_exposed_gutter): only reset the
1563         current_display_lines if non-zero.
1564         (Fgutter_pixel_height): new function.
1565         (Fgutter_pixel_width): new function.
1566
1567         * event-msw.c (mswindows_wnd_proc): set the mask of the parameter
1568         we want to retrive from the tab control.
1569
1570 1999-07-17  Andy Piper  <andy@xemacs.org>
1571
1572         * window.c (change_window_height): mark gutters changed when we're
1573         done.
1574
1575         * gutter.c (specifier_vars_of_gutter): make defaults more
1576         sensible.
1577
1578         * gutter.h (WINDOW_REAL_GUTTER_BORDER_WIDTH): adjust to be 0 for 0
1579         height gutter.
1580         (DEFAULT_GUTTER_WIDTH): change.
1581         (DEFAULT_GUTTER_BORDER_WIDTH): change.
1582
1583 1999-07-18  Andy Piper  <andy@xemacs.org>
1584
1585         * redisplay.c (add_emchar_rune): use XSTRING_DATA not string_data.
1586
1587 1999-07-16  Andy Piper  <andy@xemacs.org>
1588
1589         * frame.c (Fmake_frame): call init_frame_gutters().
1590
1591         * redisplay.c (add_emchar_rune): use string functions if we are
1592         working with a string.
1593         (position_redisplay_data_type): add string element.
1594
1595 1999-07-15  Andy Piper  <andy@xemacs.org>
1596
1597         * winslots.h: add real_gutter_size slots to hold the actual gutter
1598         size. This is important for autodetected sizes.
1599
1600         * gutter.c (calculate_gutter_size): calculate size for gutters
1601         that have 'autodetect size.
1602
1603         * redisplay-msw.c (mswindows_output_vertical_divider): adjust
1604         extent of divider for gutters.
1605
1606         * redisplay-x.c (x_output_vertical_divider): adjust extent of
1607         divider for gutters.
1608
1609         * scrollbar.c (update_scrollbar_instance): adjust scrollbar
1610         position to take into account the gutters.
1611
1612         * redisplay.c (generate_modeline): adjust modeline position to
1613         take into account the gutters.
1614
1615 1999-07-14  Andy Piper  <andy@xemacs.org>
1616
1617         * gutter.c (frame_topmost_window): new function.
1618         (frame_bottommost_window): ditto.
1619         (frame_leftmost_window): ditto.
1620         (frame_rightmost_window): ditto.
1621
1622 1999-07-13  Andy Piper  <andy@xemacs.org>
1623
1624         * redisplay.c (calculate_display_line_boundaries): use text
1625         boundaries so that gutters get handled properly.
1626
1627 1999-07-12  Andy Piper  <andy@xemacs.org>
1628
1629         * glyphs-x.c (x_widget_instantiate): set the font Motif-style if
1630         we're using Motif.
1631
1632         * redisplay-output.c (redisplay_clear_to_window_end): generalised
1633         from redisplay-x.c
1634
1635         * redisplay-x.c (redisplay_clear_to_window_end): moved to
1636         redisplay.c
1637         
1638         * redisplay-msw.c (redisplay_clear_to_window_end): deleted.
1639
1640         * gutter.c: new file - implements gutters. All new functions are
1641         semantically equivalent to the toolbar functions.
1642         (gutter_was_visible): new function.
1643         (get_gutter_coords): ditto.
1644         (output_gutter): ditto.
1645         (clear_gutter): ditto.
1646         (update_frame_gutters): ditto.
1647         (redraw_exposed_gutter): ditto.
1648         (redraw_exposed_gutters): ditto.
1649         (free_frame_gutters): ditto.
1650         (init_frame_gutters): ditto.
1651         (decode_gutter_position): ditto.
1652         (Fset_default_gutter_position): ditto.
1653         (Fset_default_gutter_position): ditto.
1654         (Fdefault_gutter_position): ditto.
1655         (gutter_after_change): ditto.
1656         (Fgutter_specifier_p): ditto.
1657         (recompute_overlaying_specifier): ditto.
1658         (gutter_specs_changed): ditto.
1659         (default_gutter_specs_changed): ditto.
1660         (gutter_geometry_changed_in_window): ditto.
1661         (default_gutter_size_changed_in_window): ditto.
1662         (default_gutter_border_width_changed_in_window): ditto.
1663         (default_gutter_visible_p_changed_in_window): ditto.
1664         (syms_of_gutter): ditto.
1665         (vars_of_gutter): ditto.
1666         (specifier_type_create_gutter): ditto.
1667         (specifier_vars_of_gutter): ditto.
1668
1669         * gutter.h: new file. Contains gutter constants and sizing macros
1670         similar to those for the toolbar.
1671
1672         * winslots.h: add gutter variables.
1673
1674         * window.h: declare window_is_* functions.
1675
1676         * window.c (window_is_lowest): make non-static.
1677         (window_is_highest): ditto.
1678         (window_top_toolbar_height): deleted.
1679         (window_bottom_toolbar_height): deleted.
1680         (window_left_toolbar_width): deleted.
1681         (window_right_toolbar_width): deleted.
1682         (window_top_gutter_height): add gutter sizing.
1683         (window_bottom_gutter_height): ditto.
1684         (window_left_gutter_width): ditto.
1685         (window_right_gutter_width): ditto.
1686
1687         * symsinit.h: declarations for gutters vars etc.
1688
1689         * search.c (bi_find_next_emchar_in_string): new function.
1690
1691         * scrollbar.c (update_scrollbar_instance): remove reference to
1692         window_bottom_toolbar_height which did nothing.
1693
1694         * redisplay.h (struct display_line): add face indices for
1695         overriding defaults in output_display_line.
1696         Add gutter_changed flags and declarations.
1697
1698         * redisplay.c (create_string_text_block): new function, similar to
1699         create_text_block but for strings. Display tables etc are used
1700         from the currently selected window.
1701         (generate_string_display_line): ditto. Similar to
1702         generate_display_line.
1703         (generate_displayable_area): generate display lines for a given
1704         area on a frame. Input is the string, with associated extents, to
1705         display.
1706         (redisplay_frame): add gutter_changed check.
1707         (redisplay_device): ditto.
1708         (redisplay_without_hooks): ditto.
1709
1710         * redisplay-x.c (bevel_modeline): moved to redisplay.c.
1711         (x_redraw_exposed_area): redraw exposed gutters.
1712         (x_bevel_area): new redisplay device method.
1713         (x_type_create_redisplay_mswindows): add bevel_area device method.
1714         (x_output_display_block): fiddly Martin-style cleanup.
1715         (x_output_vertical_divider): use bevel_area.
1716
1717         * redisplay-output.c (output_display_line): check display_lines
1718         for face information before using defaults.
1719         (bevel_modeline): new function, calls bevel_area with appropriate
1720         values.
1721
1722         * redisplay-msw.c (bevel_modeline): moved to redisplay.c.
1723         (mswindows_redraw_exposed_area): redraw exposed gutters.
1724         (mswindows_bevel_area): new redisplay device method.
1725         (console_type_create_redisplay_mswindows): add bevel_area device
1726         method.
1727
1728         * indent.c (string_column_at_point): add column_at_point but for
1729         strings.
1730
1731         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
1732         instantiate widgets that we have a toolkit for.
1733
1734         * general.c: add Qgutter.
1735
1736         * frame.h (struct frame): add display lines for gutters and
1737         visibility flags.
1738
1739         * frame.c (set_frame_selected_window): mark gutters changed.
1740
1741         * emacs.c (main_1): add gutter initialisation.
1742
1743         * device.h (struct device): add gutter_changed flag and macros to
1744         manipulate it.
1745
1746         * console.h (struct console_methods): new bevel area redisplay
1747         method.
1748
1749         * buffer.h (REAL_INC_CHARBYTIND): new macro for strings as
1750         REAL_INC_BYTIND is for buffers.
1751         (INC_CHARPTR): ditto.
1752
1753         * Makefile.in.in (objs): add gutter.o
1754
1755 1999-07-13  XEmacs Build Bot <builds@cvs.xemacs.org>
1756
1757         * XEmacs 21.2.18 is released
1758
1759 1999-07-08  SL Baur  <steve@mule.m17n.org>
1760
1761         * event-Xt.c (handle_focus_event_1): Guard FRAME_X_XIC with
1762         XIM_XLIB.
1763         (emacs_Xt_handle_magic_event): Ditto.
1764         * redisplay-x.c (x_output_string): Ditto.
1765         (x_output_eol_cursor): Ditto.
1766
1767 1999-06-30  Kazuyuki IENAGA <kazz@imasy.or.jp>
1768
1769         *  event-Xt.c, input-method-xlib.c, redisplay-x.c: Avoid the
1770         problem that when XIM is destroyed or missed with some reason,
1771         xemacs will die.  Now xim=xlib waits the XIM will be ready and
1772         endures the case of XIM end up.
1773
1774 1999-07-03  Gunnar Evermann  <ge204@eng.cam.ac.uk>
1775
1776         * tooltalk.c (init_tooltalk): save signal actions for SIGQUIT,
1777         SIGINT and SIGCHLD before calling tt_open and restore the
1778         afterwards. This fixes e.g. the zombie subprocesses on Solaris
1779
1780 1999-07-06  SL Baur  <steve@xemacs.org>
1781
1782         * s/linux.h: gcc-2.8 changes for powerpc
1783         From Justin Vallon <vallon@mindspring.com>
1784
1785 1999-07-05  Didier Verna  <verna@inf.enst.fr>
1786
1787         * indent.c: new symbol Qcoerce.
1788         (Fmove_to_column): use it + doc string update.
1789
1790 1999-07-04  Andy Piper  <andy@xemacs.org>
1791
1792         * console.c: undo earlier Fprovide changes.
1793         * fns.c: ditto.
1794         * console.h: ditto.
1795
1796         * console-tty.c (image_instantiator_format_create_glyphs_tty): new
1797         function. validate appropriate image formats for tty.
1798
1799         * glyphs.h (INITIALIZE_IMAGE_INSTANTIATOR_FORMAT_NO_SYM):
1800         initialize consoles parameter.
1801         (struct image_instantiator_methods): add consoles parameter.
1802         (IIFORMAT_VALID_CONSOLE): new function. validate the format on the
1803         console.
1804         (INITIALIZE_DEVICE_IIFORMAT): validate the format on the given
1805         console.
1806
1807         * glyphs-msw.c: declare instantiators for later use.
1808         (image_instantiator_format_create_glyphs_mswindows): validate xpm
1809         and friends on the mswindows console.
1810         * glyphs-x.c: ditto.
1811
1812         * glyphs.c (valid_image_instantiator_format_p): disallow glyphs
1813         that have not been registered on the supplied device.
1814         (Fvalid_image_instantiator_format_p): add locale argument.
1815         (instantiate_image_instantiator): valid image instantiator on the
1816         device.
1817
1818         * symsinit.h: add image_instantiator_format_create_glyphs_tty()
1819         declaration.
1820
1821         * emacs.c (main_1): add call to
1822         image_instantiator_format_create_glyphs_tty().
1823
1824 1999-06-29  Olivier Galibert  <galibert@pobox.com>
1825
1826         * lisp.h: Add #include <stddef.h>.
1827
1828         * sysdep.c: Remove #include <stddef.h>.
1829         * symbols.c: Remove #include <stddef.h>.
1830         * sheap.c: Remove #include <stddef.h>.
1831         * opaque.c: Remove #include <stddef.h>.
1832         * nt.c: Remove #include <stddef.h>.
1833         * mule-charset.c: Remove #include <stddef.h>.
1834         * marker.c: Remove #include <stddef.h>.
1835         * file-coding.c: Remove #include <stddef.h>.
1836         * extents.c: Remove #include <stddef.h>.
1837         * elhash.c: Remove #include <stddef.h>.
1838         * data.c: Remove #include <stddef.h>.
1839         * chartab.c: Remove #include <stddef.h>.
1840         * bytecode.c: Remove #include <stddef.h>.
1841         * alloc.c: Remove #include <stddef.h>.  Fix vector description
1842
1843 1999-06-30  SL Baur  <steve@miho.m17n.org>
1844
1845         * editfns.c: Document "%s" format spec.
1846         Suggested by Bob Weiner <weiner@altrasoft.com>
1847
1848 1999-06-29  Andy Piper  <andy@xemacs.org>
1849
1850         * event-msw.c: fix definition booboo.
1851
1852 1999-06-28  Andy Piper  <andy@xemacs.org>
1853
1854         * glyphs-x.c: change tree -> tree-view, progress ->
1855         progress_gauge, edit -> edit-field, tab -> tab-control, combo ->
1856         combo-box.
1857         (complex_vars_of_glyphs_x): provide-on-console the implemented
1858         widget types.
1859
1860         * glyphs-msw.c: ditto.
1861         (complex_vars_of_glyphs_mswindows): ditto.
1862
1863         * lisp.h: add Fprovide_on_console.
1864
1865         * fns.c (Ffeaturep): add extra optional console argument.
1866         (Fprovide_on_console): like Fprovide but provides only on the
1867         specified console-type.
1868         (Frequire): check console-features as well as global features.
1869
1870         * console.c (Fconsole_features): new function. return features for
1871         this console.
1872         (syms_of_console): add Fconsole_features.
1873
1874         * console.h (CONMETH_FEATURES): new function for accessing features.
1875         (CONSOLE_FEATURES): ditto.
1876         (struct console_methods): add features slot.
1877         (INITIALIZE_CONSOLE_TYPE): initialize features slot.
1878
1879 1999-06-28  Andy Piper  <andy@xemacs.org>
1880
1881         * event-Xt.c (handle_focus_event_1): conditionally compile for
1882         X11R5.
1883
1884         * s/cygwin32.h: fix me website address.
1885
1886         * event-msw.c: add NMHDR for pre b20 cygwin builds.
1887
1888         * gui-x.c (button_item_to_widget_value): only add callback if it
1889         is non-nil.
1890
1891         * glyphs-x.c: add progress, edit and combo instantiators.
1892         (x_widget_set_property): new function. uses lwlib to set widget
1893         values.
1894         (x_widget_property): new function. uses lwlib to get widget
1895         values.
1896         (x_button_instantiate): support images in buttons.
1897         (x_button_property): new function. use lwlib to get the selected
1898         state.
1899         (x_progress_instantiate): new function for instantiating progress
1900         gauges.
1901         (x_progress_set_property): new function. sets the progress gauge
1902         position.
1903         (x_edit_instantiate): new function. for instantiating edit fields.
1904         (x_combo_instantiate): new function. for instantiating combo
1905         boxes.
1906         (image_instantiator_format_create_glyphs_x): add new device ii
1907         formats.
1908
1909         * glyphs-msw.c (mswindows_tab_instantiate): remove redundant var.
1910
1911         * console.h (CONSOLE_FEATURES): new features accesor.
1912
1913         * conslots.h (MARKED_SLOT): add features entry.
1914
1915 1999-06-25  Andy Piper  <andy@xemacs.org>
1916
1917         * menubar-x.c (menu_item_descriptor_to_widget_value_1): use new
1918         gui functions.
1919
1920         * menubar-msw.c: move MAX_MENUITEM_LENGTH to gui.h
1921
1922         * gui.h (struct Lisp_Gui_Item): add accelerator.
1923
1924         * gui.c (gui_item_add_keyval_pair): deal with accelerators.
1925         (gui_item_init): ditto.
1926         (gui_add_item_keywords_to_plist): ditto.
1927         (mark_gui_item): ditto.
1928         (gui_item_hash): ditto.
1929         (gui_item_accelerator): new function.
1930         (gui_name_accelerator): new function stolen from gui-x.c
1931
1932         * gui-x.c (popup_selection_callback): always define. mark
1933         subwindows changed after calling a callback.
1934         (menu_name_to_accelerator): deleted.
1935         (button_item_to_widget_value): forward gui_item things to gui_item
1936         functions.
1937
1938         * glyphs-x.h (struct x_subwindow_data): add data for widgets. add
1939         appropriate accesors.
1940
1941         * glyphs-x.c: declare new glyph formats.
1942         (x_finalize_image_instance): unmanage and destroy widgets if they
1943         exist.
1944         (x_unmap_subwindow): handle widgets specially.
1945         (x_map_subwindow): ditto. offset display of widgets by offset of
1946         text widget within container.
1947         (x_update_subwindow): new function. call lw_modify_all_widgets
1948         when we are a widget.
1949         (x_widget_instantiate): new function for generically creating
1950         widgets-glyphs. toolkit specifics forwarded to lwlib.
1951         (x_button_instantiate): new function for instantiating
1952         widgets-glyph buttons.
1953         (console_type_create_glyphs_x): register update_subwindow.
1954         (image_instantiator_format_create_glyphs_x): register widget and
1955         button types.
1956
1957         * event-msw.c (mswindows_wnd_proc): remove redundant variable.
1958
1959         * event-Xt.c (x_event_to_emacs_event): call handle_focus_event_1
1960         when we get a button press in case we do not have the focus.
1961         (handle_focus_event_1): set the keyboard focus to the text widget
1962         if we do not have it.
1963
1964         * dialog-x.c (dbox_descriptor_to_widget_value): use new gui_item
1965         functions.
1966
1967 1999-06-24  SL Baur  <steve@miho.m17n.org>
1968
1969         * syntax.c (scan_words): Restore non-Mule code.
1970         (word_constituent_p): Restore.
1971
1972 1999-06-23  Olivier Galibert  <galibert@pobox.com>
1973
1974         * config.h.in: Add missing #undef *_USER_DEFINED.
1975
1976 1999-06-23  SL Baur  <steve@miho.m17n.org>
1977
1978         * lisp.h (set_bit_vector_bit): Force promotion to unsigned long
1979         int (fixes a 64-bit problem).
1980
1981         * chartab.c (word_boundary_p): Use EQ not == for lisp_object
1982         comparison.
1983
1984 1999-03-23  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1985
1986         * paths.h.in (PATH_DOC): Made doc-directory configurable.
1987
1988 1999-06-22  Olivier Galibert  <galibert@pobox.com>
1989
1990         * lrecord.h: Added basic external description system.
1991
1992         * symbols.c: Added symbol, symbol-value-buffer-local,
1993         symbol-value-lisp-magic and symbol-value-varalias description.
1994         * mule-charset.c: Added charset description.
1995         * marker.c: Added marker description.
1996         * keymap.c: Added keymap description.
1997         * glyphs.c: Added glyph description.
1998         * floatfns.c: Added float description.
1999         * file-coding.c: Added coding-system description.
2000         * extents.c: Added extent description.
2001         * elhash.c: Added hash-table description.
2002         * data.c: Added weak-list desciption.
2003         * chartab.c: Added char-table-entry and char-table description.
2004         * bytecode.c: Added compiled-function description.
2005         * alloc.c: Added cons, vector and string description.
2006
2007 1999-06-22  Olivier Galibert  <galibert@pobox.com>
2008
2009         * lrecord.h (struct lrecord_header): Reduced size to 4 bytes.
2010         Updated everything to the removal of the "flags" substructure.
2011
2012         * lisp.h (subr_lheader_initializer): Updated.
2013         * symeval.h (symbol_value_forward_lheader_initializer): Updated.
2014
2015 1999-06-20  MORIOKA Tomohiko  <tomo@etl.go.jp>
2016
2017         * syntax.c (word_constituent_p): Deleted.
2018         (scan_words): Use `WORD_BOUNDARY_P'.
2019
2020         * chartab.c (Vword_combining_categories): New variable.
2021         (Vword_separating_categories): Likewise.
2022         (CATEGORYP): New macro.
2023         (CATEGORY_SET): Likewise.
2024         (CATEGORY_MEMBER): Likewise.
2025         (word_boundary_p): New function.
2026         (complex_vars_of_chartab): Set up new variable
2027         `word-combining-categories' and `word-separating-categories'.
2028
2029 1999-06-18  Olivier Galibert  <galibert@pobox.com>
2030
2031         * lrecord.h: Added description as a placehold in the lrecord
2032         implementation structures.  Added the parameter to all constructor
2033         defines.
2034
2035         * alloc.c: Added placeholders.
2036         * buffer.c: Ditto.
2037         * bytecode.c: Ditto.
2038         * chartab.c: Ditto.
2039         * console.c: Ditto.
2040         * data.c: Ditto.
2041         * database.c: Ditto.
2042         * device.c: Ditto.
2043         * eldap.c: Ditto.
2044         * elhash.c: Ditto.
2045         * eval.c: Ditto.
2046         * event-stream.c: Ditto.
2047         * events.c: Ditto.
2048         * extents.c: Ditto.
2049         * faces.c: Ditto.
2050         * file-coding.c: Ditto.
2051         * floatfns.c: Ditto.
2052         * fns.c: Ditto.
2053         * frame.c: Ditto.
2054         * glyphs.c: Ditto.
2055         * gui-x.c: Ditto.
2056         * keymap.c: Ditto.
2057         * lstream.c: Ditto.
2058         * marker.c: Ditto.
2059         * mule-charset.c: Ditto.
2060         * objects.c: Ditto.
2061         * opaque.c: Ditto.
2062         * process.c: Ditto.
2063         * rangetab.c: Ditto.
2064         * specifier.c: Ditto.
2065         * symbols.c: Ditto.
2066         * toolbar.c: Ditto.
2067         * tooltalk.c: Ditto.
2068         * window.c: Ditto.
2069
2070 1999-06-22  XEmacs Build Bot <builds@cvs.xemacs.org>
2071
2072         * XEmacs 21.2.17 is released
2073
2074 1999-06-13  Oscar Figueiredo  <oscar@xemacs.org>
2075
2076         * config.h.in (HAVE_LDAP_SET_OPTION): New define
2077         (HAVE_LDAP_GET_LDERRNO): Ditto
2078         (HAVE_LDAP_RESULT2ERROR): Ditto
2079         (HAVE_LDAP_PARSE_RESULT): Ditto
2080         (HAVE_UMICH_LDAP): Removed
2081         (HAVE_NS_LDAP): Removed
2082
2083         * eldap.h (struct Lisp_LDAP): Removed the `livep' member as
2084         suggested by Olivier Galibert
2085         (CHECK_LIVE_LDAP): Test on `ld' instead of `livep'
2086
2087         * eldap.c: Take the removal of `livep' into account in all the
2088         necessary functions
2089         (signal_ldap_error): Take two additional parameters
2090         Added new finer compilation conditions in order to use
2091         ldap_parse_result or ldap_result2error if available
2092         (Fldap_open): Conform to this new API
2093         (Fldap_search_internal): Ditto
2094
2095 1999-06-17  SL Baur  <steve@miho.m17n.org>
2096
2097         * data.c (struct int_or_double): Should use EMACS_INT not int.
2098
2099 1999-06-16  Norbert Koch  <n.koch@eai-delta.de>
2100
2101         * redisplay-msw.c: Run 'ccl_driver' with 'CCL_MODE_ENCODING' as in
2102         redisplay-x.c
2103
2104 1999-06-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2105
2106         * redisplay-x.c (separate_textual_runs): Run `ccl_driver' with
2107         `CCL_MODE_ENCODING'.
2108
2109         * file-coding.c (mule_decode): Run `ccl_driver' with
2110         `CCL_MODE_DECODING'.
2111         (mule_encode): Run `ccl_driver' with `CCL_MODE_ENCODING'.
2112
2113         * mule-ccl.c (CCL_WRITE_CHAR): Refer `conversion_mode'.
2114         (ccl_driver): Add new argument `conversion_mode'.
2115         (Fccl_execute): Run `ccl_driver' with `CCL_MODE_ENCODING'.
2116         (Fccl_execute_on_string): Likewise [perhaps it is better to add
2117         new optional argument].
2118
2119         * mule-ccl.h (CCL_MODE_ENCODING): New macro.
2120         (CCL_MODE_DECODING): New macro.
2121         (ccl_driver): Add new argument `conversion_mode'.
2122
2123 1999-06-15  SL Baur  <steve@miho.m17n.org>
2124
2125         * mule-charset.c (Fsplit_char): New subr.
2126         (Fchar_octet): delete.
2127         (syms_of_mule_charset): DEFSUBR it.
2128
2129 1999-06-13  Andy Piper  <andy@xemacs.org>
2130
2131         * menubar.h: update declarations involving gui_items.
2132
2133         * lisp.h: declare Lisp_Gui_Item.
2134
2135         * glyphs.h (struct Lisp_Image_Instance): update type of gui_item.
2136
2137         * glyphs.c (mark_image_instance): modify for new lisp-based gui_items.
2138         (print_image_instance): ditto.
2139         (image_instance_equal): ditto.
2140         (image_instance_hash): ditto.
2141
2142         * event-msw.c (mswindows_need_event): assert badly_p status.
2143         (mswindows_wnd_proc): modify WM_NOTIFY handling to cope with
2144         callbacks in tree-view and tab-control widgets.
2145         (emacs_mswindows_next_event): modify use of
2146         mswindows_dequeue_dispatch_event.
2147
2148         * dialog-msw.c (mswindows_popup_dialog_box): modify for new
2149         lisp-based gui_items.
2150
2151         * glyphs-msw.c (mswindows_update_subwindow): update use of
2152         gui_items.
2153         (mswindows_register_gui_item): new function.
2154         (mswindows_register_gui_item): fix to use lisp gui_items.
2155         (mswindows_widget_instantiate): ditto.
2156         (mswindows_button_instantiate): ditto.
2157         (add_tree_item): new function to recursively add tree view
2158         elements.
2159         (add_tree_item_list): ditto.
2160         (mswindows_tree_instantiate): new function. instantiate tree view
2161         controls.
2162         (add_tab_item): new function to add tabs to a tab control.
2163         (mswindows_tab_instantiate): new function. instantiate tab
2164         controls.
2165         (image_instantiator_format_create_glyphs_mswindows): add tree view
2166         and tab controls.
2167         (vars_of_glyphs_mswindows): ditto.
2168
2169         * glyphs-widget.c (check_valid_item_list_1): allow nested lists in
2170         item lists.
2171         (check_valid_item_list): ditto.
2172         (initialize_widget_image_instance): fix to use new lisp gui_item.
2173         (widget_instantiate_1): allow the setting of default textwidth in
2174         characters.
2175         (widget_instantiate): change to use new widget_instantiate_1
2176         signature.
2177         (combo_instantiate): ditto.
2178         (static_instantiate): ditto.
2179         (tab_instantiate): new function for tab widgets.
2180         (image_instantiator_format_create_glyphs_widget): add tab and tree
2181         view widgets.
2182
2183         * menubar-msw.c (displayable_menu_item): convert to use lisp
2184         gui_items.
2185         (populate_menu_add_item): ditto.
2186         (populate_or_checksum_helper): ditto.
2187
2188         * menubar.c (menu_parse_submenu_keywords): convert to use lisp
2189         gui_items.
2190         (Fmenu_find_real_submenu): ditto.
2191
2192         * gui.h (struct Lisp_Gui_Item): make gui_item a lisp oebjct.
2193
2194         * gui.c (gui_item_add_keyval_pair): gui_items are now lisp
2195         objects, convert functions that use them accordingly.
2196         (gui_item_init): ditto.
2197         (gui_item_active_p): ditto.
2198         (gui_item_selected_p): ditto.
2199         (gui_item_included_p): ditto.
2200         (gui_item_display_flush_left): ditto.
2201         (gui_item_display_flush_right): ditto.
2202         (mark_gui_item): ditto.
2203         (allocate_gui_item): new function to create a gui_item.
2204         (make_gui_item_from_keywords_internal): ditto. create and return a
2205         gui_item as well as setting keywords.
2206         (gui_parse_item_keywords): ditto.
2207         (gui_parse_item_keywords_no_errors): ditto.
2208         (gui_add_item_keywords_to_plist): new function, not yet used.
2209         (gui_item_hash): new function.
2210         (gui_item_id_hash): use gui_item_hash.
2211         (gui_item_equal): new function.
2212         (print_gui_item): new function.
2213
2214 1999-06-11  XEmacs Build Bot <builds@cvs.xemacs.org>
2215
2216         * XEmacs 21.2.16 is released
2217
2218 1999-06-10  Andy Piper  <andy@xemacs.org>
2219
2220         * select-msw.c (mswindows_own_selection): only set the clipboard
2221         if asked.
2222         (mswindows_get_foreign_selection): only get the clipboard if
2223         asked.
2224         (mswindows_disown_selection): only disown the clipboard if asked.
2225
2226 1999-06-03  MORIOKA Tomohiko  <tomo@etl.go.jp>
2227
2228         * file-coding.c (coding_system_from_mask): Use `raw-text' instead
2229         of `no-conversion'.
2230         (complex_vars_of_mule_coding): Use `raw-text' as the coding-system
2231         of coding-category `no-conversion'.
2232
2233 1999-06-03  MORIOKA Tomohiko  <tomo@etl.go.jp>
2234
2235         * file-coding.c (Qraw_text): New variable.
2236         (syms_of_mule_coding): Add new symbol `raw-text'.
2237         (complex_vars_of_mule_coding): Add new coding-system `raw-text';
2238         define coding-system `binary' independently; define coding-system
2239         `no-conversion' as an alias for `raw-text'.
2240
2241         * file-coding.h (Qraw_text): New variable.
2242
2243 1999-06-08  SL Baur  <steve@xemacs.org>
2244
2245         * s/decosf4-0.h: Explicitly #undef SYSTEM_MALLOC.
2246
2247 1999-06-06  Hrvoje Niksic  <hniksic@srce.hr>
2248
2249         * fns.c (MIME_LINE_LENGTH): Default to 72, as in mimencode and
2250         base64.el.
2251         (base64_decode_1): Signal errors instead of returning -1.
2252
2253 1999-06-07  Hrvoje Niksic  <hniksic@srce.hr>
2254
2255         * mule-charset.c (Fmake_char): Update docstring.
2256
2257 1999-06-07  Hrvoje Niksic  <hniksic@srce.hr>
2258
2259         * fns.c (Fstring_lessp): Actually increment the Bufbyte pointers.
2260
2261 1999-06-05  Hrvoje Niksic  <hniksic@srce.hr>
2262
2263         * fns.c (base64_decode_1): Allow and ignore any non-base64
2264         characters in input.
2265
2266 1999-05-27  Olivier Galibert  <galibert@pobox.com>
2267
2268         * emacs.c (Fdump_emacs): Add clear_message() lost with the removal
2269         of report_pure_usage().
2270
2271 1999-06-04  Hrvoje Niksic  <hniksic@srce.hr>
2272
2273         * fns.c (Fstring_lessp): Remove O(n^2) under Mule.
2274
2275 1999-06-04  XEmacs Build Bot <builds@cvs.xemacs.org>
2276
2277         * XEmacs 21.2.15 is released
2278
2279 1999-06-01  Hirokazu FUKUI  <fukui@atesoft.advantest.co.jp>
2280
2281         * frame.c (Fset_mouse_position):
2282         (Fset_mouse_pixel_position):
2283         * window.c (Fsplit_window):
2284         (Fmove_to_window_line):
2285         Fix crash when invoking functions with an already-deleted window
2286         argument.
2287
2288         * indent.c (vertical_motion_1):
2289         (vmotion_pixels):
2290         (Fvertical_motion_pixels):
2291         * window.c (Fwindow_displayed_text_pixel_height):
2292         Fix error message when invoking functions with an already-deleted
2293         window argument.
2294
2295 1999-06-01  Jan Vroonhof  <vroonhof@math.ethz.ch>
2296
2297         * sysdep.c (request_sigio_on_device): Guard against glibc
2298         2.1's stub streams implementation.
2299
2300 1999-06-03  SL Baur  <steve@xemacs.org>
2301
2302         * config.h.in:
2303         * emacs.c:  Implement x.y.z version numbers
2304         From Jan Vroonhof <vroonhof@math.ethz.ch>
2305
2306 1999-05-20  MORIOKA Tomohiko  <tomo@etl.go.jp>
2307
2308         * mule-charset.c (complex_vars_of_mule_charset): Registry of
2309         japanese-jisx0208-1978 should not match with "jisx0208.1983" nor
2310         "jisc6226.1983".
2311
2312 1999-06-03  SL Baur  <steve@xemacs.org>
2313
2314         * frame-x.c:
2315         * device-x.c: rename session option to wmcommand.
2316         From Oliver Graf <ograf@rhein-zeitung.de>
2317
2318 1999-05-27  Hrvoje Niksic  <hniksic@srce.hr>
2319
2320         * fns.c (Fsubstring): Don't traverse the same region twice with
2321         charcount_to_bytecount().
2322
2323 1999-06-03  SL Baur  <steve@steve1.m17n.org>
2324
2325         * m/alpha.h (SYSTEM_MALLOC): Fix indented preprocessor directive
2326         garbage.
2327
2328         * s/decosf4-0.h: Defining ORDINARY_LINK here is redundant (and it
2329         doesn't really work as is implied by the commentary).
2330         Don't define SYSTEM_MALLOC so the old GNU malloc can be used.
2331
2332 1999-06-02  SL Baur  <steve@steve1.m17n.org>
2333
2334         * symsinit.h: Declare vars_of_ntproc.
2335         * emacs.c (main_1): Call it.
2336
2337         * ntproc.c (syms_of_ntproc): Move variable initializations from
2338         here ...
2339         (vars_of_ntproc): ... to here [new function].
2340
2341         * file-coding.c (syms_of_file_coding): Rename.
2342         (vars_of_file_coding): Ditto.
2343         (complex_vars_of_file_coding): Ditto.
2344
2345         * symsinit.h: Rename *_mule_coding to *_file_coding.
2346
2347         * emacs.c (main_1): Call them by the proper name.
2348
2349         * device-msw.c (syms_of_device_mswindows): Move variable
2350         initializations from here ...
2351         (vars_of_device_mswindows): ... to here.
2352
2353         * chartab.c (vars_of_chartab): New function.
2354
2355         * symsinit.h: New function, vars_of_chartab.
2356
2357         * emacs.c (main_1): Call it.
2358
2359         * mule-canna.c (syms_of_mule_canna): Move CANNA initialization ...
2360         (vars_of_mule_canna): ... to here.
2361
2362         * mule-ccl.c (vars_of_mule_ccl): New function.  Move variable
2363         initializations out of syms_of_mule_ccl.
2364
2365         * symsinit.h: Declare new function vars_of_mule_ccl.
2366
2367         * emacs.c (main_1): Call it.
2368
2369 1999-05-27  Hrvoje Niksic  <hniksic@srce.hr>
2370
2371         * fns.c (base64_decode_1): Ignore whitespace.
2372
2373 1999-05-27  Hrvoje Niksic  <hniksic@srce.hr>
2374
2375         * mule-charset.c (Fmake_char): Strip the eighth bit off ARG1 and
2376         ARG2.
2377
2378 1999-05-21  Andy Piper  <andy@xemacs.org>
2379
2380         * xselect.c: deleted.
2381
2382         * symsinit.h: declare select initialisation.
2383
2384         * select.h: new file. declare commonly used select functions and
2385         variables.
2386
2387         * select.c: new file. generalised from xselect.c.
2388         (clean_local_selection_data): moved from xselect.c.
2389         (get_local_selection): ditto. device specific pieces called via a
2390         devmeth.
2391         (handle_selection_clear): ditto.
2392         (Fown_selection_internal): renamed and generalised from
2393         Fx_own_selection_internal. moved from xselect.c.
2394         (Fdisown_selection_internal): ditto.
2395         (Fselection_owner_p): ditto.
2396         (Fselection_exists_p): ditto.
2397         (Fget_selection_internal): ditto.
2398         (syms_of_select): new function. QXXXX values moved from xselect.c
2399         (vars_of_select): new function. selection_converter_alist,
2400         lost_selection_hooks moved and renamed from xselect.c
2401
2402         * select-x.c: renamed from xselect.c.
2403         (x_own_selection): converted to device specific. non-X-specific
2404         bits moved to select.c.
2405         (x_get_foreign_selection): ditto.
2406         (x_disown_selection): ditto.
2407         (x_selection_exists_p): ditto.
2408         (console_type_create_select_x): new function.
2409
2410         * select-msw.c (mswindows_own_selection): new device method to set
2411         the clipboard when we 'own' the selection.
2412         (mswindows_get_foreign_selection): new device method to get the
2413         clipboard.
2414         (mswindows_disown_selection): new device method to delete the
2415         selection when we 'disown' it.
2416         (console_type_create_select_mswindows): new function.
2417
2418         * emacs.c (main_1): add select to things to initialise.
2419
2420         * console.h (struct console_methods): new console methods for
2421         selection.
2422
2423         * Makefile.in.in (x_objs): xselect.c renamed to select-x.c
2424
2425 1999-05-20  Hrvoje Niksic  <hniksic@srce.hr>
2426
2427         * print.c (long_to_string): Install a faster version.
2428
2429 1999-05-16  Andy Piper  <andy@xemacs.org>
2430
2431         * ntproc.c (syms_of_ntproc): default
2432         win32-start-process-share-console to t.
2433
2434 1999-05-14  Hrvoje Niksic  <hniksic@srce.hr>
2435
2436         * config.h.in: Do it here.
2437
2438         * bytecode.c: Don't define ERROR_CHECK_TYPECHECK here.
2439
2440 1999-05-14  Andy Piper  <andy@xemacs.org>
2441
2442         * toolbar-msw.c (mswindows_output_toolbar): hash on something
2443         hashable.
2444
2445 1999-05-14  XEmacs Build Bot <builds@cvs.xemacs.org>
2446
2447         * XEmacs 21.2.14 is released
2448
2449 1999-05-12  Andy Piper  <andy@xemacs.org>
2450
2451         * ntproc.c (sys_spawnve): kludge argv[0] in a MS compatible way.
2452
2453 1999-05-11  Gunnar Evermann  <ge204@eng.cam.ac.uk>
2454
2455         * emacs.c (Frun_emacs_from_temacs): (re)alloc natgs+2 entries for
2456         run_temacs_argv array -- fixes random memory corruption crash
2457
2458 1999-05-12  Jan Vroonhof  <vroonhof@math.ethz.ch>
2459
2460         * window.c (Fcurrent_window_configuration):
2461         Save minibuffer height;
2462
2463         * window.c (set_window_configuration): use it.
2464
2465 1999-05-10  Robert Pluim  <rpluim@bigfoot.com>
2466
2467         * lisp.h (NNUNGCPRO): fix typo in name of DEBUG_GCPRO version
2468
2469 1999-04-21  Jan Vroonhof  <vroonhof@math.ethz.ch>
2470
2471         * redisplay.c (redisplay_window): Do not put data
2472         in the line start cache if it is not guaranteed to be correct
2473
2474 1999-04-02  Jan Vroonhof  <vroonhof@math.ethz.ch>
2475
2476         * window.c (struct window_config): Removed frame
2477         size members.
2478         (window_config_equal): No longer compare frame sizes.
2479         (Fset_window_configuration): Resize old top window to fit in the
2480         current frame directly, no longer use a fake frame resize.
2481         (Fcurrent_window_configuration): No longer save frame size
2482
2483 1999-05-11  Andy Piper  <andy@xemacs.org>
2484
2485         * ntproc.c (sys_spawnve): actually assign argv[0] instead of the
2486         first character.
2487
2488 1999-05-10  Hrvoje Niksic  <hniksic@srce.hr>
2489
2490         * sysdep.c (init_system_name): If gethostname gives a proper
2491         domain name, don't look further for one.
2492
2493 1999-05-09  Hrvoje Niksic  <hniksic@srce.hr>
2494
2495         * symbols.c (Fintern): Avoid frequent XSYMBOL (foo).
2496         (Fintern_soft): Accept a symbol argument.
2497
2498 1999-05-06  Hrvoje Niksic  <hniksic@srce.hr>
2499
2500         * symbols.c (Fintern): ...do it here.
2501
2502         * lread.c (read_atom): Don't handle keywords here.
2503
2504 1999-05-06  Hrvoje Niksic  <hniksic@srce.hr>
2505
2506         * symbols.c (reject_constant_symbols): Just use SYMBOL_IS_KEYWORD.
2507
2508 1999-05-03  Olivier Galibert  <galibert@pobox.com>
2509
2510         * lisp.h (SYMBOL_IS_KEYWORD): A symbol can be a keyword only if it
2511         is interned in the main obarray.
2512
2513 1999-04-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
2514
2515         * menubar-x.c (pre_activate_callback): set accelerator field in
2516         "No menu" entries to nil. Avoid crash in
2517         command_builder_operate_menu_accelerator
2518
2519 1999-05-03  Olivier Galibert  <galibert@pobox.com>
2520
2521         * symeval.h (symbol_value_forward_lheader_initializer): Ditto.
2522
2523         * lisp.h (DEFUN): Fix lrecord header initialisation.
2524
2525 1999-05-02  Andy Piper  <andy@xemacs.org>
2526
2527         * objects-msw.c (mswindows_font_instance_truename): add a ';'.
2528
2529         * ntproc.c (sys_kill): cast using MS mandated defines.
2530
2531 1999-04-29  Andy Piper  <andy@xemacs.org>
2532
2533         * m/intel386.h: remove redundant definitions.
2534
2535         * s/mingw32.h: new header for mingw32.
2536
2537         * unexnt.c: (open_input_file): function moved to nt.c.
2538         (close_file_data): ditto.
2539         (rva_to_section): function moved to ntproc.
2540
2541         * symsinit.h: declare syms_of_ntproc();
2542
2543         * objects-msw.c (mswindows_font_instance_truename): new function.
2544
2545         * ntproc.c: remove many warnings.
2546         (_sys_read_ahead): moved from nt.c and made static.
2547         (rva_to_section): moved from unexnt.c but not defined under
2548         mingw32.
2549         (win32_executable_type): implement what we can for mingw32
2550         headers.
2551         (sys_spawnve): fix bad MULE/GCPRO bug in filename handling.
2552
2553         * ntheap.h: remove declarations of functions that are now static.
2554
2555         * ntheap.c: support static heap.
2556
2557         * nt.h: conditionalise X_OK definition.
2558
2559         * nt.c: eliminate many warnings and support mingw32.
2560         (open_input_file): function moved from unexnt.c and made static
2561         (close_file_data): ditto.
2562         (_sys_read_ahead): moved to ntproc.c
2563
2564         * emacs.c: make sure syms_of_ntptroc gets called under windows.
2565
2566         * console-msw.h: support mingw32.
2567         * getloadavg.c: ditto.
2568         * ntplay.c: ditto.
2569         * sysdep.c: ditto.
2570         * sysdir.h: ditto.
2571         * systime.h: ditto.
2572         * systty.h: ditto.
2573
2574         * config.h.in: dont turn on DEBUG_ENCAPSULATION by default because
2575         some systems don't have all of the encapsulated system calls.
2576
2577         * callproc.c: warning elimination.
2578         * dired-msw.c: ditto.
2579         * process-nt.c: ditto.
2580         * realpath.c: ditto.
2581
2582         * Makefile.in.in: tweak : and ; for building under mswindows.
2583
2584 1999-04-26  Michael Harnois  <mharnois@willinet.net>
2585
2586         * eldap.c (allocate_ldap): Adapt to the new semantics of
2587         alloc_lcrecord_type().
2588
2589 1999-03-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
2590
2591         * file-coding.c (DECODE_HANDLE_END_OF_CONVERSION): fixed.
2592
2593 1998-09-04  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2594
2595         * Delete mule-coding.c and mule-coding.h because they are not
2596         used.
2597
2598 1999-04-22  Gunnar Evermann  <ge204@eng.cam.ac.uk>
2599
2600         * objects.c (print_font_instance): Check for NILP(f->device),
2601         i.e. Vthe_null_font_instance.
2602         (font_instance_truename_internal): ditto.
2603         (Ffont_instance_properties): ditto.
2604
2605 1999-04-22  Olivier Galibert  <galibert@pobox.com>
2606
2607         * lrecord.h (DECLARE_LRECORD): lrecord_implementation isn't an
2608         array anymore.
2609
2610 1999-04-22  Hrvoje Niksic  <hniksic@srce.hr>
2611
2612         * Makefile.in.in (tests): Don't mention tests explicitly -- makes
2613         it easier to add new ones.
2614
2615 1999-04-22  Hrvoje Niksic  <hniksic@srce.hr>
2616
2617         * symbols.c (reject_constant_symbols): Ditto.
2618         (init_symbols_once_early): Ditto.
2619
2620         * print.c (print_symbol): Don't use ->obarray.
2621
2622         * symbols.c (Funintern): Ditto.
2623
2624         * alloc.c (Fmake_symbol): Don't set ->obarray.
2625
2626         * lisp.h (struct Lisp_Symbol): Removed .obarray field.
2627
2628         * symbols.c (init_symbols_once_early): Removed
2629         Vpure_uninterned_symbol_table.
2630         (Fintern): Don't store to ->obarray field.
2631
2632 1999-04-22  Hrvoje Niksic  <hniksic@srce.hr>
2633
2634         * data.c (vars_of_data): Default debug_issue_ebola_notices to 0.
2635         (eq_with_ebola_notice): Remove abracadabra support.
2636
2637 1999-04-11  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
2638
2639         * eldap.c (Fldap_search_internal): Add a new parameter `withdn' to
2640         retrieve the distinguished names of entries
2641
2642 1999-03-08  Martin Buchholz  <martin@xemacs.org>
2643
2644         * lread.c (read_escape): Make hex escapes read only two hex digits.
2645
2646 1999-04-05  Olivier Galibert  <galibert@pobox.com>
2647
2648         * Makefile.in.in: Remove puresize-adjust.h and recursive makes.
2649         * make-src-depend: Remove puresize-adjust.h.
2650         * src-headers: Remove puresize-adjust.h.
2651         * config.h.in: Kill everything purespace/gung-ho related.
2652
2653         * dbxrc: Make gung-ho mandatory.
2654         * gdbinit: Ditto.
2655
2656         * lrecord.h: Make gung-ho mandatory.  Remove pure flag and add
2657         c_readonly and lisp_readonly.  Remove implementation arrays.
2658         (C_READONLY_RECORD_HEADER_P): Added.
2659         (LISP_READONLY_RECORD_HEADER_P): Added.
2660         (SET_C_READONLY_RECORD_HEADER): Added.
2661         (SET_LISP_READONLY_RECORD_HEADER): Added.
2662
2663         * lisp.h: Kill everything purespace/non gung-ho related.
2664         (CHECK_C_WRITEABLE): Added.
2665         (CHECK_LISP_WRITEABLE): Added.
2666         (C_READONLY): Added.
2667         (LISP_READONLY): Added.
2668
2669         * lisp-union.h: Make gung-ho mandatory.
2670         * lisp-disunion.h: Ditto.
2671
2672         * alloc.c: Kill everything purespace/non  gung-ho related. Fix all
2673         set_lheader_implementation calls.
2674         (c_readonly): Added.
2675         (lisp_readonly): Added.
2676         (make_string_nocopy): Added.
2677         (Fpurecopy):  Changed to do  nothing.   Kept the old documentation
2678         for reference purposes for the next patches.
2679         (sweep_lcrecords_1): Don't free C readonly lcrecords.
2680         (sweep_bit_vectors_1): Don't free C readonly bitvectors.
2681         (SWEEP_FIXED_TYPE_BLOCK): Don't free C readonly lrecords.
2682
2683         * fns.c: Make gung-ho mandatory.
2684         (Fput): CHECK_IMPURE -> CHECK_LISP_WRITEABLE.
2685         (Fremprop): Ditto.
2686         (Ffillarray): Ditto.
2687
2688         * data.c: Make gung-ho mandatory.
2689         (pure_write_error): Removed.
2690         (c_write_error): Added.
2691         (lisp_write_error): Added.
2692         (Fsetcar): CHECK_IMPURE -> CHECK_LISP_WRITEABLE.
2693         (Fsetcdr): Ditto.
2694         (Faset): Ditto.
2695
2696         * symbols.c: Make gung-ho mandatory.  make_pure_pname ->
2697                   make_string or make_string_nocopy.  Fix various
2698                   alloc_lcrecord_type.
2699
2700         * lread.c: Remove everything purespace related.
2701         (Flocate_file_clear_hashing): purified -> c_readonly.
2702         (locate_file): Ditto.
2703         (read_atom): make_pure_pname -> make_string.
2704
2705         * emacs.c (Frun_emacs_from_temacs): Remove purespace stats
2706                   reporting.
2707         (Fdump_emacs): Ditto.
2708
2709         * print.c (print_internal): Make gung-ho mandatory.
2710         * ntheap.c (sbrk): Ditto.
2711         * mem-limits.h (EXCEEDS_LISP_PTR): Ditto
2712         * symeval.h (symbol_value_forward_lheader_initializer): Ditto.
2713
2714         * sheap.c (more_static_core): Remove puresize-adjust.h from
2715                   message.
2716
2717         * syntax.c (complex_vars_of_syntax): make_pure_string ->
2718                   make_string_nocopy.
2719         * keymap.c (make_keymap): Fix alloc_lcrecord_type.
2720         (vars_of_keymap): make_pure_string -> make_string_nocopy.
2721         * events.c (deinitialize_event): Fix set_lheader_implementation.
2722         (zero_event): Ditto.
2723         * specifier.c (make_specifier_internal): Fix alloc_lcrecord.
2724         * menubar-x.c (set_frame_menubar): Fix alloc_lcrecord_type.
2725         * mule-charset.c (make_charset): Ditto.
2726         * console.c (allocate_console): Ditto.
2727         (complex_vars_of_console): Ditto.
2728         * file-coding.c (allocate_coding_system): Ditto.
2729         * device.c (allocate_device): Ditto
2730         * gui-x.c (gcpro_popup_callbacks): Ditto.
2731         * extents.c (allocate_extent_auxiliary): Ditto.
2732         (allocate_extent_info): Ditto.
2733         (copy_extent): Ditto.
2734         * glyphs.c (allocate_image_instance): Ditto.
2735         (allocate_glyph): Ditto.
2736         * frame.c (allocate_frame_core): Ditto.
2737         * database.c (allocate_database): Ditto.
2738         * tooltalk.c (make_tooltalk_message): Ditto.
2739         (make_tooltalk_pattern): Ditto.
2740         * rangetab.c (Fmake_range_table): Ditto.
2741         (Fcopy_range_table): Ditto.
2742         * process.c (make_process_internal): Ditto.
2743         * chartab.c (Fmake_char_table): Ditto.
2744         (make_char_table_entry): Ditto.
2745         (copy_char_table_entry): Ditto.
2746         (Fcopy_char_table): Ditto.
2747         * elhash.c (make_general_lisp_hash_table): Ditto.
2748         (Fcopy_hash_table): Ditto.
2749         * buffer.c (allocate_buffer): Ditto.
2750         (complex_vars_of_buffer): Ditto.
2751         * event-stream.c (allocate_command_builder): Ditto.
2752         * objects.c (Fmake_color_instance): Ditto.
2753         (Fmake_font_instance): Ditto.
2754         (vars_of_objects): Ditto.
2755         * toolbar.c (update_toolbar_button): Ditto.
2756         * window.c (allocate_window): Ditto.
2757         (make_dummy_parent): Ditto.
2758         (Fcurrent_window_configuration): Fix alloc_lcrecord.
2759         (vars_of_window): Fix make_lcrecord_list.
2760         * faces.c (allocate_face): Fix alloc_lcrecord_type. pure_list ->
2761                   Flist.
2762         * lstream.c (Lstream_new): Fix make_lcrecord_list.
2763         * opaque.c (make_opaque): Fix alloc_lrecord.
2764         (make_opaque_list): Fix alloc_lrecord_type.
2765
2766 1999-04-19  Hrvoje Niksic  <hniksic@srce.hr>
2767
2768         * process.c (Fstart_process_internal): Ditto.
2769
2770         * ntproc.c (sys_spawnve): Use Vlisp_EXEC_SUFFIXES when calling
2771         locate_file().
2772
2773         * glyphs-x.c (x_locate_pixmap_file): Ditto.
2774
2775         * glyphs-msw.c (mswindows_locate_pixmap_file): Fix call to
2776         locate_file().
2777
2778         * emodules.c (vars_of_module): New variable Vmodule_extensions.
2779         (emodules_load): Use it when calling locate_file().
2780
2781         * emacs.c (main_1): Use Vlisp_EXEC_SUFFIXES when calling
2782         locate_file().
2783
2784         * callproc.c: Vlisp_EXEC_SUFFIXES: New variable.
2785         (vars_of_callproc): Initialize it.
2786         (Fcall_process_internal): Use it when calling locate_file().
2787
2788         * alloc.c (disksave_object_finalization): Use
2789         Flocate_file_clear_hashing().
2790
2791         * lread.c (Flocate_file_clear_hashing): Clear all hasing when
2792         given `t' as argument.
2793
2794 1999-04-18  Hrvoje Niksic  <hniksic@srce.hr>
2795
2796         * lread.c (locate_file): Expand `pathel' when appropriate.
2797         (Flocate_file_clear_hashing): Expand path elements.
2798         (Flocate_file_clear_hashing): Use Vlocate_file_hash_table.
2799
2800         * dired.c (make_directory_hash_table): Create the hash-table only
2801         if the directory open is successful.
2802
2803         * lread.c (decode_mode_1): New function.
2804         (decode_mode): Ditto.
2805         (Flocate_file): Use them.
2806         (Flocate_file): Expand FILENAME.
2807         (locate_file_map_suffixes): New function.
2808         (locate_file_in_directory_mapper): New function.
2809         (locate_file_in_directory): Use locate_file_in_directory_mapper()
2810         and locate_file_map_suffixes().
2811         (locate_file_construct_suffixed_files): Use
2812         locate_file_map_suffixes().
2813         (locate_file_without_hash): Don't GCPRO path.
2814         (Flocate_file_clear_hashing): Use EXTERNAL_LIST_LOOP.
2815         (syms_of_lread): Remove Qlocate_file_hash_table.
2816         (locate_file_find_directory_hash_table): Use
2817         Vlocate_file_hash_table.
2818         (locate_file_refresh_hashing): Ditto.
2819
2820         * lread.c: Renamed read_objects to Vread_objects.
2821
2822 1999-04-16  Olivier Galibert  <galibert@pobox.com>
2823
2824         * mule-charset.c: Generally resync with fsf 20.3 charset
2825         interface.
2826         (make_charset): Add long and short name.  Use id instead of
2827         leading byte.
2828         (Fmake_charset): Ditto.
2829         (Fmake_reverse_direction_charset): Ditto.
2830         (Fcharset_property): Ditto.
2831         (Fcharset_short_name): Added.
2832         (Fcharset_long_name): Added.
2833         (Fcharset_description): Renamed from charset-doc-string.
2834         (syms_of_mule_charset): Synced symbols.
2835         (complex_vars_of_mule_charset): Synced charsets.
2836
2837         * mule-charset.h: Removed leading byte (uses id instead), added
2838         short and long name.
2839
2840 1999-04-15  Hrvoje Niksic  <hniksic@srce.hr>
2841
2842         * file-coding.c (Fdefine_coding_system_alias): New function.
2843
2844 1999-04-08  Olivier Galibert  <galibert@pobox.com>
2845
2846         * mule-charset.c (complex_vars_of_mule_charset): Allow all iso8859
2847         and -ascii fonts for displaying ascii instead of iso8859-1 only.
2848
2849 1998-12-14  Hrvoje Niksic  <hniksic@srce.hr>
2850
2851         * extents.c (set_extent_glyph_1): Make sure that the glyph we
2852         attach to the extent is valid.
2853
2854 1998-12-12  Hrvoje Niksic  <hniksic@srce.hr>
2855
2856         * dired.c (user_name_completion): Mule-ize.
2857         (user_name_completion): Use xmalloc/xrealloc/xfree.
2858         (user_name_completion): Use DO_REALLOC.
2859         (user_name_completion): Cut down the number of static variables;
2860         use a structure.
2861         (user_name_completion): Username completion is always
2862         case-sensitive.
2863
2864 1998-12-06  Hrvoje Niksic  <hniksic@srce.hr>
2865
2866         * fns.c (base64_decode_1): Remove COUNTER.
2867         (base64_decode_1): Accept CRLF in addition to CR.
2868         (base64_decode_1): Disallow a stray character after final EOF; the
2869         check was probably a remnant of buggy recode code.
2870
2871 1998-12-05  Hrvoje Niksic  <hniksic@srce.hr>
2872
2873         * fns.c (init_provide_once): Provide `base64'.
2874
2875 1998-12-04  Hrvoje Niksic  <hniksic@srce.hr>
2876
2877         * fns.c (XMALLOC_UNBIND): Include SPECCOUNT argument, for clarity.
2878         (Fbase64_encode_region): If buffer is read-only, bail out early.
2879         (Fbase64_decode_region): Ditto.
2880         (Fbase64_encode_region): Initialize SPECCOUNT to pacify the
2881         compiler.
2882         (Fbase64_encode_string): Ditto.
2883         (Fbase64_decode_region): Ditto.
2884         (Fbase64_decode_string): Ditto.
2885
2886 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
2887
2888         * dired.c (Fdirectory_files): Remove redundant code.
2889
2890 1999-03-05  Philip Aston  <philipa@parallax.co.uk>
2891
2892         * frame-msw.c Make raise-frame restore minimised windows.
2893
2894 1999-03-05  Philip Aston  <philipa@parallax.co.uk>
2895
2896         * device-msw.c: Fix DEFVAR format - Death to phantom quote, and
2897         add magic newline.
2898
2899 1999-03-05  Philip Aston  <philipa@parallax.co.uk>
2900
2901         * toolbar-msw.c Consider captions when deciding whether to rebuild
2902         toolbar. This fixes the initial toolbar display for those of us
2903         who don't like captions. These patches applied by Andy Piper.
2904
2905 1999-03-12  XEmacs Build Bot <builds@cvs.xemacs.org>
2906
2907         * XEmacs 21.2.13 is released
2908
2909 1999-03-12  SL Baur  <steve@xemacs.org>
2910
2911         * file-coding.c: Guard ucs table initialization with ifdef MULE.
2912
2913 1999-03-10  Stephen J. Turnbull  <turnbull@sk.tsukuba.ac.jp>
2914
2915         * file-coding.c:  docstring and comment improvements.
2916         (decode_ucs4)  flag possible data loss with comment.
2917
2918 1999-03-10  Martin Buchholz  <martin@xemacs.org>
2919
2920         * file-coding.c (Fset_ucs_char): add CHECK_INT, CHECK_CHAR
2921         (ucs_to_char):
2922         (Fucs_char):
2923         (Fset_char_ucs):
2924         (decode_coding_ucs4):
2925         (encode_coding_ucs4):
2926         (detect_coding_utf8):
2927         (decode_coding_utf8):
2928         (encode_utf8):
2929         (encode_coding_utf8):
2930         Add CHECK_* macros where needed to avoid crashes.
2931         #ifdef out all composite character support using
2932         #ifdef ENABLE_COMPOSITE_CHARS
2933         Use normal XEmacs coding standards.
2934         Fix docstrings.
2935         Remove CODING_STREAM_COMPOSE, CODING_STREAM_DECOMPOSE.
2936
2937 1998-09-08  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2938
2939         * file-coding.c (make-coding-system): Add description about
2940         `ucs-4' and `utf-8'.
2941         (detection_state): Modify to implement ucs-4 and utf-8.
2942         (detect_coding_type): Likewise.
2943         (detect_coding_ucs4): New implementation.
2944         (detect_coding_utf8): New implementation.
2945         (encode_utf8): fixed.
2946         (syms_of_mule_coding): Rename `ucs4' and `utf8' to `ucs-4' and
2947         `utf-8'.
2948
2949 1998-09-08  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2950
2951         * file-coding.c (mule_char_to_ucs4): Encode 94x94 chars in ISO
2952         2022 registry to private area.
2953
2954 1998-09-07  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2955
2956         * file-coding.c (encode_utf8): New function.
2957         (encode_coding_utf8): New implementation.
2958
2959 1998-09-07  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2960
2961         * file-coding.c (ucs_to_mule_table): New variable; abolish
2962         `Vucs_to_mule_table'
2963         (mule_to_ucs_table): renamed from `Vmule_to_ucs_table'.
2964         (set-ucs-char): New function.
2965         (ucs_to_char): New function.
2966         (ucs-char): New function.
2967         (set-char-ucs): New function.
2968         (char-ucs): New function.
2969         (decode_ucs4): Use `ucs_to_char'.
2970         (complex_vars_of_mule_coding): Abolish `ucs-to-mule-table' and
2971         `mule-to-ucs-table'.
2972
2973 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2974
2975         * chartab.h: EXFUN `Fget_char_table'.
2976
2977         * file-coding.c (encode_ucs4): New function.
2978         (encode_coding_ucs4): Use `encode_ucs4'.
2979
2980 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2981
2982         * file-coding.c (decode_coding_ucs4): New implementation.
2983
2984 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2985
2986         * file-coding.c (decode_coding_ucs4): fixed.
2987
2988         * file-coding.c (Vmule_to_ucs_table): New variable.
2989         (mule_char_to_ucs4): New function.
2990         (encode_coding_ucs4): New implementation.
2991         (complex_vars_of_mule_coding): Define variable
2992         `mule-to-ucs-table'.
2993
2994 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2995
2996         * file-coding.c (decode_coding_utf8): New implementation.
2997
2998 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
2999
3000         * file-coding.c (decode_coding_utf8): fixed.
3001
3002 1998-09-06  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
3003
3004         * file-coding.c (Vucs_to_mule_table): New variable.
3005         (decode_ucs4): Refer `Vucs_to_mule_table'.
3006         (complex_vars_of_mule_coding): Define variable
3007         `ucs-to-mule-table'.
3008
3009 1998-09-04  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
3010
3011         * file-coding.c (detect_coding_ucs4): New function (not
3012         implemented yet).
3013         (decode_coding_ucs4): New function.
3014         (encode_coding_ucs4): New function (not implemented yet).
3015         (detect_coding_utf8): New function (not implemented yet).
3016         (decode_coding_utf8): New function.
3017         (encode_coding_utf8): New function (not implemented yet).
3018         (make-coding-system): New type `ucs4' and `utf8'.
3019         (coding-system-type): Likewise.
3020         (detection_state): Add `ucs4' and `utf8'.
3021         (detect_coding_type): Likewise.
3022         (mule_decode): Use `decode_coding_ucs4' and `decode_coding_utf8'.
3023         (mule_encode): Use `encode_coding_ucs4' and `encode_coding_utf8'.
3024         (decode_ucs4): New function (very incomplete).
3025         (syms_of_mule_coding): Add `ucs4' and `utf8'.
3026
3027         * file-coding.h: Add definitions for UCS-4 and UTF-8.
3028
3029 1999-03-08  Martin Buchholz  <martin@xemacs.org>
3030
3031         * mule-charset.c:
3032         (non_ascii_valid_char_p):
3033         (lookup_composite_char):
3034         (composite_char_string):
3035         (make-composite-char):
3036         (composite-char-string):
3037         (syms_of_mule_charset):
3038         (complex_vars_of_mule_charset):
3039         * mule-charset.h (LEADING_BYTE_COMPOSITE):
3040         (CHAR_LEADING_BYTE):
3041         (MAKE_CHAR):
3042         * file-coding.h (CODING_STATE_COMPOSITE):
3043         (CODING_STATE_ISO2022_LOCK):
3044         (iso_esc_flag):
3045         (LEADING_BYTE_COMPOSITE):
3046         * file-coding.c (struct iso2022_decoder):
3047         (decoding_closer):
3048         (reset_iso2022):
3049         (parse_iso2022_esc):
3050         (encode_coding_iso2022):
3051         #ifdef out all composite character support using
3052         #ifdef ENABLE_COMPOSITE_CHARS
3053
3054         * alloc.c: Define lrecord_coding_system only if ! FILE_CODING
3055
3056 1999-03-04  Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
3057
3058         * fns.c (Fbase64_encode_string): Calculate `allength' in the same
3059         way of `Fbase64_encode_region'.
3060
3061 1999-02-18  Katsumi Yamaoka   <yamaoka@jpl.org>
3062
3063         * fns.c (base64_encode_1): Don't add a newline at the tail.
3064
3065 1999-03-08  Andy Piper  <andy@xemacs.org>
3066
3067         * menubar-msw.c (displayable_menu_item): correct off-by-one &
3068         handling.
3069
3070 1999-03-07  Martin Buchholz  <martin@xemacs.org>
3071
3072         * console-stream.h (struct stream_console):
3073         * event-unixoid.c (event_stream_unixoid_select_console):
3074         (event_stream_unixoid_unselect_console):
3075         * print.c (Fexternal_debugging_output):
3076         * sysdep.c (reset_one_device):
3077         * console-stream.c (stream_init_console):
3078         (stream_delete_console):
3079         (allocate_stream_console_struct): move into stream_init_console.
3080         (free_stream_console_struct): move into stream_delete_console.
3081         Use `fd' only for file descriptors.
3082         Therefore, rename members of struct stream_console.
3083
3084         * systime.h: Unix98 says sys/time.h should define select(), but
3085         some systems define that in unistd.h.  So include that file always.
3086
3087         * glyphs.h (MAYBE_IIFORMAT_METH): Don't use leading `_'.  Avoid
3088         multiple evaluation of first arg.  Do proper do {} while (0) wrapping.
3089         (HAS_IIFORMAT_METH_P): Prevent macro from being used in
3090         non-boolean context
3091         (MAYBE_IIFORMAT_DEVMETH): Use standard internal macro naming convention.
3092
3093         * EmacsShell.c:
3094         * balloon_help.c:
3095         Add #include <stdio.h>.
3096         Some versions of assert.h use printf() without #include'ing stdio.h
3097
3098         * free-hook.c (blocktype): Add gcpro5_type to blocktype.
3099         (log_gcpro): Remove unused variable FRAME.
3100         (show_gcprohist): Ansify.
3101         Comment the #endif's
3102
3103         * frame-x.c (x_delete_frame): Don't use FRAME_X_SHELL_WIDGET(f)
3104         after it's just been XtDestroy'ed!
3105
3106 1999-02-18  Martin Buchholz  <martin@xemacs.org>
3107
3108         * opaque.c (print_opaque):
3109         (sizeof_opaque):
3110         (equal_opaque):
3111         (hash_opaque):
3112         Egcs 1.1.1 seems to have a bug where
3113         INTP (p->size_or_chain)
3114         will crash XEmacs.  Fix by introducing intermediate variable.
3115
3116         * sound.c (Fdevice_sound_enabled_p): Fix compiler warning.
3117
3118         * dired.c (Fdirectory_files):
3119         (Ffile_name_completion):
3120         (Ffile_name_all_completions):
3121         (file_name_completion):
3122         - Use `directory' instead of `dirname' to sync with FSF Emacs and
3123         avoid compiler warnings.
3124         - Fix up docstrings so that C variables match documentation.
3125
3126 1999-03-05  Martin Buchholz  <martin@xemacs.org>
3127
3128         * alloc.c: (garbage_collect_1): Reorg code to make scope of local
3129         variables as small as possible to help out the compiler and the maintainer.
3130
3131         * alloc.c: (disksave_object_finalization):
3132         Set all the *-load-path variables to
3133         nil, not just load-path itself.  This gets the locate-file hash
3134         tables garbage collected BEFORE dump, and has the side effect of
3135         preventing crashes on OSF4.0+egcs.
3136
3137         * alloc.c:
3138         * gdbinit:
3139         * dbxrc:
3140         - Clean up gdb/dbx debugging support.
3141         - Storing an EMACS_INT in an enum is not 64-bit clean!
3142         - So change the enum to a set of separate variables.
3143         - Add test cases to help debug the debugging support!
3144         - Add `lisp-shadows' and `run-temacs' targets for dbx.
3145         - Both dbx and gdb have been tested now.
3146
3147 1999-03-05  XEmacs Build Bot <builds@cvs.xemacs.org>
3148
3149         * XEmacs 21.2.12 is released
3150
3151 1999-02-16  Kazuyuki IENAGA  <ienaga@jsys.co.jp>
3152
3153         * device-x.c: Support to find best visual without flashing.
3154
3155 1999-03-02  Paul Keusemann  <pkeusem@visi.com>
3156
3157         * database.c (berkdb_map): Add flags argument to cursor call (must
3158           be 0 according to docs) required for Berkeley DB 2.6.4 and later.
3159
3160 1999-03-03  Martin Buchholz  <martin@xemacs.org>
3161
3162         * hash.c:
3163         * hash.h:
3164         General cleanup.  Get free-hook.c working again.
3165         Remove unused functions:
3166         make_strings_hash_table, copy_hash, expand_hash_table.
3167
3168         * malloc.c:
3169         * mem-limits.h:
3170         Always use new ANSI-style function prototypes.
3171
3172         * unexalpha.c (unexec): Never use implicit int.
3173
3174         * sgiplay.c (close_sound_file):
3175         (play_sound_file):
3176         (restore_audio_port):
3177         (play_sound_data):
3178         (audio_initialize):
3179         (play_internal):
3180         (drain_audio_port):
3181         (write_mulaw_8_chunk):
3182         (write_linear_chunk):
3183         (write_linear_32_chunk):
3184         (initialize_audio_port):
3185         (open_audio_port):
3186         (set_channels):
3187         (set_output_format):
3188         (adjust_audio_volume):
3189         (get_current_volumes):
3190         (parse_snd_header):
3191         Always use new ANSI-style function prototypes.
3192         Use unistd.h for missing prototypes.
3193
3194         * unexelfsgi.c (round_up):
3195         (find_section):
3196         (unexec): Always use new ANSI-style function prototypes
3197
3198         * elhash.c (struct Lisp_Hash_Table): rename golden to golden_ratio
3199
3200         * console.h (struct console_methods): Always use full ANSI prototypes
3201
3202         * emacs.c (__sti__iflPNGFile_c___): Always use full ANSI prototypes
3203
3204 1999-03-02  Andy Piper  <andy@xemacs.org>
3205
3206         * event-stream.c (init_event_stream): make sure native mswindows
3207         gets an appropriate event loop.
3208
3209 1999-02-22  Andy Piper  <andy@xemacs.org>
3210
3211         * frame-msw.c (mswindows_make_frame_visible): use SW_SHOW rather
3212         than SW_SHOWNORMAL to prevent resizing of maximised frames.
3213         (mswindows_raise_frame): remove comment.
3214
3215 1999-03-01  XEmacs Build Bot <builds@cvs.xemacs.org>
3216
3217         * XEmacs 21.2.11 is released
3218
3219 1999-02-25  SL Baur  <steve@xemacs.org>
3220
3221         * mule-charset.c (Qleading_byte): New variable to implement
3222         charset-leading-byte function.
3223         (Fcharset_property): Use it.
3224         (syms_of_mule_charset): Initialize it.
3225         From Kazuyuki IENAGA <ienaga@jsys.co.jp>
3226
3227 1999-02-17  Kazuo Oishi <oishi@ae.agr.yamaguchi-u.ac.jp>
3228
3229         * glyphs-x.c (cononvert_EImage_to_XImage): correct
3230         bytes per pixel counting.
3231
3232 1999-02-15  Andy Piper  <andy@xemacs.org>
3233
3234         * s/cygwin32.h (BROKEN_SIGIO): don't define this as it causes
3235         major lockups.
3236
3237 1999-02-16  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
3238
3239         * fns.c (Fbase64_encode_string): New optional argument
3240         `NO_LINE_BREAK'.
3241
3242 1999-02-16  Martin Buchholz  <martin@xemacs.org>
3243
3244         * gdbinit:  Fix up commands to run temacs.  Add lisp-shadows command.
3245         * alloc.c (xcalloc):  undef xcalloc, just like xmalloc
3246
3247 1999-02-10  Martin Buchholz  <martin@xemacs.org>
3248
3249         * s/bsdos4.h: New file.  Port to BSDI BSD/OS 4.0.
3250         * xintrinsic.h:  Redo CONST support for X11 R4 compatibility.
3251
3252 1999-02-05  XEmacs Build Bot <builds@cvs.xemacs.org>
3253
3254         * XEmacs 21.2.10 is released
3255
3256 1999-02-02  Gleb Arshinov  <gleb@cs.stanford.edu>
3257
3258         * process-nt.c (nt_send_process):
3259         Fix for process-send-region/process-send-string breaking when size
3260         of the input > 128 chars: change maximum chunk size for process
3261         stream from 512 to 128, thus guaranteeing that ntpipe_shove_writer
3262         succeeds.
3263
3264 1999-02-02  XEmacs Build Bot <builds@cvs.xemacs.org>
3265
3266         * XEmacs 21.2.9 is released
3267
3268 1999-01-30  Martin Buchholz  <martin@xemacs.org>
3269
3270         * bytecode.c (funcall_compiled_function): Call
3271         UNBIND_TO_GCPRO instead of UNBIND_TO_GCPRO_VARIABLES_ONLY.
3272
3273         * backtrace.h (UNBIND_TO_GCPRO_VARIABLES_ONLY):
3274         #ifdef 0 out unused macro.
3275
3276 1999-01-27  Martin Buchholz  <martin@xemacs.org>
3277
3278         * gui.c (gui_parse_item_keywords_internal): Make static.
3279
3280 1999-01-21  Andy Piper  <andy@xemacs.org>
3281
3282         * glyphs-msw.c: add xface support.
3283         (mswindows_xface_instantiate): new function copied from glyphs-x.c
3284         (image_instantiator_format_create_glyphs_mswindows): do device
3285         specific initialisation for xfaces.
3286         (xbm_create_bitmap_from_data): line data must be padded to a word
3287         boundary.
3288
3289         * glyphs-x.c (xface_validate): moved to glyphs.c
3290         (xface_normalize): ditto.
3291         (xface_possible_dest_types): ditto.
3292         (image_instantiator_format_create_glyphs_x): do device specific
3293         initialisation for xfaces.
3294
3295         * glyphs.h: declare xface symbol.
3296
3297         * glyphs.c: move generic xface support here.
3298         (xface_validate): moved from glyphs-x.c
3299         (xface_normalize): ditto.
3300         (xface_possible_dest_types): ditto.
3301         (image_instantiator_format_create): xface declarations moved from
3302         glyphs-x.c.
3303
3304 1999-01-14  Adrian Aichner  <aichner@ecf.teradyne.com>
3305
3306         * event-stream.c (vars_of_event_stream): Fixing documentation.
3307
3308 1999-01-17  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3309
3310         * glyphs-eimage.c (gif_instantiate): Correct handling of
3311         interlaced gifs to avoid writing past the end of the eimage
3312         buffer.
3313
3314 1999-01-13  Hrvoje Niksic  <hniksic@srce.hr>
3315
3316         * search.c (Freplace_match): Handle single backslash at end of
3317         NEWTEXT correctly.
3318
3319 1999-01-12  William M. Perry  <wmperry@aventail.com>
3320
3321         * eldap.c (Fldap_open): slow down interrupts around ldap_open to
3322           avoid connection errors.
3323
3324 1999-01-12  Andy Piper  <andy@xemacs.org>
3325
3326         * redisplay-output.c (redisplay_update_line): backout change that
3327         shouldn't have gone ine.
3328
3329 1999-01-09  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
3330
3331         * eldap.c (vars_of_ldap): Do no provide `ldap' here since it may
3332         collide with ldap.el
3333
3334 1999-01-11  Andy Piper  <andy@xemacs.org>
3335
3336         * redisplay.h (DISPLAY_LINE_HEIGHT): new macro.
3337         (DISPLAY_LINE_YPOS): new macro.
3338
3339         * redisplay-msw.c (mswindows_output_string): use it.
3340         (mswindows_output_pixmap): ditto.
3341         (mswindows_output_display_block): ditto.
3342
3343         * redisplay-output.c (redisplay_output_display_block): new
3344         function. just call the devmeth, maybe insert some generic code
3345         here later.
3346         (compare_display_blocks): use it.
3347         (output_display_line): ditto.
3348         (redisplay_unmap_subwindows_maybe): new function. potentially
3349         unmap subwindows in the given area.
3350
3351         * glyphs.c (reset_subwindow_cachels): unmap subwindows that we are
3352         resetting.
3353
3354 1999-01-10  J. Kean Johnston  <jkj@sco.com>
3355
3356         * Makefile.in.in: Set value of moduledir
3357         - Changed DUMPENV to include $(MODULEPATH)
3358         - Added install rule to install header files for use by ellcc.
3359
3360         * config.h.in: Added INHIBIT_SITE_MODULES
3361         - Added HAVE__DLERROR
3362         - Added HAVE_DLFCN_H
3363         - Added DLSYM_NEEDS_UNDERSCORE
3364
3365         * dll.c: Removed.
3366
3367         * emodules.c: New file containing dynamic loading code.
3368
3369         * emodules.h: New file.
3370
3371         * emacs.c: Added variables Vmodule_directory,
3372         Vsite_module_directory, Vconfigure_module_directory and
3373         Vconfigure_site_module_directory.
3374         - (main_1): Added new variable inhibit_site_modules and command
3375         line options `-no-site-modules' and `--no-site-modules'.
3376         - (main_1): Call syms_of_module() instead of syms_of_dll().
3377         - (main_1): Call vars_of_module().
3378         - (vars_of_emacs): Introduce inhibit-site-modules,
3379         module-directory, configure-module-directory,
3380         site-module-directory, and configure-site-module-directory to the
3381         Lisp reader.
3382
3383         * lisp.h: Declare load_module and list_modules, as well as
3384         Vmodule_directory, Vsite_module_directory,
3385         Vconfigure_module_directory and Vconfigure_site_module_directory.
3386
3387         * paths.h.in: Added PATH_MODULESEARCH and PATH_SITE_MODULES.
3388         - Added correct support for site-lisp directory.
3389
3390         * symbols.c (defsubr): Modified to allow modules to add new subrs
3391         after dump time.
3392         - (defsubr_macro): Same.
3393         - (defvar_magick): Only use purespace when not initialized, so
3394         that loaded modules can still add symbols.
3395
3396         * symsinit.h: Add definitions for syms_of_module(),
3397         vars_of_module().  Removed syms_of_dll().
3398
3399         * sysdll.c: Include dlfcn.h if HAVE_DLFCN_H is defined.
3400         - (dll_variable): Take DLSYM_NEEDS_UNDERSCORE into account.
3401         - (dll_error): use _dlerror() if HAVE__DLERROR is defined.
3402
3403         * s/sco5-shr.h (C_SWITCH_SYSTEM): Correct for modern gcc and
3404         explicitly pass -belf for native cc.
3405
3406         * s/sco5.h (LIB_GCC): Use -print-libgcc-file-name instead of
3407         hard-coding the library name.
3408
3409 1999-01-01    <martin@xemacs.org>
3410
3411         * device-x.c (Fx_set_font_path):
3412         Add proper cast to permit compilation under C++.
3413
3414         * buffer.c (directory_is_current_directory):
3415         Add proper casts to permit compilation under C++.
3416
3417 1998-12-30  Damon Lipparelli  <lipp@primus.com>
3418
3419         * event-msw.c (mswindows_wnd_proc):
3420           Fixed failure when building with MSVC 5.
3421
3422 1998-12-29  Martin Buchholz  <martin@xemacs.org>
3423
3424         * file-coding.c (decode_coding_iso2022):
3425         - Prevent crash when decoding ISO7/Lock detected files
3426         - the usual martin fiddling
3427
3428 1998-12-29  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3429
3430         * event-msw.c:
3431           glyphs-msw.c:
3432           Fixed failures when building with MSVC.
3433         * unexnt.c (dump_bss_and_heap):
3434           Removed compiler warning by removing bss_data variable.
3435
3436 1998-12-18  Jim Radford  <radford@robby.caltech.edu>
3437
3438         * device-x.c (Fx_set_font_path, Fx_get_font_path): New functions
3439         so that packages that distribute their own fonts can access them.
3440
3441 1998-12-28  Andy Piper  <andy@xemacs.org>
3442
3443         * glyphs-msw.c (mswindows_button_instantiate): cope with buttons
3444         that have an image provided.
3445
3446         * glyphs.h: add Q_image decl.
3447
3448         * glyphs-widget.c new functionality allowing images in
3449         widgets.
3450         (check_valid_glyph_or_image): new function to validate
3451         glyphs passed in through :image.
3452         (widget_normalize): new function. convert :image parameters into
3453         real glyphs if not already so.
3454         (widget_instantiate_1): mess with size parameters to be similar to
3455         :image if provided.
3456         (syms_of_glyphs_widget): new keyword :image.
3457         (image_instantiator_format_create_glyphs_widget): normalize
3458         buttons and allow :image.
3459
3460 1998-12-27  Andy Piper  <andy@xemacs.org>
3461
3462         * frame-msw.c (mswindows_init_frame_1): warning elimination.
3463
3464         * glyphs-widget.c (check_valid_anything): no-op function.
3465         (check_valid_callback): check callbacks in gui_items.
3466         (check_valid_symbol): as it sounds.
3467         (check_valid_string_or_vector): ditto.
3468         (widget_validate): modified for descriptors that are vectors or
3469         sequences of keyword/val pairs.
3470         (widget_instantiate_1): ditto.
3471         (image_instantiator_format_create_glyphs_widget): allow gui_item
3472         keywords in the instantiator.
3473
3474         * gui.c (gui_parse_item_keywords_internal): renamed from
3475         gui_parse_item_keywords but taking error behaviour.
3476         (gui_parse_item_keywords): use it.
3477         (gui_parse_item_keywords_no_errors): ditto.
3478         (gui_item_add_keyval_pair): add Error_behavior flag and only
3479         signal invalid keywords if required.
3480
3481         * gui.h: new gui signatures.
3482
3483         * menubar.c (menu_parse_submenu_keywords): use new
3484         gui_item_add_keyval_pair signature.
3485
3486         * s/cygwin32.h: modify PTY_ITERATION to eliminate warnings.
3487
3488 1998-12-28  Martin Buchholz <martin@xemacs.org>
3489
3490         * XEmacs 21.2.8 is released.
3491
3492 1998-12-28  Martin Buchholz  <martin@xemacs.org>
3493
3494         * editfns.c (get_home_directory):
3495         (user-home-directory): Simplify.
3496
3497
3498         * callproc.c (child_setup):
3499         - Environment variables were being passed to inferior processes
3500           using internal encoding.
3501         - Convert to external encoding.
3502         - Rename local var `tem' to better name `tail'.
3503         - Use Flength instead of `manual' calculation.
3504
3505         * buffer.c (kill-buffer):
3506         (record-buffer):
3507         (set-buffer-major-mode):
3508         (current-buffer):
3509         - Fix up parameter names to correspond to docstrings.
3510         - Don't use `bufname' when a buffer will do as well.
3511         - Remove one unneeded GCPRO.
3512
3513         * buffer.h (initial_directory):
3514         * buffer.c (init_initial_directory):
3515         - use correct conversions between internal and external format.
3516         (directory_is_current_directory): new function
3517         (init_buffer): convert initial_directory to internal format.
3518         - solve crashes when current working directory is non-ASCII.
3519
3520         * alloc.c (xmalloc):
3521         (xcalloc):
3522         (xrealloc):
3523         - remove stupid casts, since XEmacs requires an ANSI C system.
3524         (lrecord_type_index): replace abort() with more readable assert().
3525
3526         (reset_lcrecord_stats): remove.
3527         (sweep_lcrecords_1):
3528         - replace call to reset_lcrecord_stats() with call to xzero().
3529
3530 1998-12-27  Martin Buchholz  <martin@xemacs.org>
3531
3532         * process-unix.c (unix_create_process):
3533         - Fix crash invoking program with non-ASCII name.
3534           Try invoking xemacs with SHELL=/bin/sh, then M-x shell.
3535         - Remove unused variable `env'.
3536         - Rename `temp' to better name `save_errno'.
3537         - Reorganize code for clarity.  But still too chicken to nuke the
3538           BSD 4.2 support.
3539
3540 1998-12-24  Martin Buchholz <martin@xemacs.org>
3541
3542         * XEmacs 21.2.7 is released.
3543
3544 1998-12-23  Martin Buchholz  <martin@xemacs.org>
3545
3546         * glyphs.c (decode_device_ii_format):
3547         - Fix indentation.
3548         - Use GET_C_STRING_FILENAME_DATA_ALLOCA with char *, not Extbyte *.
3549
3550         * glyphs-x.c (x_subwindow_instantiate):
3551         - A image instance mask was being assigned to a image instance type!
3552         - X_SUBWINDOW_INSTANCE_DATA (ii) is not an lvalue in C++.
3553
3554         * glyphs-msw.c (mswindows_initialize_dibitmap_image_instance):
3555         Fix indentation.
3556         * glyphs-x.h: Make indentation consistent.
3557
3558         * emacs.c (Fdump_emacs): Remove Steve Martin merge artifacts.
3559
3560         * glyphs-widget.c (check_valid_glyph): Warning suppression.
3561         - Make it static
3562         - #ifdef it out, since it's not actually used yet (FIX THIS!)
3563
3564         * glyphs-widget.c:
3565         * glyphs.h:
3566         Move declarations of decode_device_ii_format and
3567         decode_image_instantiator_format into glyphs.h where they belong.
3568
3569 1998-12-22  Martin Buchholz  <martin@xemacs.org>
3570
3571         * frame-x.c (x_delete_frame): Revert part of my changes at the
3572         suggestion of Gunnar Evermann - unfortunately no one really
3573         understands this code.
3574
3575         * callproc.c (init_callproc): code cleanup.
3576
3577         * free-hook.c (malloc):
3578         (check_malloc):
3579         (__free_hook):
3580         (__malloc_hook):
3581         (__realloc_hook):
3582         (block_input_malloc):
3583         (block_input_realloc):
3584         * device-x.c (x_delete_device):
3585         * emacs.c (voodoo_free_hook):
3586         * events.c (print_event):
3587         (CHECK_EVENT_TYPE):
3588         (CHECK_EVENT_TYPE2):
3589         (CHECK_EVENT_TYPE3):
3590         Use proper prototypes.
3591         Make C_E_T macros a little faster.
3592         Pedantic fiddly little changes.  You really don't care.
3593
3594 1998-12-22  Andy Piper  <andy@xemacs.org>
3595
3596         * redisplay-output.c (redisplay_clear_region): make sure that
3597         fg/bg colors get set even when we are in the border area.
3598
3599 1998-12-13  Martin Buchholz  <martin@xemacs.org>
3600
3601         * console-msw.c: Function definitions follow coding standards
3602         - This prevents e.g. find-tag on Lisp_Event finding DEVENT
3603
3604 1998-12-11  Martin Buchholz  <martin@xemacs.org>
3605
3606         * events.h (struct timeout_data):
3607         * event-tty.c (tty_timeout_to_emacs_event):
3608         * event-msw.c (mswindows_wm_timer_callback):
3609         * event-Xt.c (Xt_timeout_to_emacs_event):
3610         * event-msw.c (mswindows_cancel_dispatch_event):
3611         Make sure Lisp_Objects inside events are initialized to Qnil, not
3612         Qnull_pointer, which is now illegal.
3613
3614 1998-12-10  Martin Buchholz  <martin@xemacs.org>
3615
3616         * lisp.h: Fix up prototypes to match alloc.c
3617
3618 1998-12-08  Martin Buchholz  <martin@xemacs.org>
3619
3620         * windowsnt.h: Remove `support' for using index and rindex
3621
3622         * filelock.c (current_lock_owner):
3623         - Change uses of index -> strchr, rindex -> strrchr
3624
3625 1998-12-07  Martin Buchholz  <martin@xemacs.org>
3626
3627         * sysdep.c (set_descriptor_non_blocking):
3628         Since O_NONBLOCK is now always #defined, make use of fcntl
3629         conditional on F_SETFL being defined.
3630
3631         * console-msw.c (DHEADgER):
3632         (DOPAQUE_DATA):
3633         (DEVENT):
3634         (DCONS):
3635         (DCONSCDR):
3636         (DSTRING):
3637         (DVECTOR):
3638         (DSYMBOL):
3639         (DSYMNAME):
3640         - max_align_t should not be visible to the user of the
3641           XOPAQUE_DATA macro.
3642         - use Bufbyte instead of char
3643         - parens around (FOOP (obj)) are always redundant.
3644           If they were necessary, we should fix the macro instead.
3645         - Always use string_data(foo) instead of foo->data.
3646
3647
3648 1998-12-06  Martin Buchholz  <martin@xemacs.org>
3649
3650         * frame-msw.c (mswindows_init_frame_1):
3651         - use make_lisp_hash_table, not Fmake_hash_table
3652         - include elhash.h
3653
3654         * lisp.h:
3655         * alloc.c (make_vector): remove travesty
3656         (Fmake_vector):
3657         (make_pure_vector):
3658         (pure_cons):
3659         (make_bit_vector_internal):
3660         (make_bit_vector):
3661         (make_bit_vector_from_byte_vector):
3662         (Fmake_bit_vector):
3663         - make vector_equal a little faster.
3664         - Don't use variable name `new'.
3665         - Use size_t instead of EMACS_INT.
3666         - usual Martin-style pointless bit-twiddling.
3667
3668         * fns.c (mapcar1):
3669         (Fmapconcat):
3670         (Fmapcar):
3671         (Fmapvector):
3672         Make mapcar faster.  In particular, make
3673           (mapc #'identity long-string)
3674         MUCH faster under Mule.
3675         * tests/automated/lisp-tests.el: Test 'em!
3676
3677         * bytecode.c (Ffetch_bytecode): Fix crash when loading lazy-loaded
3678         bytecode.
3679
3680 1998-12-01  Martin Buchholz  <martin@xemacs.org>
3681
3682         * menubar-x.c (menu_item_descriptor_to_widget_value_1): Always use
3683         Qnil, not NULL, to initialize `null' Lisp_Objects.
3684
3685 1998-11-29  Hrvoje Niksic  <hniksic@srce.hr>
3686
3687         * specifier.c (display_table_validate): Update.
3688
3689         * redisplay.c (create_text_block): Use them.
3690
3691         * glyphs.c (display_table_entry): New function.
3692         (get_display_tables): Ditto.
3693
3694 1998-12-15  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
3695
3696         * eldap.c (toplevel): Mention that eldap.c compiles with
3697         OpenLDAP libs
3698         (Fldap_open): Use `GET_C_STRING_OS_DATA_ALLOCA'
3699         (Fldap_search_internal): Ditto
3700
3701 1998-12-11  Martin Buchholz  <martin@xemacs.org>
3702
3703         * event-msw.c (mswindows_cancel_dispatch_event):
3704         Gratuitous code prettification
3705
3706
3707 1998-12-07  Hrvoje Niksic  <hniksic@srce.hr>
3708
3709         * fns.c (Fnconc): Fix use of wrong_type_argument().
3710
3711         * floatfns.c (Ffloat): Fix docstring.
3712         (Ffloat): Fix use of wrong_type_argument().
3713         (Fabs): Ditto.
3714         (extract_float): Ditto.
3715         (Fceiling): Ditto.
3716         (Fround): Ditto.
3717         (Ftruncate): Ditto.
3718
3719 1998-12-06  Martin Buchholz  <martin@xemacs.org>
3720
3721         * frame-msw.c (mswindows_init_frame_1):
3722         - use make_lisp_hash_table, not Fmake_hash_table
3723         - include elhash.h
3724
3725         * lisp.h:
3726         * alloc.c (make_vector): remove travesty
3727         (Fmake_vector):
3728         (make_pure_vector):
3729         (pure_cons):
3730         (make_bit_vector_internal):
3731         (make_bit_vector):
3732         (make_bit_vector_from_byte_vector):
3733         (Fmake_bit_vector):
3734         - make vector_equal a little faster.
3735         - Don't use variable name `new'.
3736         - Use size_t instead of EMACS_INT.
3737         - usual Martin-style pointless bit-twiddling.
3738
3739         * fns.c (mapcar1):
3740         (Fmapconcat):
3741         (Fmapcar):
3742         (Fmapvector):
3743         Make mapcar faster.  In particular, make
3744           (mapc #'identity long-string)
3745         MUCH faster under Mule.
3746         * tests/automated/lisp-tests.el: Test 'em!
3747
3748         * bytecode.c (Ffetch_bytecode): Fix crash when loading lazy-loaded
3749         bytecode.
3750
3751 1998-12-02  Didier Verna  <verna@inf.enst.fr>
3752
3753         * menubar-x.c (menu_item_descriptor_to_widget_value_1): set the
3754         accelerator field to nil for labels.
3755
3756 1998-12-16  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3757
3758         * menubar-msw.c (displayable_menu_item):
3759           Escape occurrences of '&' and support occurrences of the
3760          '%_' accelerator indicator in menus.
3761
3762 1998-11-26  Didier Verna  <verna@inf.enst.fr>
3763
3764         * dired.c (Fdirectory_files): use make_string instead of
3765         make_ext_string on the filename. The conversion external->internal
3766         format is already done in sys_readdir.
3767
3768 1998-12-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3769
3770         * glyphs.c (normalize_image_instantiator): GCPRO instantiator
3771
3772 1998-12-16  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3773
3774         * event-msw.c
3775           (Belatedly) added Kirill to list of file's authors.
3776           emacs_mswindows_quit_p: Don't process WM_PAINT messages in
3777           quit checking. WM_PAINT messages cause redisplay, but
3778           windows' states are not necessarily stable when this function
3779           gets called.
3780
3781 1998-12-17  Andy Piper  <andy@xemacs.org>
3782
3783         * strftime.c (zone_name): CONSTify.
3784
3785 1998-12-15  Andy Piper  <andy@xemacs.org>
3786
3787         * glyphs-msw.c (mswindows_combo_instantiate): ditto.
3788         (mswindows_widget_property): return Qunbound when no property available.
3789         (mswindows_button_property): ditto.
3790         (mswindows_combo_property): ditto.
3791         (mswindows_widget_set_property): ditto.
3792
3793         * glyphs-widget.c (check_valid_item_list): use properties.
3794
3795         * glyphs.h (struct Lisp_Image_Instance): we have properties now.
3796
3797         * glyphs.c (Fset_image_instance_property): allow setting of arbitrary properties.
3798         (Fimage_instance_property): ditto.
3799         * glyphs-widget.c (widget_property): ditto.
3800         (widget_set_property): ditto.
3801
3802         * frame-msw.c (mswindows_set_frame_pointer): SetCursor() as well
3803         as setting the class cursor so that GC actually changes the
3804         cursor.
3805
3806         * config.h: don't undef MAIL_USE_POP.
3807
3808 1998-12-13  Andy Piper  <andy@xemacs.org>
3809
3810         * glyphs-msw.c
3811         (image_instantiator_format_create_glyphs_mswindows): line ->
3812         label.
3813         (mswindows_label_instantiate): ditto. Play with window flags.
3814         (image_instantiator_format_create_glyphs_mswindows): ditto.
3815         (vars_of_glyphs_mswindows): provide Qlabel as we support it now.
3816
3817         * glyphs-widget.c (widget_instantiate_1): re-jig autosizing to
3818         cope with lines and labels.
3819         (static_instantiate): use widget_instantiate_1.
3820         line -> label.
3821         (image_instantiator_format_create_glyphs_widget): ditto.
3822
3823 1998-12-10  Andy Piper  <andy@xemacs.org>
3824
3825         * Makefile.in.in (objs): add gui.o
3826
3827 1998-12-10  Andy Piper  <andy@xemacs.org>
3828
3829         * gui.c: adjust defines of HAVE_POPUPS so that we can build with
3830         no window system.
3831
3832 1998-12-09  Andy Piper  <andy@xemacs.org>
3833
3834         * glyphs.c (finalize_image_instance): mark glyphs changed when an
3835         image instance is removed so that the subwindow cache gets reset
3836         and thus destroyed images get GC'd.
3837
3838 1998-12-08  Andy Piper  <andy@xemacs.org>
3839
3840         * gui-msw.c (mswindows_handle_gui_wm_command): call
3841         MARK_SUBWINDOWS_CHANGED.
3842
3843         * glyphs-msw.c (mswindows_finalize_image_instance): make sure
3844         subwindows really get deleted.
3845
3846         * redisplay.c: new variable subwindows_changed[_set].
3847         (redisplay_window): use it.
3848         (redisplay_frame): ditto.
3849         (redisplay_device): ditto.
3850         (redisplay_without_hooks): ditto.
3851
3852         * device.h (MARK_DEVICE_SUBWINDOWS_CHANGED): new macro for
3853         subwindows redisplay as per glyphs equivalent.
3854         * redisplay.h: ditto.
3855         (MARK_SUBWINDOWS_CHANGED): ditto.
3856         (RESET_CHANGED_SET_FLAGS): ditto.
3857         * frame.h (MARK_FRAME_SUBWINDOWS_CHANGED): ditto.
3858
3859 1998-12-07  Andy Piper  <andy@xemacs.org>
3860
3861         * frame.c (Fmake_frame): reset subwindow cachels on non-stream
3862         frames.
3863
3864         * redisplay.c (redisplay_frame): invalidate subwindow cachels.
3865
3866         * event-msw.c (mswindows_wnd_proc): catch the various WM_CTLCOLOR*
3867         messages and paint widget glyphs as appropriate with their face fg
3868         & bg.
3869
3870 1998-12-06  Andy Piper  <andy@xemacs.org>
3871
3872         * glyphs-msw.c (vars_of_glyphs_mswindows): provide widget types
3873         here rather than in glyphs-widget - do this because we only want
3874         to provide what is really available.
3875
3876         * glyphs.c (Fimage_instance_property): new function to get the
3877         properties of image instances. wires through to console specific
3878         methods and then to widget specific methods.
3879         (Fset_image_instance_property): ditto but for setting widget properties.
3880         (check_valid_face): make extern so that it can be used elsewhere.
3881
3882         * glyphs-widget.c (widget_property): new function. gets the
3883         properties of widgets in general and wires the function through to
3884         widget specific ones.
3885         (widget_set_property): ditto but for setting widget properties.
3886
3887         * glyphs-msw.c (mswindows_combo_instantiate): Add functionality to
3888         add items to the list. Play with window styles a bit to get the
3889         desired effect.
3890         (mswindows_widget_property): break out specific widget properties.
3891         (mswindows_button_property): new function. gets the checked state
3892         of a button.
3893         (mswindows_combo_property): new function. gets the current
3894         selection in the combo box.
3895         (mswindows_widget_set_property): new function. sets specific
3896         properties of specific widgets.
3897
3898         * glyphs-widget.c (check_valid_item_list): new function. check
3899         that items for a combo-box are just a list of strings.
3900         (combo_validate): new function. check there is an item list.
3901         (widget_instantiate_1): new function. renamed from
3902         widget_instantiate so that we can do slightly different things for
3903         other widgets.
3904         (widget_instantiate): call widget_instantiate_1.
3905         (combo_instantiate): new function to instantiate combo boxes,
3906         defaults height to the pixel height of the number of items in the
3907         box.
3908         (syms_of_glyphs_widget): move widget keywords here.
3909         (image_instantiator_format_create_glyphs_widget): use new combo
3910         functions.
3911
3912 1998-12-04  Andy Piper  <andy@xemacs.org>
3913
3914         * event-msw.c (mswindows_wnd_proc): mule-ize.
3915
3916         * glyphs.c (pixmap_to_lisp_data): mule-ize.
3917
3918         * glyphs-msw.c (extract_xpm_color_names): mule-ize.
3919         (resource_name_to_resource): ditto.
3920         (mswindows_resource_instantiate): ditto.
3921         (mswindows_widget_instantiate): ditto.
3922         (mswindows_widget_set_property): ditto.
3923
3924         * redisplay-output.c (redisplay_output_subwindow): don't show
3925         subwindows if they are obscured at the edge of the frame, emacs
3926         gets into some sort of redisplay loop otherwise.
3927
3928         * gui.h: prototype gui_item_selected_p.
3929
3930         * gui.c (gui_item_selected_p): new function to determine the
3931         selected state of a gui_item.
3932
3933         * frame.h (struct frame): add subwindows_changed flag.
3934
3935         * redisplay.c (redisplay_frame): call update_frame_subwindows ().
3936
3937         * glyphs.c (update_subwindow): new function to update a
3938         subwindow's state.
3939         (update_frame_subwindows): new function to update all the
3940         subwindows on a frame.
3941
3942         * console.h (struct console_methods): add update_subwindow.
3943
3944         * glyphs-msw.c (mswindows_widget_property): return selected state
3945         for selected property.
3946         (mswindows_update_subwindow): new function. updates widget glyphs
3947         in redisplay as per menubars or toolbars e.g. selected state.
3948         (console_type_create_glyphs_mswindows): add update_subwindow.
3949
3950 1998-12-03  Andy Piper  <andy@xemacs.org>
3951
3952         * console-tty.c (syms_of_console_tty): MULE -> FILE_CODING since
3953         tty coding system things are such.
3954
3955         * glyphs-widget.c (widget_face_font_info): new function for
3956         pulling out height and width metrics for a widget's face.
3957         (widget_text_to_pixel_conversion): calculate pixel sizes of text
3958         for widgets.
3959
3960         * event-msw.c (mswindows_drain_windows_queue): translate messages
3961         that are destined for subwindows. This makes edit fields interact
3962         with the keyboard correctly.
3963         nuke warnings by #ifndef'ing out stuff not required by msg select().
3964
3965         * glyphs.h (INITIALIZE_IMAGE_INSTANTIATOR_FORMAT_NO_SYM): new
3966         macro defining the iiforma without the symbol required by widget.
3967         (INITIALIZE_IMAGE_INSTANTIATOR_FORMAT): use it.
3968
3969         * general.c (syms_of_general): add Qwidget, Qselected.
3970
3971         * faces.c (complex_vars_of_faces): add widget face inheriting from
3972         gui-element face.
3973
3974 1998-11-09  Andy Piper  <andy@xemacs.org>
3975
3976         * window.h (struct window): add a cache of subwindows on a
3977         per-window basis.
3978
3979         * window.c (mark_window): mark the subwindow_instance_cache.
3980         (allocate_window): initialise the subwindow instance_cache.
3981
3982         * toolbar-x.c (x_output_toolbar): call redisplay_clear_region
3983         instead of the devmeth.
3984         (x_clear_toolbar): ditto.
3985
3986         * redisplay-x.c (x_output_display_block): call
3987         redisplay_output_subwindow for subwindows and widgets.
3988
3989         * redisplay-tty.c (tty_output_display_block): add IMAGE_WIDGET to
3990         types to do nothing for.
3991
3992         * lisp.h: declare new widget/subwindow symbols.
3993
3994         * glyphs.c (image_instantiate): cache subwindows on a per-window
3995         basis.
3996         (subwindow_possible_dest_types): new function for subwindow dest
3997         types.
3998         (subwindow_instantiate): generic instantiation of a
3999         subwindow. specialised by device multi-methods.
4000         (Fsubwindowp): moved from glyphs-x.c. adapted for glyph-based
4001         subwindows.
4002         (Fimage_instance_subwindow_id): ditto.
4003         (Fresize_subwindow): ditto.
4004         (Fforce_subwindow_map): ditto.
4005
4006         * glyphs-x.c (x_print_image_instance): remove subwindow
4007         stuff. Handled genrically in glyphs.c.
4008         (x_image_instance_equal): ditto.
4009         (x_image_instance_hash): ditto.
4010         (x_finalize_image_instance): delete subwindows when required.
4011         (mark_subwindow) (print_subwindow) (finalize_subwindow)
4012         (subwindow_hash) (Fmake_subwindow): deleted because of new,
4013         glyph-based, subwindow implementation.
4014         (Fsubwindow_height) (Fsubwindow_width) (Fsubwindow_xid): aliased
4015         in glyphs.el
4016         (Fsubwindowp) (Fresize_subwindow) (Fforce_subwindow_map): moved to
4017         glyphs.c.
4018         (x_unmap_subwindow): new function to unmap X subwindows.
4019         (x_map_subwindow): new function to map X subwindows.
4020         (x_subwindow_instantiate): new function to instantiate X
4021         subwindows.
4022         (x_resize_subwindow): new function to resize X subwindows.
4023         (console_type_create_glyphs_x): add subwindow functions.
4024         (image_instantiator_format_create_glyphs_x): add device
4025         multi-methods for xpm, xbm and subwindow.
4026
4027         * glyphs.el (subwindow-xid): old alias for new subwindow functions.
4028         (subwindow-width): ditto.
4029         (subwindow-height): ditto.
4030
4031         * glyphs-msw.c (mswindows_widget_instantiate): new function for
4032         generally instantiating ms subwindows. Used by
4033         mswindows_*_instantiate.
4034         (mswindows_edit_instantiate): instantiate an edit field on a
4035         mswindows frame.
4036
4037 1998-11-04  Andy Piper  <andy@xemacs.org>
4038
4039         * symsinit.h: declare new functions.
4040
4041         * redisplay.h: declare new functions.
4042
4043         * redisplay-x.c (x_output_display_block): call
4044         redisplay_clear_region rather than x_clear_region.
4045         (x_output_string): ditto.
4046         (x_output_pixmap): ditto.
4047         (x_clear_to_window_end): ditto.
4048         (x_output_eol_cursor): ditto.
4049         (x_clear_region): only do X specific things. other duties handled
4050         in redisplay_clear_region.
4051
4052         * redisplay-tty.c (tty_clear_region): do tty specific things - some
4053         duties moved to redisplay_clear_region.
4054
4055         * redisplay-output.c (clear_left_border): use
4056         redisplay_clear_region instead of device method.
4057         (clear_right_border): ditto.
4058         (output_display_line): ditto.
4059         (redisplay_output_subwindow): ditto.
4060         (redisplay_clear_top_of_window): ditto.
4061         (redisplay_clear_region): perform duties previously handled by
4062         device methods. call the appropriate device method at the
4063         end. unmap subwindows if necessary.
4064
4065         * redisplay-msw.c (mswindows_output_string): use
4066         redisplay_clear_region instead of mswindows_clear_region.
4067         (mswindows_clear_to_window_end): ditto.
4068         (mswindows_output_display_block): output subwindows when required.
4069         (mswindows_clear_region): only do mswindows specific things,
4070         everything else is now handled in redisplay_clear_region.
4071
4072         * gui.h: add item id hash defines and declare function prototypes.
4073
4074         * gui.c (mark_gui_item): new function for marking gui_items.
4075         (gui_item_hash): generic hash function for generating command ids
4076         for gui_items.
4077
4078         * gui-msw.c: new file.
4079         (mswindows_handle_gui_wm_command): new function to handle widget
4080         callbacks.
4081
4082         * glyphs.h (MAYBE_IIFORMAT_DEVMETH): new function for device
4083         multi-methods.
4084         (IIFORMAT_HAS_SHARED_METHOD): ditto.
4085         (DEFINE_DEVICE_IIFORMAT): ditto.
4086         (INITIALIZE_DEVICE_IIFORMAT): ditto.
4087         (struct Lisp_Image_Instance): add widget and subwindow data plus
4088         appropriate access functions.
4089
4090         * glyphs.c (decode_device_ii_format): new function for decoding
4091         image instantiator functions based on a device type as well as an
4092         image format.
4093         (decode_image_instantiator_format): just call
4094         decode_device_ii_format with nil device.
4095         (add_entry_to_device_ii_format_list): new function for per device
4096         method instances.
4097         (add_entry_to_image_instantiator_format_list): just call
4098         add_entry_to_device_ii_format_list with nil device.
4099         (check_valid_vector): new function.
4100         (instantiate_image_instantiator): instantiate using per-format
4101         method and then per-format-per-device method (device
4102         multi-methods). signal an error if neither is possible.
4103         (mark_image_instance): cope with subwindows and widgets.
4104         (print_image_instance): ditto.
4105         (image_instance_equal): ditto.
4106         (image_instance_hash): ditto.
4107         (allocate_glyph): ditto.
4108         (glyph_width): ditto.
4109         (glyph_height_internal): ditto.
4110         (xpm_instantiate): removed because of device multi-methods.
4111         (mark_subwindow_cachels): new cachel functions for caching
4112         instantiated subwindows on a per-frame basis. mostly copied from
4113         glyph cachel functions.
4114         (update_subwindow_cachel_data): ditto.
4115         (add_subwindow_cachel): ditto.
4116         (get_subwindow_cachel_index): ditto.
4117         (reset_subwindow_cachels): ditto.
4118         (mark_subwindow_cachels_as_not_updated): ditto.
4119         (unmap_subwindow): generic unmapping of subwindows based on cachel
4120         data.
4121         (map_subwindow): ditto.
4122         (initialize_subwindow_image_instance): generic initialisation of
4123         subwindow data.
4124         (syms_of_glyphs): add widget keywords.
4125
4126         * glyphs-x.h (struct x_subwindow_data): convert Lisp_Subwindow to
4127         x_subwindow_data.
4128
4129 1998-11-04  Andy Piper  <andy@xemacs.org>
4130
4131         * glyphs-widget.c: new file for instantiating widget type glyphs.
4132         (widget_possible_dest_types): new general dest type function for
4133         widgets.
4134         (widget_validate): ditto.
4135         (initialize_widget_image_instance): ditto
4136         (widget_instantiate): ditto. Sets up fg/bg, gui_item parsing
4137         before handing on control to device multi-methods.
4138         (syms_of_glyphs_widget): new function.
4139         (image_instantiator_format_create_glyphs_widget): new function,
4140         added placeholders for button, edit, combo, scrollbar
4141         (vars_of_glyphs_widget): new function.
4142
4143         * glyphs-msw.h (WIDGET_INSTANCE_MSWINDOWS_HANDLE): new define for
4144         storing window ids of widgets.
4145
4146         * glyphs-msw.c (mswindows_finalize_image_instance): cope with
4147         deletion of widget and subwindow glyphs.
4148         (mswindows_unmap_subwindow): new device function for unmapping
4149         subwindows on a msw frame.
4150         (mswindows_map_subwindow): ditto.
4151         (mswindows_register_image_instance): register instantiated widgets
4152         with the widget hastable.
4153         (mswindows_button_instantiate): instantiate a button type widget
4154         on an msw frame.
4155         (mswindows_subwindow_instantiate): instanttiate a subwindow on a
4156         mswindows frame.
4157         (image_instantiator_format_create_glyphs_mswindows): add device
4158         multi-methods for xbm, xpm, subwindow, edit and button.
4159
4160         * frame.h (struct frame): add subwindow_cachels dynarr for caching
4161         information about subwindows visible on the current frame. used by
4162         redisplay_clear_region to unmap subwindows as required.
4163
4164         * frame.c (mark_frame): mark subwindow_cachels.
4165         (allocate_frame_core): instantiate subwindow_cachels.
4166
4167         * frame-msw.c (mswindows_init_frame_1): instntiate and mark the
4168         widget hashtable.
4169
4170         * event-msw.c (mswindows_wnd_proc): add call to
4171         mswindows_handle_gui_wm_command to handle widget callbacks.
4172
4173         * emacs.c (main_1): add calls to glyphs-widget initialisation
4174         routines.
4175
4176         * console.h (struct console_methods): add
4177         unmap/map_subwindow_method for use be redisplay_clear_region to
4178         map and unmap subwindows. Remove xpm and xbm stuff - now dealt
4179         with by image instantiator multi-methods. Add
4180         resize_subwindow_method.
4181
4182         * console-stream.c (stream_clear_region): change signature to
4183         match new generic clear region function.
4184
4185         * Makefile.in.in: add glyphs-widget.o to list of objects.
4186
4187         * console-msw.h (struct mswindows_frame): add widget hashtable for
4188         wiring command ids to callbacks.
4189
4190 1998-12-16  Andy Piper  <andy@xemacs.org>
4191
4192         * XEmacs 21.2.6 is released
4193
4194 1998-12-08  Hrvoje Niksic  <hniksic@srce.hr>
4195
4196         * md5.c (Fmd5): Correctly initiate string input stream.
4197
4198         * Makefile.in.in (tests): Add md5-tests.el.
4199
4200 1998-12-06  Martin Buchholz  <martin@xemacs.org>
4201
4202         * lisp.h:
4203         * alloc.c (make_vector): remove travesty
4204         (Fmake_vector):
4205         (make_pure_vector):
4206         (pure_cons):
4207         (make_bit_vector_internal):
4208         (make_bit_vector):
4209         (make_bit_vector_from_byte_vector):
4210         (Fmake_bit_vector):
4211         - make vector_equal a little faster.
4212         - Don't use variable name `new'.
4213         - Use size_t instead of EMACS_INT.
4214         - usual Martin-style pointless bit-twiddling.
4215
4216         * fns.c (mapcar1):
4217         (Fmapconcat):
4218         (Fmapcar):
4219         (Fmapvector):
4220         Make mapcar faster.  In particular, make
4221           (mapc #'identity long-string)
4222         MUCH faster under Mule.
4223         * tests/automated/lisp-tests.el: Test 'em!
4224
4225 1998-12-06  Martin Buchholz  <martin@xemacs.org>
4226
4227         * bytecode.c (Ffetch_bytecode): Fix crash when loading lazy-loaded
4228         bytecode.
4229
4230 1998-12-13  Martin Buchholz  <martin@xemacs.org>
4231
4232         * console-msw.c: Function definitions follow coding standards
4233         - This prevents e.g. find-tag on Lisp_Event finding DEVENT
4234
4235 1998-12-11  Martin Buchholz  <martin@xemacs.org>
4236
4237         * events.h (struct timeout_data):
4238         * event-tty.c (tty_timeout_to_emacs_event):
4239         * event-msw.c (mswindows_wm_timer_callback):
4240         * event-Xt.c (Xt_timeout_to_emacs_event):
4241         * event-msw.c (mswindows_cancel_dispatch_event):
4242         Make sure Lisp_Objects inside events are initialized to Qnil, not
4243         Qnull_pointer, which is now illegal.
4244
4245 1998-12-10  Martin Buchholz  <martin@xemacs.org>
4246
4247         * lisp.h: Fix up prototypes to match alloc.c
4248
4249 1998-12-09  Andy Piper  <andy@xemacs.org>
4250
4251         * glyphs-msw.c (init_image_instance_from_xbm_inline): don't use
4252         XSETINT for assigning lisp objects.
4253
4254 1998-12-07  Martin Buchholz  <martin@xemacs.org>
4255
4256         * opaque.h:
4257         * console-msw.c (DHEADER):
4258         (DOPAQUE_DATA):
4259         (DEVENT):
4260         (DCONS):
4261         (DCONSCDR):
4262         (DSTRING):
4263         (DVECTOR):
4264         (DSYMBOL):
4265         (DSYMNAME):
4266         - max_align_t should not be visible to the user of the
4267           XOPAQUE_DATA macro.
4268         - use Bufbyte instead of char
4269         - parens around (FOOP (obj)) are always redundant.
4270           If they were necessary, we should fix the macro instead.
4271         - Always use string_data(foo) instead of foo->data.
4272
4273 1998-12-07  Martin Buchholz  <martin@xemacs.org>
4274
4275         * sysdep.c (set_descriptor_non_blocking):
4276         Since O_NONBLOCK is now always #defined, make use of fcntl
4277         conditional on F_SETFL being defined.
4278
4279 1998-12-09  Andy Piper  <andy@xemacs.org>
4280
4281         * menubar-msw.c (mswindows_handle_wm_command): add back in checks
4282         that got removed in the merge
4283
4284 1998-11-30  Greg Klanderman  <greg@alphatech.com>
4285
4286         * dired.c (vars_of_dired): bugfix for previous conditionalization
4287         of user-name-completion on non- Windows NT.
4288
4289 1998-12-08  Martin Buchholz  <martin@xemacs.org>
4290
4291         * windowsnt.h: Remove `support' for using index and rindex
4292
4293         * filelock.c (current_lock_owner):
4294         - Change uses of index -> strchr, rindex -> strrchr
4295
4296 1998-12-06  Martin Buchholz  <martin@xemacs.org>
4297
4298         * frame-msw.c (mswindows_init_frame_1):
4299         - use make_lisp_hash_table, not Fmake_hash_table
4300         - include elhash.h
4301
4302 1998-12-05  XEmacs Build Bot <builds@cvs.xemacs.org>
4303
4304         * XEmacs 21.2.5 is released
4305
4306 1998-11-30  Martin Buchholz  <martin@xemacs.org>
4307
4308         * xselect.c (receive_incremental_selection):
4309         * xselect.c (x_get_window_property):
4310         * xmu.c (XmuReadBitmapDataFromFile):
4311         * xmu.c (XmuCursorNameToIndex):
4312         * xgccache.c (describe_gc_cache):
4313         * xgccache.c (gc_cache_lookup):
4314         * xgccache.c (free_gc_cache):
4315         * xgccache.c (make_gc_cache):
4316         * window.h:
4317         * window.c (map_windows_1):
4318         * window.c (Fother_window_for_scrolling):
4319         * window.c (window_scroll):
4320         * window.c (change_window_height):
4321         * window.c (Fsplit_window):
4322         * window.c (window_left_gutter_width):
4323         * window.c (window_modeline_height):
4324         * window.c (invalidate_vertical_divider_cache_in_window):
4325         * window.c (window_needs_vertical_divider_1):
4326         * window.c (update_mirror_internal):
4327         * window.c (SET_LAST_FACECHANGE):
4328         * widget.c (Fwidget_plist_member):
4329         * unexec.c (copy_text_and_data):
4330         * unexcw.c (copy_executable_and_dump_data_section):
4331         * tooltalk.doc:
4332         * tooltalk.c (struct Lisp_Tooltalk_Pattern):
4333         * tooltalk.c (struct Lisp_Tooltalk_Message):
4334         * toolbar.h (struct toolbar_button):
4335         * toolbar.c (default_toolbar_visible_p_changed_in_window):
4336         * toolbar.c (recompute_overlaying_specifier):
4337         * toolbar.c (toolbar_validate):
4338         * toolbar.c (toolbar_button_at_pixpos):
4339         * toolbar.c (get_toolbar_coords):
4340         * toolbar.c (update_frame_toolbars):
4341         * toolbar-x.c:
4342         * toolbar-msw.c (mswindows_handle_toolbar_wm_command):
4343         * toolbar-msw.c (mswindows_find_toolbar_pos):
4344         * toolbar-msw.c (mswindows_output_toolbar):
4345         * toolbar-msw.c (mswindows_clear_toolbar):
4346         * toolbar-msw.c:
4347         * systty.h:
4348         * syssignal.h:
4349         * sysproc.h:
4350         * sysfile.h:
4351         * sysdll.c:
4352         * sysdep.h:
4353         * sysdep.c (rmdir):
4354         * sysdep.c (sys_fopen):
4355         * sysdep.c (sys_open):
4356         * sysdep.c (tty_init_sys_modes_on_device):
4357         * sysdep.c (get_eof_char):
4358         * sysdep.c (child_setup_tty):
4359         * sysdep.c (set_descriptor_non_blocking):
4360         * syntax.h:
4361         * syntax.c (scan_words):
4362         * syntax.c:
4363         * symsinit.h:
4364         * symeval.h (struct symbol_value_varalias):
4365         * symeval.h (struct symbol_value_forward):
4366         * symbols.c (syms_of_symbols):
4367         * symbols.c (init_symbols_once_early):
4368         * symbols.c (Fbuilt_in_variable_type):
4369         * symbols.c (Fsymbol_value_in_buffer):
4370         * symbols.c (default_value):
4371         * symbols.c (Fset):
4372         * symbols.c (find_symbol_value_quickly):
4373         * symbols.c (store_symval_forwarding):
4374         * symbols.c (set_default_console_slot_variable):
4375         * symbols.c (set_default_buffer_slot_variable):
4376         * symbols.c (verify_ok_for_buffer_local):
4377         * symbols.c (symbol_is_constant):
4378         * symbols.c (oblookup):
4379         * symbols.c (Funintern):
4380         * symbols.c (Fintern):
4381         * symbols.c (check_obarray):
4382         * sunplay.c:
4383         * specifier.h (struct specifier_methods):
4384         * specifier.h:
4385         * specifier.c (specifier_instance):
4386         * specifier.c (specifier_instance_from_inst_list):
4387         * specifier.c (decode_locale_type):
4388         * specifier.c (specifier_equal):
4389         * specifier.c (finalize_specifier):
4390         * specifier.c (prune_specifiers):
4391         * specifier.c (kill_specifier_buffer_locals):
4392         * sound.c (init_native_sound):
4393         * sound.c:
4394         * signal.c (alarm):
4395         * search.c (Fmatch_data):
4396         * search.c (match_limit):
4397         * search.c (Freplace_match):
4398         * search.c (skip_chars):
4399         * search.c (scan_buffer):
4400         * search.c:
4401         * scrollbar.c (specifier_vars_of_scrollbar):
4402         * scrollbar.c (Fscrollbar_set_hscroll):
4403         * scrollbar.c (vertical_scrollbar_changed_in_window):
4404         * scrollbar.c (release_window_mirror_scrollbars):
4405         * scrollbar.c (free_scrollbar_instance):
4406         * scrollbar-x.c:
4407         * scrollbar-msw.c:
4408         * s/msdos.h (O_BINARY):
4409         * s/linux.h:
4410         * s/freebsd.h (LIBS_TERMCAP):
4411         * regex.c (re_match_2_internal):
4412         * regex.c (compile_extended_range):
4413         * regex.c (POP_FAILURE_POINT):
4414         * regex.c (PUSH_FAILURE_POINT):
4415         * redisplay.h (RESET_CHANGED_SET_FLAGS):
4416         * redisplay.h:
4417         * redisplay.h (struct display_line):
4418         * redisplay.h (struct rune):
4419         * redisplay.c (vars_of_redisplay):
4420         * redisplay.c (redisplay_variable_changed):
4421         * redisplay.c (UPDATE_CACHE_RETURN):
4422         * redisplay.c (validate_line_start_cache):
4423         * redisplay.c (mark_redisplay_structs):
4424         * redisplay.c (mark_glyph_block_dynarr):
4425         * redisplay.c (window_line_number):
4426         * redisplay.c (redisplay_frame):
4427         * redisplay.c (redisplay_window):
4428         * redisplay.c (generate_modeline):
4429         * redisplay.c (create_right_glyph_block):
4430         * redisplay.c (create_left_glyph_block):
4431         * redisplay.c (create_text_block):
4432         * redisplay.c:
4433         * redisplay-x.c (x_output_hline):
4434         * redisplay-x.c (x_output_vertical_divider):
4435         * redisplay-tty.c (tty_output_display_block):
4436         * redisplay-output.c (output_display_line):
4437         * redisplay-output.c:
4438         * redisplay-msw.c (mswindows_output_vertical_divider):
4439         * redisplay-msw.c (mswindows_ring_bell):
4440         * redisplay-msw.c (mswindows_output_cursor):
4441         * redisplay-msw.c:
4442         * rangetab.c:
4443         * ralloc.c:
4444         * puresize.h (RAW_PURESIZE):
4445         * profile.c (syms_of_profile):
4446         * profile.c (Fstart_profiling):
4447         * profile.c (sigprof_handler):
4448         * profile.c:
4449         * procimpl.h:
4450         * process.c (vars_of_process):
4451         * process.c (read_process_output):
4452         * process.c (get_process):
4453         * process.c:
4454         * process-unix.c (unix_open_multicast_group):
4455         * process-unix.c (unix_get_tty_name):
4456         * process-unix.c (unix_send_process):
4457         * process-unix.c (unix_reap_exited_processes):
4458         * process-unix.c (unix_create_process):
4459         * process-unix.c (unix_init_process_io_handles):
4460         * process-unix.c (allocate_pty):
4461         * process-unix.c:
4462         * process-nt.c (nt_open_network_stream):
4463         * process-nt.c (nt_update_status_if_terminated):
4464         * process-nt.c (nt_finalize_process_data):
4465         * process-nt.c:
4466         * print.c (debug_short_backtrace):
4467         * print.c (debug_backtrace):
4468         * print.c (print_symbol):
4469         * print.c (print_internal):
4470         * print.c (print_cons):
4471         * print.c (Fwrite_char):
4472         * print.c (print_prepare):
4473         * print.c (canonicalize_printcharfun):
4474         * print.c (output_string):
4475         * print.c:
4476         * opaque.h:
4477         * opaque.c (allocate_managed_opaque):
4478         * opaque.c:
4479         * offix.c (DndSetData):
4480         * objects.c (face_boolean_create):
4481         * objects.c (font_instantiate):
4482         * objects.c (font_create):
4483         * objects.c (color_create):
4484         * objects.c (finalize_font_instance):
4485         * objects.c (finalize_color_instance):
4486         * objects.c:
4487         * objects-x.c (x_font_instance_truename):
4488         * objects-x.c:
4489         * objects-x.c (x_initialize_font_instance):
4490         * objects-x.c (allocate_nearest_color):
4491         * objects-tty.c (tty_initialize_font_instance):
4492         * objects-tty.c (tty_initialize_color_instance):
4493         * objects-msw.c (mswindows_initialize_color_instance):
4494         * ntproc.c (syms_of_ntproc):
4495         * ntproc.c (Fwin32_set_process_priority):
4496         * ntproc.c (sys_spawnve):
4497         * ntproc.c:
4498         * ntheap.c (get_data_end):
4499         * nt.c (period):
4500         * nt.c:
4501         * nt.c (stat):
4502         * nt.c (generate_inode_val):
4503         * nt.c (sys_rename):
4504         * nas.c:
4505         * mule-wnnfns.c (Fwnn_hinsi_number):
4506         * mule-wnnfns.c (Fwnn_yuragi):
4507         * mule-wnnfns.c (Fwnn_common_learn):
4508         * mule-wnnfns.c (Fwnn_suffix_learn):
4509         * mule-wnnfns.c (Fwnn_prefix_learn):
4510         * mule-wnnfns.c (Fwnn_okuri_learn):
4511         * mule-wnnfns.c (Fwnn_complex_conv):
4512         * mule-wnnfns.c (Fwnn_last_is_first):
4513         * mule-wnnfns.c (Fwnn_bmodify_dict_add):
4514         * mule-wnnfns.c (Fwnn_notrans_dict_add):
4515         * mule-wnnfns.c (Fwnn_fiusr_dict_add):
4516         * mule-wnnfns.c (Fwnn_fisys_dict_add):
4517         * mule-wnnfns.c (Fwnn_hinsi_list):
4518         * mule-wnnfns.c (Fwnn_fuzokugo_set):
4519         * mule-wnnfns.c (Fwnn_dict_search):
4520         * mule-wnnfns.c (Fwnn_word_toroku):
4521         * mule-wnnfns.c (Fwnn_hindo_update):
4522         * mule-wnnfns.c (Fwnn_bunsetu_henkou):
4523         * mule-wnnfns.c (Fwnn_kakutei):
4524         * mule-wnnfns.c (Fwnn_begin_henkan):
4525         * mule-wnnfns.c (Fwnn_dict_comment):
4526         * mule-wnnfns.c (Fwnn_dict_add):
4527         * mule-wnnfns.c (Fwnn_open):
4528         * mule-mcpath.c (mc_getcwd):
4529         * mule-coding.c (vars_of_mule_coding):
4530         * mule-coding.c (convert_to_external_format):
4531         * mule-coding.c (encoding_marker):
4532         * mule-coding.c (decoding_marker):
4533         * mule-coding.c (Fcopy_coding_system):
4534         * mule-coding.c (Fmake_coding_system):
4535         * mule-coding.c (Fcoding_system_list):
4536         * mule-coding.c (Ffind_coding_system):
4537         * mule-coding.c (symbol_to_eol_type):
4538         * mule-coding.c:
4539         * mule-charset.c (complex_vars_of_mule_charset):
4540         * mule-charset.c (vars_of_mule_charset):
4541         * mule-charset.c (Fset_charset_ccl_program):
4542         * mule-charset.c (struct charset_list_closure):
4543         * mule-charset.c (Ffind_charset):
4544         * mule-charset.c (make_charset):
4545         * mule-charset.c (non_ascii_valid_char_p):
4546         * mule-charset.c:
4547         * mule-ccl.c (ccl_driver):
4548         * mule-canna.c (c2mu):
4549         * mule-canna.c (Fcanna_henkan_begin):
4550         * mule-canna.c (Fcanna_parse):
4551         * mule-canna.c (Fcanna_store_yomi):
4552         * mule-canna.c (Fcanna_touroku_string):
4553         * mule-canna.c (Fcanna_initialize):
4554         * minibuf.c:
4555         * menubar.c (menu_parse_submenu_keywords):
4556         * menubar-x.c (make_dummy_xbutton_event):
4557         * menubar-x.c (set_frame_menubar):
4558         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4559         * menubar-x.c:
4560         * menubar-msw.h:
4561         * menubar-msw.c (mswindows_popup_menu):
4562         * menubar-msw.c (mswindows_update_frame_menubars):
4563         * menubar-msw.c (mswindows_handle_wm_command):
4564         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
4565         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1):
4566         * menubar-msw.c (update_frame_menubar_maybe):
4567         * menubar-msw.c (populate_or_checksum_helper):
4568         * menubar-msw.c (empty_menu):
4569         * menubar-msw.c:
4570         * md5.c:
4571         * marker.c (set_marker_internal):
4572         * marker.c (print_marker):
4573         * malloc.c:
4574         * make-src-depend:
4575         * lstream.c (lisp_buffer_rewinder):
4576         * lstream.c (mark_lstream):
4577         * lrecord.h:
4578         * lrecord.h (struct lrecord_header):
4579         * lread.c (readevalloop):
4580         * lread.c (locate_file):
4581         * lread.c (locate_file_in_directory):
4582         * lread.c (Flocate_file):
4583         * lread.c (load_force_doc_string_unwind):
4584         * lread.c (ebolify_bytecode_constants):
4585         * lread.c:
4586         * lisp.h:
4587         * lisp-union.h:
4588         * lisp-disunion.h:
4589         * linuxplay.c (linux_play_data_or_file):
4590         * linuxplay.c (audio_init):
4591         * line-number.c:
4592         * keymap.h:
4593         * keymap.c (describe_map):
4594         * keymap.c (describe_map_mapper):
4595         * keymap.c (Fdescribe_bindings_internal):
4596         * keymap.c (Fsingle_key_description):
4597         * keymap.c (map_keymap_sorted):
4598         * keymap.c (get_relevant_keymaps):
4599         * keymap.c (Flookup_key):
4600         * keymap.c (raw_lookup_key_mapper):
4601         * keymap.c (Fdefine_key):
4602         * keymap.c (Fevent_matches_key_specifier_p):
4603         * keymap.c (key_desc_list_to_event):
4604         * keymap.c (define_key_parser):
4605         * keymap.c (define_key_check_and_coerce_keysym):
4606         * keymap.c (keymap_submaps):
4607         * keymap.c (keymap_store_internal):
4608         * keymap.c (keymap_delete_inverse_internal):
4609         * keymap.c (keymap_store_inverse_internal):
4610         * keymap.c (print_keymap):
4611         * keymap.c (Lisp_Keymap):
4612         * keymap.c:
4613         * intl.c:
4614         * insdel.c (convert_bufbyte_string_into_emchar_dynarr):
4615         * insdel.c (make_gap):
4616         * input-method-xlib.c (get_XIM_input):
4617         * input-method-xlib.c (XIM_init_frame):
4618         * imgproc.c:
4619         * hash.h:
4620         * hash.c:
4621         * gui.c:
4622         * gui-x.c (button_item_to_widget_value):
4623         * gui-x.c (popup_selection_callback):
4624         * glyphs.h (struct image_instantiator_methods):
4625         * glyphs.c (mark_glyph_cachels):
4626         * glyphs.c (Fglyph_type):
4627         * glyphs.c (image_instantiate):
4628         * glyphs.c (image_create):
4629         * glyphs.c (make_image_instance_1):
4630         * glyphs.c (finalize_image_instance):
4631         * glyphs.c:
4632         * glyphs-x.c (finalize_subwindow):
4633         * glyphs-x.c (xface_validate):
4634         * glyphs-x.c (x_locate_pixmap_file):
4635         * glyphs-x.c (convert_EImage_to_XImage):
4636         * glyphs-msw.c:
4637         * glyphs-msw.c (mswindows_resource_instantiate):
4638         * glyphs-msw.c (xpm_to_eimage):
4639         * glyphs-msw.c (convert_EImage_to_DIBitmap):
4640         * glyphs-eimage.c (tiff_instantiate):
4641         * glyphs-eimage.c (png_instantiate):
4642         * glyphs-eimage.c (struct png_error_struct):
4643         * glyphs-eimage.c (gif_memory_storage):
4644         * glyphs-eimage.c:
4645         * gifrlib.h:
4646         * getloadavg.c (getloadavg):
4647         * getloadavg.c:
4648         * gdbinit:
4649         * free-hook.c (log_gcpro):
4650         * free-hook.c (check_malloc):
4651         * free-hook.c (check_free):
4652         * free-hook.c (ROUND_UP_TO_PAGE):
4653         * free-hook.c:
4654         * frame.h (struct frame):
4655         * frame.h:
4656         * frame.c (change_frame_size_1):
4657         * frame.c (allocate_frame_core):
4658         * frame.c:
4659         * frame-x.c (x_focus_on_frame):
4660         * frame-x.c (x_init_frame_2):
4661         * frame-x.c (x_popup_frame):
4662         * frame-x.c (xemacs_XtPopup):
4663         * frame-x.c:
4664         * frame-x.c (Foffix_start_drag_internal):
4665         * frame-x.c (x_cde_destroy_callback):
4666         * frame-x.c (x_wm_hack_wm_protocols):
4667         * frame-tty.c (tty_frame_visible_p):
4668         * frame-msw.c (mswindows_make_frame_invisible):
4669         * frame-msw.c (mswindows_after_init_frame):
4670         * frame-msw.c (mswindows_init_frame_1):
4671         * fns.c (syms_of_fns):
4672         * fns.c (Fbase64_decode_string):
4673         * fns.c (Fnconc):
4674         * fns.c (Ffillarray):
4675         * fns.c (Fobject_plist):
4676         * fns.c (Fget):
4677         * fns.c (Fcanonicalize_lax_plist):
4678         * fns.c (Fcanonicalize_plist):
4679         * fns.c (Fplist_remprop):
4680         * fns.c (Fplist_get):
4681         * fns.c (advance_plist_pointers):
4682         * fns.c (internal_plist_put):
4683         * fns.c (Fnreverse):
4684         * fns.c (Fremassq):
4685         * fns.c (Felt):
4686         * fns.c (Fsubstring):
4687         * fns.c (Fbvconcat):
4688         * fns.c (Flength):
4689         * fns.c (length_with_bytecode_hack):
4690         * fns.c (print_bit_vector):
4691         * fns.c:
4692         * floatfns.c (Ffloor):
4693         * floatfns.c:
4694         * floatfns.c (in_float_error):
4695         * fileio.c (Ffile_modes):
4696         * fileio.c (Fexpand_file_name):
4697         * fileio.c (Fmake_temp_name):
4698         * fileio.c (Ffile_name_nondirectory):
4699         * fileio.c (Ffile_name_directory):
4700         * file-coding.h:
4701         * file-coding.c (vars_of_mule_coding):
4702         * file-coding.c (convert_to_external_format):
4703         * file-coding.c (encoding_marker):
4704         * file-coding.c (decoding_marker):
4705         * file-coding.c (Fcopy_coding_system):
4706         * file-coding.c (Fmake_coding_system):
4707         * file-coding.c (struct coding_system_list_closure):
4708         * file-coding.c (Ffind_coding_system):
4709         * file-coding.c (symbol_to_eol_type):
4710         * file-coding.c:
4711         * faces.h (struct face_cachel):
4712         * faces.c (vars_of_faces):
4713         * faces.c (face_property_was_changed):
4714         * faces.c (mark_face_cachels):
4715         * faces.c (temporary_faces_list):
4716         * faces.c (struct face_list_closure):
4717         * faces.c:
4718         * extents.h (struct extent):
4719         * extents.c (vars_of_extents):
4720         * extents.c (struct copy_string_extents_1_arg):
4721         * extents.c (add_string_extents_mapper):
4722         * extents.c (Fextent_property):
4723         * extents.c (Fset_extent_property):
4724         * extents.c (symbol_to_glyph_layout):
4725         * extents.c (properties_equal):
4726         * extents.c (print_extent):
4727         * extents.c (print_extent_1):
4728         * extents.c (extent_in_region_p):
4729         * extents.c (gap_array_make_gap):
4730         * extents.c:
4731         * events.h (struct Lisp_Event):
4732         * events.h:
4733         * events.c (Fevent_properties):
4734         * events.c (format_event_object):
4735         * events.c (Fmake_event):
4736         * events.c (event_equal):
4737         * events.c (print_event):
4738         * events.c (mark_event):
4739         * event-stream.c ((read-char)
4740         * event-stream.c (vars_of_event_stream):
4741         * event-stream.c (syms_of_event_stream):
4742         * event-stream.c (Fset_recent_keys_ring_size):
4743         * event-stream.c (Fsit_for):
4744         * event-stream.c (Fnext_event):
4745         * event-stream.c (execute_help_form):
4746         * event-stream.c (maybe_kbd_translate):
4747         * event-stream.c:
4748         * event-msw.c (vars_of_event_mswindows):
4749         * event-msw.c (mswindows_wnd_proc):
4750         * event-msw.c (mswindows_need_event):
4751         * event-msw.c (mswindows_drain_windows_queue):
4752         * event-msw.c (mswindows_pump_outstanding_events):
4753         * event-msw.c:
4754         * event-msw.c (slurp_thread):
4755         * event-msw.c (struct ntpipe_slurp_stream):
4756         * event-msw.c (HANDLE_TO_USID):
4757         * event-Xt.c (emacs_Xt_handle_magic_event):
4758         * event-Xt.c (x_event_to_emacs_event):
4759         * event-Xt.c (x_reset_modifier_mapping):
4760         * event-Xt.c (x_reset_key_mapping):
4761         * event-Xt.c:
4762         * eval.c (syms_of_eval):
4763         * eval.c (warn_when_safe):
4764         * eval.c (warn_when_safe_lispobj):
4765         * eval.c (Fbacktrace_frame):
4766         * eval.c (Fbacktrace):
4767         * eval.c (top_level_set):
4768         * eval.c (unbind_to_hairy):
4769         * eval.c (specbind_magic):
4770         * eval.c (specbind_unwind_wasnt_local):
4771         * eval.c (call2_trapping_errors):
4772         * eval.c (call1_trapping_errors):
4773         * eval.c (catch_them_squirmers_call2):
4774         * eval.c (call0_trapping_errors):
4775         * eval.c (run_hook_trapping_errors):
4776         * eval.c (catch_them_squirmers_eval_in_buffer):
4777         * eval.c (call4_in_buffer):
4778         * eval.c (call3_in_buffer):
4779         * eval.c (call2_in_buffer):
4780         * eval.c (call1_in_buffer):
4781         * eval.c (call0_in_buffer):
4782         * eval.c (run_hook):
4783         * eval.c (run_hook_with_args_in_buffer):
4784         * eval.c (Fapply):
4785         * eval.c (Feval):
4786         * eval.c (do_autoload):
4787         * eval.c (un_autoload):
4788         * eval.c (Fautoload):
4789         * eval.c (Finteractive_p):
4790         * eval.c (Fcommand_execute):
4791         * eval.c (signal_quit):
4792         * eval.c (call_with_suspended_errors):
4793         * eval.c (signal_error):
4794         * eval.c (return_from_signal):
4795         * eval.c (Fcall_with_condition_handler):
4796         * eval.c (run_condition_case_handlers):
4797         * eval.c (condition_case_1):
4798         * eval.c (Funwind_protect):
4799         * eval.c (unwind_to_catch):
4800         * eval.c (internal_catch):
4801         * eval.c (Fmacroexpand_internal):
4802         * eval.c (Fuser_variable_p):
4803         * eval.c (Fdefconst):
4804         * eval.c (Fdefvar):
4805         * eval.c (Ffunction):
4806         * eval.c (signal_call_debugger):
4807         * eval.c (call_debugger):
4808         * eval.c:
4809         * emacs.c (main):
4810         * emacs.c (sort_args):
4811         * emacs.c (main_1):
4812         * elhash.h:
4813         * elhash.c:
4814         * editfns.c (Fencode_time):
4815         * editfns.c (Fdecode_time):
4816         * editfns.c (Fuser_full_name):
4817         * editfns.c:
4818         * editfns.c (save_excursion_restore):
4819         * ecrt0.c:
4820         * dynarr.c:
4821         * doprnt.c (emacs_doprnt_1):
4822         * doc.c (verify_doc_mapper):
4823         * doc.c (Fsnarf_documentation):
4824         * doc.c (Fdocumentation):
4825         * dll.c:
4826         * dired.c (user_name_completion):
4827         * dired.c (Fdirectory_files):
4828         * dialog-x.c:
4829         * dialog-msw.c:
4830         * dgif_lib.c (FreeSavedImages):
4831         * dgif_lib.c (DGifGetImageDesc):
4832         * device.h:
4833         * device.h (struct device):
4834         * device.c (Fselect_device):
4835         * device.c (allocate_device):
4836         * device.c:
4837         * device-x.c (Fx_keysym_on_keyboard_p):
4838         * device-x.c (Fx_valid_keysym_name_p):
4839         * device-x.c (x_IO_error_handler):
4840         * device-x.c (x_delete_device):
4841         * device-x.c (x_finish_init_device):
4842         * device-x.c (x_init_device):
4843         * device-x.c:
4844         * device-msw.c (mswindows_init_device):
4845         * dbxrc:
4846         * database.c (vars_of_database):
4847         * database.c (Fput_database):
4848         * database.c (Fopen_database):
4849         * database.c (berkdb_remove):
4850         * database.c (berkdb_put):
4851         * database.c (Fdatabasep):
4852         * database.c (print_database):
4853         * database.c:
4854         * data.c (vars_of_data):
4855         * data.c (syms_of_data):
4856         * data.c (init_errors_once_early):
4857         * data.c (prune_weak_lists):
4858         * data.c (finish_marking_weak_lists):
4859         * data.c (print_weak_list):
4860         * data.c (Fmod):
4861         * data.c (Fstring_to_number):
4862         * data.c (Fnumber_to_string):
4863         * data.c (Findirect_function):
4864         * data.c (Fsetcdr):
4865         * data.c (Ffloatp):
4866         * data.c (Fsubr_interactive):
4867         * data.c (Farrayp):
4868         * data.c (Fkeywordp):
4869         * data.c (Fnull):
4870         * data.c:
4871         * console.h (CONSOLE_NAME):
4872         * console.h:
4873         * console.c (vars_of_console):
4874         * console.c (Fselect_console):
4875         * console.c:
4876         * console-x.h (DEVICE_X_COLORMAP):
4877         * console-x.h (struct x_device):
4878         * console-x.c (x_device_to_console_connection):
4879         * console-tty.h (CONSOLE_TTY_FINAL_CURSOR_Y):
4880         * console-tty.c (tty_init_console):
4881         * console-tty.c:
4882         * console-msw.h (struct mswindows_frame):
4883         * conslots.h:
4884         * config.h.in:
4885         * cmds.c (internal_self_insert):
4886         * cmds.c (Fforward_line):
4887         * cmds.c (Fforward_char):
4888         * cmds.c:
4889         * cmdloop.c:
4890         * chartab.c (mark_char_table_entry):
4891         * chartab.c:
4892         * casefiddle.c (casify_word):
4893         * callproc.c (child_setup):
4894         * callproc.c (Fcall_process_internal):
4895         * callproc.c:
4896         * callint.c (Fcall_interactively):
4897         * bytecode.h:
4898         * bytecode.c (execute_rare_opcode):
4899         * bytecode.c (execute_optimized_program):
4900         * bytecode.c:
4901         * bufslots.h:
4902         * buffer.h (BUFFER_REALLOC):
4903         * buffer.h (GET_CHARPTR_INT_DATA_ALLOCA):
4904         * buffer.h (GET_CHARPTR_EXT_DATA_ALLOCA):
4905         * buffer.h:
4906         * buffer.h (MAP_INDIRECT_BUFFERS):
4907         * buffer.h (CHECK_LIVE_BUFFER):
4908         * buffer.c (init_initial_directory):
4909         * buffer.c (complex_vars_of_buffer):
4910         * buffer.c (vars_of_buffer):
4911         * buffer.c (finish_init_buffer):
4912         * buffer.c (Fget_file_buffer):
4913         * buffer.c (Fbuffer_list):
4914         * buffer.c (mark_buffer):
4915         * balloon_help.c (balloon_help_move_to_pointer):
4916         * balloon_help.c (show_help):
4917         * balloon_help.c:
4918         * backtrace.h:
4919         * alloc.c (garbage_collect_1):
4920         * alloc.c (sweep_strings):
4921         * alloc.c (sweep_compiled_functions):
4922         * alloc.c (sweep_bit_vectors_1):
4923         * alloc.c (sweep_vectors_1):
4924         * alloc.c (sweep_lcrecords_1):
4925         * alloc.c (tick_lcrecord_stats):
4926         * alloc.c (pure_string_sizeof):
4927         * alloc.c (mark_conses_in_list):
4928         * alloc.c (mark_object):
4929         * alloc.c (report_pure_usage):
4930         * alloc.c (make_pure_float):
4931         * alloc.c (make_pure_string):
4932         * alloc.c (free_managed_lcrecord):
4933         * alloc.c (mark_string):
4934         * alloc.c (noseeum_make_marker):
4935         * alloc.c (allocate_event):
4936         * alloc.c (Fbit_vector):
4937         * alloc.c (Fvector):
4938         * alloc.c (make_float):
4939         * alloc.c (Fmake_list):
4940         * alloc.c (Flist):
4941         * alloc.c (FREE_FIXED_TYPE_WHEN_NOT_IN_GC):
4942         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST):
4943         * alloc.c (DECLARE_FIXED_TYPE_ALLOC):
4944         * alloc.c (dbg_constants):
4945         * alloc.c (gc_record_type_p):
4946         * alloc.c (free_lcrecord):
4947         * alloc.c (xmalloc):
4948         * alloc.c (NOSEEUM_INCREMENT_CONS_COUNTER):
4949         * abbrev.c:
4950         * Makefile.in.in (mostlyclean):
4951         * Makefile.in.in (external_client_xlib_objs_nonshared):
4952         * Makefile.in.in (temacs_link_args):
4953         * Makefile.in.in (release):
4954         * Makefile.in.in (dnd_objs):
4955         * Makefile.in.in (objs):
4956         * Makefile.in.in (PROGNAME):
4957         * EmacsShell.c: cast strings to (XtPointer)
4958         * EmacsFrame.c: cast strings to (XtPointer)
4959         - mega patch
4960         - rewrite basic lisp functions for speed
4961         - rewrite bytecode interpreter for speed
4962         - rewrite list looping constructs for speed and safety using
4963           tortoise/hare.
4964         - use size_t where appropriate.
4965         - new hashtable implementation
4966         - cleanup implementation of opaques
4967         - opaques can now be purecopy'ed
4968         - move some cl functionality into C for speed.
4969         - remove last remaining VMS support
4970         - spelling fixes
4971         - improve gdb/dbx debugger support
4972         - move pure.c back into alloc.c for performance
4973         - enable report_pure_usage() if --memory-usage-stats
4974         - remove remnants of Energize support (EMACS_BTL, cadillac...)
4975         - don't use symbols with leading `_' or embedded `__'
4976         - globally cleanup duplicated semicolons `;;'
4977         - I give in on %p vs %lx - we use printf("%lx",(long) p)
4978           globally.
4979         - globally replace O_NDELAY with O_NONBLOCK.
4980         - globally replace CDISABLE with _POSIX_VDISABLE.
4981         - use O_RDONLY and O_RDWR instead of magic `0' and `2'.
4982         - define (and maybe use!) STDERR_FILENO and friends.
4983         - add support for macros defined in C
4984         - `when', `unless', `not' and `defalias' now defined in C,
4985           so that they are universally available.
4986         - rename defvar_mumble to defvar_magic
4987         - rename RETURN__ to RETURN_SANS_WARNINGS
4988         - use consistent style of initial caps in error messages
4989         - implement last, butlast, nbutlast, copy-list in C.
4990         - provide typedefs for all struct Lisp_foo types
4991         - Lisp_Objects must be initialized to Qnil rather than 0.
4992         - make sure XEmacs runs (slowly) with always_gc == 1;
4993         - fast and safe LOOP_* macros
4994         - change calls to XSETOBJ to XSETFOO
4995         - replace calls to XSETINT by make_int()
4996         - plug up memory leaks
4997         - use style markobj (foo), not silly ((markobj) (foo))
4998         - use XFLOAT_DATA (obj) instead of float_data (XFLOAT (obj))
4999
5000 1998-12-02  P. E. Jareth Hein  <jareth@camelot.co.jp>
5001
5002         * unexec.c: Changed a #ifndef statement to fix XEmacs on BSDI 3.0
5003
5004 1998-11-28  SL Baur  <steve@altair.xemacs.org>
5005
5006         * XEmacs 21.2-beta4 is released.
5007
5008 1998-11-27  SL Baur  <steve@altair.xemacs.org>
5009
5010         * mule-charset.c (complex_vars_of_mule_charset): Fix graphic
5011         property in control-1 charset.
5012         From Julian Bradfield <jcb@daimi.au.dk>
5013
5014 1998-11-26  Jan Vroonhof  <vroonhof@math.ethz.ch>
5015
5016         * gui-x.c (button_item_to_widget_value): Ignore :key-sequence
5017         keyword.
5018         Add stub for :label.
5019
5020         * gui.c (gui_item_add_keyval_pair): ditto.
5021
5022         * menubar-x.c (menu_item_descriptor_to_widget_value_1): Ignore
5023         :key-sequence keyword.
5024         Add stub for:label.
5025         Support :active for submenus like the Windows code and FSF Emacs.
5026
5027 1998-11-27  Hrvoje Niksic  <hniksic@srce.hr>
5028
5029         * dired.c (make_directory_hash_table): make_string() is OK because
5030         readdir() Mule-encapsulates.
5031
5032 1998-11-26  Hrvoje Niksic  <hniksic@srce.hr>
5033
5034         * fns.c (Fbase64_encode_string): Fix docstring.
5035         (Fbase64_decode_string): Ditto.
5036
5037 1998-11-26  Hrvoje Niksic  <hniksic@srce.hr>
5038
5039         * editfns.c (Ftranslate_region): Use
5040         convert_bufbyte_string_into_emchar_string().
5041
5042 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5043
5044         * editfns.c (Ftranslate_region): Accept vectors and char-tables as
5045         well as strings.
5046         (Ftranslate_region): Turn table into an array of Emchars for
5047         larger regions.
5048
5049 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5050
5051         * chartab.c (Freset_char_table): Fix wrong placement of #endif.
5052
5053 1998-11-24  Hrvoje Niksic  <hniksic@srce.hr>
5054
5055         * chartab.c (Freset_char_table): Don't blindly fill chartables of
5056         type `char' with nils.
5057
5058         * chartab.c (canonicalize_char_table_value): Coerce ints to chars
5059         for tables of type `char'.
5060
5061 1998-11-26  Didier Verna  <verna@inf.enst.fr>
5062
5063         * input-method-xlib.c (Initialize_Locale): don't call
5064         XtSetLanguageProc. We've done the whole work here.
5065         * input-method-xfs.c (Initialize_Locale): ditto.
5066         * input-method-motif.c (Initialize_Locale): ditto.
5067
5068 1998-11-26  Didier Verna  <verna@inf.enst.fr>
5069
5070         * process-unix.c (unix_create_process): handle properly
5071         Vfile_name_coding_system for converting the program and directory
5072         names.
5073
5074 1998-11-27  SL Baur  <steve@altair.xemacs.org>
5075
5076         * m/arm.h: New file.
5077         From James LewisMoss <dres@ioa.com>
5078
5079 1998-11-27  Takeshi Hagiwara  <hagiwara@ie.niigata-u.ac.jp>
5080
5081         * m/mips-nec.h:
5082         Fix the realpath() problem of UnixWare2.1.3.
5083         Patches for NEC's sysv4.2 machine.
5084
5085 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5086
5087         * dired.c (Fdirectory_files): Remove redundant code.
5088
5089 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5090
5091         * fns.c (free_malloced_ptr): New function.
5092         (XMALLOC_OR_ALLOCA): New macro.
5093         (XMALLOC_UNBIND): Ditto.
5094         (Fbase64_encode_region): Use malloc() for large blocks; arrange it
5095         to be freed in case of non-local exit.
5096         (Fbase64_encode_string): Ditto.
5097         (Fbase64_decode_region): Ditto.
5098         (Fbase64_decode_string): Ditto.
5099         (STORE_BYTE): New macro.
5100         (base64_decode_1): Use it.
5101
5102 1998-11-25  Hrvoje Niksic  <hniksic@srce.hr>
5103
5104         * fns.c (base64_value_to_char): Base64 stuff.
5105
5106 1998-11-24  Hrvoje Niksic  <hniksic@srce.hr>
5107
5108         * editfns.c (Fbuffer_substring): New function.
5109
5110         * lisp.h: Declare make_string_from_buffer_no_extents().
5111
5112         * insdel.c (make_string_from_buffer_1): New function.
5113         (make_string_from_buffer_no_extents): Ditto.
5114
5115 1998-11-15  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
5116
5117         * linuxplay.c: Including <fcntl.h> instead of <sys/fcntl.h> makes
5118         sound work on AIX with OSS installed.  Linux should still work.
5119
5120 1998-11-03  Andy Piper  <andyp@parallax.co.uk>
5121
5122         * config.h.in: name change for cygwin/version.h
5123
5124         * configure.in: check for cygwin/version.h now.
5125
5126         * cygwin32.h: track CYGWIN_DLL_VERSION_MAJOR ->
5127         CYGWIN_VERSION_DLL_MAJOR name change in cygwin b20.
5128         move cygwin32/version.h to cygwin/version.h
5129
5130 1998-11-03  Olivier Galibert  <galibert@pobox.com>
5131
5132         * lisp.h  (struct  Lisp_Bit_Vector): Fix declaration of  bits from
5133         int to long.
5134
5135 1998-10-22  Andy Piper  <andyp@parallax.co.uk>
5136
5137         * cygwin32.h: track CYGWIN_DLL_VERSION_MAJOR ->
5138         CYGWIN_VERSION_DLL_MAJOR name change in cygwin b20.
5139         enable BROKEN_SIGIO under b20 to make QUIT work.
5140
5141 1998-10-22  Andy Piper  <andyp@parallax.co.uk>
5142
5143         * frame-msw.c (mswindows_size_frame_internal): force frame sizing
5144         to fit within the constraints of the screen size. I.e. make the
5145         frame small enough to fit and move it if some of it will be
5146         off-screen.
5147
5148 1998-10-19  Greg Klanderman  <greg@alphatech.com>
5149
5150         * dired.c: conditionalize inclusion of user-name-completion
5151         primitives on non-Windows NT.  The needed functions don't exist on NT.
5152
5153 1998-11-24  SL Baur  <steve@altair.xemacs.org>
5154
5155         * gifrlib.h: Clean up types for 64 bit compile.
5156         * dgif_lib.c (DGifInitRead): Ditto.
5157         (MakeSavedImage): Ditto.
5158         * emacs.c (decode_path): Ditto.
5159         From Steve Carney <carney@pa.dec.com>
5160
5161 1998-10-16  William M. Perry  <wmperry@aventail.com>
5162
5163         * glyphs-msw.c (bitmap_table): Fixed typo in builtin bitmaps
5164           (cehckboxes instead of checkboxes).
5165
5166 1998-10-15  SL Baur  <steve@altair.xemacs.org>
5167
5168         * XEmacs 21.2-beta3 is released.
5169
5170 1998-10-13  Raymond Toy  <toy@rtp.ericsson.se>
5171
5172         * runemacs.c (WinMain): If the basename is "rungnuclient.exe", run
5173         gnuclient.  Otherwise, we run xemacs as we always did.  This gets
5174         rid of the annoying DOS window when running gnuclient.
5175
5176 1998-10-13  Andy Piper  <andyp@parallax.co.uk>
5177
5178         * dragdrop.c (vars_of_dragdrop): rename HAVE_MSWINDOWS ->
5179         HAVE_MS_WINDOWS typo.
5180
5181 1998-10-13  SL Baur  <steve@altair.xemacs.org>
5182
5183         * process-unix.c (unix_send_process): Set closed flag on writable
5184         pipe after SIGPIPE is received and before we call deactivate_process.
5185
5186 1998-10-03  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5187
5188         * window.c (Fset_window_start): respect narrowing when
5189         checking wheter start is at the beginning of a line.
5190         (Fset_window_buffer): Ditto
5191         Fixes repeatable crash in VM.
5192
5193 1998-10-09  SL Baur  <steve@altair.xemacs.org>
5194
5195         * window.c (specifier_vars_of_window): Set default vertical
5196         divider width to 1 on ttys.
5197
5198 1998-10-08  Martin Buchholz  <martin@xemacs.org>
5199
5200         * alloc.c:
5201         * unexec.c:
5202         * malloc.c:
5203         Add <stddef.h> to get ptrdiff_t declaration
5204
5205 1998-10-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5206
5207         * scrollbar-msw.c: Use the same vertical scrollbar drag hack as
5208           is used for Motif or Lucid scrollbars under X.
5209
5210 1998-10-08  Pierre Wendling  <pw@ebc.vbe.dec.com>
5211
5212         * m/alpha.h (UNEXEC): quoted to avoid bad expansion when running
5213         `configure'
5214
5215 1998-10-06  Takeshi Hagiwara  <hagiwara@ie.niigata-u.ac.jp>
5216
5217         * frame-x.c (x_delete_frame): Fix an argument of XtDestroyWidget.
5218
5219 1998-10-05  Andy Piper  <andyp@parallax.co.uk>
5220
5221         * s/cygwin32.h: more cygwin b20 reorganisation.
5222
5223 1998-10-01  Raymond Toy  <toy@rtp.ericsson.se>
5224
5225         * nas.c: Added necessary support functions to be able to handle
5226         WAVE files in memory, just like the support for SND files in
5227         memory.
5228
5229 1998-09-30  SL Baur  <steve@altair.xemacs.org>
5230
5231         * callproc.c (child_setup): Fix spelling typo.
5232
5233 1998-09-29  SL Baur  <steve@altair.xemacs.org>
5234
5235         * XEmacs 21.2-beta2 is released.
5236
5237 1998-09-27  P. E. Jareth Hein  <jareth@camelot.co.jp>
5238
5239         * regex.c (re_match_2_internal): Add in code to reset lowest_active_reg
5240         to prevent memory corruption in the case of jumping out of a series of
5241         nested match patterns. This is a rather brute force approach, though.
5242
5243 1998-09-02  Andy Piper  <andyp@parallax.co.uk>
5244
5245         * config.h.in: ditto.
5246
5247         * s/cygwin32.h: rearrange declarations to cope with cygwin
5248         b20. Include cygwin32/version.h if it exists.
5249
5250 1998-09-20  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5251
5252         * device-msw.c (mswindows_init_device): Call new
5253           mswindows_enumerate_fonts() function in objects-msw.c instead
5254           of font_enum_callback_1() to enumerate fonts.
5255
5256           font_enum_callback_1() and _2() moved to objects-msw.c.
5257
5258         * faces.c (complex_vars_of_faces): Make the mswindows default
5259           face font fully specified and provide some fallbacks.
5260
5261         * objects-msw.c: font_enum_callback_1() and _2() moved here
5262           from objects-msw.c. Obtain the enumerated font's character
5263           sets by table lookup instead of using the locale-specific
5264           string provided by Windows.
5265
5266           New public non-method mswindows_enumerate_fonts() that fills
5267           in the supplied mswindows device's font list.
5268
5269           mswindows_initialize_font_instance: Use the supplied name
5270           variable instead of f->name when signalling errors. Match font
5271           weights and character sets using lookup tables which handle
5272           spaces instead of by frobbing.
5273
5274 1998-09-20  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5275
5276         * process-nt.c: Define an arbitrary limit, FRAGMENT_CODE_SIZE,
5277           on the size of code fragments passed to run_in_other_process.
5278
5279           run_in_other_process(): Use FRAGMENT_CODE_SIZE to determine
5280           the amount of memory to allocate in the other process.
5281
5282           Removed sigkill_code_end(), sigint_code_end() and
5283           sig_enable_code_end() since they are now redundant.
5284
5285           send_signal() and enable_child_signals(): Don't try to work
5286           out the end of the code fragments passed to
5287           run_in_other_process()
5288
5289 1998-09-10  Kazuyuki IENAGA  <ienaga@jsys.co.jp>
5290
5291         * src/s/freebsd.h: Added __ELF__ and compiler/liker flags for
5292         FreeBSD-current.
5293
5294         * src/unexelf.c: Partially synched with FSF's 20.3.
5295
5296 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
5297
5298         * insdel.c (signal_after_change): Map across indirect buffers
5299         here, and not in the upper-level functions.
5300         (signal_first_change): Don't check for Armageddon.
5301         (signal_before_change): Map across indirect buffers here.
5302         (prepare_to_modify_buffer): ...and here.
5303
5304 1998-09-09  Hrvoje Niksic  <hniksic@srce.hr>
5305
5306         * insdel.c (signal_after_change): Add return value.
5307         (buffer_insert_string_1): Use it.
5308         (buffer_delete_range): Ditto.
5309         (buffer_replace_char): Ditto.
5310         (cancel_multiple_change): Map the indirect buffers.
5311
5312 1998-09-06  Hrvoje Niksic  <hniksic@srce.hr>
5313
5314         * insdel.c (init_buffer_text): Remove INDIRECT_P parameter.
5315         (uninit_buffer_text): Ditto.
5316
5317         * buffer.c (Fmake_indirect_buffer): Implement stricter
5318         error-checking.
5319
5320 1998-09-04  Hrvoje Niksic  <hniksic@srce.hr>
5321
5322         * insdel.c (change_function_restore): Reverse order of
5323         function-call and assignment.
5324         (first_change_hook_restore): Ditto.
5325
5326         * extents.c (mark_extent_auxiliary): Mark them.
5327         (Fset_extent_property): Set them.
5328         (Fextent_property): Get them.
5329         (Fextent_properties): Ditto.
5330         (vars_of_extents): Set their default.
5331
5332         * extents.h (struct extent_auxiliary): Add before_change_functions
5333         and after_change_functions.
5334
5335         * insdel.c (signal_before_change): Use it.
5336         (signal_after_change): Ditto.
5337
5338         * extents.c (report_extent_modification): New function.
5339
5340         * insdel.c (signal_before_change): Don't check for Armageddon.
5341         (signal_after_change): Ditto.
5342
5343 1998-09-11  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
5344
5345         * redisplay.c (redisplay_window): make sure a new starting point
5346         is chosen if it somehow got moved from the beginning of the line
5347         -- this can happen because Fwiden was called recently.
5348
5349         * window.c (Fset_window_start): set start_at_line_beg correctly
5350         (Fset_window_buffer): Ditto
5351
5352 1998-09-06  Hrvoje Niksic  <hniksic@srce.hr>
5353
5354         * insdel.c (init_buffer_text): Remove INDIRECT_P parameter.
5355         (uninit_buffer_text): Ditto.
5356
5357         * buffer.c (Fmake_indirect_buffer): Implement stricter
5358         error-checking.
5359
5360 1998-05-14  Jan Vroonhof  <vroonhof@math.ethz.ch>
5361
5362         * emacs.c (main_1): Removed references to *vars_of_filelock.
5363
5364         * lisp.h: Added Fsystem_name.
5365
5366         * filelock.c: Replaced by version from FSF 20.2. Now implements
5367         locking by using symlinks which is NFS safe. However keep the
5368         GCPRO's in lock_file and the calls to callx_in_buffer like our old
5369         version (and of course use ansi C, acessor macros, etc).
5370
5371 1998-09-06  Jan Vroonhof  <vroonhof@math.ethz.ch>
5372
5373         * process-unix.c (unix_create_process): Reset SIGHUP handler to
5374         SIG_DFL. We now try to conserve any inherted SIG_IGN settings
5375         in init_signals_very_early. However these should not be passed
5376         on to children attached to the new pty.
5377
5378 1998-08-28  Andy Piper  <andyp@parallax.co.uk>
5379
5380         * glyphs-eimage.c (png_instantiate_unwind): clean up eimage after use.
5381
5382 1998-09-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5383
5384         * fileio.c (file-name-directory, file_name_as_directory):
5385           Don't call CORRECT_DIR_SEPS, even when #defined WINDOWSNT.
5386
5387 1998-09-02  Andy Piper  <andyp@parallax.co.uk>
5388
5389         * emacs.c (main_1): init_ralloc() if initialised and we have REL_ALLOC
5390
5391         * ralloc.c: uncomment __morecore.
5392
5393 1998-09-92  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5394
5395         * event-msw.c(winsock_writer): Supply a dummy 4th argument to
5396           WriteFile() to fix a winsock 1.x bug on Win95.
5397
5398 1998-08-28  Hrvoje Niksic  <hniksic@srce.hr>
5399
5400         * event-Xt.c (emacs_Xt_mapping_action): Check for device being
5401         deleted.
5402         (x_event_to_emacs_event): Ditto.
5403         (emacs_Xt_handle_focus_event): Ditto.
5404         (emacs_Xt_handle_magic_event): Ditto.
5405
5406         * console-x.h (struct x_device): New flag being_deleted.
5407         (DEVICE_X_BEING_DELETED): New macro.
5408
5409         * device-x.c (x_IO_error_handler): Throw to top-level instead of
5410         returning.  Before doing that, set the being_deleted flag on the
5411         device.
5412
5413 1998-08-27  Hrvoje Niksic  <hniksic@srce.hr>
5414
5415         * device-x.c (x-seppuku-on-epipe): Removed.
5416
5417 1998-08-26  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
5418
5419         * frame-x.c (x_delete_frame): Flush the X output buffer after
5420         calling XtDestroyWidget to ensure that the windows are really
5421         killed right now.
5422
5423 1998-08-26  Hrvoje Niksic  <hniksic@srce.hr>
5424
5425         * menubar-x.c (my_run_hook): New unused function.
5426         (pre_activate_callback): Use run_hook for Qactivate_menubar_hook,
5427         since we ignore the results of the contained functions anyway.
5428
5429 1998-08-26  P. E. Jareth Hein  <jareth@camelot.co.jp>
5430
5431         * glyphs-eimage.c (gif_instantiate): Fix a crash in handling
5432         interlaced GIF files that are smaller than 4 lines high...
5433
5434 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
5435
5436         * buffer.c (map_over_sharing_buffers): Deleted.
5437
5438         * insdel.c (MAP_INDIRECT_BUFFERS): Move to buffer.h.
5439
5440         * buffer.c (Fkill_buffer): Keep indirect_children updated while
5441         killing them.
5442
5443 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
5444
5445         * insdel.c (buffer_insert_string_1): Advance the point bytind in
5446         all the buffers.
5447         (buffer_delete_range): Ditto.
5448
5449         * marker.c (init_buffer_markers): Set point-marker to the value of
5450         point in an indirect buffer.
5451
5452 1998-08-30  Hrvoje Niksic  <hniksic@srce.hr>
5453
5454         * undo.c (undo_prelude): Test last-undo-buffer against base
5455         buffer.
5456
5457         * insdel.c (MAP_INDIRECT_BUFFERS): Use it.
5458
5459         * buffer.h (BUFFER_BASE_BUFFER): New macro.
5460
5461 1998-08-30  Hrvoje Niksic  <hniksic@srce.hr>
5462
5463         * insdel.c (init_buffer_text): Initialize it here.
5464
5465         * line-number.c: Address line_number_cache through buffer->text.
5466
5467         * buffer.c (mark_buffer): Mark line number cache.
5468
5469         * bufslots.h (line_number_cache): Move to struct buffer_text.
5470
5471         * insdel.c (buffer_insert_string_1): Propagate signals and changes
5472         across the children buffers.
5473         (buffer_delete_range): Ditto.
5474         (buffer_replace_char): Ditto.
5475         (gap_left): Ditto.
5476         (gap_right): Ditto.
5477
5478         * insdel.c (MAP_INDIRECT_BUFFERS): New macro.
5479
5480         * buffer.c (Fmake_indirect_buffer): Uncomment.
5481
5482 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
5483
5484         * macros.c (Fend_kbd_macro): Remove trailing period from error
5485         message.
5486         (Fexecute_kbd_macro): Ditto.
5487
5488 1998-08-21  Greg Klanderman  <greg@alphatech.com>
5489
5490         * dired.c (Fuser_name_completion): remove optional 2nd argument.
5491         (Fuser_name_completion_1): new function to return uniqueness
5492         indication in addition to the user name completion.
5493         (user_name_completion): change type of `uniq' argument.
5494
5495 1998-08-19  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
5496
5497         * lread.c (vars_of_lread): Removed `source-directory' variable.
5498
5499 1998-08-22  Hrvoje Niksic  <hniksic@srce.hr>
5500
5501         * fileio.c (Ffile_readable_p): Apply the DOS/Windows logic to
5502         Cygwin.
5503
5504 1998-08-19  SL Baur  <steve@altair.xemacs.org>
5505
5506         * dired.c (vars_of_dired): Fix misapplied patch.
5507
5508 1998-08-16  Martin Buchholz  <martin@xemacs.org>
5509
5510         * fns.c (Fremrassq, remrassq_no_quit):
5511         A XCAR that should have been an XCDR turned Fremrassq into Fremassq
5512
5513 1998-07-17  Didier Verna  <verna@inf.enst.fr>
5514
5515         * redisplay-x.c (x_get_gc): returns a GC with a FillStipple fill
5516         style as foreground GC for faces that have the `dim' property.
5517         (x_output_string): when the `dim' face property is set,
5518         ensure the gray pixmap has been created, and get a proper
5519         foreground GC to draw the text.
5520
5521 1998-08-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5522
5523         * event-msw.c (mswindows_wnd_proc): Workaround for a Win95 bug:
5524           Manually track the state of the left and right Ctrl and Alt
5525           modifiers.
5526
5527 1998-08-07 Matt Stupple <matts@tibco.com>
5528
5529         * ntproc.c: don't wait on char_consumed at thread entry.
5530         Additionally, to get the 'process' marked as finished, ensure
5531         that the CHILD_ACTIVE macro returns false, so before exiting
5532         close char_avail and set it to NULL, and close other handles
5533         to reduce handle leak problems.
5534
5535 1998-08-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5536
5537         * menubar-msw.c (displayable_menu_item): take account of menu
5538           depth when deciding whether to try to display accelerators.
5539
5540 1998-08-04  Andy Piper  <andyp@parallax.co.uk>
5541
5542         * event-msw.c: use MsgWaitForMultipleObjects if there are no
5543         subprocesses.
5544
5545         * glyphs-msw.c: fix a couple of potential handle leaks.
5546
5547 1998-08-04  P. E. Jareth Hein  <jareth@camelot.co.jp>
5548
5549         * dgif_lib.c gif_io.c gifrlib.h: New files to put GIF
5550           *decoding ONLY* back into the core.
5551         * glyphs-eimage.c: Change referenced header file for GIF
5552           reading to point to the incore version.
5553
5554 1998-07-20  Martin Buchholz  <martin@xemacs.org>
5555
5556         * casefiddle.c (casify_object):
5557         Change algorithm from O(N**2) to O(N).
5558         Code cleanup.
5559         Doc string cleanup.
5560
5561 1998-07-22  Greg Klanderman  <greg@alphatech.com>
5562
5563         * dired.c (file_name_completion_unwind): don't leak the cons.
5564
5565 1998-07-20  Greg Klanderman  <greg@alphatech.com>
5566
5567         * dired.c (Fuser_name_completion): new function.
5568         (Fuser_name_all_completions): new function.
5569         (user_name_completion): new function.
5570         (syms_of_dired): 2 new DEFSUBRs.
5571         (vars_of_dired): initialize user name cache vars.
5572
5573 1998-07-29  P. E. Jareth Hein  <jareth@camelot.co.jp>
5574
5575         * glyphs-eimage.c (png_instantiate): Add proper handling for background
5576         colors taken from the default face.  Also correct a thinko in
5577         transparency (not alpha) handling.
5578
5579 1998-07-23  Martin Buchholz  <martin@xemacs.org>
5580
5581         * s/decosf4-0.h:  Use a perfectly ordinary link.  Nuke BSD crap.
5582         * unexalpha.c: ANSI C-ize.  Clean compiler warnings.
5583         * lread.c (Fload_internal):  Be very careful with printfs of
5584         size_t's
5585         * gui-x.c (menu_name_to_accelerator): tolower wants an `int'
5586         argument.
5587
5588 1998-07-27  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
5589
5590         * callint.c (Fcall_interactively): GCPRO prompt string before
5591         passing it to Fread_key_sequence
5592
5593 1998-07-27  SL Baur  <steve@altair.xemacs.org>
5594
5595         * keymap.c (vars_of_keymap): Initialize Vkey_translation_map and
5596         Vvertical_divider_map.
5597
5598         * mule-canna.c (vars_of_mule_canna): Initialize every symbol to
5599         Qnil or 0, none were initialized prior to this change.
5600
5601         Rename misnamed `V' prefixed integer variables:
5602         Vcanna_empty_info, Vcanna_through_info, Vcanna_underline,
5603         Vcanna_inhibit_hankakukana, Vcanna_henkan_length, Vcanna_henkan_revPos,
5604         Vcanna_henkan_revLen, Vcanna_ichiran_length, Vcanna_ichiran_revPos,
5605         Vcanna_ichiran_revLen.
5606
5607         Rename misnamed `V' prefixed integer variables and initialize
5608         properly in the vars_of routine.
5609         Vcanna_mode_AlphaMode, Vcanna_mode_EmptyMode, Vcanna_mode_KigoMode,
5610         Vcanna_mode_YomiMode, Vcanna_mode_JishuMode, Vcanna_mode_TankouhoMode,
5611         Vcanna_mode_IchiranMode, Vcanna_mode_YesNoMode, Vcanna_mode_OnOffMode,
5612         Vcanna_mode_AdjustBunsetsuMode, Vcanna_mode_ChikujiYomiMode,
5613         Vcanna_mode_ChikujiTanMode, Vcanna_mode_HenkanMode,
5614         Vcanna_mode_HenkanNyuryokuMode, Vcanna_mode_ZenHiraHenkanMode,
5615         Vcanna_mode_HanHiraHenkanMode, Vcanna_mode_ZenKataHenkanMode,
5616         Vcanna_mode_HanKataHenkanMode, Vcanna_mode_HanKataHenkanMode,
5617         Vcanna_mode_ZenAlphaHenkanMode, Vcanna_mode_HanAlphaHenkanMode,
5618         Vcanna_mode_ZenHiraKakuteiMode, Vcanna_mode_HanHiraKakuteiMode,
5619         Vcanna_mode_ZenKataKakuteiMode, Vcanna_mode_HanKataKakuteiMode,
5620         Vcanna_mode_ZenAlphaKakuteiMode, Vcanna_mode_HanAlphaKakuteiMode,
5621         Vcanna_mode_HexMode, Vcanna_mode_BushuMode, Vcanna_mode_ExtendMode,
5622         Vcanna_mode_RussianMode, Vcanna_mode_GreekMode, Vcanna_mode_LineMode,
5623         Vcanna_mode_ChangingServerMode, Vcanna_mode_HenkanMethodMode,
5624         Vcanna_mode_DeleteDicMode, Vcanna_mode_TourokuMode,
5625         Vcanna_mode_TourokuEmptyMode, Vcanna_mode_TourokuHinshiMode,
5626         Vcanna_mode_TourokuDicMode, Vcanna_mode_QuotedInsertMode,
5627         Vcanna_mode_BubunMuhenkanMode, Vcanna_mode_MountDicMode,
5628         Vcanna_fn_SelfInsert, Vcanna_fn_FunctionalInsert,
5629         Vcanna_fn_QuotedInsert, Vcanna_fn_JapaneseMode, Vcanna_fn_AlphaMode,
5630         Vcanna_fn_HenkanNyuryokuMode, Vcanna_fn_Forward, Vcanna_fn_Backward,
5631         Vcanna_fn_Next, Vcanna_fn_Prev, Vcanna_fn_BeginningOfLine,
5632         Vcanna_fn_EndOfLine, Vcanna_fn_DeleteNext, Vcanna_fn_DeletePrevious,
5633         Vcanna_fn_KillToEndOfLine, Vcanna_fn_Henkan, Vcanna_fn_Kakutei,
5634         Vcanna_fn_Extend, Vcanna_fn_Shrink, Vcanna_fn_AdjustBunsetsu,
5635         Vcanna_fn_Quit, Vcanna_fn_ConvertAsHex, Vcanna_fn_ConvertAsBushu,
5636         Vcanna_fn_KouhoIchiran, Vcanna_fn_BubunMuhenkan, Vcanna_fn_Zenkaku,
5637         Vcanna_fn_Hankaku, Vcanna_fn_ExtendMode, Vcanna_fn_ToUpper,
5638         Vcanna_fn_Capitalize, Vcanna_fn_ToLower, Vcanna_fn_Hiragana,
5639         Vcanna_fn_Katakana, Vcanna_fn_Romaji, Vcanna_fn_BaseHiragana,
5640         Vcanna_fn_BaseKatakana, Vcanna_fn_BaseEisu, Vcanna_fn_BaseZenkaku,
5641         Vcanna_fn_BaseHankaku, Vcanna_fn_BaseKana, Vcanna_fn_BaseKakutei,
5642         Vcanna_fn_BaseHenkan, Vcanna_fn_BaseHiraKataToggle,
5643         Vcanna_fn_BaseZenHanToggle, Vcanna_fn_BaseKanaEisuToggle,
5644         Vcanna_fn_BaseKakuteiHenkanToggle, Vcanna_fn_BaseRotateForward,
5645         Vcanna_fn_BaseRotateBackward, Vcanna_fn_Touroku, Vcanna_fn_HexMode,
5646         Vcanna_fn_BushuMode, Vcanna_fn_KigouMode, Vcanna_fn_Mark,
5647         Vcanna_fn_TemporalMode, Vcanna_key_Nfer, Vcanna_key_Xfer,
5648         Vcanna_key_Up, Vcanna_key_Left, Vcanna_key_Right, Vcanna_key_Down,
5649         Vcanna_key_Insert, Vcanna_key_Rollup, Vcanna_key_Rolldown,
5650         Vcanna_key_Home, Vcanna_key_Help, Vcanna_key_KP_Key,
5651         Vcanna_key_Shift_Nfer, Vcanna_key_Shift_Xfer, Vcanna_key_Shift_Up,
5652         Vcanna_key_Shift_Left, Vcanna_key_Shift_Right, Vcanna_key_Shift_Down,
5653         Vcanna_key_Cntrl_Nfer, Vcanna_key_Cntrl_Xfer, Vcanna_key_Cntrl_Up,
5654         Vcanna_key_Cntrl_Left, Vcanna_key_Cntrl_Right, Vcanna_key_Cntrl_Down
5655
5656 1998-07-16  Jan Vroonhof  <vroonhof@math.ethz.ch>
5657
5658         * event-Xt.c (x_to_emacs_keysym): Return nil for modifier keysyms.
5659         (x_event_to_emacs_event): Let x_to_emacs_keysym check for modifier
5660         keys thus no longer considering all keysyms on a key.
5661
5662 1998-07-19  SL Baur  <steve@altair.xemacs.org>
5663
5664         * XEmacs 21.2-beta1 is released.
5665
5666 1998-07-12  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
5667
5668         * eldap.c (Fldap_search_internal): When converting the list of
5669         attributes to search Copy the final 0 from Lisp strings to C
5670         strings.
5671         Check base, not Vldap_default_base as a a string
5672
5673 1998-07-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5674
5675         * nt.c: Remove Vstdio_str; already defined in console-stream.c.
5676
5677         * unexnt.c: Unconditionally define bss_start and bss_size, and
5678           ensure that they don't go in the .bss section.
5679
5680 1998-07-17  Olivier Galibert  <galibert@pobox.com>
5681
5682         * glyphs-x.c (convert_EImage_to_XImage):  Fix previous patch (conv
5683         byte order is dependant  of  the local  byte order).
5684         From Takeshi Hagiwara <hagiwara@ie.niigata-u.ac.jp>
5685
5686 1998-07-18  SL Baur  <steve@altair.xemacs.org>
5687
5688         * glyphs-msw.c (mswindows_resource_normalize): Qresource ->
5689         Qmswindows_resource.
5690         From Jonathan Harris <jhar@tardis.ed.ac.uk>
5691
5692 1998-07-12  SL Baur  <steve@altair.xemacs.org>
5693
5694         * general.c (syms_of_general): Add defsymbol for Qresource.
5695
5696         * glyphs-msw.c (vars_of_glyphs_mswindows): Rename Qresource to
5697         Qmswindows_resource.
5698         (TopLevel): Rename 'resource image format to 'mswindows_resource.
5699         (mswindows_resource_validate): Rename.
5700         (mswindows_resource_normalize): Rename.
5701         (mswindows_resource_possible_dest_types): Rename.
5702         (mswindows_resource_instantiate): Rename.
5703         (image_instantiator_format_create_glyphs_mswindows): Replace
5704         `resource' with `mswindows.resource'.
5705
5706         * XEmacs 21.0-pre5 is released.
5707
5708 1998-07-10  SL Baur  <steve@altair.xemacs.org>
5709
5710         * mule-wnnfns.c (Fwnn_open): Correctly trap on misdefined Wnn
5711         server type in environment.
5712         Use alloca-ed strings instead of tiny fixed size ones.
5713
5714 1998-07-09  SL Baur  <steve@altair.xemacs.org>
5715
5716         * XEmacs 21.0-pre4 is released.
5717
5718 1998-07-01  James N. Potts  <jnpotts@plutonium.net>
5719
5720         * fileio.c: (expand_file_name): under win32: Don't treat names
5721         as UNC names if a drive letter has been specified.  If a drive
5722         has been specified, strip out extra directory-seperators that
5723         reportedly cause problems under Win95.
5724
5725 1998-07-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5726
5727         * windowsnt.h: Define DUMP_SEPARATE_SECTION when building with
5728           MSVC >= 5.0. Put emacs init and zero-init data in a special
5729           section of the executable when this is defined.
5730
5731         * unexnt.c, ntheap.h:
5732           Removed unused find_section() and get_section_size().
5733
5734         * unexnt.c:
5735           Fix up the executable's checksum after dumping otherwise the
5736           profiler complains.
5737           When DUMP_SEPARATE_SECTION is defined, don't need to dump
5738           zero-init data separately from init data. Dump emacs data
5739           into a special section of the executable.
5740           When DUMP_SEPARATE_SECTION not defined, dump .bss up to
5741           my_ebss instead of up to the end of bss.
5742
5743 1998-07-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5744
5745         * filelock.c: Removed Vconfigure_lock_directory - already
5746           defined in emacs.c.
5747
5748         * frame-msw.c: Removed Qinitially_unmapped and Qpopup - already
5749           defined in frame.c and general.c respectively.
5750
5751         * glyphs-msw.c: Removed Qresource - already defined in
5752           general.c.
5753
5754 1998-07-05  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
5755
5756         * eldap.c (Fldap_search_internal): Docstring fixes
5757
5758 1998-07-04  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5759
5760         * nt.c (init_environment): Removed unused PRELOAD_WINSOCK,
5761           EMACSDOC and TERM variables. Added EMACSDEBUGPATHS,
5762           EMACSPACKAGEPATH and INFOPATH variables.
5763           Removed unused get_emacs_configuration function.
5764
5765         * s/windowsnt.h: Don't define EMACS_CONFIGURATION here because
5766           it is now defined at build-time by the makefile.
5767
5768 1998-07-01  James N. Potts  <jnpotts@plutonium.net>
5769
5770         * fileio.c: (expand_file_name): under win32: Don't treat names as
5771         UNC names if a drive letter has been specified.  If a drive has
5772         been specified, strip out extra directory-seperators that
5773         reportedly cause problems under Win95.
5774
5775 1998-07-05  Andy Piper  <andyp@parallax.co.uk>
5776
5777         * faces.c (complex_vars_of_faces): for the gui-element face don't
5778         fallback to the default face, instead provide reasonable default
5779         fallbacks that were previously hardcoded elsewhere.
5780
5781 1998-07-06  Olivier Galibert  <galibert@pobox.com>
5782
5783         * glyphs-x.c (convert_EImage_to_XImage): Fix pixel writing problem
5784         when the X server endianness is different than the client's one.
5785
5786 1998-06-29  Kyle Jones  <kyle_jones@wonderworks.com>
5787
5788         * eval.c (run_hook_with_args_in_buffer): Check
5789           default (non-buffer-local) value of hook for
5790           nil before treating it as a function.  Don't initialize
5791           the `globals' variable twice.
5792
5793 1998-06-24  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5794
5795         * fileio.c: Don't do directory seperator canonicalisation in
5796           substitute-in-file-name because we don't know that the
5797           filename refers to a local file.
5798
5799 1998-06-24  Adrian Aichner  <aichner@ecf.teradyne.com>
5800
5801         * process-nt.c (nt_create_process): Try appending the standard
5802           executable file extensions to the filename if none supplied.
5803
5804 1998-06-29  SL Baur  <steve@altair.xemacs.org>
5805
5806         * fileio.c (Fsubstitute_in_file_name): Enable double slash notation
5807         for cygwin32.
5808         From Keisuke Mori <ksk@ntts.com>
5809
5810 1998-06-24  Andy Piper  <andyp@parallax.co.uk>
5811
5812         * toolbar-msw.c (mswindows_output_toolbar): only enable masked
5813         images if we have masks. This handles the xbm case (have masks)
5814         and avoids overuse of resources in the xpm case (generally no masks).
5815         Don't output small toolbars.
5816
5817 1998-06-29  Kyle Jones  <kyle_jones@wonderworks.com>
5818
5819         * eval.c (run_hook_with_args_in_buffer): Don't treat
5820           the default value of a buffer local hook as a list of
5821           hooks unless it is both a cons and the car of that cons
5822           is not Qlambda.
5823
5824 1998-06-29  SL Baur  <steve@altair.xemacs.org>
5825
5826         * extents.c: Email address for Ben Wing is ben@xemacs.org.
5827         * process-unix.c: Ditto.
5828         * mule-coding.h: Ditto.
5829         * mule-coding.c: Ditto.
5830         * mule-charset.c: Ditto.
5831         * mule-charset.h: Ditto.
5832         * file-coding.c: Ditto.
5833         * file-coding.h: Ditto.
5834
5835 1998-06-22  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5836
5837         * event-msw.c: Guard against recursion when freeing
5838           FRAME_MSWINDOWS_TARGET_RECT struture in WM_SIZE processing.
5839
5840         * frame-msw.c: Don't set WS_VISIBLE attribute on first frame.
5841           Call ShowWindow twice in init_frame_3 to get round runemacs
5842           weirdness.
5843
5844 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
5845
5846         * scrollbar.c (vertical_scrollbar_changed_in_window): Ditto.
5847
5848         * winslots.h: Rename.
5849
5850         * window.c (specifier_vars_of_window): Renamed
5851         vertical-divider-draggable-p to vertical-divider-always-visible-p,
5852         as suggested by Ben Wing.
5853         (specifier_vars_of_window): Fix docstrings.
5854
5855 1998-06-22  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
5856
5857         * unexaix.c: Line number information works correctly again.
5858
5859 1998-06-22  Olivier Galibert  <galibert@pobox.com>
5860
5861         * emacs.c (__sti__iflPNGFile_c___): Added. See comment. Cry.
5862
5863 1998-06-21  Martin Buchholz  <martin@xemacs.org>
5864
5865         * editfns.c (get_home_directory): ANSIfy.
5866         XEmacs is compilable under C *and* C++.
5867         It's XEmacs, not Xemacs!
5868
5869 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5870
5871         * console-msw.h: added a list of fonts to device data.
5872
5873         * device-msw.c: enumerate list of available fonts in
5874           mswindows_init_device. Free list in mswindows_delete_device.
5875
5876         * objects-msw.c: Added helper function match_font used by
5877           mswindows_initialize_font_instance and mswindows_list_fonts.
5878           Allow a charset to be specified in a font string, even if
5879           previous fields havn't been specified.
5880
5881 1998-06-23  Greg Klanderman  <greg@alphatech.com>
5882
5883         * indent.c (column_at_point): column cache bugfix.
5884         Set last_known_column_point to the buffer position for
5885         which the column was requested, not buffer's point.
5886
5887         * redisplay.c (decode_mode_spec): for current-column, show
5888         window's point's column, not buffer's point's column.
5889
5890 1998-06-23  Andy Piper  <andyp@parallax.co.uk>
5891
5892         * menubar-msw.c (mswindows_handle_wm_command): use
5893         enqueue_misc_user event rather than
5894         mswindows_enqueue_msic_user_event to fix customize problems. Add some
5895         checks that X does.
5896
5897         * console-msw.h: declare mswindows_enqueue_magic_event.
5898
5899         * event-msw.c (mswindows_enqueue_magic_event): make global.
5900
5901 1998-06-24  Hrvoje Niksic  <hniksic@srce.hr>
5902
5903         * line-number.c (LINE_NUMBER_FAR): Reverted to 16384.
5904         (buffer_line_number): Use EMACS_INT_MAX instead of random LOTS.
5905         (add_position_to_cache): Use EMACS_INT instead of int.
5906
5907 1998-06-21  Olivier Galibert  <galibert@pobox.com>
5908
5909         * lisp-disunion.h (XMARKBIT): Have XMARKBIT return something
5910         suitable for an int used as a boolean (btw, C sucks.).
5911
5912 1998-06-18  Andy Piper  <andyp@parallax.co.uk>
5913
5914         * object-msw.c: remove warnings.
5915
5916         * device-msw.c: #define wrongly named cygwin structure elements.
5917
5918         * s/cygwin32.h: define DEMI_BOLD
5919
5920 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5921
5922         * redisplay-msw.c: new function mswindows_apply_face_effects.
5923           This is called by output_string and output_cursor to display
5924           underline and strikeout on faces.
5925
5926 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5927
5928         * console-msw.h: added a list of fonts to device data.
5929
5930         * device-msw.c: enumerate list of available fonts in
5931           mswindows_init_device. Free list in mswindows_delete_device.
5932
5933         * objects-msw.c: Added helper function match_font used by
5934           mswindows_initialize_font_instance and mswindows_list_fonts.
5935           Allow a charset to be specified in a font string, even if
5936           previous fields havn't been specified.
5937
5938 1998-06-15  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5939
5940         * objects-msw.c:
5941           Removed compilation warnings from mswindows_string_to_color.
5942           mswindows_list_fonts returns a more general bogus font.
5943           New lisp-visible function mswindows-color-list.
5944
5945 1998-06-19  David Bush <david.bush@adn.alcatel.com>
5946
5947         * editfns.c (Fuser_login_name): Modify to user new function
5948         user_login_name.
5949         (user_login_name): C only function to avoid Lisp object overhead
5950         Returns "unknown" instead of nil in Cygwin environment
5951
5952         * fileio.c (Fexpand_file_name): Treat "~" and "~user" as
5953         equivalent for current user in Cygwin environment. Use new
5954         function user_login_name to get username.
5955
5956         * lisp.h: Declare user_login_name
5957
5958 1998-06-18  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
5959
5960         * unexaix.c (make_hdr): Fixed bias computations so debugging info
5961         works again.
5962         Some other insignificant nitpicks.
5963
5964 1998-06-18  Andy Piper  <andyp@parallax.co.uk>
5965
5966         * toolbar-msw.c (mswindows_output_toolbar): specify ILC_MASK when
5967         creating the image list and make sure he bk color is transparent.
5968
5969 1998-06-18  Jan Vroonhof  <vroonhof@math.ethz.ch>
5970
5971         * event-Xt.c (emacs_Xt_remove_timeout): Also remove timeout from
5972         completed_timeouts. The timer could have expired.
5973
5974 1998-06-17  Andy Piper  <andyp@parallax.co.uk>
5975
5976         * console-msw.h: move XEMACS_RECT_WH inside frame
5977         parameters. define macors to access it.
5978
5979         * frame-msw.c (mswindows_init_frame_1): use new target_rect
5980         parameter to intialise desired sizing. (mswindows_init_frame_2):
5981         enable and size the frame to something sensible when we get
5982         here. (mswindows_set_frame_properites): use new
5983         mswindows_size_frame_internal function and size frame if frame
5984         parameters not just if init is finished - WM_SIZE happens too
5985         early for some specs. (mswindows_size_frame_internal): new
5986         function abstracted from mswindows_set_frame_properties.
5987         (Vmswindows_use_system_frame_size_defaults):
5988         new variable controls whether to allow the system to pick frame
5989         size defaults, defaults to nil.
5990
5991         * event-msw.c: in WM_SIZE use mswindows_size_frame_internal rather
5992         than duplicated code.
5993
5994 1998-06-15  Colin Rafferty <colin@xemacs.org>
5995
5996         * Makefile.in.in: Made EXTW_LINK expand properly.
5997
5998 1998-06-12  Martin Buchholz  <martin@xemacs.org>
5999
6000         * redisplay.c (vars_of_redisplay): default value of
6001         column-number-start-at-one should be NIL!
6002
6003 1998-06-11  Martin Buchholz  <martin@xemacs.org>
6004
6005         * casefiddle.c:
6006         (upcase-initials "fooBar") ==> "FooBar" instead of "Foobar"
6007
6008 1998-06-05  Hrvoje Niksic  <hniksic@srce.hr>
6009
6010         * eldap.c (Fldap_search_internal): Use build_ext_string instead of
6011         build_string to avoid crashes under Mule.
6012
6013 1998-06-13  Andy Piper  <andyp@parallax.co.uk>
6014
6015         * ntplay.c (play_sound_data_1): don't delete the sound data until
6016         the next sound is played and the previous one finished.
6017
6018 1998-06-10  Samuel Mikes  <smikes@alumni.hmc.edu>
6019
6020         * fileio.c (directory-sep-char): Escape backslashes.
6021
6022 1998-06-10  Hrvoje Niksic  <hniksic@srce.hr>
6023
6024         * event-stream.c: Fix docstring reference.
6025
6026 1998-06-12  Hrvoje Niksic  <hniksic@srce.hr>
6027
6028         * alloc.c (make_float): Remove useless initialization of `next'
6029         field.
6030         (make_pure_float): Ditto.
6031
6032         * lisp.h (struct Lisp_Float): Rename `next' to `__unused__next'.
6033
6034 1998-06-08  Kirill M. Katsnelson  <kkm@kis.ru>
6035
6036         * fileio.c (Fmake_directory_internal): Remove conditionals
6037         on WINDOWSNT when calling mkdir.
6038
6039         * ntproc.c: Deleted the following unused functions:
6040         register_child, reap_subprocess, sys_wait.
6041
6042         * nt.c (sys_rename): Ifzeroed this implementation.
6043         Deleted the following unused functions:
6044         sys_access, sys_chdir, sys_chmod, sys_creat, sys_link, sys_mkdir,
6045         sys_mktemp, sys_rmdir, sys_unlink, sys_close, sys_dup, sys_dup2,
6046         sys_read, sys_write.
6047         Merger sys_fopen and sys_open with sysdep.c implementation.
6048
6049         * sysdep.c: Removed MS-DOS code.
6050         (sys_rename): Deal with Microsoft rename weirdness.
6051         (sys_open): Implemented for Windows.
6052         (sys_fopen): Ditto.
6053         (sys_mkdir): Ditto.
6054
6055 1998-06-08  Kirill M. Katsnelson  <kkm@kis.ru>
6056
6057         * buffer.c (complex_vars_of_buffer): Removed %t description from
6058         the docstring.
6059
6060 1998-06-04  Rick Rankin  <Rick_Rankin-P15254@email.mot.com>
6061
6062         * scrollbar-msw.c: initialize the cbSize element of the
6063         SCROLLINFO struct before calling SetScrollInfo. WinNT seems
6064         to ignore the value of cbSize, but Win95 (and I presume Win98)
6065         appear to want it set to sizeof(SCROLLINFO).
6066
6067 1998-06-04  Kirill M. Katsnelson  <kkm@kis.ru>
6068
6069         * event-stream.c: Defined Qcancel_mode_internal.
6070         (syms_of_event_stream): defsymbol'ed it.
6071
6072         * events.h: Externed it.
6073
6074         * event-msw.c (mswindows_wnd_proc, WM_CANCELMODE): Added this handler.
6075
6076 1998-06-04  Oliver Graf <ograf@fga.de>
6077
6078         * frame-x.c (x_cde_destroy_callback): free the data
6079         (cde-start-drag-internal) corrected root position, 21.1 needs this
6080         hardcoded in Button events
6081         (offix-start-drag-internal) corrected root position
6082
6083 1998-06-03  Kirill M. Katsnelson  <kkm@kis.ru>
6084
6085         * process-nt.c (signal_cannot_launch): Use signal_simple_error()
6086         instead of error().
6087
6088 1998-06-03  Kirill M. Katsnelson  <kkm@kis.ru>
6089
6090         * dialog-msw.c (button_width): Removed `inline' from the function
6091         declaration.
6092
6093 1998-06-03  Rick Rankin  <Rick_Rankin-P15254@email.mot.com>
6094
6095         * frame-msw.c: add WS_VISIBLE flag to the first frame created.
6096         Note that adding this flag to subsequent frames causes problems.
6097
6098 1998-06-03  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
6099
6100         * glyphs-eimage.c (png_instantiate) move 'struct
6101         png_memory_storage tbr' out of nested block to avoid dangling
6102         reference
6103
6104 1998-06-02  Andy Piper  <andyp@parallax.co.uk>
6105
6106         * faces.h:
6107         * faces.c: rename 3d-object -> gui-element. add toolbar face which
6108         inherits from gui-element.
6109
6110         * glyphs-msw.c: use DIBitmaps for xbm bitmaps to be consistent
6111         with existing code, generate masks correctly.
6112
6113 1998-06-03  P. E. Jareth Hein  <jareth@camelot-soft.com>
6114
6115         * glyphs-eimage.c: Changed included header for gifs to use
6116         Gifreader instead of giflib.
6117
6118         * glyphs-x.c: removed the image-related functions that were
6119         moved into glyphs-eimage.
6120
6121 1998-06-02  David Bush  <david.bush@adnb.alcatel.com>
6122
6123         * glyphs.c (bitmap_to_lisp_data) Define XFree to be free
6124         if built without X Windows support.
6125
6126 1998-06-02  Hrvoje Niksic  <hniksic@srce.hr>
6127
6128         * fns.c (Fconcat): Synch docstring with new reality.
6129
6130 1998-06-03  SL Baur  <steve@altair.xemacs.org>
6131
6132         * frame.c: Remove reference to msdos.h (which is going away).
6133         Suggested by Hrvoje Niksic and Kirill Katsnelson.
6134
6135 1998-06-02  P. E. Jareth Hein  <jareth@camelot-soft.com>
6136
6137         * glyphs-eimage.c (jpeg_instantiate): Fix handling of
6138         grayscale images/
6139
6140
6141 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
6142
6143         * events.h: Fixed commentary about misc-user scrollbar events.
6144
6145         * scrollbar-x.c (x_update_vertical_scrollbar_callback): Use frame
6146         object as an event channel, instead of window object.
6147         (x_update_horizontal_scrollbar_callback): Ditto.
6148
6149 1998-05-29  Andy Piper  <andyp@parallax.co.uk>
6150
6151         * ntplay.c (play_sound_data_1) new function. convert alloca data
6152         to malloc if necessary.
6153         (play_sound_file): if the file is not in our path then convert to
6154         data and play.
6155
6156 1998-06-01  SL Baur  <steve@altair.xemacs.org>
6157
6158         * mule-mcpath.c (mc_chdir): Reverse parameters in call to memcpy.
6159         * msdos.c (Frecent_doskeys): Ditto.
6160
6161         * unexalpha.c (unexec): Reverse parameters in call to memcpy.
6162         Suggested by Reggie Perry <perry@zso.dec.com>
6163
6164         * buffer.h: Eliminate size in declaration.
6165
6166 1998-06-01  Olivier Galibert  <galibert@pobox.com>
6167
6168         * unexelfsgi.c (unexec): Cleanup n/nn and remove useless kludge.
6169
6170 1998-06-01  Kirill M. Katsnelson  <kkm@kis.ru>
6171
6172         * gui.c (gui_item_init): Changed the default value for config member
6173         from Qunbound to Qnil.
6174
6175 1998-06-01  Greg Klanderman  <greg@alphatech.com>
6176
6177         * indent.c (vmotion_pixels): Don't #define abs().
6178
6179 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
6180
6181         * s/windowsnt.h: Defined popen and pclose to be _popen and _pclose
6182         respectively.
6183
6184 1998-05-30  Andy Piper  <andyp@parallax.co.uk>
6185
6186         * glyphs.h: add xbm declarations.
6187
6188         * console.h: add xbm_instantiate_method device method.
6189
6190         * glyphs.c (check_valid_xbm_inline) (xbm_validate)
6191         (bitmap_to_lisp_data) (xbm_mask_file_munging) (xbm_normalize)
6192         (xbm_possible_dest_types): moved here from glyphs-x.c. use
6193         locate_pixmap_file device method and read_bitmap_data_from_file
6194         instead of XmuReadBitmapDataFromFile.
6195         (xbm_instatntiate): make a device method.
6196
6197         * glyphs-x.c: see glyphs.c changes. (read_bitmap_data_from_file)
6198         new function that just calls XmuReadBitmapDataFromFile.
6199         (x_xbm_instatntiate): device method from xbm_instantiate.
6200
6201         * glyphs-msw.c (read_bitmap_data) (NextInt)
6202         (read_bitmap_data_from_file): new functions copied from Xmu
6203         sources.
6204         (xbm_create_bitmap_from_data) from Ben <ben@666.com> convert
6205         inline data to an mswindows bitmap.
6206         (init_image_instance_from_xbm_inline) (xbm_instantiate_1)
6207         (mswindows_xbm_instantiate): mswindows-ized versions of the X
6208         functions.
6209
6210 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
6211
6212         * window.c (specifier_vars_of_window): Renamed `has_modeline-p' to
6213         `modeline-visible-p'.
6214         Declared specifier lisp variables at the beginning oh the file
6215         as static.
6216
6217         * procimpl.h (struct process_methods): Changed semantics of
6218         create_process method so it accepts lisp strings instead of
6219         char pointers.
6220
6221         * process.c (Fstart_process_internal): Moved building of
6222         unix style argv from here to process-unix.c, ...
6223
6224         * process-unix.c (unix_create_process): ... right here.
6225
6226         * process-nt.c (nt_create_process): Changed this function to
6227         support new semantics, so avoided a GC problem.
6228
6229         * events.c (Fmake_event): Document misc-user events properties.
6230         (Fmake_event): Do not allow arbitrary objects for channel property
6231         of misc-user events.
6232         (Fmake_event): Change misc-user event validation: it is function
6233         which is required, not button.
6234
6235         * event-msw.c (mswindows_user_event_p): Recognize misc user events as
6236         user events.
6237         (mswindows_enqueue_misc_user_event): Added function.
6238         (mswindows_bump_queue): Removed function.
6239         (mswindows_enqueue_magic_event): Support NULL HWND parameter.
6240         (mswindows_wnd_proc, WM_CLOSE): Use mswindows_enqueue_misc_user_event().
6241         (mswindows_wnd_proc, WM_EXITSIZEMOVE): Ditto.
6242         (emacs_mswindows_handle_magic_event): Handle XM_BUMPQUEUE, by doing
6243         really nothing, which is my personal favorite thing.
6244
6245         * console-msw.h: Removed prototype for mswindows_bump_queue().
6246         Added prototype for mswindows_enqueue_misc_user_event().
6247
6248         * menubar-msw.c (mswindows_handle_wm_command): Use
6249         mswindows_enqueue_misc_user_event().
6250
6251         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
6252
6253         * dialog-msw.c (dialog_proc): Ditto.
6254
6255         * scrollbar-msw.c (mswindows_handle_scrollbar_event): Ditto.
6256          (mswindows_handle_scrollbar_event): Use frame, not window, for misc
6257         user events channel.
6258
6259 1998-05-29  Greg Klanderman  <greg@alphatech.com>
6260
6261         * window.c (Fwindow_displayed_text_pixel_height): was relying on
6262         incorrect semantics of vmotion_pixels which has been fixed.  don't
6263         use it anymore as it can't easily be used.
6264
6265         * indent.c (vmotion_pixels): fix off by one bug moving up.  also
6266         the motion was reported incorrectly if you tried to go past end of
6267         buffer.
6268
6269 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
6270
6271         * toolbar.h: Removed misleading commentary, as Martin suggested.
6272
6273 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
6274
6275         * lisp.h: Extern Qactivate_menubar_hook.
6276
6277         * menubar-msw.c (unsafe_handle_wm_initmenu_1): Pass correct value to
6278         run_hook ().
6279
6280 1998-05-29  Andy Piper  <andyp@parallax.co.uk>
6281
6282         * glyphs-msw.c: use BPLINE macro.
6283
6284         * select-msw.c (mswindows-selection-exists-p)
6285         (mswindows-delete-selection): doc string fixes.
6286
6287         * toolbar-msw.c (mswindows_output_toolbar): make disabled buttons
6288         unpressable. warning elimination.
6289
6290 1998-05-28  Martin Buchholz  <martin@xemacs.org>
6291
6292         * alloc.c (dbg_constants):
6293         * dbxrc:
6294         * gdbinit:
6295         Remove toolbar_data debugging code, since that lrecord has
6296         also been removed.
6297
6298 Wed May 27, 1998  Darryl Okahata  <darrylo@sr.hp.com>
6299
6300         * alloc.c: zap cached value of (user-home-directory), so that
6301           it's not undumped.
6302
6303         * buffer.c: From init_buffer(), separated out code that
6304           determined the initial directory for the *scratch* buffer, and
6305           put them into a function called "init_initial_directory()".
6306           The initial directory is now available as a global "char *"
6307           called initial_directory.
6308
6309         * buffer.h: Added extern entries for initial_directory[] and
6310           init_initial_directory().
6311
6312         * editfns.c: added new elisp function "user-home-directory",
6313         which basically returns getenv("HOME"), but attempts to use
6314         other values if $HOME isn't set.This may have to be tweaked in
6315         the future as, under Unix, "/" is used if $HOME isn't set (this
6316         probably should be set to the current directory).  To support
6317         this, a new C function, "get_home_directory()", now exists,
6318         which returns the "home directory", as a "char *" string.
6319
6320         * emacs.c: Rearrange NT initialization order so that
6321         environment/registry variables will be properly entered into
6322         Vprocess_enviroment.
6323
6324         * fileio.c: replaced egetenv("HOME") with calls to the new
6325           get_home_directory().
6326
6327         * lisp.h: Added function prototypes for uncache_home_directory()
6328           and get_home_directory(), along with lisp prototypes for
6329           Fuser_home_directory() and friends.
6330
6331         * nt.c: replaced getenv("HOME") with calls to the new
6332           get_home_directory().
6333
6334         * sysfile.h: for WINDOWSNT, #include <direct.h>, to suppress
6335           warnings about getcwd(), etc. not having prototypes.
6336
6337 1998-05-28  Kirill M. Katsnelson  <kkm@kis.ru>
6338
6339         * process-nt.c (send_signal): Emulate SIGHUP.
6340         (validate_signal_number): Ditto.
6341
6342         * event-msw.c (mswindows_wnd_proc, WM_KEYDOWN): Unconditionally
6343         remove MOD_SHIFT from ASCII characters.
6344         (mswindows_wnd_proc, WM_KEYDOWN): Do not activate the menubar when
6345         F10 is pressed.
6346
6347 1998-05-24  Oliver Graf <ograf@fga.de>
6348
6349         * frame-x.c (cde-start-drag-internal): added filename and multi-
6350         data transfers
6351         (x_cde_convert_callback) dito
6352
6353 1998-05-26  Oliver Graf <ograf@fga.de>
6354
6355         * frame-x.c: include event-mod.h also with CDE
6356         (x_cde_convert_callback) made the thing working
6357         (cde-start-drag-internal) also debugging
6358
6359 1998-05-25  Hans Guenter Weigand  <hgweigand@wiesbaden.netsurf.de>
6360
6361         * m/sparc.h:
6362         * getloadavg.c:
6363         * malloc.c:
6364         * unexec.c:
6365         * mem-limits.h:
6366           - add __OpenBSD__ where __NetBSD__ was found.
6367           - TODO: replace platform-specific conditional compilation by
6368             feature tests in configure.in.
6369
6370 1998-05-15  Greg Klanderman  <greg@alphatech.com>
6371
6372         * window.c (Fwindow_displayed_text_pixel_height): New function.
6373         (syms_of_window): DEFSUBR it.
6374
6375         * indent.c (Fvertical_motion_pixels): New function - request
6376         movement in pixels.
6377         (vmotion_pixels): helper.
6378         (syms_of_indent): DEFSUBR.
6379         * lisp.h: declaration for vmotion_pixels().
6380
6381         * indent.c (Fvertical_motion): Add optional third argument PIXELS,
6382         to request returning motion in pixels.
6383         (Fvertical_motion_pixels): Remove, functionality merged into
6384         Fvertical_motion.
6385         * window.c (window_scroll): call Fvertical_motion with 3 arguments.
6386         (Fmove_to_window_line): ditto.
6387         * lisp.h: Change declaration for Fvertical_motion.
6388
6389         * window.c: rename window-text-pixel-{height,width,edges} to
6390         window-text-area-pixel-*.
6391
6392 1998-05-26  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
6393
6394         * tooltalk.c (vars_of_tooltalk) added staticpro for
6395         Tooltalk_Message_plist_str and Tooltalk_Pattern_plist_str
6396
6397 1998-05-27  Andy Piper  <andyp@parallax.co.uk>
6398
6399         * faces.c: create a new 3d_object_face, make modeline and
6400         vertical_divider faces fallback to this rather than the default.
6401
6402 1998-05-21  Andy Piper  <andyp@parallax.co.uk>
6403
6404         * s/cygwin32.h: define charsets for cygwin.
6405
6406 1998-05-25  Andy Piper  <andyp@parallax.co.uk>
6407
6408         * toolbar-msw.c (mswindows_output_toolbar): fix up button sizes
6409         and coordinates. resize bitmaps if we have already settled on a
6410         different size.
6411
6412         * glyphs-msw.c (xpm_to_eimage): add ';' for mswindows compiler.
6413
6414 1998-05-25  Hrvoje Niksic  <hniksic@srce.hr>
6415
6416         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
6417
6418         * menubar-msw.c (mswindows_handle_wm_command): Ditto.
6419
6420         * gui.h: Ditto.
6421
6422         * gui-x.c (popup_selection_callback): Ditto.
6423
6424         * dialog-msw.c (dialog_proc): get_callback -> get_gui_callback.
6425
6426         * gui.c (get_callback): Renamed to get_gui_callback.
6427
6428 1998-05-17  Martin Buchholz  <martin@xemacs.org>
6429
6430         * glyphs.h: order rearrangement.
6431
6432         * device-tty.c (tty_asynch_device_change): Warning suppression.
6433         * device-x.c (x_device_system_metrics): Warning suppression.
6434         Make Doc strings consistent with coding standards.
6435
6436 1998-05-24  Martin Buchholz  <martin@xemacs.org>
6437
6438         * general.c: multiple definition of `Qicon'.  general.c seems
6439           like a good home for Qicon.
6440
6441 1998-05-20  Kirill M. Katsnelson  <kkm@kis.ru>
6442
6443         * This patch is to fix compilation warnings under Windows.
6444
6445         * s/windowsnt.h: Encapsulate getpid with sys_getpid.
6446         Added prototypes for FSF inherited functions, with which XEmacs is
6447         sprinkled thoroughly.
6448         Removed some #if 0 code. Bracketed some more definitions, probably
6449         related to Visual C versions prior to 4 (we do not support them).
6450
6451         * sysfloat.h (logb): Finally, get logb() prototyped.
6452
6453         * sysfile.h: Added Windows specific includes.
6454         Removed old Windows specific code bracketed with #if 0.
6455
6456         * sysdep.h: Added prototype for xrealpath().
6457
6458         * sysdep.c (sys_getpid): Added function, to support '95 negative pids.
6459
6460         * symsinit.h: Added prototypes for syms_of_dired_mswindows,
6461         vars_of_dired_mswindows and init_ntproc (Grrr).
6462
6463         * realpath.c: Added Windows specific include files.
6464         (xrealpath): Conditionalized declaration of some auto variables on
6465         S_IFLNK, to avoid warnings.
6466
6467         * ntproc.c: Disabled some compiler warnings. This file is going to
6468         die, so I have not cleaned it up much.
6469         (set_process_dir): Const parameter.
6470         (Fwin32_short_file_name): Down CHECK_* macros to one argument.
6471         (Fwin32_long_file_name): Ditto.
6472         (Fwin32_set_process_priority): Ditto. Why didn't I remove these
6473         three functions?
6474
6475         * nt.h: Added prototypes for set_process_dir and convert_time.
6476
6477         * nt.c: More include files.
6478         (getpwnam): Consted char* argument.
6479         (get_emacs_configuration): Const return value.
6480         (opendir): Const argument.
6481         (stat): Casted converstion long->short.
6482         (stat): Removed ad hoc and questionable support for non-MSC compile.
6483         (sys_pipe): Removed unused auto variable.
6484         (_sys_read_ahead): Removed calls to DebPrint.
6485         (sys_read): Ditto, in 2 places.
6486         (term_ntproc): Added unused int parameter to signal handler, to
6487         avoid a warning when compiling a call to signal().
6488         (msw_sigset): Properly return old signandler or NULL instead of void.
6489
6490         * floatfns.c (Flogb): Casted arguments to unary minus to signed.
6491
6492         * gmalloc.c (morecore): Ditto.
6493         (_free_internal): Ditto.
6494
6495         * lread.c (parse_integer): Ditto.
6496
6497         * dired-msw.c: Added several include files.
6498
6499         * cmdloop.c (Fcommand_loop_1): Added Microsoft C to the Big List
6500         of Compilers to Shut Up.
6501
6502         * callproc.c: Added #includes to suppress warnings under Windows.
6503         (init_callproc): Removed #if0'ed code and unused variables.
6504
6505 1998-05-25  Andy Piper  <andyp@parallax.co.uk>
6506
6507         * device-msw.c (mswindows_device_system_metrics): do planes in a
6508         way consistent with X.
6509
6510         * glyphs-msw.c (mswindows_initialize_image_instance_mask): don't
6511         use SetPixel, use DIBits functions.
6512         (xpm_to_eimage): frob colors more closely like xpm deos.
6513
6514         * toolbar-msw.c: only resize bitmaps when shrinking. Adjust look
6515         to be closer to X version.
6516
6517         * event-msw.c: use tooltip string directly.
6518
6519         * redisplay-msw.c: reinstate Kirill's bg pixmap change.
6520
6521         * objects-msw.c: frob rgb colors that only Kyle uses.
6522
6523         * dialog-msw.c (button_width): INLINE -> inline.
6524
6525 1998-05-23  SL Baur  <steve@altair.xemacs.org>
6526
6527         * getloadavg.c (getloadavg): Fix typo.
6528
6529 1998-05-23  Kirill M. Katsnelson  <kkm@kis.ru>
6530
6531         * objects-msw.c (mswindows_initialize_font_instance): Added support
6532         for font character sets.
6533         Replaced 'XXX' with '####' in comments throughout the file.
6534
6535 1998-05-23  Kirill M. Katsnelson  <kkm@kis.ru>
6536
6537         * emacs.c (main_1): Added calls to vars_of_dialog_mswindows() and
6538         console_type_create_dialog_mswindows(), to initialize Windows dialog
6539         support.
6540
6541         * symsinit.h: Prototyped the above functions.
6542
6543         * dialog-x.c (x_popup_dialog_box): Moved dialog descriptor consistency
6544         checks to dialog.c...
6545
6546         * dialog.c (Fpopup_dialog_box): ...right here. Added more checks: a
6547         device must support dialog boxes, and the descriptor must supply at
6548         least one button.
6549
6550         * dialog-msw.c: New file, dialogs for Windows.
6551
6552 1998-05-21  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
6553
6554         * eldap.c (ldap_search_unwind): Return Qnil instead of nothing
6555         (Fldap_search_internal): Removed unused variable `err'
6556
6557         * eldap.h: Moved Lisp_LDAP declaration here instead of using a
6558         forward declaration
6559
6560 1998-05-17  Martin Buchholz  <martin@xemacs.org>
6561
6562         * eldap.h: eldap.[ch] should never be used unless HAVE_LDAP is
6563         defined.  Therefore there is no need to handle the case when
6564         HAVE_LDAP is undefined.  Similarily, there is no reason to have
6565         any code wrapped within `#ifdef emacs', since this code is only
6566         useful within an emacs.  This simplifies the code significantly.
6567
6568         * inline.c: Include eldap.h only if HAVE_LDAP.
6569         * inline.c: Don't bother including TT_C_H_PATH, since tooltalk.h
6570         already does that.
6571
6572 1998-05-21  Kirill M. Katsnelson  <kkm@kis.ru>
6573
6574         * unexnt.c (copy_executable_and_dump_data_section): Suppress
6575         printing dump stats when building without DEBUG_XEMACS.
6576         (dump_bss_and_heap): Ditto.
6577
6578 1998-05-21  Andy Piper  <andyp@parallax.co.uk>
6579
6580         * gnuclient.c: don't suppress window system if there is no display
6581         and we are running under mswindows. send 'mswindows device type if
6582         we are in this situation.
6583
6584 1998-05-20  Andy Piper  <andyp@parallax.co.uk>
6585
6586         * general.c:
6587         * lisp.h: Qbitmap, Qcursor, Qicon moved here from glyphs-msw.c.
6588
6589         * glyphs-msw.c: change cursor imgae type name to resource. Fix
6590         some nits.
6591
6592 1998-05-20  Kirill M. Katsnelson  <kkm@kis.ru>
6593
6594         * EmacsFrame.c (Xt_StringToScrollBarPlacement):  Added support for
6595         {top,bottom}-{left,right} values in addition to
6596         {top,bottom}_{left,right}.
6597
6598 1998-05-18  Hrvoje Niksic  <hniksic@srce.hr>
6599
6600         * fileio.c (Fmake_temp_name): Remove unreached code.
6601
6602         * process-nt.c (validate_signal_number): Use
6603         signal_simple_error().
6604
6605 1998-05-19  Martin Buchholz  <martin@xemacs.org>
6606
6607         * unexhp9k800.c:
6608         * sound.c (vars_of_sound):
6609         * sysdep.c (reset_sigio_on_device):
6610         * window.c (window_bottom_gutter_height):
6611         unexhp9k800.c:258: warning: implicit declaration of function
6612         `calculate_checksum'
6613         sound.c:604: warning: implicit declaration of function `vars_of_hpplay'
6614         sysdep.c:1012: warning: unused variable `owner'
6615         window.c:993: warning: `window_right_toolbar_width' defined but not used
6616
6617 1998-05-19  Andy Piper  <andyp@parallax.co.uk>
6618
6619         * glyphs-msw.c (mswindows_create_resized_mask)
6620         (mswindows_create_resized_bitmap): new funnctions split out from
6621         mswindows_resize_dibitmap_instance.
6622
6623         * glyphs-msw.h: declare new resize functions.
6624
6625         * toolbar-msw.c (mswindows_output_toolbar): use new bitmap resize
6626         functions so that the original bitmaps are preserved.
6627
6628         * sheap.c: fixup static heap exhausted error to avoid FAQs.
6629
6630         * redisplay-msw.c (mswindows_output_blank): fixup brush from bg
6631         color if we are trying to output 0 depth bg pixmap.
6632
6633         * scrollbar-msw.c: warning elimination.
6634
6635 1998-05-18  Martin Buchholz  <martin@xemacs.org>
6636
6637         * frame-x.c (x_update_frame_external_traits): Start preprocessor
6638         directives in column 1.
6639
6640         * search.c (skip_chars): Avoid using xzero with arrays, since some
6641         compilers get confused by the construct &array.
6642
6643 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
6644
6645         * objects-msw.h:
6646         * objects-msw.c: Changed the charset value for a new font from
6647         "don't care" to "ansi".
6648
6649         * glyphs-msw.c (convert_EImage_to_DIBitmap): Warnings fix.
6650
6651 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
6652
6653         * event-msw.c (mswindows_wnd_proc, WM_KEYDOWN): Do not clear shift
6654         modifier on control chars.
6655         Use IsCharAlpha() instead of isaplha().
6656
6657 1998-05-19  Kazuyuki IENAGA <ienaga@jsys.co.jp>
6658
6659         * s/freebsd.h: FreeBSD 2.2.6 now supports setlocale(LC_ALL, "").
6660
6661 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
6662
6663         * objects-msw.c (mswindows_initialize_font_instance): Use ANSI
6664         charset when creating font.
6665         (mswindows_initialize_color_instance): Do not create brush along
6666         with a color.
6667         (mswindows_finalize_color_instance): Do not delete it then.
6668
6669         * objects-msw.h (struct mswindows_color_instance_data): Removed
6670         brush slot, and corresponding accessor macro.
6671
6672 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
6673
6674         * toolbar.c: Removed toolbar_data lrecord implementation.
6675         (mark_frame_toolbar_buttons_dirty): Replase usage of toolbar_data
6676         with toolbar_buttons (via FRAME_TOOLBAR_BUTTONS).
6677         (compute_frame_toolbar_buttons): Ditto.
6678         (CHECK_TOOLBAR): Ditto.
6679         (set_frame_toolbar): Removed allocation of toolbar_data lrecord.
6680         (update_frame_toolbars): Do not check for changed buffer
6681         here. Toolbar information is provided by cached specs in
6682         windows. The check for buffer is eliminated becuase toolbars are
6683         marked changed in set_frame_selected_window() in frame.c
6684         Added check for changed toolbars geometry.
6685         (compute_frame_toolbars_data): Removed unused second parameter;
6686         Adjusted callers of this static function throughout the file.
6687         (init_frame_toolbars): Initialize current_toolbar_size.
6688         (update_frame_toolbars): Use DEVICE_SUPPORTS_TOOLBARS_P instead of
6689         what is its current expansion, for clarity.
6690         (init_frame_toolbars): Ditto.
6691         (init_device_toolbars): Ditto.
6692         (init_global_toolbars): Ditto.
6693
6694         * toolbar.h: Removed definition of toolbar_data lrecord.
6695         Added accessor macros FRAME_TOOLBAR_BUTTONS and
6696         FRAME_CURRENT_TOOLBAR_SIZE.
6697         Added macro DEVICE_SUPPORTS_TOOLBARS_P.
6698
6699         * toolbar-x.c (x_output_toolbar): The same change as in
6700         toolbar-msw.c
6701         (x_output_toolbar): Ditto.
6702         (x_redraw_exposed_toolbar): Ditto.
6703
6704         * toolbar-msw.c (mswindows_output_toolbar): Retrieve current
6705         buttons from toolbar_buttons using FRAME_TOOLBAR_BUTTONS macro.
6706         (mswindows_output_toolbar): Ditto.
6707         (mswindows_output_toolbar): Ditto.
6708
6709         * frame.c (mark_frame): Removed marking of arrays, according to
6710         frameslots.h change.
6711         (nuke_all_frame_slots): Ditto.
6712         (set_frame_selected_window): Mark toolbars changed when
6713         last_nonminibuf_window changes.
6714
6715         * frame.h (struct frame): Moved some slots to frameslots.h.
6716         Added current_toolbar_size array.
6717         Changed references from toolbar_data to toolbar_buttons in macros
6718         FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE,
6719         FRAME_RAW_THEORETICAL_TOOLBAR_SIZE and
6720         FRAME_RAW_THEORETICAL_TOOLBAR_BORDER_WIDTH.
6721
6722         * frameslots.h: Added macro MARKED_SLOT_ARRAY a la winslots.h
6723         Moved arrays of lisp objects here from frame.h: toolbar_size,
6724         toolbar_visible_p, toolbar_border_width.
6725         Removed toolbar_data slot and added toolbar_buttons.
6726
6727 1998-05-17  Kirill M. Katsnelson  <kkm@kis.ru>
6728
6729         * symsinit.h: Externed syms_of_process_nt()
6730
6731         * emacs.c (main_1): Call syms_of_process_nt()
6732
6733         * process-nt.c: Quote process arguments by a call to Lisp function
6734         `nt-quote-process-args'.
6735         (syms_of_process_nt): New function.
6736         (nt_send_process): Flush data stream after each write, to avoid
6737         leaving buffered data.
6738         (nt_send_process): When blocked on process output, wait for
6739         process to slurp more for progressively increasing time intervals.
6740
6741 1998-05-17  Martin Buchholz  <martin@xemacs.org>
6742
6743         * window.c (have_undivided_common_edge): Make file-local function
6744         static.
6745         (map_windows): Return 0 if all map functions successful.
6746         Fix typos.
6747
6748         * winslots.h: Use unlikely names for local variables in macros to
6749         avoid shadowing warnings.
6750
6751 1998-05-17  Andy Piper  <andyp@parallax.co.uk>
6752
6753         * toolbar-msw.c (mswindows_output_toolbar): hash on toolbar width
6754         so that we re-output if the toolbar size has changed.
6755
6756 1998-05-17  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
6757
6758         * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new unexaix.c.
6759
6760         * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
6761
6762         * unexaix.c: Massive cleanup and support of AIX 4.2 (and hopefully
6763         greater).
6764
6765 1998-05-16  Kirill M. Katsnelson  <kkm@kis.ru>
6766
6767         * glyphs-msw.c: Defined OEMRESOURCE before including windows.h to
6768         get bitmap manifest constants defined.
6769
6770         * console-msw.h: Include system files in angle brackets, not in
6771         quotes.
6772
6773         * window.c (specifier_vars_of_window): Fixed a typo in
6774         `vertical-divider-line-width' docstirng.
6775
6776 1998-05-16  Olivier Galibert  <galibert@pobox.com>
6777
6778         * line-number.c (delete_invalidate_line_number_cache): Use an
6779         EMACS_INT.
6780         (buffer_line_number): Remove dangerous, plain wrong when using
6781         64bits emacs ints, cast.
6782
6783         * insdel.c (buffer_delete_range): Use an EMACS_INT.
6784
6785         * cmds.c (Fforward_line): Use EMACS_INTs.
6786
6787         * search.c (bi_scan_buffer): Change to use EMACS_INTs.
6788         (scan_buffer): Ditto.
6789         (bi_find_next_newline_no_quit): Remove useless cast.
6790         (find_next_newline_no_quit): Ditto.
6791         (find_next_newline): Ditto.
6792         (find_before_next_newline): Use an EMACS_INT.
6793
6794         * lisp.h: Change scan_buffer to pass EMACS_INTs.
6795
6796 1998-05-16  Hrvoje Niksic  <hniksic@srce.hr>
6797
6798         * menubar-msw.c (mswindows_handle_wm_command): Ditto.
6799
6800         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
6801
6802         * gui-x.c (popup_selection_callback): Use it.
6803
6804         * gui.h (get_callback): Declare it.
6805
6806         * gui.c (get_callback): New function.
6807
6808 1998-05-15  SL Baur  <steve@altair.xemacs.org>
6809
6810         * window.c (have_undivided_common_edge): Guard scrollbar specific
6811         stuff.
6812         (window_needs_vertical_divider_1): Ditto.
6813
6814 1998-05-16  Hrvoje Niksic  <hniksic@srce.hr>
6815
6816         * emacs.c (decode_path): Eliminate compiler warning.
6817         (Fdecode_path): Renamed to Fsplit_path.
6818         (Fsplit_string_by_char): New function.
6819
6820 1998-05-14  Damon Lipparelli  <lipp@primus.com>
6821
6822         * winslots.h: close comment
6823
6824 1998-05-16  Kirill M. Katsnelson  <kkm@kis.ru>
6825
6826         * callproc.c: Removed declared and unused variable Qbuffer_file_type.
6827
6828         * bufslots.h: Removed buffer_file_type slot.
6829
6830         * buffer.c (complex_vars_of_buffer): Removed buffer_file_type from
6831         buffer local flags.
6832         (complex_vars_of_buffer): Removed buffer-file-type variable and
6833         its default reference.
6834
6835 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
6836
6837         * faces.c (complex_vars_of_faces): Defined
6838         Vvertical_divider_face.
6839         (vars_of_faces): Staticpro it.
6840
6841         * faces.h: Externed Vvertical_divider_face.
6842
6843         * redisplay-x.c (x_output_vertical_divider): Use
6844         Vvertical_divider_face to draw the divider instead of modeline
6845         face.
6846
6847         * redisplay-msw.c (mswindows_output_vertical_divider): Draw
6848         divider face using Vvertical_divider_face background.
6849         Fix drawing spacing gaps around the divider.
6850
6851 1998-05-14  Didier Verna  <verna@inf.enst.fr>
6852
6853         * redisplay-x.c (x_output_vertical_divider): removed hard-wired
6854         values for the vertical divider line width and spacing. Use the
6855         cached values from the window structure instead.
6856         (x_divider_width): ditto.
6857
6858         * window.c (specifier_vars_of_window): new specifiers:
6859         vertical-divier -line-width and -spacing.
6860         (vertical_divider_global_width_changed): formerly known as
6861         vertical_divider_shadow_thickness_changed.
6862
6863         * winslots.h: new slots: vertical_specifier _line_width and
6864         _spacing. Plus corrected a comment typo.
6865
6866 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
6867
6868         * window.h: Declared window_divider_width().
6869
6870         * console-stream.c (stream_divider_width): Removed method.
6871         (console_type_create_stream): And declaration for it.
6872
6873         * redisplay.c (pixel_to_glyph_translation): Use
6874         window_divider_width() instead of divider_width redisplay method.
6875         (pixel_to_glyph_translation): Fix top divider edge calculation
6876         when scrollbar is on top.
6877
6878         * window.c (window_divider_width): New function, an outphaser for
6879         divider_width redisplay method.
6880         (window_right_gutter_width): Use it.
6881         (specifier_vars_of_window): For vertical-divider-{spacing,line-width}
6882         specifiers, set fallback values differently on TTYs, and document
6883         the behavior of these on TTYs in the docstrings.
6884
6885         * scrollbar.c (update_scrollbar_instance): Use
6886         window_divider_width() instead of divider_width redisplay method.
6887
6888         * console.h (struct console_methods): Removed divider_width_method.
6889
6890         * redisplay-tty.c (tty_divider_width): Removed device method.
6891         (console_type_create_redisplay_tty): Removed definition for it.
6892         (tty_output_vertical_divider): Respect the value returned by
6893         window_divider_width thus divider line width specification.
6894
6895         * redisplay-msw.c (mswindows_divider_width): Removed device method.
6896         (console_type_create_redisplay_mswindows): Removed definition for it.
6897         (mswinodws_output_vertical_divider): Respect the value returned by
6898         window_divider_width thus divider line width specification.
6899
6900 1998-05-15  Andy Piper  <andyp@parallax.co.uk>
6901
6902         * toolbar-msw.c: guess toolbar frame size a bit more accurately.
6903
6904 1998-05-15  Andy Piper  <andyp@parallax.co.uk>
6905
6906         * glyphs-msw.c: resource loading implementation.
6907         (cursor_normalize): new function.
6908         (cursor_validate): ditto.
6909         (cursor_instantiate): ditto.
6910         (cursor_name_to_resource): ditto.
6911         (cursor_possible_dest_types): ditto.
6912         (check_valid_symbol): ditto.
6913         (check_valid_string_or_int): ditto.
6914
6915 1998-05-14  Martin Buchholz  <martin@xemacs.org>
6916
6917         * sysdep.c (tty_init_sys_modes_on_device): Treat VSUSP just like
6918         VINTR and VQUIT.
6919
6920         * process-unix.c (process_signal_char): Use VSUSP instead of
6921         non-standard VSWTCH.  Always prefer VSUSP to VSWTCH.
6922
6923 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
6924
6925         * specifier.c (specifier_instance): Change locale precedence of
6926         instantiation so window locale has higher priority than buffer
6927         locale.
6928         (Fspecifier_instance): Reflect this in docstring.
6929         (Fadd_spec_list_to_specifier): Ditto.
6930         (Fadd_spec_to_specifier): Ditto.
6931         (Fremove_specifier): Ditto.
6932
6933 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
6934
6935         ** Dialog separation into a device method from Andy Piper
6936
6937         * emacs.c (main_1): Call console_type_create_dialog_x().
6938
6939         * dialog-x.c (x_popup_dialog_box): Old Fpopup_dialog_box converted
6940         into this device method.
6941         (console_type_create_dialog_x): New function.
6942
6943         * dialog.c (Fpopup_dialog_box): New function.
6944         (syms_of_dialog): Defsubr it.
6945
6946         * console.h (struct console_methods): Declared
6947         popup_dialog_box_method().
6948
6949         * symsinit.h: Defined console_type_create_dialog_{x,mswindows}
6950
6951 1998-05-14  Oliver Graf <ograf@fga.de>
6952
6953         * dragdrop.c (vars_of_dragdrop): dragdrop-protocols created
6954         * frame-x.c (x_cde_transfer_callback): checked for merge errors
6955
6956 1998-05-13  Oliver Graf <ograf@fga.de>
6957
6958         * dragdrop.c (vars_of_dragdrop): provide dragdrop-api
6959
6960 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
6961
6962         * console.h (device_metrics): Removed dbcs, input-method-editor
6963         and right-to-left metrics.
6964
6965         * device.c (Fdevice_system_metric): Ditto.
6966         (Fdevice_system_metrics): Ditto.
6967         (syms_of_device): Ditto.
6968         (Fdevice_system_metric): Swapped DEVICE and METRIC parameters back
6969         again.
6970
6971 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
6972
6973         * line-number.h (mark_line_number_cache): Remove unused
6974         declaration.
6975
6976         * line-number.c (LINE_NUMBER_FAR): Increase to 32768.
6977         (get_nearest_line_number): Simplify.
6978         (add_position_to_cache): Make the old marker point nowhere.
6979
6980 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
6981
6982         ** Renamed window-divider-map => vertical-divider-map
6983         and event-over-divider-p => event-over-vertical-divider-p,
6984         in the following files/functions:
6985         * events.h:
6986         * events.c (Fevent_over_divider_p):
6987         * keymap.c (get_relevant_keymaps):
6988         (vars_of_keymap):
6989
6990         * redisplay.h (OVER_V_DIVIDER): Renamed so from OVER_DIVIDER.
6991
6992         * redisplay.c (pixel_to_glyph_translation): Use OVER_V_DIVIDER.
6993
6994 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
6995
6996         * window.c (vertical_divider_changed_in_window): Renamed so.
6997         (specifier_vars_of_window): Defined Vvertical_divider_draggable_p.
6998         (window_needs_vertical_divider_1): Decide whether we need it based
6999         on the value of the above specifier. If separators are unwanted,
7000         put them only if there's no scrollbar between this window and its
7001         right neighbor.
7002         (have_undivided_common_edge): New function, helper for the above.
7003         (window_needs_vertical_divider): Return either a cached value,
7004         or clauclate and cache one.
7005         (invalidate_vertical_divider_cache_in_window): Implemented.
7006         (map_windows): Changed return type to int, return the value from
7007         MAPFUN.
7008
7009         * window.h: Prototype invalidate_vertical_divider_cache_in_window.
7010         (struct window): Added need_vertical_divider_p and
7011         need_vertical_divider_valid_p.
7012
7013         * winslots.h: Added vertical_divider_draggable_p slot.
7014
7015         * scrollbar.c (vertical_scrollbar_changed_in_window): Implemented.
7016         (specifier_vars_of_scrollbar): Used it in all vertical specifiers.
7017
7018         * frame.c (invalidate_vertical_divider_cache_in_frame): New function.
7019
7020         * frame.h (MARK_FRAME_WINDOWS_STRUCTURE_CHANGED): Call
7021         invalidate_vertical_divider_cache_in_frame().
7022         Prototype it.
7023
7024 1998-05-14  Andy Piper  <andyp@parallax.co.uk>
7025
7026         * toolbar-msw.c: provide correct parameters to TB_SETROWS.
7027
7028         * glyphs-msw.c (mswindows_initialize_image_instance_mask): size
7029         masks correctly and don't select 0.
7030
7031 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
7032
7033         * winslots.h: New file, declaration of some struct window and
7034         struct saved_window members.
7035
7036         * window.h (struct window): Include it, with required preprocessor
7037         magic.
7038
7039         * window.c (mark_window): Ditto.
7040         (allocate_window): Ditto.
7041         (struct saved_window): Ditto.
7042         (mark_window_config): Ditto.
7043         (saved_window_equal): Ditto.
7044         (Fset_window_configuration): Ditto.
7045
7046 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
7047
7048         * redisplay-msw.c (mswindows_output_vertical_divider): Syntax fix.
7049
7050 1998-05-12  Didier Verna  <verna@inf.enst.fr>
7051
7052         * redisplay-x.c (x_output_vertical_divider): draw shadows around
7053         the divider line. The shadow thickness is currently
7054         hard-wired. This will probably be turned into a specifier soon.
7055
7056 1998-05-12  Didier Verna  <verna@inf.enst.fr>
7057
7058         * console.h (struct console_methods): the divider_width console
7059         method now requires a struct window * argument.
7060
7061         * redisplay-x.c (x_divider_width): ditto. Plus remove
7062         X_DIVIDER_WIDTH, X_DIVIDER_SHADOW_THICKNESS.
7063         (x_output_vertical_divider): give a depressed look when the shadow
7064         thickness is negative.
7065
7066         * console-stream.c (stream_divider_width): pass a struct window *
7067         argument.
7068
7069         * redisplay-tty.c (tty_divider_width): ditto.
7070
7071         * window.c (window_right_gutter_width): totdi.
7072
7073         * redisplay.c (generate_modeline): ittod.
7074
7075         * scrollbar.c (update_scrollbar_instance): ttido.
7076
7077         * redisplay-msw.c (mswindows_divider_width): ottid.
7078         WARNING: this enables to compile, but the feature is not functional.
7079
7080         * window.h (struct window): new field
7081         vertical_divider_shadow_thickness.
7082
7083         * window.c (specifier_vars_of_window): new specifier
7084         vertical-divider-shadow-thickness.
7085         (vertical_divider_shadow_thickness_changed): new function to
7086         inform redisplay that the window has changed.
7087         (mark_window): handle new field vertical_divider_shadow_thickness
7088         from struct window.
7089         (allocate_window): ditto.
7090         (saved_window_equal): toddi.
7091         (Fset_window_configuration): totid.
7092         (save_window_save): ttdio.
7093         (struct saved_window): new field vertical_divider_shadow_thickness.
7094
7095 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
7096
7097         * device-msw.c (mswindows_device_system_metrics): Support a deluge
7098         of metrics.
7099
7100 1998-05-12  Oliver Graf <ograf@fga.de>
7101
7102         * frame-x.c (x_cde_transfer_callback): fixed for the new protocol
7103         * event-Xt.c (x_event_to_emacs_event): C++ compability
7104
7105 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
7106
7107         * emacs.c (Fdecode_path): Default SEPCHAR to value of
7108         path-separator.
7109
7110 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
7111
7112         * emacs.c (vars_of_emacs): Do it here; change the meaning of
7113         Vpath_separator.
7114
7115         * fileio.c (vars_of_fileio): Don't define Vpath_separator here.
7116
7117 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
7118
7119         * emacs.c (decode_path_1): New function.
7120         (decode_path): Use it.
7121         (Fdecode_path): Renamed from Fdecode_path_internal; use
7122         decode_path_1.
7123
7124 1998-05-12  Hrvoje Niksic  <hniksic@srce.hr>
7125
7126         * macros.c (Fzap_last_kbd_macro_event): New function.
7127         (Fend_kbd_macro): Remove REMOVE_LAST kludge.
7128
7129 1998-05-10  Andy Piper  <andyp@parallax.co.uk>
7130
7131         * redisplay-msw.c (mswindows_output_dibitmap_region): make sure
7132         multiple bitmaps are output vertically as well as horizontally.
7133         * (mswindows_output_dibitmap): don't cope with bitmap boundaries
7134         crossing lines this is handled by
7135         mswindows_output_dibitmap_region.
7136
7137 1998-05-12  Martin Buchholz  <martin@xemacs.org>
7138
7139         * inline.c: Include eldap.h
7140
7141         * menubar-x.c (x_update_frame_menubar_internal):
7142         Remove: unused variable `container'
7143
7144 1998-05-11  Martin Buchholz  <martin@xemacs.org>
7145
7146         * s/aix4.h: Allow AIX 4.3 XEmacs to compile cleanly.
7147         Unfortunately, the resulting temacs still cannot dump.
7148
7149         * symbols.c (symbol_is_constant):
7150         (verify_ok_for_buffer_local):
7151         -Wswitch Warning suppression - add default case to switches.
7152
7153         * redisplay.c (decode_mode_spec): Remove unused variables,
7154         Replace Fcoding_system_property (codesys, Qmnemonic) with
7155         XCODING_SYSTEM_MNEMONIC (codesys);
7156         Fcoding_system_property is for users.
7157
7158         * buffer.c:
7159         * fileio.c:
7160         * lread.c:
7161         * xselect.c:
7162         Change empty docstrings into no doc strings at all.
7163         Fix bogus FSF-format docstrings.
7164
7165         * extents.c:
7166         Standardize docstrings.
7167
7168         * floatfns.c:
7169         Explain problems with matherr.
7170
7171         * glyphs.c:  make DEFUNs etags-readable, i.e. single-line
7172
7173         * syssignal.h:
7174         if BROKEN_SIGIO, then SIGIO wants to be undefined.
7175         if SIGIO and not SIGPOLL, SIGPOLL wants to be SIGIO.\
7176         Fix the weird resultant interaction (causes windows problems)
7177
7178         * gdbinit:
7179         * dbxrc:
7180         Take new EMACSBOOTSTRAPLOADPATH into account.
7181         Update documentation strings
7182
7183         * Makefile.in.in:
7184         - Adjust for luser's CDPATH being set to something weird.
7185         - Take into account bash 2.02's tendency to print the cwd when
7186           using CDPATH.  Always use `cd ./foo' instead of `cd foo'.
7187         - fix the run-temacs target to use $(DUMPENV)
7188         - fix the run-puremacs target to use $(DUMPENV)
7189         - fix the `depend' target to properly $(RM) the right files
7190         - Generate a better TAGS file for XEmacs' lisp code using
7191           hand-crafted regexps.
7192         - Use standard coding conventions for modules/Makefile.in
7193
7194 1998-05-12  Didier Verna  <verna@inf.enst.fr>
7195
7196         * redisplay.c: removed the scrolling modeline code that didn't
7197         make it for 21.0. To be continued ...
7198
7199 1998-05-13  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
7200
7201         * emacs.c (Fdecode_path_internal): Removed bogus handling of nil
7202         and empty string inputs.
7203
7204 1998-05-12  Hrvoje Niksic  <hniksic@srce.hr>
7205
7206         * redisplay-x.c (x_output_vertical_divider): Fixed typo.
7207
7208 1998-05-10  Oliver Graf <ograf@fga.de>
7209
7210         * event-stream.c (enqueue_misc_user_event_pos): created
7211         * lisp.h (enqueue_misc_user_event_pos): prototype added
7212         * frame-x.c (x_cde_transfer_callback): debug code plus API changes
7213         * emacs.c: call vars_of_dragdrop
7214         * dragdrop.c (vars_of_dragdrop): provide dragdrop
7215
7216 1998-05-11  Oliver Graf <ograf@fga.de>
7217
7218         * frame-x.c (x_cde_transfer_callback): return at correct pos
7219         * event-Xt.c (x_event_to_emacs_event): changed format of drop
7220         object for MIME (see comment in dragdrop.c)
7221         * dragdrop.c: API change documented in comment
7222         removed provide of dragdrop [is provided by dragdrop.el]
7223
7224 1998-05-12  Kirill M. Katsnelson  <kkm@kis.ru>
7225
7226         * window.c (window_needs_vertical_divider): Enable vertical
7227         dividers for every non-rightmost window.
7228         (window_left_gutter_width): Left gutter consists of mythical
7229         toolbar and a virtual scrollbar.
7230         (window_right_gutter_width): The right one may have a divider
7231         also.
7232
7233         * scrollbar.c (update_scrollbar_instance): Position vertical
7234         scrollbar left to divider if the latter present.
7235
7236         * redisplay.h: Declared OVER_DIVIER constant.
7237
7238         * redisplay.c (pixel_to_glyph_translation): Handle OVER_DIVIDER
7239         case.
7240
7241         * redisplay-x.c (x_output_vertical_divider): Output divider along
7242         the right side of the window, down to window bottom. Swapped
7243         foreground and background colors so it is visible by default.
7244
7245         * redisplay-tty.c (tty_output_vertical_divider): Uncondiionally
7246         stick the divider to the right window side.
7247
7248         * redisplay-msw.c (mswindows_redisplay_deadbox_maybe): Fixed
7249         deadbox painting.
7250         (mswindows_divider_width): Ask system for user preferred value.
7251         (mswindows_output_vertical_divider): Always output the divider on
7252         the right side of a window, down to bottom.
7253
7254         * keymap.c (get_relevant_keymaps): Route mouse button events which
7255         happened over a window divider through window-divider-map.
7256         (Fkey_binding): Documented that in the docstring.
7257         Defined the variable Vwindow_divider_map.
7258
7259         * events.c (Fevent_over_divider_p): Added this function.
7260
7261         * events.h: EXFUNed it.
7262
7263 1998-05-12  Kirill M. Katsnelson  <kkm@kis.ru>
7264
7265         * toolbar.c (update_frame_toolbars): Re-layout frame windows if
7266         toolbar geometry is suspected to change.
7267
7268 1998-05-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
7269
7270         * src/device-msw.c
7271         * src/event-msw.c
7272         Condition dnd and dde code on HAVE_DRAGNDROP.
7273
7274 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
7275
7276         * events.c (format_event_object): Print space as SPC etc.
7277
7278 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
7279
7280         * print.c (print_internal): In the default case, abort() if
7281         ERROR_CHECK_TYPECHECK.
7282
7283         * fileio.c (Fmake_temp_name): Doc fix.
7284
7285 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
7286
7287         * xgccache.c (describe_gc_cache): Define only if DEBUG_XEMACS.
7288
7289         * undo.c (Fprimitive_undo): Fixed typo.
7290
7291 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
7292
7293         * fns.c (concat): Signal error on integer argument.
7294
7295 1998-05-10  Kirill M. Katsnelson  <kkm@kis.ru>
7296
7297         * console.h (device_metrics): Prefixed each constatnt with DM_
7298
7299         * device.c: (Fdevice_system_metric): Renamed so from plural form
7300         (metrics); Changed parameters order and added DEFAULT parameter;
7301         Unabbreviated some metric constants; Fixed and untabified doc string.
7302         (Fdevice_system_metrics): Added. Returns a plist of all provided
7303         metrics.
7304
7305         * device-msw.c (mswindows_device_system_metrics): Renamed
7306         device_metrics enum constants.
7307         Return Qunbound instead of Qnil.
7308
7309         * device-tty.c (tty_device_system_metrics): Ditto.
7310
7311         * device-x.c (x_device_system_metrics): Ditto.
7312
7313 1998-05-10  Andy Piper  <andyp@parallax.co.uk>
7314
7315         * redisplay-msw.c: implement background pixmaps (really!). Make
7316         sure bg color is transparent if we have bg pmaps.
7317         * (mswindows_output_string) (mswindows_clear_region): output bg
7318         pmap if required.
7319         * (mswindows_output_dibitmap_region): new function.
7320         * (mswindows_output_dibitmap): output offset pixmaps, blt masks in
7321         the bg color rather than transparently.
7322
7323         * toolbar-msw.c: use masks if they exist.
7324
7325         * glyphs-msw.c: set up masks correctly.
7326
7327         * event-msw.c: typedef SOCKET if cygwin and not msg select().
7328
7329 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
7330
7331         * regex.c (re_match_2_internal): Check for quit.
7332
7333 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
7334
7335         * frame.c (Ffocus_frame): New function.