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