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