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