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