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