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