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