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