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