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