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