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