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