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