4aaac5530d34801a83ead54c9a362d5d115e6550
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2003-09-03  Vin Shelton <acs@xemacs.org>
2
3         * XEmacs 21.4.14 is released
4
5 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6
7         * config.h.in (REGEX_MALLOC): Make it configure'able.
8
9 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
10
11         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
12         linking.
13         * sysdll.c (dll_init):
14         * sysdll.c (dll_open):
15         * sysdll.c (dll_close):
16         * sysdll.c (dll_function):
17         * sysdll.c (dll_variable):
18         * sysdll.c (dll_error):
19         Add support for loading bundles using Darwin/MacOSX
20         native API.
21
22 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
23
24         * process.c (start-process-internal): Document coding systems.
25
26 2003-07-30  Jerry James  <james@xemacs.org>
27
28         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
29
30 2003-07-31  RenĂ© Kyllingstad  <listmailxemacs@kyllingstad.com>
31
32         * event-msw.c (mswindows_enqueue_mouse_button_event):
33         * event-msw.c (mswindows_wnd_proc):
34           enqueue button event when scrollwheel event isn't handled by 
35           mswindows_handle_mousewheel_event, such as when the scrollbars
36           are not showing.
37
38 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
39
40         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
41
42 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
43
44         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
45
46 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
47
48         * regex.c (re_match_2_internal): Fix matching degenerate word
49         boundaries.
50
51 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
52
53         * XEmacs 21.4.13 is released
54
55 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
56
57         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
58         * lisp.h (<inttypes.h>):
59         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
60         the definition.
61
62 2003-03-15  Martin Buchholz  <martin@xemacs.org>
63
64         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
65         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
66         Result: "temacs can only be run in -batch mode."
67         Fix: Check xemacs executable candidate for directory-ness.
68
69 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
70
71         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
72           they conflict with <sys/types.h>.
73
74 2003-02-14  Martin Buchholz  <martin@xemacs.org>
75
76         * database.c: Berkeley DB wants __STDC__ to be defined.
77
78 2003-02-13  Martin Buchholz  <martin@xemacs.org>
79
80         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
81
82 2003-02-01  Martin Buchholz  <martin@xemacs.org>
83
84         * process-unix.c (unix_send_process): Fix C++ compile error.
85
86 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
87
88         * Added .dylib as an acceptable shared library file extension
89         * to support MacOSX.
90
91 2003-02-01  Martin Buchholz  <martin@xemacs.org>
92
93         * EmacsFrameP.h (EmacsFramePart):
94         Kludge to allow compiling with Motif1, but linking with Motif2.
95
96 2003-01-28  Martin Buchholz  <martin@xemacs.org>
97
98         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
99
100
101 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
102
103         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
104
105 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
106
107         * sysdll.c: Included lisp.h to define needed alloca_array.
108
109 2003-02-13  Martin Buchholz  <martin@xemacs.org>
110
111         Make XEmacs redisplay 10 times faster.
112         If, that is, you're using a slow X connection and MoveOpaque.
113         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
114         Use compress_motion = TRUE.
115         * EmacsFrame.c (emacsFrameClassRec): 
116         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
117         * EmacsManager.c (emacsManagerClassRec):
118         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
119
120 2003-01-30  Vin Shelton  <acs@xemacs.org>
121
122         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
123
124 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
125
126         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
127         Patch by Martin Buchholz.
128
129 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
130
131         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
132         Thanks to icc for warning and Martin Buchholz for reporting.
133
134 2003-01-29  Vin Shelton <acs@xemacs.org>
135
136         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
137
138         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
139         remember to multiply by the element size.
140
141 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
142
143         * XEmacs 21.4.12 "Portable Code" is released.
144
145 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
146
147         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
148         * s/cygwin.sc: new linker file.
149
150 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
151
152         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
153
154         * redisplay-x.c (x_output_string): Use X11-specified types.
155         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
156         * emacs.c (__free_hook): Use typeof with Intel compiler.
157         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
158
159 2003-01-08  Andy Piper  <andy@xemacs.org>
160
161         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
162         reserve size during unexec().
163
164 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
165
166         * process-unix.c (unix_create_process): Don't let outchannel block.
167
168 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
169
170         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
171         Needed for IsBadReadPtr().
172
173 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
174
175         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
176
177 2002-12-14  Ben Wing  <ben@xemacs.org>
178
179         * callint.c: Declaration error.
180         * dumper.c (pdump):
181         * dumper.c (pdump_load): Warning fix.
182         * process.c: GCPRO error.
183         * glyphs.c (unmap_subwindow):
184         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
185         * event-stream.c (maybe_kbd_translate): Wrong argument to
186         character_to_event().
187
188         * alloc.c (garbage_collect_1):
189         * emacs.c:
190         * emacs.c (debug_can_access_memory):
191         * emacs.c (fatal_error_signal):
192         * emacs.c (mswindows_handle_hardware_exceptions):
193         * emacs.c (main_1):
194         * emacs.c (main):
195         * emacs.c (assert_failed):
196         * emacs.c (syms_of_emacs):
197         * lisp.h:
198         * print.c:
199         * print.c (std_handle_out_va):
200         * print.c (write_string_to_stdio_stream):
201         * print.c (write_fmt_string):
202         * print.c (printing_badness):
203         * print.c (printing_major_badness):
204         * print.c (print_internal):
205         * print.c (debug_print_no_newline):
206         * print.c (debug_backtrace):
207         Be more defensive in handling bad values when printing.  Add code
208         from trunk involving inhibit_non_essential_printing_operations.
209         When going down or in debug_print(), don't do external conversion
210         and such and try really, really hard when printing to avoid core
211         dumping.  Add force-debugging-signal, debug_break().
212
213 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
214
215         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
216         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
217
218 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
219
220         * database.c: Fix open_database. Berkeley DB API has changed in
221         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
222
223 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
224
225         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
226
227 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
228
229         * event-Xt.c (Xt_timeout):
230         (Xt_timeout_callback):
231         (emacs_Xt_add_timeout):
232         (emacs_Xt_remove_timeout):
233         (Xt_timeout_to_emacs_event):
234         Turn completed_timeouts from a stack into a queue.  Fixes
235         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
236
237 2002-11-07  Wolfram Gloger  <wg@malloc.de>
238
239         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
240         * emacs.c (main): Assert that mmap'd allocation is disabled.
241
242 2002-10-14  Andy Piper  <andy@xemacs.org>
243
244         * glyphs-widget.c (layout_query_geometry): add in fiddle
245         factor. Include border text in width layout calculation.
246         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
247
248 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
249
250         * XEmacs 21.4.10 "Military Intelligence" is released.
251
252 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
253
254         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
255         using the NAS private array SoundFileInfo that no longer exists in
256         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
257         and earlier.  This is broken for some versions between 1.5a and
258         1.5f.
259
260 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
261
262         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
263
264         * emacs.c (shut_down_emacs): Improve crash message.
265
266 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
267
268         * file-coding.c (determine_real_coding_system): Check for coding
269         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
270         shebangs and Python PEP 263.
271
272 2002-10-08  Andy Piper  <andy@xemacs.org>
273
274         * glyphs-widget.c (layout_query_geometry): only resize dynamically
275         if static sizes haven't been set.
276
277 2002-08-30  Mike Alexander  <mta@arbortext.com>
278
279         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
280         to close a socket.
281
282 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
283
284         * callproc.c (child_setup): 21.4 doesn't have retry_close.
285
286 2002-09-20  Mike Sperber <mike@xemacs.org>
287
288         (This partially gets back my patch from 2002-07-20 without the
289         bug.)
290         * callproc.c (child_setup): Remove Ben's comment noting confusion
291         over the file descriptors >= 3: close_process_descs() doesn't
292         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
293         * process-unix.c (unix_create_process): Call
294         begin_dont_check_for_quit to inhibit unwanted interaction (and
295         thus breaking of X event synchronicity) in the child.
296
297 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
298
299         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
300         widget.
301
302 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
303
304         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
305         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
306         the xemacs process did not exit, but looped infinitely here.  This
307         fixes that problem.
308
309 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
310
311         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
312         (find_context): Improve comments.
313
314         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
315         (re_match_2): An XCHAR_TABLE operation was missing.
316
317         Many of the following changes were inspired by Andy Piper's (now
318         obsolete) patch to make syntax-table text property lookup optional.
319
320         [Documentation]
321
322         * syntax.h (top level): Document semantics of syntax flags.
323         * syntax.c (comstr_start, Fforward_comment): Improve comments.
324         * syntax.c, syntax.h (top level): Document syntax cache better in
325         comments.
326
327         [Instrument syntax caching (temporary change)]
328
329         * syntax.h (enum syntax_cache_statistics_functions, struct
330         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
331         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
332         * syntax.c (scan_words, Fforward_comment, scan_lists,
333         Fbackward_prefix_characters):
334         * font-lock.c (find_context):
335         Use them to instrument syntax caching. 
336         * syntax.c (struct syntax_cache_statistics, scs_statistics,
337         syntax_cache_statistics_function_names): New type and variables.
338         * syntax.c (update_syntax_cache): Update and report statistics.
339
340         [Major syntax cache optimizations]
341
342         syntax.c (lookup_syntax_properties): Default off.
343
344         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
345         * syntax.c (update_syntax_cache):
346         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
347
348         [Minor syntax cache optimizations and code clarifications]
349
350         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
351         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
352         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
353         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
354         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
355         (Code clarification.)
356
357         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
358         scan_lists): Compute code from syncode, use Boolean macros instead
359         of redundant masking operations.  (Code clarification; any decent
360         compiler can do this optimization.)
361
362         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
363         for clarity.
364
365         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
366         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
367         use F*_single_property_change instead of F*_extent_change.
368         Currently F*_single_property_change is _much_ less efficient.
369
370         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
371         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
372         syntax_cache.object properly, don't leave Qt or Qnil.
373         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
374         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
375         tests for Qt or Qnil.
376
377 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
378
379         * redisplay.c (point_in_line_start_cache): 
380         * extents.c (print_extent_1):
381         Fix warnings.
382
383         * extents.c (Fset_extent_property): Document `syntax-table' property.
384
385         * extents.h (Fnext_single_property_change): EXFUN it.
386
387 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
388
389         * search.c (clear_unused_search_regs): New static function.
390         (search_buffer): 
391         (simple_search): 
392         (boyer_moore):
393         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
394         Minor clarifications in comments.
395
396         * regex.c (re_match_2_internal): Ensure no stale submatches.
397
398 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
399
400         * event-Xt.c (enqueue_focus_event): Add missing prototype.
401
402 2002-08-29  Jerry James  <james@xemacs.org>
403
404         * lisp.h: structrures -> structures.
405
406 2002-06-03  Andy Piper  <andy@xemacs.org>
407
408         * frame.c (frame_conversion_internal): add conversion appropriate
409         for setting frame dimensions in pixels.
410
411         * console.h (struct console_methods): add device-specific widget
412         layout functions.
413
414         * emacs.c (main_1): initialize glyph vars.
415
416         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
417         (handle_focus_event_2): new function. Allow focus to
418         be set to a particular window and widget.
419         (enqueue_focus_event): new function. Create a
420         synthetic focus event.
421         (emacs_Xt_handle_magic_event): call
422         handle_focus_event_2.
423
424         * frame.c (Fset_frame_pixel_height): new function. Allow
425         pixel-based sizing. Does the right thing on character-oriented
426         displays.
427         (Fset_frame_pixel_width): ditto.
428         (Fset_frame_pixel_size): ditto.
429         (syms_of_frame): declare.
430
431         * general-slots.h: add :vertically-justify and
432         :horizontally-justify.
433
434         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
435         (mswindows_widget_border_width): new function.
436         (mswindows_combo_box_instantiate): set border widths.
437         (console_type_create_glyphs_mswindows): declare.
438
439         * glyphs-widget.c:
440         (check_valid_justification): allow vertical and horizontal
441         justification.
442         (widget_border_width): new function. Call device methods.
443         (widget_instance_border_width): ditto.
444         (logical_unit_height): new function. Determine the height of a
445         logical-unit. Logical units are intended to provide grid-like
446         layout for subcontrols in a layout. If the layout is
447         :vertically-justify top then subcontrols will be positioned on
448         logical-unit boundaries, thus allowing adjacent subcontrols to
449         line up.
450         (widget_logical_unit_height): ditto for widgets.
451         (redisplay_widget): misc cleanup.
452         (widget_spacing): new function. Call device specific
453         methods. Intended to be the default gap between adjacent widgets.
454         (widget_query_geometry): use new spacing functions to determine
455         appropriate geometry.
456         (initialize_widget_image_instance): initialize horizontal and
457         vertical justification.
458         (widget_instantiate): use logica-units where appropriate for
459         sizing large widgets.
460         (button_query_geometry): use widget_instance_border_width.
461         (tree_view_query_geometry): ditto.
462         (tab_control_query_geometry): ditto.
463         (edit_field_query_geometry): new function.
464         (layout_update): pick up :justify, :horizontally-justify and
465         :vertically-justify none of which worked previously. :justify is
466         used as a fallback for both horizontal and vertical justification.
467         (layout_query_geometry): use logical units to size appropriately.
468         (layout_layout): ditto.
469         (Fwidget_logical_to_character_width): new function. Allow users to
470         convert from logical units to characters so that frame sizes can
471         be set appropriately.
472         (Fwidget_logical_to_character_height): ditto.
473         (syms_of_glyphs_widget): declare.
474         (image_instantiator_edit_fields): add edit_field_query_geometry.
475         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
476         :horizontally-justify.
477         (specifier_vars_of_glyphs_widget): new function. Declare
478         Vwidget_border_width which is not yet used.
479
480         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
481         (x_widget_border_width): new function.
482         (x_widget_instantiate): create a sensible name for widgets.
483         (console_type_create_glyphs_x): declare x_widget_border_width.
484
485         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
486         (struct Lisp_Image_Instance): add :vertically-justify and
487         :horizontally-justify.
488         (LAYOUT_JUSTIFY_TOP): new.
489         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
490         (ROUND_UP): new macro. Round argument up to next integral
491         interval.
492
493         * redisplay-output.c (redisplay_output_layout): misc formatting.
494
495         * symsinit.h: declare specifier_vars_of_glyphs_widget.
496
497 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
498
499         * XEmacs 21.4.9 "Informed Management" is released.
500
501 2002-08-19  Andy Piper  <andy@xemacs.org>
502
503         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
504         win32 format.
505
506         * realpath.c (xrealpath): normalize drive spec also so that dir
507         sep chars are not mixed on cygwin.
508
509 2002-08-06  Jerry James  <james@xemacs.org>
510
511         * window.c (Fsplit_window): Count only half of the divider width
512         against the left window when splitting horizontally. 
513
514 2002-06-24  Andy Piper  <andy@xemacs.org>
515
516         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
517         toolbar was cleared.
518
519         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
520         function. Split out from mswindows_output_frame_toolbars.
521         (mswindows_output_frame_toolbars): move clear pieces to
522         mswindows_output_frame_toolbars.
523
524         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
525         out from gtk_output_frame_toolbars.
526         (gtk_output_frame_toolbars): move clear pieces to
527         gtk_clear_frame_toolbars.
528
529         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
530         the frame is cleared. How this ever worked before is a mystery.
531         (x_output_frame_toolbars): Only output toolbars.
532         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
533
534         * gutter.c (update_gutter_geometry):
535         Mark frame layout changed.
536         (update_frame_gutter_geometry, update_frame_gutters):
537         Respect frame_layout_changed.
538
539         * console.h (struct console_methods): add
540         clear_frame_toolbars_method.
541
542         * redisplay.c (redisplay_frame): call
543         update_frame_toolbars_geometry and re-order update_frame_toolbars.
544
545         * toolbar.h: declare update_frame_toolbars_geometry.
546
547         * toolbar.c (update_frame_toolbars_geometry): new function. Split
548         out from update_frame_toolbars.  Call clear_frame_toolbars.
549         (update_frame_toolbars): only output, do not change geometry.
550
551         * redisplay.c: add frame_layout_changed.
552
553         * redisplay.h: add frame_layout_changed.
554         (CLASS_RESET_CHANGED_FLAGS): set it.
555         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
556         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
557         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
558
559         * device.h (struct device): add frame_layout_changed.
560         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
561
562         * frame.h (struct frame): add frame_layout_changed.
563         (MARK_FRAME_LAYOUT_CHANGED): new.
564
565 2002-06-30  Mike Alexander  <mta@arbortext.com>
566
567         * event-msw.c (mswindows_need_event): Don't wait for a new message
568         if the queue is not empty.  Suggested by Paul Moore.
569
570 2002-06-12  Andy Piper  <andy@xemacs.org>
571
572         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
573         for printing on accurately.
574
575 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
576
577         * event-msw.c (mswindows_wnd_proc): Add a handler for the
578         WM_ACTIVATE message. Make sure that the frame is visible if the
579         window is visible. This seemss to fix the problem where XEmacs
580         appears to freeze after switching desktops with certain virtual
581         window managers.
582         (debug_output_mswin_message): Added code to output message
583         parameters for WM_WINDOWPOSCHANGED, 
584         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
585
586 2002-05-25  Andy Piper  <andy@xemacs.org>
587
588         * select-x.c (vars_of_select_x): Fix docstring of
589         x-selection-strict-motif-ownership
590
591 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
592
593         * keymap.c (get_keymap):
594         Add comment about do_autoload GCPROs own args.
595
596 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
597
598         * bytecode.c (execute_optimized_program): check_opcode ifdef
599         ERROR_CHECK_BYTE_CODE.
600
601 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
602
603         Thanks to Ben Wing and Michael Sperber.
604
605         * eval.c (Fcommand_execute):
606         (Feval):
607         (Ffuncall):
608         (Fmacroexpand_internal):
609         (function_argcount):
610         callint.c (Fcall_interactively):
611         Add comment about do_autoload GCPROs own args.
612
613         * (do_autoload): GCPRO both args as well as local Lisp_Object.
614
615         * eval.c (Ffuncall): Extra braces to placate GCC.
616
617 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
618
619         * backtrace.h (grow_specpdl):
620         (SPECPDL_RESERVE):
621         * EmacsFrame.c (EmacsFrameSetValues):
622         * eval.c (grow_specpdl):
623         * ExternalShell.c (hack_event_masks_1):
624         * glyphs-x.c (convert_EImage_to_XImage): 
625         (x_finalize_image_instance):
626         * ralloc.c (page_size):
627         (r_alloc_sbrk):
628         * xgccache.c (gc_cache_hash):
629         Fix unsigned comparison warnings.
630
631 2002-07-29  Jerry James  <james@xemacs.org>
632
633         * lread.c (locate_file): Any nonnegative return value indicates
634         success if MODE is nonnegative.
635
636 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
637
638         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
639         argument. 
640
641 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
642
643         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
644
645         * dumper.c (pdump_get_indirect_count):
646         (pdump_scan_by_alignment):
647         (pdump_dump_root_struct_ptrs):
648         (pdump_dump_rtables):
649         (pdump_dump_root_objects):
650         (pdump):
651         * nas.c (WaveOpenDataForReading):
652         * fns.c (print_bit_vector):
653         * font-lock.c (SINGLE_SYNTAX_STYLE):
654         * glyphs.c (check_for_ignored_expose):
655         (find_matching_subwindow):
656         * glyphs-eimage.c:
657         * imgproc.c (get_histogram):
658         * redisplay.c (point_in_line_start_cache):
659         * redisplay-output.c (redisplay_unmap_subwindows):
660         * symbols.c (defsymbol_massage_name_1):
661         (defkeyword_massage_name):
662         (deferror_massage_name_and_message):
663         * redisplay-x.c (x_output_string): 
664         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
665         * frame.h (struct frame):
666         * filelock.c (current_lock_owner):
667         * doprnt.c (emacs_doprnt_1):
668         * lisp.h (struct Lisp_Bit_Vector):
669         (DO_REALLOC):
670         Fix warnings.
671
672 2002-02-13  Ben Wing  <ben@xemacs.org>
673
674         * event-stream.c (reset_key_echo):
675         * event-stream.c (reset_this_command_keys):
676         * event-stream.c (execute_command_event):
677         If console is dead as a result of C-x 5 0, then post-command stuff
678         needs to be careful and do only non-console-specific stuff.
679
680 2002-07-01  Mike Sperber <mike@xemacs.org>
681
682         * process-unix.c (unix_send_process): Mark coding_outstream as
683         non-open upon SIGPIPE.
684
685         * event-stream.c (Fnext_event): Reorder switch cases to something
686         that makes sense.
687
688 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
689
690         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
691         Don't bogusly reinitialize ascii_character property.
692
693 2002-07-08  Mike Sperber <mike@xemacs.org>
694
695         * process.c (Fstart_process_internal): Do error checking before we
696         fork off the child, so the child can't muck with the state of the
697         parent.
698
699 2002-07-08  Mike Sperber <mike@xemacs.org>
700
701         * ralloc.c (init_ralloc): Allocate properly for pdump.
702
703 2002-06-12  Andy Piper  <andy@xemacs.org>
704
705         * glyphs.c (query_string_geometry): check the string.
706
707         * glyphs-widget.c (widget_logical_unit_height): cope with nil
708         widget names.
709
710 2002-06-17  Jerry James  <james@xemacs.org>
711
712         * sysdll.c: Remove RTLD_GLOBAL initialization.
713         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
714
715 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
716
717         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
718
719 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
720
721         * sysdep.c (sys_rename): Make sys_rename work for the case where
722         Windows rename sets errno to EACCES if target file exists.
723
724 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
725
726         * device-msw.c (mswindows_handle_page_setup_dialog_box):
727         Fix detection of metric units to work on Win95
728
729 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
730
731         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
732
733 2002-04-25  Andy Piper  <andy@xemacs.org>
734
735         * redisplay.c (create_text_block): Remove extra comment trailer.
736
737 2002-04-24  Andy Piper  <andy@xemacs.org>
738
739         * redisplay.c (create_text_block): Don't actually add propagation
740         data if the line ends after we have added a glyph.
741
742 2002-04-22  Andy Piper  <andy@xemacs.org>
743
744         * extents.c (extent_fragment_update): check for glyphs we have
745         previously displayed.
746         * extents.c (print_extent_1): warning removal.
747         * extents.h: change prototype.
748         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
749         widths correctly for wide glyphs.
750         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
751         * redisplay.c (prop_type): add PROP_GLYPH.
752         * redisplay.c (struct prop_block): add glyph type
753         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
754         to the propagation data.
755         * redisplay.c (create_text_block): if there is a glyph in the
756         propagation data use it to salt extent_fragment_update.
757         * redisplay.c (create_string_text_block): ditto.
758
759 2002-04-13  Nix  <nix@esperi.demon.co.uk>
760
761         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
762         * redisplay-output.c (compare_runes): Compare them.
763         * redisplay.c: Update copyright date.
764         * redisplay.c (pos_data): Add need_baseline_computation field.
765         * redisplay.c (add_glyph_rune): Update ascent, descent, and
766         need_baseline_computation; zero yoffset. Set max_pixmap_height
767         for all pixmaps, not just automatically positioned ones.
768         * redisplay.c (calculate_yoffset): New, compute yoffset values.
769         * redisplay.c (calculate_baseline): New, compute textual baseline.
770         * redisplay.c (add_glyph_rune): Call them.
771         * redisplay.c (create_text_block): Likewise.
772         * redisplay.c (create_overlay_glyph_block): Likewise.
773         * redisplay.c (add_margin_runes): Likewise.
774         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
775
776         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
777         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
778         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
779         * redisplay-msw.c (mswindows_output_string): Likewise.
780         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
781         * redisplay-gtk.c (gtk_output_display_block): Likewise.
782         * redisplay-x.c (x_output_display_block): Likewise.
783
784 2002-03-28  Ben Wing  <ben@xemacs.org>
785
786         * redisplay.c: Fixed bug in redisplay
787         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
788         and down of the lines, since they're bigger than the line
789         size. (It was seen most obviously when there's a horizontal scroll
790         bar, e.g. do C-h a glyph or something like that.) The problem was
791         that the glyph-contrib-p setting on glyphs was ignored even if it
792         was set properly, which it wasn't until now.
793
794 2002-04-24  Andy Piper  <andy@xemacs.org>
795
796         * lisp.h (Dynarr_end): Fix definition.
797
798 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
799
800         * redisplay.c (mark_redisplay): Remove call to
801         update_frame_window_mirror.
802
803 2001-11-15  Andy Piper  <andy@xemacs.org>
804
805         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
806         cygwin (again).
807
808 2002-02-13  Andy Piper  <andy@xemacs.org>
809
810         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
811         we did in fact enqueue the XM_MAPFRAME event.
812
813 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
814
815         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
816         to fix problem switching between virtual desktops under virtuawin
817         virtual window manager.
818
819 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
820
821         * event-msw.c: Typo fix.
822         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
823         magic XM_MAPFRAME event has been sent.
824
825 2001-11-23  Andy Piper  <andy@xemacs.org>
826
827         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
828
829 2001-11-21  Andy Piper  <andy@xemacs.org>
830
831         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
832         mouse events outside the frame.
833
834 2002-03-20  Andy Piper  <andy@xemacs.org>
835
836         * menubar-msw.c (mswindows_popup_menu): warning removal.
837         * dialog-msw.c (dialog_popped_down): ditto.
838
839 2001-12-11  Andy Piper  <andy@xemacs.org>
840
841         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
842         * dialog-msw.c (mswindows_make_dialog_box_internal): set
843         popup_up_p.
844         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
845         * menubar-msw.c (mswindows_handle_wm_command): ditto.
846         * menubar-msw.c (mswindows_popup_menu): ditto.
847
848 2001-10-29  Andy Piper  <andy@xemacs.org>
849
850         * dialog-msw.c (handle_directory_dialog_box): quit if the user
851         cancels.
852
853 2002-01-03  Andy Piper  <andy@xemacs.org>
854
855         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
856         letters.
857         (xrealpath): ditto.
858
859 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
860
861         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
862         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
863         * device-msw.c (mswindows_handle_page_setup_dialog_box):
864         Detect and handle case where machine is set up for metric units
865
866 2002-04-02  Andy Piper  <andy@xemacs.org>
867
868         * dired-msw.c (mswindows_get_files): 
869         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
870         completely handled by XEmacs. Suggested by Thomas Vogler
871         <mail@thomas-vogler.de>.
872
873 2001-11-14  Andy Piper  <andy@xemacs.org>
874
875         * nt.c (REG_ROOT): change registry key to XEmacs.
876
877 2002-04-27  Andy Piper  <andy@xemacs.org>
878
879         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
880
881 2002-04-26  Andy Piper  <andy@xemacs.org>
882
883         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
884         behavior.
885
886 2002-03-14  Mike Alexander  <mta@arbortext.com>
887
888         * event-msw.c (mswindows_unwait_process): New, remove process from
889         wait list
890         * process-nt.c (nt_finalize_process_data): Call
891         mswindows_unwait_process
892         * console-msw.h: Declare mswindows_unwait_process
893
894 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
895
896         * editfns.c (Fdecode_time):
897         (Fformat_time_string):
898         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
899         (make_time): Warning elimination (change arg name).
900
901 2001-11-24  Andy Piper  <andy@xemacs.org>
902
903         * window.c (Fsplit_window): Doc return type.
904
905 2002-04-01  Andy Piper  <andy@xemacs.org>
906
907         * emacs.c (Fkill_emacs): Only output message box in interactive
908         mode.
909
910 2002-04-26  Andy Piper  <andy@xemacs.org>
911  
912         * config.h.in: pull in 21.5.x change to stop alloca warnings under
913         cygwin.
914
915 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
916
917         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
918         bit platform.
919
920 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
921
922         * XEmacs 21.4.8 "Honest Recruiter" is released.
923
924 2002-05-07  Nix  <nix@esperi.demon.co.uk>
925
926         Supersedes 2002-04-17 patch.
927
928         * process.h (PROCESS_LIVE_P): Use the process status as
929         evidence of health, not the state of the input stream.
930         (PROCESS_READABLE_P): Say if the process is readable
931         from. (It may be dead nonetheless.)
932         (CHECK_READABLE_PROCESS): Test for that condition.
933
934         * process.c (create_process): Use PROCESS_READABLE_P.
935         (read_process_output, set_process_filter): Likewise.
936
937         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
938         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
939
940         This code is #if 0'd, this is not the time to add new functions:
941
942         * process.c (Fprocess_readable_p): Report readability status.
943         * process.c (Qprocess_readable_p): New, associated symbol...
944         * process.c (syms_of_process): ... initialize it.
945
946 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
947
948         * XEmacs 21.4.7 "Economic Science" is released.
949
950 2002-04-17  Nix  <nix@esperi.demon.co.uk>
951
952         * process.h (PROCESS_LIVE_P): Use the process status as
953         evidence of health, not the state of the input stream.
954
955 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
956
957         * sysdep.c (sys_siglist): change "signum" to "signal"
958
959 2001-04-21  Martin Buchholz  <martin@xemacs.org>
960
961         * s/darwin.h: New file.
962         Thanks to Greg Parker <gparker@cs.stanford.edu>.
963         
964 2002-04-23  Andreas Jaeger  <aj@suse.de>
965
966         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
967         which use lib64 for 64-bit libs.
968         (START_FILES): Likewise.
969
970 2002-02-11  Mike Sperber  <mike@xemacs.org>
971
972         * device-x.c: 
973         (x_IO_error_handler):
974         (x_init_device): Temporarily keep device in static variable
975         `device_being_initialized' so we can recover gracefully from
976         internal XOpenDevice failure.  (XOpenDevice is documented to
977         return NULL on failure, but sometimes calls the IO error handler
978         instead.)
979
980 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
981
982         * dired.c (Ffile_name_all_completions): Change documentation --
983         remove reference to completion-ignored-extensions.
984         * dired.c (vars_of_dired): Change documentation for
985         completion-ignored-extensions -- remove reference to
986         file-name-all-completions.
987
988 2002-03-06  Jerry James  <james@xemacs.org>
989
990         * emodules.c (emodules_load): Fix multiple loading of same module.
991
992 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
993         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
994         RTLD_LAZY to avoid incorrect symbol binding when using nested
995         shared libraries on Solaris.
996
997 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
998
999         * fileio.c (Ffind_file_name_handler): Improve docstring.
1000
1001 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
1002
1003         * fns.c (Fmapconcat): Improve docstring.
1004
1005 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
1006
1007         * device-gtk.c: Add prototype for
1008         emacs_gtk_selection_clear_event_handle.
1009         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
1010         selection.  Setup signal handler for "selection_clear_event"
1011         (emacs_gtk_selection_clear_event_handle).
1012
1013         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
1014         other applications owning the clipboard (based on
1015         x_handle_selection_clear).
1016
1017 2001-12-23  William M. Perry  <wmperry@gnu.org>
1018
1019         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
1020         
1021 2002-01-04  Martin Buchholz  <martin@xemacs.org>
1022
1023         * keymap.c (define_key_alternate_name): Parenthesize EQ.
1024
1025 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
1026
1027         * XEmacs 21.4.6 "Common Lisp" is released.
1028
1029 2001-12-16  Torsten Duwe  <duwe@caldera.de>
1030
1031         * search.c (Freplace_match): Add missing sub-expression functionality.
1032
1033         * buffer.c (decode_buffer): Add a check for pointer type to
1034         decode_buffer, before gcc's CSE optimization reorders a
1035         dereference in front of the allow_string test.
1036
1037 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
1038
1039         * window.c (window_loop): Fix bug that sometimes prevented
1040         window_loop() from iterating across multiple devices.  Also, at
1041         Ben's request, changed infloop-detecting code to abort() instead
1042         of silently terminating window_loop().
1043
1044 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
1045
1046         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
1047         * editfns.c (make_time): New function.
1048         (Fencode_time): Use it instead of wasteful_word_to_lisp.
1049         * lisp.h (make_time): Prototype and comment it.
1050         * dired.c (wasteful_word_to_lisp): Deprecate.
1051         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
1052
1053 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
1054
1055         * fileio.c (auto_save_1): Use current coding system, not
1056         escape-quoted.
1057
1058 2001-11-13  Ben Wing  <ben@xemacs.org>
1059
1060         * window.c:
1061         * window.c (window_truncation_on):
1062         * window.c (syms_of_window):
1063         truncate-partial-width-windows should respect the buffer being
1064         displayed, like other redisplay vars.
1065
1066 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
1067
1068         * event-stream.c (Fread_key_sequence): save current buffer.
1069
1070 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
1071
1072         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
1073
1074 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
1075
1076         * alloc.c (lcrecord_stats): Add space for types defined in modules.
1077
1078 2001-10-26  Mike Alexander  <mta@arbortext.com>
1079
1080         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
1081
1082 2001-10-25  Andy Piper  <andy@xemacs.org>
1083
1084         * ChangeLog:
1085         * dialog-msw.c (handle_directory_proc): new function.
1086          (handle_directory_dialog_box): new fucntion.
1087          (handle_file_dialog_box): use new directory dialog support.
1088          (mswindows_make_dialog_box_internal): ditto.
1089         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
1090         handling.
1091         (mswindows_find_frame): make global.
1092         * fileio.c (Fexpand_file_name): build fix.
1093         * general-slots.h: add Qdirectory.
1094         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
1095         handling.
1096         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
1097         cygwin not leaving win32 paths unchanged.
1098         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
1099         cygwin runtime to do path conversion.
1100         (Fmswindows_shell_execute): fix cygwin handling of URLs.
1101         (syms_of_win32): add new function.
1102         * window.c (window_loop): build fix.
1103
1104 2001-10-15  Andy Piper  <andy@xemacs.org>
1105
1106         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
1107
1108 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
1109
1110         * XEmacs 21.4.5 "Civil Service" is released.
1111
1112 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
1113
1114         * glyphs-x.c: Force buffer-tab highlight update when moving the
1115         buffer, avoiding an ugly black border, used for keyboard focus
1116         indication, on a widget that can never have keyboard focus, the
1117         buffer tab.
1118
1119 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
1120
1121         * process-unix.c (unix_open_multicast_group): Remove too much
1122         conversion between host and network byte order.
1123
1124 2001-09-10  Nix  <nix@esperi.demon.co.uk>
1125
1126         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
1127         before replacing them.
1128
1129         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
1130         operation.
1131
1132         * src/window.c (undedicate_windows): Use it.
1133         * src/window.h: Add prototype.
1134
1135 2001-09-17  Ben Wing  <ben@xemacs.org>
1136
1137         * fileio.c (normalize_filename):
1138         * fileio.c (Fexpand_file_name):
1139         Fix various C++ compile errors in Andy's recent code.
1140         
1141         * callint.c (Fcall_interactively):
1142         * editfns.c (Ftemp_directory):
1143         * editfns.c (Fuser_full_name):
1144         * emacs.c (argmatch):
1145         * lread.c (locate_file_map_suffixes):
1146         * redisplay-x.c (x_ring_bell):
1147         Fix sign-compare warnings.
1148         
1149 2001-09-08  Andy Piper  <andy@xemacs.org>
1150
1151         * fileio.c (normalize_filename): copied from nt.c
1152         * (Ffile_name_directory): enable win32 paths under cygwin.
1153         * (Ffile_name_nondirectory): ditto.
1154         * (directory_file_name): ditto.
1155         * (Fexpand_file_name): ditto.
1156         * (Ffile_truename): ditto.
1157         * (Fsubstitute_in_file_name): ditto.
1158         * (Ffile_name_absolute_p): ditto.
1159         * (Ffile_readable_p): ditto.
1160
1161 2001-09-08  Andy Piper  <andy@xemacs.org>
1162
1163         * device-msw.c (mswindows_finish_init_device): remove dde
1164         initialization.
1165         * device-msw.c (mswindows_init_dde): factor out from
1166         mswindows_finish_init_device()
1167         * device-msw.c (init_mswindows_very_early): new function
1168         initialize but don't enable dde.
1169         * emacs.c (main_1): call init_mswindows_very_early.
1170         * event-msw.c:
1171         * event-msw.c (mswindows_dde_callback): only execute when we are
1172         ready.
1173         * symsinit.h: declare init_mswindows_very_early.
1174
1175 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
1176
1177         [sjt: This has been in 21.5 for months with no complaints.]
1178
1179         * console.h (struct console_methods): Added flags member.
1180         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
1181         (CONMETH_IMPL_FLAG):
1182         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
1183         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
1184
1185         * device.c (window_system_pixelated_geometry): Use the above macros.
1186
1187         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
1188         implememntation flag.
1189         * device.h (DEVICE_DISPLAY_P): Use it.
1190
1191         * frame.c (delete_frame_internal): Use the above macro.
1192
1193         * redisplay.c (redisplay_device): Use it.
1194         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
1195         (redisplay_frame): Ditto.
1196
1197         * device-msw.c (mswindows_device_implementation_flags): Removed.
1198         (msprinter_device_implementation_flags): Removed.
1199         (console_type_create_device_mswindows): Removed references to
1200         implementation_flags methods, set implementation flags here.
1201         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
1202
1203         * device-gtk.c (gtk_device_implementation_flags): Removed method.
1204         (console_type_create_device_gtk): Removed method declaration.
1205         Added commented out statement which semantically matches the
1206         commented out statement in the above removed method.
1207
1208 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
1209
1210         The attached patch fixes a few warnings. 
1211
1212         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
1213         * src/frame-gtk.c: guard against GNOME calls in GTK only
1214         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
1215         * src/select-gtk.c: prototype lisp_to_time
1216
1217 2001-06-08  Ben Wing  <ben@xemacs.org>
1218
1219         ------ gc-in-window-procedure fixes ------
1220         
1221         * alloc.c:
1222         * alloc.c (struct post_gc_action):
1223         * alloc.c (register_post_gc_action):
1224         * alloc.c (run_post_gc_actions):
1225         * alloc.c (garbage_collect_1):
1226         Create "post-gc actions", to avoid those dreaded "GC during window
1227         procedure" problems.
1228
1229         * event-msw.c:
1230         Abort, clean and simple, when GC in window procedure.  We want
1231         to flush these puppies out.
1232
1233         * glyphs-msw.c:
1234         * glyphs-msw.c (finalize_destroy_window):
1235         * glyphs-msw.c (mswindows_finalize_image_instance):
1236         Use a post-gc action when destroying subwindows.
1237
1238         * lisp.h:
1239         Declare register_post_gc_action().
1240
1241         * scrollbar-msw.c:
1242         * scrollbar-msw.c (unshow_that_mofo):
1243         Use a post-gc action when unshowing scrollbar windows, if in gc.
1244
1245         * redisplay.c (mark_redisplay):
1246         Add comment about the utter evilness of what's going down here.
1247
1248         ------ cygwin setitimer fixes ------
1249         
1250         * Makefile.in.in (sheap_objs):
1251         * Makefile.in.in (profile_objs):
1252         * Makefile.in.in (objs):
1253         Compile profile.c only when HAVE_SETITIMER.
1254         
1255         * nt.c (mswindows_sigset):
1256         * nt.c (mswindows_sighold):
1257         * nt.c (mswindows_sigrelse):
1258         * nt.c (mswindows_sigpause):
1259         * nt.c (mswindows_raise):
1260         * nt.c (close_file_data):
1261         Style fixes.
1262         
1263         * nt.c:
1264         Move setitimer() emulation to win32.c, because Cygwin needs it too.
1265         
1266         * profile.c:
1267         * profile.c (Fstart_profiling):
1268         * profile.c (Fstop_profiling):
1269         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
1270         instead of just plain setitimer().
1271         
1272         * signal.c:
1273         * signal.c (set_one_shot_timer):
1274         * signal.c (alarm):
1275         Define qxe_setitimer() as an encapsulation around setitimer() --
1276         call setitimer() directly unless Cygwin or MS Win, in which case
1277         we use our simulated version in win32.c.
1278         
1279         * systime.h:
1280         * systime.h (struct itimerval):
1281         * systime.h (ITIMER_REAL):
1282         Prototype mswindows_setitimer() and qxe_setitimer().  Long
1283         comment about "qxe" and the policy regarding encapsulation.
1284
1285         * win32.c:
1286         * win32.c (setitimer_helper_proc):
1287         * win32.c (setitimer_helper_period):
1288         * win32.c (setitimer_helper):
1289         * win32.c (mswindows_setitimer):
1290         Move setitimer() emulation here, so Cygwin can use it.
1291         Rename a couple of functions and variables to be longer and more
1292         descriptive.  In setitimer_helper_proc(), send the signal
1293         using either mswindows_raise() or (on Cygwin) kill().  If for
1294         some reason we are still getting lockups, we'll change the kill()
1295         to directly invoke the signal handlers.
1296
1297         ------ windows shell fixes ------
1298         
1299         * callproc.c:
1300         * ntproc.c:
1301         Comments about how these two files must die.
1302
1303         * callproc.c (init_callproc):
1304         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
1305         not just COMSPEC. (more correct and closer to FSF.) Don't
1306         force a value for SHELL into the environment. (Comments added
1307         to explain why not.)
1308         
1309         * nt.c (init_user_info):
1310         Don't shove a fabricated SHELL into the environment.  See above.
1311
1312 2001-06-01  Ben Wing  <ben@xemacs.org>
1313
1314         * Makefile.in.in (ldflags):
1315         eliminate that pesky "defaulting to 00401000" warning.
1316         * nt.h:
1317         eliminate warnings.
1318
1319 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
1320
1321         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
1322         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
1323
1324 2001-04-24  Jerry James <james@xemacs.org>
1325
1326         * faces.h: pass parameters to Fadd_spec_to_specifier in the
1327         correct order.
1328
1329 2001-06-01  Ben Wing  <ben@xemacs.org>
1330
1331         * event-msw.c (debug_mswin_messages):
1332         conditionalize the messages that were causing compile errors.
1333         (if only macros could generate #ifdef statements ...)
1334
1335 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
1336
1337         * XEmacs 21.4.4 "Artificial Intelligence" is released.
1338
1339 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
1340
1341         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
1342
1343 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
1344
1345         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
1346         * process-unix.c (unix_canonicalize_host_name):
1347         sysdep.c (init_system_name):
1348         Use it to conditionally support IPv6 canonicalization.
1349
1350 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
1351
1352         * event-msw.c:
1353         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
1354
1355 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
1356
1357         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
1358         attempt is made to scroll when no scroll bar is available.
1359
1360 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
1361
1362         * input-method-motif.c (XIM_delete_frame): New callback.
1363         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
1364         got deleted from 21.4.3.)
1365
1366 2001-06-01  Ben Wing  <ben@xemacs.org>
1367
1368         * nt.c (mswindows_utime):
1369         * nt.c (close_file_data):
1370         fix off-by-one-indirection error.
1371
1372 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
1373
1374         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
1375         because set_file_times() now takes Lisp_Object path, instead of
1376         char*.
1377         * nt.c: Include buffer.h.
1378         * nt.c (convert_from_time_t): New.
1379         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
1380         not set mtime correctly.
1381         * nt.h: Declare mswindows_utime().
1382         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
1383         path, instead of char*.
1384         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
1385
1386 2001-05-30  Ben Wing  <ben@xemacs.org>
1387
1388         For 21.4:
1389
1390         (Stephen, just take all event-msw.c patches.  This includes
1391         the "iconify" fix below.)
1392
1393         * event-msw.c:
1394         * event-msw.c (mswindows_dequeue_dispatch_event):
1395         * event-msw.c (assert):
1396         * event-msw.c (emacs_mswindows_quit_p):
1397         * event-msw.c (debug_mswin_messages):
1398         * event-msw.c (debug_output_mswin_message):
1399         * event-msw.c (vars_of_event_mswindows):
1400         Fix yet more problems with C-g handling.
1401         Implement debug-mswindows-events.
1402         
1403 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
1404
1405         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
1406         
1407 2001-05-23  Ben Wing  <ben@xemacs.org>
1408
1409         * event-msw.c (winsock_writer):
1410         * event-msw.c (winsock_closer):
1411         prior kludgy code was clobbering the buffer, thinking it was
1412         "unused" space to store an unneeded return value; instead, use
1413         the variable we've already got staring us in the face.
1414
1415 2001-05-17  Andy Piper  <andy@xemacs.org>
1416
1417         * sysfile.h: don't assume that file attributes are boolean
1418
1419 2001-05-23  Ben Wing  <ben@xemacs.org>
1420
1421         * device-msw.c (msprinter_init_device):
1422         signal an error rather than crash with an unavailable network
1423         printer (from Mike Alexander).
1424         
1425         * event-msw.c:
1426         * event-msw.c (struct winsock_stream):
1427         * event-msw.c (winsock_writer):
1428         * event-msw.c (winsock_closer):
1429         * event-msw.c (make_winsock_stream_1):
1430         cleanup headers.  fix (hopefully) an error with data corruption
1431         when sending to a network connection.
1432
1433         * fileio.c (Fexpand_file_name): Fix evil code that attempts
1434         to handle the ~user prefix by (a) always assuming we're referencing
1435         ourselves and not even verifying the user -- hence any file with
1436         a tilde as its first char is invalid! (b) if there wasn't a slash
1437         following the filename, the pointer was set *past* the end of
1438         file and we started reading from uninitialized memory.  Now we
1439         simply treat these as files, always.
1440
1441         * buffer.c (common_init_complex_vars_of_buffer): comment change.
1442         
1443 2001-05-19  Ben Wing  <ben@xemacs.org>
1444
1445         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
1446
1447         * process-nt.c:
1448         * process-nt.c (vars_of_process_nt):
1449         remove unused mswindows-quote-process-args.  rec for 21.4.
1450         
1451 2001-05-12  Ben Wing  <ben@xemacs.org>
1452
1453         * event-msw.c (mswindows_dde_callback):
1454         * event-msw.c (mswindows_wnd_proc):
1455         eliminate cygwin warnings.
1456
1457 2001-05-06  Ben Wing  <ben@xemacs.org>
1458
1459         * console-msw.h:
1460         * device-msw.c:
1461         * device-msw.c (print_dialog_worker):
1462         * device-msw.c (mswindows_handle_print_dialog_box):
1463         * device-msw.c (syms_of_device_mswindows):
1464         * dialog-msw.c (mswindows_make_dialog_box_internal):
1465         * general-slots.h:
1466         implement printing the selection when it's selected.
1467
1468 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
1469
1470         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
1471
1472 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
1473
1474         * lisp.h (EMACS_INT_MAX): This should be one bit less since
1475         EMACS_INT is signed.
1476
1477 2001-04-15  Michael Lausch  <mla@1012surf.net>
1478
1479         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
1480         gtk_widget_request_size() to give scrollbar >0 width for
1481         GTK >1.2.8.
1482
1483 2001-05-30  William M. Perry  <wmperry@gnu.org>
1484
1485         * event-gtk.c: Check for buttons as modifier keys.
1486
1487 2001-05-25  Craig Lanning  <CraigL@Knology.net>
1488
1489         * s\mingw32.h:
1490         Properly find MinGW's <process.h> inside Cygwin's restructured
1491         include directories.  Don't try to include <cygwin/version.h>
1492         since we are dropping support for MinGW in versions of Cygwin
1493         earlier than b21.
1494         * nt.c:
1495         Drop support for MinGW in versions of Cygwin before b21.
1496         * sysdep.c:
1497         Properly find MinGW's <process.h> inside Cygwin's restructured
1498         include directories.
1499         * syswindows.h:
1500         Drop support for MinGW in versions of Cygwin before b21.
1501         * unexcw.c:
1502         Even though a.out.h is no longer detected by configure, allow
1503         MinGW to use it until we figure out how to do the job with Win32.
1504
1505 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
1506
1507         * syntax.c (find_start_of_comment):
1508         Fix `unbalanced parentheses' bug when dealing with mixed comment
1509         styles in c++/java/etc. mode
1510
1511 2001-05-29  Mike Alexander  <mta@arbortext.com>
1512
1513         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
1514         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
1515
1516 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
1517
1518         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
1519
1520 2001-03-31  Mike Sperber <mike@xemacs.org>
1521
1522         * search.c (Freplace_match): Support FSF-style specification of
1523         match subexpression when applied to a buffer.
1524
1525 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
1526
1527         * event-stream.c (is_scrollbar_event): add missing semicolon
1528
1529 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
1530
1531         * Makefile.in.in: Use TAR macro instead of hardcoding
1532           tar.  Allows use of GNU tar instead of system tar
1533
1534 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
1535
1536         * event-stream.c (is_scrollbar_event): add missing semicolon
1537
1538 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
1539
1540         * XEmacs 21.4.3 "Academic Rigor" is released.
1541
1542 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
1543
1544         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
1545
1546 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
1547
1548         * buffer.c (Vcase_fold_search): Remove obsolete
1549           comment about non ASCII case-fold-search.  This
1550           bug has been fixed by case-table changes.
1551
1552 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
1553
1554         * event-msw.c: Restore include of events-mod.h.
1555
1556 2001-04-22   zhaoway  <zw@debian.org>
1557
1558         * event-stream.c (is_scrollbar_event): Noop returning 0 if
1559         !HAVE_SCROLLBARS.
1560
1561 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
1562
1563         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
1564
1565 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
1566
1567         * mule-charset.c (Fmake_charset): Add missing else.
1568
1569 2001-04-23  Ben Wing  <ben@xemacs.org>
1570
1571         * event-msw.c (FAKE_MOD_QUIT):
1572         * event-msw.c (mswindows_dequeue_dispatch_event):
1573         * event-msw.c (mswindows_wnd_proc):
1574         * event-msw.c (emacs_mswindows_quit_p):
1575         Get critical quit working.
1576
1577 2001-05-05  Ben Wing  <ben@xemacs.org>
1578
1579         * console-msw.h:
1580         * device-msw.c:
1581         * device-msw.c (mswindows_get_default_margin):
1582         * frame-msw.c (mswindows_size_frame_internal):
1583         * frame-msw.c (msprinter_init_frame_1):
1584         * frame-msw.c (vars_of_frame_mswindows):
1585         Change top/bottom margin defaults to 0.5 inches.
1586
1587 2001-05-01  Martin Buchholz  <martin@xemacs.org>
1588
1589         Fix link error with gcc 3.0 on Linux.
1590         * terminfo.c (UP): Remove.
1591         * terminfo.c (BC): Remove.
1592         * terminfo.c (PC): Remove.
1593         They weren't used, and in any case, these symbols should be
1594         defined in the *library*.
1595
1596 2001-05-03  Martin Buchholz  <martin@xemacs.org>
1597
1598         * s/aix4.h: Fix crash with xlc -O3.
1599         Improve comment explaining how -O3 works.
1600
1601 2001-04-15  Ben Wing  <ben@xemacs.org>
1602
1603         * event-stream.c:
1604         * event-stream.c (Fnext_event):
1605         * event-stream.c (is_scrollbar_event):
1606         * event-stream.c (execute_command_event):
1607         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
1608         crash' problem.  His fix introduces other problems.  We filter
1609         out scrollbar events specifically, making them somewhat invisible
1610         to command-building, and not appearing in `this-command-keys'.
1611         More work is still needed (see comments in event-stream.c), but
1612         this fixes all the major problems.
1613
1614 2001-04-20  Ben Wing  <ben@xemacs.org>
1615
1616         * .cvsignore: Added stuff for Windows.
1617
1618 2001-04-28  Ben Wing  <ben@xemacs.org>
1619
1620         * buffer.c (Ferase_buffer):
1621         * editfns.c (buffer_insert1):
1622         * editfns.c (Finsert_before_markers):
1623         * editfns.c (Finsert_string):
1624         * editfns.c (Finsert_char):
1625         * editfns.c (Fdelete_region):
1626         * editfns.c (Fwiden):
1627         * editfns.c (Fnarrow_to_region):
1628         remove bogus lines setting zmacs_region_stays to 0.
1629         
1630 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
1631
1632         * process-unix.c (unix_open_network_stream): If connect() fails
1633         invalidate file descriptor after closing it.
1634
1635 2001-03-08  Mike Alexander  <mta@arbortext.com>
1636
1637         * event-msw.c (mswindows_need_event_in_modal_loop):
1638         Don't dispatch a message if we didn't get one.
1639         (mswindows_need_event):
1640         Terminate the correct process when one exits instead of the first
1641         one on Vprocess_list and look for process termination when in
1642         mswindows_protect_modal_loop.
1643
1644 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
1645
1646         * XEmacs 21.4.1 "Copyleft" is released.
1647
1648 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
1649
1650         * input-method-motif.c (XIM_delete_frame): New callback.
1651         (XIM_init_frame): Register it.
1652
1653 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
1654
1655         * XEmacs 21.4.0 "Solid Vapor" is released.
1656
1657 2001-04-15  Ben Wing  <ben@xemacs.org>
1658
1659         * cmdloop.c (call_command_loop):
1660         Fix braino in bit-rotting code.
1661         
1662 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
1663
1664         * extents.c (Fset_extent_endpoints): Force creation of extent info
1665         in buffer_or_string.
1666
1667         * extents.c (process_extents_for_insertion_mapper): Correctly
1668         check for open-open zero-length extents.
1669
1670 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
1671
1672         * lisp.h: New typedefs Memory_count, Element_count.
1673         * regex.c:
1674         * regex.h:
1675         Sign-compare warning elimination: several unsigned -> signed.
1676         Based on work by Ben Wing <ben@xemacs.org>.
1677
1678 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
1679
1680         * XEmacs 21.2.47 "Zephir" is released.
1681
1682 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
1683
1684         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
1685
1686 2001-04-03  Mike Sperber <mike@xemacs.org>
1687
1688         * search.c: Revert previous patch due because of release.
1689
1690 2001-03-30  Ben Wing  <ben@xemacs.org>
1691
1692         * s\cygwin32.h:
1693         Add missing killpg prototype.
1694
1695         * elhash.c:
1696         Add a comment about fixing problems when a new entry is added
1697         while mapping.
1698
1699         * frame-msw.c (mswindows_init_frame_1):
1700         Fix compile warnings.
1701
1702         * menubar.c (vars_of_menubar):
1703         Provide `menu-accelerator-support' to indicate that we properly
1704         support %_ in menu specifications, so that package code can
1705         conditionalize on this (and remove %_ from menu specifications
1706         on older versions).
1707
1708         * event-msw.c:
1709         * scrollbar-msw.c:
1710         * scrollbar-msw.c (can_scroll):
1711         * scrollbar-msw.h:
1712         Fix handling of mouse wheel under Windows to follow standards --
1713         now scrolls window under pointer, not selected window.
1714
1715 2001-03-31  Mike Sperber <mike@xemacs.org>
1716
1717         * search.c (Freplace_match): Support FSF-style specification of
1718         match subexpression when applied to a buffer.
1719
1720 2001-03-15  Martin Buchholz  <martin@xemacs.org>
1721
1722         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
1723         function to modify KEYMAP, so map over a copy of the hash table.
1724
1725 2001-03-21  Martin Buchholz <martin@xemacs.org>
1726
1727         * XEmacs 21.2.46 "Urania" is released.
1728
1729 2001-03-20  Dan Holmsand  <dan@eyebee.com>
1730
1731         * realpath.c (xrealpath): Make file-truename work with symlinks to
1732         /cygdrive paths on cygwin. Always lowercase drive-letters on
1733         native windows.
1734         (cygwin_readlink): Don't try to find canonical filename unless
1735         file exists.
1736
1737 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
1738
1739         * ChangeLog: Log GTK merge.
1740
1741         * dumper.c:
1742         * select-x.c:
1743         * specifier.c:
1744         * symeval.h:
1745         Revert gratuitous whitespace changes from GTK merge.
1746
1747         * emacs.c: Document end of complex #ifdef @ l. 1495.
1748
1749
1750 2001-03-12  Andy Piper  <andy@xemacs.org>
1751
1752         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
1753         have to do likewise.
1754
1755 2001-03-12  Andy Piper  <andy@xemacs.org>
1756
1757         * sysdep.c: we only support mingw now.
1758
1759 2001-03-09  Andy Piper  <andy@xemacs.org>
1760
1761         * unexcw.c (copy_executable_and_dump_data_section): making approx
1762         overrun a warning only.
1763
1764 2001-03-10  William M. Perry  <wmperry@aventail.com>
1765
1766         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
1767         satisfy Stephen's identical-after-cpp plea.
1768
1769 2001-03-02  Ben Wing  <ben@xemacs.org>
1770
1771         * cmds.c:
1772         * cmds.c (Fforward_char):
1773         * syntax.c:
1774         * window.c:
1775
1776         Augment documentation of the most common motion commands to make
1777         note of the shifted-motion support.
1778         
1779 2001-03-02  Ben Wing  <ben@xemacs.org>
1780
1781         * nt.c (mswindows_fstat):
1782         * nt.c (mswindows_stat):
1783         * search.c (boyer_moore):
1784         Fix compile warnings under Windows.
1785         
1786         * sysdep.c (sys_readdir):
1787         Fix buggy filename-conversion code under Mule.
1788
1789 2001-03-09  William M. Perry  <wmperry@aventail.com>
1790
1791         * Makefile.in.in:
1792         * config.h.in:
1793         * console.c:
1794         * console.h:
1795         * device.c:
1796         * device.h:
1797         * dragdrop.c:
1798         * emacs.c:
1799         * event-stream.c:
1800         * events.c:
1801         * events.h:
1802         * faces.c:
1803         * frame.h:
1804         * general-slots.h:
1805         * glyphs.c:
1806         * gutter.c:
1807         * inline.c:
1808         * lisp.h:
1809         * lrecord.h:
1810         * make-src-depend:
1811         * redisplay-output.c:
1812         * redisplay.c:
1813         * symsinit.h:
1814         * sysfile.h:
1815         * toolbar.c:
1816         * window.c:
1817         The Great GTK Merge.
1818
1819         * ChangeLog.GTK:
1820         * console-gtk.c:
1821         * console-gtk.h:
1822         * device-gtk.c:
1823         * emacs-marshals.c:
1824         * emacs-widget-accessors.c:
1825         * event-gtk.c:
1826         * frame-gtk.c:
1827         * gccache-gtk.c:
1828         * gccache-gtk.h:
1829         * glade.c:
1830         * glyphs-gtk.c:
1831         * glyphs-gtk.h:
1832         * gtk-glue.c:
1833         * gtk-xemacs.c:
1834         * gtk-xemacs.h:
1835         * gui-gtk.c:
1836         * gui-gtk.h:
1837         * menubar-gtk.c:
1838         * native-gtk-toolbar.c:
1839         * objects-gtk.c:
1840         * objects-gtk.h:
1841         * redisplay-gtk.c:
1842         * scrollbar-gtk.c:
1843         * scrollbar-gtk.h:
1844         * select-gtk.c:
1845         * toolbar-gtk.c:
1846         * ui-byhand.c:
1847         * ui-gtk.c:
1848         * ui-gtk.h:
1849         The Great GTK Merge: new files.
1850
1851 2001-02-26  Ben Wing  <ben@xemacs.org>
1852
1853         Reapplied Lstream change.
1854
1855 2001-02-26  Ben Wing  <ben@xemacs.org>
1856
1857         Undid the last change, since it is more controversial than I
1858         thought.  It should be back in at some point soon.
1859         
1860 2001-02-25  Ben Wing  <ben@xemacs.org>
1861
1862         * buffer.c:
1863         * callproc.c (Fold_call_process_internal):
1864         * event-msw.c (ntpipe_slurp_reader):
1865         * event-msw.c (ntpipe_shove_writer):
1866         * event-msw.c (winsock_reader):
1867         * event-msw.c (winsock_writer):
1868         * file-coding.c:
1869         * file-coding.c (detect_eol_type):
1870         * file-coding.c (detect_coding_type):
1871         * file-coding.c (determine_real_coding_system):
1872         * file-coding.c (Fdetect_coding_region):
1873         * file-coding.c (decoding_reader):
1874         * file-coding.c (decoding_writer):
1875         * file-coding.c (mule_decode):
1876         * file-coding.c (Fdecode_coding_region):
1877         * file-coding.c (encoding_reader):
1878         * file-coding.c (encoding_writer):
1879         * file-coding.c (mule_encode):
1880         * file-coding.c (Fencode_coding_region):
1881         * file-coding.c (detect_coding_sjis):
1882         * file-coding.c (decode_coding_sjis):
1883         * file-coding.c (encode_coding_sjis):
1884         * file-coding.c (detect_coding_big5):
1885         * file-coding.c (decode_coding_big5):
1886         * file-coding.c (encode_coding_big5):
1887         * file-coding.c (detect_coding_ucs4):
1888         * file-coding.c (decode_coding_ucs4):
1889         * file-coding.c (encode_coding_ucs4):
1890         * file-coding.c (detect_coding_utf8):
1891         * file-coding.c (decode_coding_utf8):
1892         * file-coding.c (encode_coding_utf8):
1893         * file-coding.c (detect_coding_iso2022):
1894         * file-coding.c (decode_coding_iso2022):
1895         * file-coding.c (encode_coding_iso2022):
1896         * file-coding.c (decode_coding_no_conversion):
1897         * file-coding.c (encode_coding_no_conversion):
1898         * glyphs-x.c (write_lisp_string_to_temp_file):
1899         * gpmevent.c (tty_get_foreign_selection):
1900         * lisp.h:
1901         * lstream.c:
1902         * lstream.c (Lstream_flush_out):
1903         * lstream.c (Lstream_adding):
1904         * lstream.c (Lstream_write_1):
1905         * lstream.c (Lstream_write):
1906         * lstream.c (Lstream_raw_read):
1907         * lstream.c (Lstream_read_more):
1908         * lstream.c (Lstream_read):
1909         * lstream.c (Lstream_unread):
1910         * lstream.c (Lstream_fputc):
1911         * lstream.c (stdio_reader):
1912         * lstream.c (stdio_writer):
1913         * lstream.c (filedesc_reader):
1914         * lstream.c (filedesc_writer):
1915         * lstream.c (lisp_string_reader):
1916         * lstream.c (struct fixed_buffer_stream):
1917         * lstream.c (make_fixed_buffer_input_stream):
1918         * lstream.c (make_fixed_buffer_output_stream):
1919         * lstream.c (fixed_buffer_reader):
1920         * lstream.c (fixed_buffer_writer):
1921         * lstream.c (struct resizing_buffer_stream):
1922         * lstream.c (resizing_buffer_writer):
1923         * lstream.c (dynarr_writer):
1924         * lstream.c (lisp_buffer_reader):
1925         * lstream.c (lisp_buffer_writer):
1926         * lstream.h:
1927         * lstream.h (lstream_implementation):
1928         * lstream.h (struct lstream):
1929         * md5.c (Fmd5):
1930         * process-nt.c (nt_send_process):
1931         * process-unix.c (unix_send_process):
1932         
1933         Correct Lstream lossage due to mixing of signed and unsigned
1934         quantities.  All Lstream uses of size_t and ssize_t are now a
1935         single signed data type Lstream_data_count.  This fixes problems
1936         under Windows with sending large quantities of data to a process,
1937         and may well fix other subtle bugs.
1938
1939 2001-02-23  Martin Buchholz <martin@xemacs.org>
1940
1941         * XEmacs 21.2.45 "Thelxepeia" is released.
1942
1943 2001-02-21  Martin Buchholz  <martin@xemacs.org>
1944
1945         * lisp-union.h (XSETINT): 
1946         (XSETCHAR):
1947         (XSETOBJ): 
1948         Reverse previous change of 2001-02-06.
1949
1950 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
1951
1952         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
1953         buffers.
1954         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
1955         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
1956         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
1957         * regex.c (POS_AS_IN_BUFFER): removed
1958         * regex.c (re_search_2):
1959         * regex.c (re_match_2):
1960         Don't use an offset of 1 when calculating buffer positions, since
1961         `BI_BUF_BEGV' does it already.
1962
1963 2001-02-18  Wim Dumon  <wim@easics.be>
1964
1965         * insdel.c (prepare_to_modify_buffer): Also check for
1966         supersession when clash-detection is enabled. 
1967
1968 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
1969
1970         * regex.c (re_match_2_internal):
1971         Convert temp characters from 'const unsigned char' to 're_char'.
1972         Fix crashing bug with extended characters under mule.
1973         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
1974         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
1975         font-lock, pdump, and new syntax-table code.
1976         * syntax.c (find_start_of_comment):
1977         (find_end_of_comment):
1978         (forward-comment):
1979         Fix crashing bugs involving moving beyond end of buffer.
1980         * syntax.c (find_start_of_comment):
1981         Fixed logic to allow proper detection of cases where the same
1982         character is used to end both a two-char comment start and a
1983         two-char comment end sequence. Fixes `(forward-comment -1)'.
1984         * syntax.c (find_start_of_comment):
1985         Return position just past last comment-end character for all cases
1986         (previously was only done for two-char comment-end sequences).
1987         * syntax.c (forward-comment):
1988         Take value returned from `find_end_of_comment', rather than
1989         incrementing it.
1990         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
1991         Properly deal with BUFFERP (syntax_cache.object)
1992
1993 2001-02-17  Martin Buchholz  <martin@xemacs.org>
1994
1995         * alloc.c (Fgarbage_collect): 
1996         * alloc.c (make_bit_vector_from_byte_vector):
1997         -Wsign-compare-correctness.
1998
1999 2001-02-16  Martin Buchholz  <martin@xemacs.org>
2000
2001         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
2002         (XSETCHAR): Likewise.
2003         (XSETOBJ): Likewise.
2004
2005 2001-02-15  Martin Buchholz  <martin@xemacs.org>
2006
2007         * mule-canna.c (canna-func-delete_previous): 
2008         Rename to canna-func-delete-previous.
2009
2010 2001-02-14  Martin Buchholz  <martin@xemacs.org>
2011
2012         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
2013
2014 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
2015
2016         * font-lock.c (find_context): Fix C++ compile errors introduced by
2017         recent patch
2018
2019 2001-02-13  Martin Buchholz  <martin@xemacs.org>
2020
2021         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
2022         pragma, but earlier ones barf on the same pragma.
2023
2024 2001-02-06  Mike Sperber <mike@xemacs.org>
2025
2026         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
2027         `configure-mule-lisp-directory'.
2028
2029 2001-02-12  Martin Buchholz  <martin@xemacs.org>
2030
2031         Make sure dump-id.c is compiled in the same way as other .c's.
2032         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
2033         * dump-id.h: Remove.
2034         * emacs.c: Move dump-id.h into dumper.h.
2035         * dumper.h: Move dump-id.h into dumper.h.
2036         * Makefile.in.in:
2037         Use standard .c.o rule for building dump-id.o.
2038         Remove preprocessor flags from link command.
2039         Add dump-id.o to ${otherobjs} if PDUMP.
2040
2041 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
2042
2043         Port FSF 20.7 syntax table improvements.
2044         * syntax.c.
2045         * syntax.h.
2046
2047         Fixups for new syntax table stuff.
2048         * dired.c: Include syntax.c.
2049         (Fdirectory_files): Initialize regex_match_object and
2050         regex_emacs_buffer.
2051         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
2052         and Fget_char_property.
2053
2054         Use ported FSF 20.7 syntax table improvements.
2055         * font-lock.c.
2056         * regex.c.
2057         * search.c.
2058         
2059 2001-02-09  Martin Buchholz  <martin@xemacs.org>
2060
2061         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
2062         Unixware's enum boolean from sys/types.h.
2063
2064 2001-02-10  Martin Buchholz  <martin@xemacs.org>
2065
2066         Fix support for building with latest Purify.
2067         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
2068         (PURIFY_FLAGS): Likewise.
2069
2070 2001-02-09  Martin Buchholz  <martin@xemacs.org>
2071
2072         * fileio.c (lisp_string_set_file_times): New.
2073         * fileio.c (Fcopy_file): Use it.
2074         Fixes bug:
2075         (copy-file filename non-ascii-filename t t)
2076         ==> No such file or directory, non-ascii-filename
2077
2078 2001-02-10  Martin Buchholz  <martin@xemacs.org>
2079
2080         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
2081         USHRT_MAX seems clearer than ~0 anyways.
2082
2083 2001-02-09  Martin Buchholz  <martin@xemacs.org>
2084
2085         dumper improvements.  Inspired by Olivier.
2086         * dumper.c (pdump_max_align): New.
2087         * dumper.c (pdump_add_entry): Use pdump_max_align.
2088         * dumper.c (pdump_get_entry_list): Likewise.
2089         * dumper.c (pdump_scan_by_alignment): Likewise.
2090         Don't iterate through unnecessary alignments.
2091         * dumper.c (pdump_file_get): No need to align result of malloc().
2092         * dumper.c (pdump_mallocadr): Remove.  
2093         The result of malloc() is guaranteed to be maximally aligned.
2094         * dumper.c: s/elmt/elt/g;
2095         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
2096         * dumper.c (pdump_alert_undump_object): Likewise.
2097         * dumper.c (pdump_align_table): 
2098         Don't support alignments > 64.
2099         Store ALIGNOF's, not shift counts, in table.
2100
2101 2001-02-09  Martin Buchholz  <martin@xemacs.org>
2102
2103         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
2104         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
2105         * systime.h: Use HAVE_UTIME.
2106         * sysdep.c (struct utimbuf): Remove.
2107         * sysdep.c (set_file_times): Prefer utime() to utimes().
2108         * config.h.in (HAVE_UTIME): New.
2109         * config.h.in (HAVE_UTIME_H): Remove.
2110         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
2111
2112 2001-02-09  Martin Buchholz  <martin@xemacs.org>
2113
2114         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
2115
2116 2001-02-08  Martin Buchholz  <martin@xemacs.org>
2117
2118         * s/irix6-0.h: Use the standard system memmove, not bcopy.
2119
2120 2001-02-08  Martin Buchholz <martin@xemacs.org>
2121
2122         * XEmacs 21.2.44 "Thalia" is released.
2123
2124 2001-02-06  Martin Buchholz  <martin@xemacs.org>
2125
2126         Fixes crashes in kill-emacs on some systems.
2127         * process-unix.c (unix_kill_child_process):
2128         It's OK for kill() to fail with ESRCH.
2129
2130 2001-02-07  Martin Buchholz  <martin@xemacs.org>
2131
2132         Contortions to make .gdbinit tricks work on most systems.
2133         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
2134         * alloc.c (dbg_valmask): Make non-const.
2135         * alloc.c (dbg_typemask): Make non-const.
2136         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
2137         * alloc.c (dbg_valbits): Make non-const.
2138         * alloc.c (dbg_gctypebits): Make non-const.
2139         * .gdbinit (decode_object): Make it work with AIX cc.
2140
2141 2001-02-06  Martin Buchholz  <martin@xemacs.org>
2142
2143         * elhash.c (make_general_lisp_hash_table):
2144         Use simpler and more efficient calloc to clear entries.
2145
2146 2001-02-07  Martin Buchholz  <martin@xemacs.org>
2147
2148         * window.c (window_scroll): Work around an AIX C compiler bug.
2149         Fixes 'scroll-up' does nothing problem with xlC.
2150
2151 2001-02-05  Martin Buchholz  <martin@xemacs.org>
2152
2153         * .gdbinit: Remove obsolete comment.
2154
2155 2001-01-31  Mike Alexander  <mta@arbortext.com>
2156
2157         * select.c (Fown_selection_internal): Set owned_p for device
2158         method correctly.
2159
2160 2001-02-01  Martin Buchholz  <martin@xemacs.org>
2161
2162         Port to g++ 2.97.
2163         "not" cannot be used as a macro name as it is an operator in C++
2164         * config.h.in: Stop #defining `not'.
2165         * chartab.c (check_category_char): not ==> not_p
2166         * chartab.h: Likewise.
2167         * regex.c (re_match_2_internal): Likewise.
2168
2169 2001-02-02  Martin Buchholz  <martin@xemacs.org>
2170
2171         * lisp-disunion.h: Fix up comments.
2172
2173 2001-01-31  Martin Buchholz  <martin@xemacs.org>
2174
2175         * keymap.c (define_key_check_and_coerce_keysym):
2176         (syms_of_keymap):
2177         Support mouse-6 and mouse-7 bindings in the obvious way.
2178
2179 2001-02-01  Martin Buchholz  <martin@xemacs.org>
2180
2181         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
2182
2183 2001-01-30  Martin Buchholz  <martin@xemacs.org>
2184
2185         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
2186         Previous patch missed DEFVAR_INT_MAGIC.
2187         Make sure future DEFVAR_foo use correct types.
2188         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
2189         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
2190         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
2191         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
2192         * (DEFVAR_INT): Likewise.
2193         * redisplay.c (vertical_clip): Should be of type Fixnum.
2194         * redisplay.c (horizontal_clip): Likewise.
2195         * lisp.h (dump_add_opaque_int): New.
2196         (dump_add_opaque_fixnum): New.
2197
2198 2001-01-29  Andy Piper  <andy@xemacs.org>
2199
2200         * glyphs-widget.c (check_valid_int_or_function): allow symbols
2201         since they can be eval'ed
2202
2203 2001-01-29  Martin Buchholz  <martin@xemacs.org>
2204
2205         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
2206         Oops, XEmacs redefines `class'.  Use `typename' instead.
2207
2208 2001-01-28  Martin Buchholz  <martin@xemacs.org>
2209
2210         * dumper.c: Fix C++ compile errors.
2211
2212 2001-01-29  Martin Buchholz  <martin@xemacs.org>
2213
2214         * tparam.c: Use correct prototypes.
2215
2216 2001-01-28  Martin Buchholz  <martin@xemacs.org>
2217
2218         * sysproc.h: #include util.h for NetBSD's openpty.
2219
2220 2001-01-27  Martin Buchholz  <martin@xemacs.org>
2221
2222         More 64-bit correctness.
2223         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
2224         Use a typedef `fixnum' for the type used for DEFVAR_INT.
2225         Fix up comments.
2226         This finally finishes the 64-bit SGI port.
2227         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
2228         * symbols.c: Fix up comments and type casts.
2229         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
2230         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
2231         * symeval.h (Fixnum): New type.
2232         * symeval.h (symbol_value_type): Fix up comment.
2233
2234         * commands.h:
2235         * nt.c:
2236         * emacs.c:
2237         * data.c:
2238         * redisplay.c:
2239         * abbrev.c:
2240         * dired-msw.c:
2241         * event-Xt.c:
2242         * eldap.c:
2243         * window.c:
2244         * sound.c:
2245         * event-stream.c:
2246         * eval.c:
2247         * buffer.c:
2248         * mule-canna.c: A million DEFVAR_INTs here...
2249         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
2250         * extents.c:
2251         * cmdloop.c:
2252         * lisp.h:
2253         * select-x.c:
2254         * console-x.h:
2255         * event-msw.c:
2256         * mule-wnnfns.c:
2257         * hpplay.c:
2258         * ralloc.c:
2259         * alloc.c:
2260         * keymap.c:
2261         * profile.c:
2262         s/int/Fixnum/g in DEFVAR_INT declarations.
2263
2264 2001-01-26  Martin Buchholz  <martin@xemacs.org>
2265
2266         Port pdump to SGI alignment-sensitive environment.
2267         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
2268         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
2269         properly aligned.
2270         Define and use aligned reading and writing macros.
2271         Use buffered stdio instead of posix i/o for faster dumping.
2272         Eliminate kludgy 256 byte space for header.
2273         Read and write from dump file using structs for alignment safety.
2274         * dumper.c (pdump_align_stream): New.
2275         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
2276         * dumper.c (PDUMP_READ_ALIGNED): New.
2277         * dumper.c (PDUMP_WRITE_ALIGNED): New.
2278         * dumper.c (pdump_static_Lisp_Object): New struct.
2279         * dumper.c (pdump_static_pointer): New struct.
2280         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
2281         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
2282         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
2283         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
2284
2285         * dumper.c (pdump_backtrace):
2286         * dumper.c (pdump_get_indirect_count):
2287         * dumper.c (pdump_register_object):
2288         * dumper.c (pdump_register_struct):
2289         * dumper.c (pdump_reloc_one):
2290         * dumper.c (pdump_scan_by_alignment):
2291         * dumper.c (pdump_dump_from_root_struct_ptrs):
2292         * dumper.c (pdump_dump_opaques):
2293         * dumper.c (pdump_dump_rtables):
2294         * dumper.c (pdump_dump_from_root_objects):
2295         * dumper.c (pdump):
2296         * dumper.c (pdump_load_finish):
2297         Use aligned reading and writing.
2298
2299         * dumper.c (pdump_free): Make static.
2300         * dumper.c (pdump_hFile): Likewise.
2301         * dumper.c (pdump_hMap): Likewise.
2302
2303 2001-01-26  Martin Buchholz <martin@xemacs.org>
2304
2305         * XEmacs 21.2.43 "Terspichore" is released.
2306
2307 2001-01-25  Martin Buchholz  <martin@xemacs.org>
2308
2309         Type fiddling for window_config.saved_windows_count
2310         * window.c (struct window_config): 
2311         Make saved_windows_count member unsigned.
2312         * window.c (sizeof_window_config_for_n_windows): 
2313         Make parameter unsigned.
2314         * window.c (mark_window_config):
2315         * window.c (window_config_equal):
2316         * window.c (free_window_configuration):
2317         * window.c (Fset_window_configuration):
2318         * window.c (count_windows):
2319         * window.c (Fcurrent_window_configuration):
2320         * window.c (reinit_vars_of_window):
2321         Update all callers and users.
2322
2323 2001-01-25  Martin Buchholz  <martin@xemacs.org>
2324
2325         Alignment correctness for flexible arrays.
2326         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
2327         Make alignment-correct. Add interesting comments.
2328         * alloc.c (size_vector):
2329         * alloc.c (make_vector_internal):
2330         * alloc.c (make_bit_vector_internal):
2331         * alloc.c (sweep_bit_vectors_1):
2332         * fns.c (size_bit_vector):
2333         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
2334         * window.c (sizeof_window_config_for_n_windows): 
2335         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
2336
2337 2001-01-24  Martin Buchholz  <martin@xemacs.org>
2338
2339         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
2340
2341 2001-01-23  Andy Piper  <andy@xemacs.org>
2342
2343         * select.c (Fown_selection_internal): pass owned_p
2344
2345         * select-msw.c (mswindows_own_selection): New Signature.
2346
2347         * console.h (struct console_methods): add owned_p to
2348         _own_selection.
2349
2350         * select-x.c (x_own_selection): pass owned_p
2351         (hack_motif_clipboard_selection): use owned_p
2352         (vars_of_select_x): new variable -
2353         x_selection_strict_motif_ownership.
2354
2355 2001-01-23  Martin Buchholz  <martin@xemacs.org>
2356
2357         * specifier.h (specifier_data_offset): Remove pointless parens.
2358         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
2359
2360 2001-01-24  Martin Buchholz  <martin@xemacs.org>
2361
2362         Make Lisp_Object sizeof methods be alignment-correct.
2363         pdump must restore objects to the same alignment as the C compiler
2364         assumes.  It really matters on SGIs.
2365         * lstream.c (aligned_sizeof_lstream): New.
2366         (sizeof_lstream): Use aligned_sizeof_lstream.
2367         (Lstream_new): Likewise.
2368         * opaque.c (aligned_sizeof_opaque): New.
2369         (sizeof_opaque): Use aligned_sizeof_opaque.
2370         (make_opaque): Likewise.
2371         * specifier.c (aligned_sizeof_specifier): New.
2372         (sizeof_specifier): Use aligned_sizeof_specifier.
2373         (make_specifier_internal): Likewise.
2374
2375 2001-01-23  Martin Buchholz  <martin@xemacs.org>
2376
2377         * lstream.h (struct lstream): Use max_align_t for trailing data.
2378         * specifier.h (struct Lisp_Specifier): Likewise.
2379
2380 2001-01-22  Martin Buchholz  <martin@xemacs.org>
2381
2382         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
2383         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
2384         (CCL_SUSPEND): Likewise.
2385         (CCL_INVALID_CMD): Likewise.
2386         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
2387         (ccl_driver): Likewise.
2388         (CCL_WRITE_CHAR): Macro hygiene.
2389         (CCL_WRITE_STRING): Macro hygiene.
2390
2391 2001-01-22  Martin Buchholz  <martin@xemacs.org>
2392
2393         Port "portable" dumper to SunOS 4 and HP-UX.
2394         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
2395         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
2396         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
2397
2398 2001-01-22  Martin Buchholz  <martin@xemacs.org>
2399
2400         * lisp.h (ALIGNOF): A better definition for C++.
2401
2402 2001-01-20  Martin Buchholz  <martin@xemacs.org>
2403
2404         Macro hygiene.
2405         Fix printf warnings: int format, long int arg.
2406         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
2407         (PUSH_FAILURE_POINT): Use correct printf formats.
2408         (POP_FAILURE_POINT): Use correct printf formats.  
2409         Use do {...} while (0)
2410
2411 2001-01-20  Martin Buchholz <martin@xemacs.org>
2412
2413         * XEmacs 21.2.42 "Poseidon" is released.
2414
2415 2001-01-20  Martin Buchholz  <martin@xemacs.org>
2416
2417         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
2418
2419 2001-01-19  Martin Buchholz  <martin@xemacs.org>
2420
2421         De-kludgify FIXED_TYPE free list frobbing.
2422         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
2423         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
2424         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
2425         * alloc.c (Lisp_Free): New pseudo lisp object definition.
2426         * alloc.c (LRECORD_FREE_P): New.
2427         * alloc.c (MARK_LRECORD_AS_FREE): New.
2428         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
2429         * alloc.c (STRUCT_FREE_P): Deleted.
2430         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
2431         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
2432         * alloc.c (STRING_CHARS_FREE_P): New.
2433         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
2434         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
2435         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
2436         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
2437         * alloc.c (resize_string): Use new definitions.
2438         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
2439         * alloc.c (verify_string_chars_integrity): Use new definitions.
2440         * alloc.c (compact_string_chars): Use new definitions.
2441         * alloc.c: Update monster comments.
2442         * lrecord.h (lrecord_type): Add some new lrecord types for
2443         alloc.c's use.
2444
2445 2001-01-18  Martin Buchholz  <martin@xemacs.org>
2446
2447         Improve alignment hackery.
2448         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
2449         (max_align_t): Moved from opaque.h - general purpose.
2450         (ALIGN_PTR): Use size_t, not long.
2451         * opaque.h (max_align_t): Move to lisp.h.
2452
2453 2001-01-18  Norbert Koch  <nk@LF.net>
2454
2455         * gui.h: Fix and add prototypes to fix build problems.
2456
2457 2001-01-18  Martin Buchholz  <martin@xemacs.org>
2458
2459         temacs is going away, so `dump-temacs' is now a bad name.
2460         * .dbxrc (dump-temacs): Rename to `dmp'.
2461         * .gdbinit (dump-temacs): Rename to `dmp'.
2462
2463 2001-01-17  Andy Piper  <andy@xemacs.org>
2464
2465         * glyphs.c (print_image_instance): comment to make martin happy.
2466
2467         * glyphs-x.c (x_redisplay_widget): update faces after a frame
2468         change.
2469
2470         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
2471         activation.
2472         (mswindows_tab_control_redisplay): warning suppression.
2473
2474         * glyphs-widget.c (widget_update): re-write to cope with updated
2475         items.
2476         (widget_instantiate): use new gui_item functions.
2477         (tab_control_update): deleted.
2478         (progress_gauge_update): deleted.
2479         (image_instantiator_progress_guage): take out update reference.
2480         (image_instantiator_tree_view): ditto.
2481         (image_instantiator_tab_control): ditto.
2482
2483         * gui.c (widget_gui_parse_item_keywords): new function. Do things
2484         Right the new way.
2485         (gui_item_add_keyval_pair): re-write to cope with descriptors and
2486         return whether anything was changed.
2487         (update_gui_item_keywords): as it sounds.
2488
2489         * gui.h: declare widget_gui_parse_item_keywords.
2490
2491         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
2492         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
2493
2494 2001-01-17  Martin Buchholz <martin@xemacs.org>
2495
2496         * XEmacs 21.2.41 "Polyhymnia" is released.
2497
2498 2001-01-16  Didier Verna  <didier@xemacs.org>
2499
2500         * glyphs.c (image_instantiate): don't use fallbacks when
2501         instantiating a face's background pixmap by inheritance.
2502
2503 2001-01-14  Mike Sperber <mike@xemacs.org>
2504
2505         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
2506         Conditionalize accordingly.
2507
2508 2001-01-16  Martin Buchholz  <martin@xemacs.org>
2509
2510         * dumper.c (pdump_file_get): Fix a compiler warning.
2511
2512 2001-01-15  Martin Buchholz  <martin@xemacs.org>
2513
2514         Make Purify happy when pdumping.
2515         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
2516         iniitalizing all bits of new lisp object memory.
2517         * symbols.c (Fmake_local_variable): Likewise.
2518         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
2519         * symbols.c (Fdefvaralias): Likewise.
2520         * mule-charset.c (vars_of_mule_charset): Likewise.
2521
2522 2001-01-15  Martin Buchholz  <martin@xemacs.org>
2523         Add the `-nd' flag when running pre-dump operations under the debugger.
2524         * .dbxrc (run-temacs): Add `-nd'.
2525         * .dbxrc (update-elc): Likewise.
2526         * .dbxrc (dump-temacs): Likewise.
2527         * .gdbinit (run-temacs): Likewise.
2528         * .gdbinit (check-temacs): Likewise.
2529         * .gdbinit (update-elc): Likewise.
2530         * .gdbinit (dump-temacs): Likewise.
2531
2532 2001-01-14  Martin Buchholz  <martin@xemacs.org>
2533
2534         Allow building 64-bit executables on AIX with GNU malloc, e.g.
2535         export OBJECT_MODE=64
2536         configure --pdump --use-union-type=no
2537         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
2538         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
2539
2540         * miscplay.c (sndcnv8U_2mono):
2541         Avoid two uses of `++' in the same expression.
2542         Suppresses a GCC warning.
2543
2544 2001-01-13  Martin Buchholz  <martin@xemacs.org>
2545
2546         Make sure future compilers don't miscompile alloc.c.
2547         * alloc.c:
2548         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
2549         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
2550
2551 2001-01-12  Martin Buchholz  <martin@xemacs.org>
2552
2553         * dumper.c: A little post-pdump-rename comment fixup.
2554
2555 2001-01-09  Jerry James  <james@eecs.ku.edu>
2556
2557         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
2558
2559 2001-01-13  Martin Buchholz  <martin@xemacs.org>
2560
2561         * *.[ch]: Globally rename symbols using the following `pdump-rename'
2562         script:
2563         #!/bin/sh
2564         replace_symbol () {
2565           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
2566         }
2567
2568         replace_symbol pdump_wire_lists pdump_weak_object_chains
2569         replace_symbol pdump_wire_list dump_add_weak_object_chain
2570
2571         replace_symbol pdump_wires pdump_root_objects
2572         replace_symbol pdump_wire dump_add_root_object
2573
2574         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
2575         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
2576
2577         replace_symbol dumpstructinfos pdump_root_struct_ptrs
2578         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
2579         replace_symbol dumpstructinfo pdump_root_struct_ptr
2580         replace_symbol dumpstruct dump_add_root_struct_ptr
2581
2582         replace_symbol dumpopaque dump_add_opaque
2583         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
2584         replace_symbol dumpopaqueinfos pdump_opaques
2585         replace_symbol dumpopaqueinfo pdump_opaque
2586
2587         replace_symbol nb_structdump nb_root_struct_ptrs
2588         replace_symbol nb_opaquedump nb_opaques
2589
2590         replace_symbol align_table pdump_align_table
2591         replace_symbol dump_header pdump_header
2592
2593         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
2594         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
2595
2596
2597 2001-01-12  Martin Buchholz  <martin@xemacs.org>
2598
2599         * s/aix4.h: Keep the C for AIX compiler from overaggressively
2600         optimizing bytecount_to_charcount().
2601
2602 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
2603
2604         * config.h.in:
2605         (HAVE_DLFCN_H): Removed.
2606         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
2607
2608 2001-01-06  Martin Buchholz  <martin@xemacs.org>
2609
2610         Portable dumper maintainability improvements.
2611         * alloc.c (staticpro):
2612         * alloc.c (staticpro_nodump):
2613         * alloc.c (garbage_collect_1):
2614         * alloc.c (reinit_alloc_once_early):
2615         * alloc.c (init_alloc_once_early):
2616         * alloc.c: Move dumper functions to alloc.c.
2617         * dumper.c (pdump_backtrace):
2618         * dumper.c (pdump_dump_structs):
2619         * dumper.c (pdump_dump_opaques):
2620         * dumper.c (pdump_dump_rtables):
2621         * dumper.c (pdump_dump_wired):
2622         * dumper.c (pdump):
2623         * dumper.c (pdump_load_check):
2624         * dumper.c (pdump_load_finish):
2625         * dumper.c (pdump_file_unmap):
2626         * dumper.c (pdump_file_get):
2627         * dumper.c (pdump_resource_free):
2628         * dumper.c (pdump_resource_get):
2629         * dumper.c (pdump_file_free):
2630         * dumper.c (pdump_file_try):
2631         * dumper.c (pdump_load):
2632         Remove fixed size limits on staticpro(), staticpro_nodump(),
2633         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
2634         Remove custom code for dumping lrecord_implementations_table - use
2635         dumpopaque instead.
2636         Remove (most of the) custom code for dumping staticpros - dump it
2637         like any other dynarr.
2638
2639         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
2640         * dumper.c: Moved functions from alloc.c.
2641         * alloc.c (dumpstruct): Moved to dumper.c.
2642         * alloc.c (dumpopaque): Likewise.
2643         * alloc.c (pdump_wire): Likewise.
2644         * alloc.c (pdump_wire_list): Likewise.
2645
2646         * lisp.h (Dynarr_sizeof): New.
2647         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
2648         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
2649         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
2650
2651         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
2652         * lisp.h (dumpopaque): ditto.
2653         * lisp.h (pdump_wire): ditto.
2654         * lisp.h (pdump_wire_list): ditto.
2655
2656 2001-01-09  Martin Buchholz  <martin@xemacs.org>
2657
2658         * make-src-depend (PrintPatternDeps):
2659         Use `sort' to make output independent of perl version.
2660
2661 2001-01-08  Martin Buchholz  <martin@xemacs.org>
2662
2663         Port to Netbsd 1.5.
2664         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
2665         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
2666
2667 2001-01-03  Didier Verna  <didier@xemacs.org>
2668
2669         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
2670         that `focus_frame' is alive before thinking of calling
2671         `redisplay_redraw_cursor' on it.
2672
2673 2001-01-08  Martin Buchholz <martin@xemacs.org>
2674
2675         * XEmacs 21.2.40 is released.
2676
2677 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
2678
2679         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
2680
2681 2001-01-06  Martin Buchholz  <martin@xemacs.org>
2682
2683         * alloc.c (dbg_valmask): Make const.
2684         * alloc.c (dbg_typemask): Make const.
2685         * alloc.c (dbg_USE_UNION_TYPE): Make const.
2686         * alloc.c (dbg_valbits): Make const.
2687         * alloc.c (dbg_gctypebits): Make const.
2688
2689 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
2690
2691         * redisplay-x.c (x_bevel_area):
2692         redisplay.h (struct rune):
2693         Typo fixes in comments.
2694
2695 2001-01-05  Andy Piper  <andy@xemacs.org>
2696
2697         * glyphs-x.c (x_redisplay_widget): use size changed for offset
2698         adjustment.
2699
2700         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
2701
2702 2001-01-05  Martin Buchholz  <martin@xemacs.org>
2703
2704         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
2705
2706         * mule-ccl.c (stack_idx_of_map_multiple):
2707         Non const global data must not be initialized!
2708         Found by MIYASHITA Hisashi.
2709
2710 2001-01-02  Andy Piper  <andy@xemacs.org>
2711
2712         * frame.c (change_frame_size): make sure frame size is always
2713         marked as changed.
2714
2715         * glyphs.c (image_instance_layout): minor code reuse.
2716
2717         * window.c (Fcurrent_window_configuration): revert previous
2718         change.
2719
2720 2001-01-02  Martin Buchholz  <martin@xemacs.org>
2721
2722         * glyphs.h:
2723         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
2724
2725 2000-12-31  Andy Piper  <andy@xemacs.org>
2726
2727         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
2728         when widget gets unmapped.
2729
2730         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
2731         function. Make sure widgets losing focus don't just drop it.
2732         (handle_focus_event_1): record the widget with focus.
2733
2734 2000-12-31  Andy Piper  <andy@xemacs.org>
2735
2736         * window.c (allocate_window): use
2737         make_image_instance_cache_hash_table.
2738         (make_dummy_parent): ditto.
2739         (Fset_window_configuration): ditto.
2740
2741         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
2742
2743         * glyphs.c (process_image_string_instantiator): use
2744         INSTANTIATOR_TYPE.
2745         (get_image_instantiator_governing_domain): ditto.
2746         (normalize_image_instantiator): ditto.
2747         (instantiate_image_instantiator): ditto.
2748         (make_image_instance_1): ditto.
2749         (image_instantiate): ditto. Key on glyph *and* instantiator type.
2750         (instantiator_eq_equal): new function for use with instance hash
2751         tables.
2752         (instantiator_eq_hash): ditto.
2753         (make_image_instance_cache_hash_table): create a suitable hash
2754         table for storing image instances.
2755
2756         * elhash.h (hash_table_weakness): new internal weakness type
2757         HASH_TABLE_KEY_CAR_VALUE_WEAK.
2758         declare new functions.
2759
2760         * elhash.c (finish_marking_weak_hash_tables): introduce yet
2761         another weakness type for glyphs.
2762         (make_standard_lisp_hash_table): new function split out from
2763         make_general_lisp_hash_table.
2764         (make_lisp_hash_table): call make_standard_lisp_hash_table.
2765         (hash_table_instantiate): ditto.
2766         (Fmake_hash_table): ditto.
2767
2768 2000-12-31  Martin Buchholz <martin@xemacs.org>
2769
2770         * XEmacs 21.2.39 is released.
2771
2772 2000-12-29  Andy Piper  <andy@xemacs.org>
2773
2774         * menubar.c (menubar_visible_p_changed): signal the frame changed.
2775
2776         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
2777         the frame has changed so that we pick up geometry changes such as
2778         menubar visibility.
2779
2780 2000-12-28  Andy Piper  <andy@xemacs.org>
2781
2782         * lastfile.c (my_ebss): make a char array so we can pad the
2783         bss. Fixes cygwin unexec.
2784
2785         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
2786
2787 2000-12-26  Andy Piper  <andy@xemacs.org>
2788
2789         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
2790         comments and try and be more precise about a non-/SIGIO world.
2791         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
2792         SIGIO.
2793
2794         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
2795         we don't normalize to zero width or height.
2796
2797 2000-12-24  Andy Piper  <andy@xemacs.org>
2798
2799         * Makefile.in.in (ldflags): add -mwindows when appropriate.
2800
2801 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
2802
2803         * s/sco5.h: SCO 5 has pty support.
2804
2805 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
2806
2807         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
2808         input-method-xlib.c contains whole contents of input-method-xfs.c,
2809         so we can use input-method-xlib.c's code for USE_XFONTSET
2810         using #ifdefs.
2811         * input-method-xfs.c: removed.
2812
2813 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
2814
2815         * file-coding.h (enum coding_category_type): reorder enumerators to
2816         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
2817         (now one greater than largest real coding_category_type enumerator).
2818         * file-coding.c (coding_category_symbol, coding_category_by_priority,
2819         coding_category_system, fcd_descriptihon_1, decode_coding_category,
2820         Fcoding_category_list, Fset_coding_priority_list,
2821         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
2822         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
2823
2824 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
2825
2826         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
2827         * redisplay-output.c (redisplay_output_window): Clear top of window
2828         when face is changed.
2829         * redisplay-x.c (x_redraw_exposed_window): Call
2830         redisplay_clear_top_of_window.
2831         * redisplay.h: Publish redisplay_clear_top_of_window.
2832
2833 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
2834
2835         * buffer.c (Fkill_buffer): Map over all devices.
2836         * window.c (window_loop): Remove UNSHOW_BUFFER code.
2837         (list_windows): New function.
2838         (list_all_windows): Ditto.
2839         (Freplace_buffer_in_windows): Use them.
2840
2841 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
2842
2843         * database.c (berkdb_subtype): Recognize new subtype `queue'.
2844         (Fopen_database): Use `db_create' instead of `db_open'.
2845         (syms_of_database): Initialize Qqueue.
2846
2847 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
2848
2849         * buffer.c (common_init_complex_vars_of_buffer): Initialize
2850         buffer_local_face_property.
2851         * buffer.h (struct buffer): New member buffer_local_face_property.
2852         * window.c (Fset_window_buffer):  Mark window's face as changed
2853         when buffer has buffer local face.
2854         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
2855         * objects.c (color_after_change): Set buffer_local_face_property
2856         when locale of face specifier is buffer.
2857         * objects.c (font_after_change): Ditto.
2858         * objects.c (face_boolean_after_change): Ditto.
2859         * glyphs.c (image_after_change): Ditto.
2860
2861 2000-12-09  Dan Holmsand  <dan@eyebee.com>
2862
2863         * nt.c (mswindows_fstat): Report file permissions, volume serial
2864         number, etc. Code adapted from FSF Emacs 20.7.
2865
2866 2000-12-09  Dan Holmsand  <dan@eyebee.com>
2867
2868         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
2869         of stat when we don't have symbolic links, to make sure
2870         mswindows_stat is called on mswindows.
2871
2872 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
2873
2874         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
2875
2876 2000-12-12  Martin Buchholz  <martin@xemacs.org>
2877
2878         * doprnt.c (emacs_doprnt_1): More printing fixes.
2879         Make printing of numbers compatible with libc and FSF Emacs.
2880         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
2881         Use the system printf to do most of the hard work of formatting,
2882         instead of doprnt_1().
2883         Calculate memory to allocate for format string.
2884         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
2885         (doprnt_1): Cleaner code and documentation.
2886
2887 2000-12-01  Jerry James  <james@eecs.ukans.edu>
2888
2889         * Makefile.in.in: Use the loop variable to install headers.
2890
2891 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
2892
2893         * window.c (Fsplit_window): Don't invalidate face cache.
2894
2895 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
2896
2897         * minibuf.c (Fall_completions): Undo the previous change
2898         which removed checking elements start with space.
2899
2900 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
2901
2902         * mule-canna.c: Didier suppression.
2903
2904 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
2905
2906         * mule-canna.c: rename static unsigned char buf[] to key_buffer
2907         (warning suppression).  Add English comment translations.
2908
2909 2000-12-05  Martin Buchholz  <martin@xemacs.org>
2910
2911         * unexelfsgi.c (unexec): Better test for mmap failure.
2912
2913 2000-12-05  Martin Buchholz <martin@xemacs.org>
2914
2915         * XEmacs 21.2.38 is released.
2916
2917 2000-12-05  Martin Buchholz  <martin@xemacs.org>
2918
2919         * redisplay.c (bar-cursor): Make a user variable.
2920
2921         * symsinit.h: Add init_postgresql_from_environment.
2922
2923 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
2924
2925         * regex.c: Convert to clean C.
2926
2927 2000-12-05  Dan Holmsand  <dan@eyebee.com>
2928
2929         * realpath.c:
2930         Don't #include sysfile.h. Revert to duplicating PATH_MAX
2931         initialization.
2932         (sys_readlink): renamed to system_readlink to avoid conflict with
2933         the other sys_readlink.
2934
2935 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
2936
2937         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
2938
2939 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
2940
2941         * postgresql.c (init_postgresql_from_environment): new function.
2942         (vars_of_postgresql): Move code initializing Lisp variables out and
2943         into init_postgresql_from_environment.
2944         emacs.c (main_1): Call init_postgresql_from_environment if and only
2945         if running a dumped XEmacs.
2946
2947 2000-08-31  Dan Holmsand  <dan@eyebee.com>
2948
2949         * buffer.c: Make find-file-compare-truenames default to true on
2950         windows.
2951
2952         * realpath.c (win32_abs_start):
2953         (cygwin_readlink):
2954         (win32_readlink): New functions.
2955         (xrealpath): Return really real filenames on windows.
2956
2957         * fileio.c (Ffile_truename): Make file-truename work on windows.
2958
2959 2000-11-29  Didier Verna  <didier@xemacs.org>
2960
2961         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
2962         * faces.c (update_face_cachel_data): use it.
2963         * faces.c (add_face_cachel): use it. Complete background pixmap
2964         frobbing in face cache if `update_face_cachel_data' has not done so.
2965
2966 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
2967
2968         * search.c (string_match_1): Don't set last_thing_searched
2969         when search failed.
2970
2971 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
2972
2973         * buffer.c: Include casetab.h
2974         (common_init_complex_vars_of_buffer): Use new case-table object.
2975         * buffer.h: Include casetab.h
2976         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
2977         (DOWNCASE_TABLE_OF): Ditto.
2978         * bufslots.h: Remove char-tables and add case-table.
2979         * casetab.c: Include casetab.h
2980         (CASE_TABLE_P): Removed.
2981         (mark_case_table): New function.
2982         (allocate_case_table): New function.
2983         (Fcase_table_p): Use new case-table.
2984         (case_table_char): New function.
2985         (Fget_case_table): Ditto.
2986         (Fput_case_table): Ditto.
2987         (Fput_case_table_pair): Ditto.
2988         (Fcopy_case_table): Ditto.
2989         (Fcurrent_case_table): Return case-table.
2990         (Fstandard_case_table): Return case-table.
2991         (Fset_case_table): Fix doc-string.
2992         (set_case_table): Use case-table
2993         (syms_of_casetab): DEFSUBR new functions.
2994         (complex_vars_of_casetab): Set up standard case-table.
2995         * casetab.h: New file.
2996         * editfns.c: Include casetab.h
2997         (Fcompare_buffer_substrings): Use case-table.
2998         * inline.c: Include casetab.h
2999         * lisp.h: Remove bogus extern.
3000         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3001         * search.c: Include casetab.h
3002         (TRANSLATE_ASCII): Removed.
3003         (TRANSLATE): Unconditionally translate character.
3004         (looking_at_1): Use case-table.
3005         (string_match_1): Ditto.
3006         (fast_string_match): Ditto.
3007         (search_command): Ditto.
3008         (search_buffer): Separate boyer_moore.  Check whether
3009         boyer_moore is possible.
3010         (simple_search): New function.
3011         (boyer_moore): Separated from search_buffer. Translate char.
3012
3013 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3014
3015         * regex.c (RE_TR_ASCII): Removed.
3016         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3017         (PATFETCH): Call PATFETCH_RAW.
3018         (PATFETCH_RAW): Fetch Emchar.
3019         (PATUNFETCH): Decrement charptr.
3020         (GET_BUFFER_SPACE): Rename b to buf_end.
3021         (BUF_PUSH): Ditto.
3022         (BUF_PUSH_2): Ditto.
3023         (BUF_PUSH_3): Ditto.
3024         (EXTEND_BUFFER): Ditto.
3025         (SET_LIST_BIT): Ditto.
3026         (regex_compile): Ditto.  Translate non ASCII char.
3027         (compile_range): Ditto.
3028         (re_search_2): Ditto.
3029         (re_match_2_internal): Compare Emchar.
3030         (bcmp_translate): Ditto.
3031
3032 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3033
3034         * lisp.h (basic char/int typedefs):  comment improvement.
3035
3036 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3037
3038         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3039         unstomp inhibit_site_lisp.  Improve comments.
3040
3041 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3042
3043         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3044
3045 2000-11-28  Andy Piper  <andy@xemacs.org>
3046
3047         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3048         clipped display for windows in the gutter also.
3049         (redisplay_display_boxes_in_window_p): change semantics of return
3050         codes to be more intuitive.
3051
3052         * gutter.h: declare display_boxes_in_gutter_p.
3053
3054         * gutter.c (display_boxes_in_gutter_p): new function for
3055         redisplay.
3056
3057 2000-11-22  Andy Piper  <andy@xemacs.org>
3058
3059         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3060         autodetect domain.
3061
3062 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3063
3064         * callproc.c (Fold_call_process_internal):
3065         * gpm.c (Freceive_gpm_event):
3066         (tty_get_foreign_selection): Might be just warning supression.
3067         * fileio.c (Fwrite_region_internal):
3068         (Fset_visited_file_modtime):
3069         * keymap.c (event_matches_key_specifier_p):
3070         Initialize GCPROed variable.
3071
3072         * menubar-x.c (command_builder_find_menu_accelerator):
3073         Initialize before use.
3074
3075 2000-11-23  Andy Piper  <andy@xemacs.org>
3076
3077         * unexcw.c (unexec): make the resulting executable executable.
3078
3079 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3080
3081         * doc.c (get_doc_string):
3082         Use size_t, not int, for result of XSTRING_LENGTH.
3083
3084         * cmds.c (Fdelete_char):
3085         * cmds.c (Fpoint_at_eol):
3086         * cmds.c (Fself_insert_command):
3087         Use EMACS_INT, not int, for result of XINT.
3088         Someday, someone will want to insert more than 2**31 identical characters.
3089
3090         * cmds.c (Fdelete_char):
3091         * cmds.c (Fdelete_backward_char):
3092         * syntax.c (Fforward_word):
3093         * syntax.c (Fforward_comment):
3094         Make COUNT argument optional, for consistency with forward-char et al.
3095
3096 2000-11-22  Martin Buchholz  <martin@xemacs.org>
3097
3098         * lisp.h:
3099         * print.c (long_to_string):
3100         Return a useful value: the pointer at end of data written.
3101
3102         * doprnt.c:
3103         Use `static const char * const' for constant strings.
3104         (union printf_arg): Delete `i', `ui' members.
3105         (get_doprnt_args):
3106         (emacs_doprnt_1):
3107         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3108         Do all printf-ing via the `l' specifier.
3109         Use EMACS_INT instead of int.
3110         Optimize.
3111
3112 2000-11-20  Didier Verna  <didier@xemacs.org>
3113
3114         * faces.c (update_face_cachel_data): don't frob the background
3115         pixmap when the window is being created. The face is needed but
3116         does not exist yet.
3117
3118 2000-11-20  Andy Piper  <andy@xemacs.org>
3119
3120         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3121         messing with a debug environment.
3122
3123 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3124
3125         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3126
3127 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3128
3129         * casetab.c (Fcase_table_p): Fix compile error and crash.
3130
3131 2000-11-18  Philip Aston  <philipa@mail.com>
3132
3133         * s/cygwin32.h: Cygwin has SVR4-like pty support.
3134
3135 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3136
3137         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
3138         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3139
3140 2000-11-17  Martin Buchholz  <martin@xemacs.org>
3141
3142         * config.h.in: Define HAVE_ELF_H if elf.h exists.
3143         * unexelf.c: Use HAVE_ELF_H.
3144         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
3145         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
3146         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
3147         Greg Harrington <greg_harrington@hotmail.com> provided a machine
3148         for testing.
3149         So this is an unexelfsgi.c from a different line of development.
3150
3151 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3152
3153         * regex.c (RE_TR_ASCII): New function.
3154         (RE_TRANSLATE): Call it.
3155
3156 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3157
3158         * buffer.h (TRT_TABLE_OF): Remove assert.
3159         (IN_TRT_TABLE_DOMAIN): Removed.
3160
3161 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3162
3163         * free-hook.c (log_gcpro):
3164         (show_gcprohist): Add support for GCPRO5.
3165
3166 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
3167
3168         * emacs.c (main_1): Improve -sd error message when --pdump=no.
3169
3170 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
3171
3172         * symeval.h: Declare flush_all_buffer_local_cache.
3173
3174         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
3175         (flush_buffer_local_cache): Added.
3176         (flush_all_buffer_local_cache): Added.
3177
3178         * lrecord.h: Remove unused XD_LO_RESET_NIL.
3179
3180         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
3181         (pdump_dump_data): Ditto.
3182         (pdump_reloc_one): Ditto.
3183         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
3184         before dumping.
3185
3186
3187 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3188
3189         * buffer.c: Remove if 0'ed entry.
3190         * buffer.h: Rewrite TRT to use char-table.
3191         * bufslots.h: Remove mirror tables.
3192         * casetab.c: Remove mirror tables.
3193         (CASE_TABLE_P): New macro.
3194         (Fcase_table_p): Element of a case table is string or char-table.
3195         (make_mirror_trt_table): Removed.
3196         (set_case_table): Setup char-table from strings for backward
3197         compatibility.
3198         * dired.c (Fdirectory_files):
3199         * dired-msw.c: (mswindows_get_files):
3200         * lisp.h: Change prototype of re_pattern_buffer.
3201         * regex.c: (RE_TRANSLATE): New macro.
3202         (TRANSLATE_P): Ditto.
3203         Change translate to type RE_TRANSLATE_TYPE.
3204         * regex.h: Define RE_TRANSLATE_TYPE
3205         * search.c (TRANSLATE): New macro.
3206         (TRANSLATE_ASCII): New macro.
3207         Translate table is changed to Lisp_Object.
3208         (signal_failure): Inhibit return.
3209
3210 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3211
3212         * device-msw.c:
3213         * eldap.c:
3214         * event-Xt.c:
3215         * event-stream.c:
3216         * print.c:
3217         Do UNGCPRO before return.
3218
3219 2000-11-14  Martin Buchholz <martin@xemacs.org>
3220
3221         * XEmacs 21.2.37 is released.
3222
3223 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3224
3225         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
3226         Add comments about discarded return value.
3227
3228 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
3229
3230         * callint.c:
3231         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
3232
3233 2000-10-27  Andy Piper  <andy@xemacs.org>
3234
3235         * gutter.c (Fset_default_gutter_position): default left and right
3236         gutters to visible.
3237         (calculate_gutter_size): calculate resonable heuristic for left
3238         and right gutter sizes.
3239         (specifier_vars_of_gutter): change left and right gutter sizes to
3240         autodetect.
3241         (calculate_gutter_size_from_display_lines): new function.
3242         (output_gutter): check for resizing on left and right gutters.
3243         (clear_gutter): don't special case top and left gutters.
3244         (specifier_vars_of_gutter): use new signature for
3245         set_specifier_caching.
3246
3247         * glyphs-x.c (x_redisplay_widget): spelling fix.
3248         * glyphs.c (specifier_vars_of_glyphs):
3249         * menubar.c (specifier_vars_of_menubar):
3250         * redisplay.c (specifier_vars_of_redisplay):
3251         * toolbar.c (specifier_vars_of_toolbar):
3252         * window.c (specifier_vars_of_window):
3253         * scrollbar.c (specifier_vars_of_scrollbar):
3254         (complex_vars_of_scrollbar): use new signature for
3255         set_specifier_caching.
3256
3257         * specifier.c (set_specifier_caching): include recompute flag.
3258         (recompute_one_cached_specifier_in_window): always recompute if
3259         flag set.
3260         (recompute_one_cached_specifier_in_frame): ditto.
3261
3262         * specifier.h (struct specifier_caching): add recompute flag.
3263
3264 2000-10-24  Andy Piper  <andy@xemacs.org>
3265
3266         * unexcw.c (copy_executable_and_dump_data_section): add new
3267         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
3268         5.0 happy.
3269
3270 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3271
3272         * console-x.h (x_device): New member modifier_release_time.
3273         * event-Xt.c (x_handle_sticky_modifiers):
3274         Bound interval modifier keys are sticky.
3275         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
3276         * events.h: extern it.
3277
3278 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3279
3280         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
3281
3282 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
3283
3284         * event-stream.c (execute_command_event): Preserve current_events
3285         and the like when event is misc-user-event.
3286         Inhibit quit during the call to maybe_echo_keys.
3287
3288 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
3289
3290         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
3291         symlink when buffer is killed.
3292         (inhibit_clash_detection): New variable.
3293
3294 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
3295
3296         * console.c (Fset_input_method): Trigger redisplay on tty.
3297
3298 2000-11-07  Martin Buchholz  <martin@xemacs.org>
3299
3300         * process.c (Fprocess_status): Revert to previous behavior:
3301         (process-status "nosuchprocess") ==> nil
3302
3303 2000-11-06  Martin Buchholz  <martin@xemacs.org>
3304
3305         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
3306         Work around another GCC 2.95.2 optimizer bug.
3307
3308 2000-11-02  Martin Buchholz  <martin@xemacs.org>
3309
3310         * process.c (Fget_process): Use LIST_LOOP_2.
3311         (kill_buffer_processes): Use LIST_LOOP_2.
3312
3313         * minibuf.c (Fall_completions):
3314         Delete old non-functional code for FSF fourth argument.
3315
3316         * frame.c (frame_matches_frame_spec):
3317         Renamed from `frame_matches_frametype'.  Update all callers.
3318         (device_matches_device_spec):
3319         Renamed from 'device_matches_console_spec'.  Update all callers.
3320
3321         * doc.c (Fsubstitute_command_keys):
3322         Remove buffer overflow crash.  Small code cleanups.
3323
3324         * casetab.c (check_case_table): Simpler code.
3325
3326         * window.c (Freplace_buffer_in_windows):
3327         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
3328         (and similar implementation) as Fdelete_windows_on.
3329         Update all callers.
3330
3331         * alloc.c (Fmake_list):
3332         * alloc.c (make_vector):
3333         * alloc.c (Fmake_vector):
3334         * alloc.c (make_bit_vector):
3335         * alloc.c (Fmake_bit_vector):
3336         * alloc.c (Fbit_vector):
3337         * alloc.c (Fmake_string):
3338         * alloc.c (Fpurecopy):
3339         * alloc.c (Fmemory_limit):
3340         * buffer.c:
3341         * buffer.c (Fget_buffer):
3342         * buffer.c (Fkill_buffer):
3343         * buffer.c (complex_vars_of_buffer):
3344         * bytecode.c (Fcompiled_function_stack_depth):
3345         * callint.c (Fprefix_numeric_value):
3346         * event-stream.c:
3347         * event-stream.c (Fread_key_sequence):
3348         * casetab.c:
3349         * casetab.c (Fcase_table_p):
3350         * casetab.c (check_case_table):
3351         * casetab.c (Fset_case_table):
3352         * casetab.c (Fset_standard_case_table):
3353         * chartab.c:
3354         * chartab.c (Fchar_table_type):
3355         * chartab.c (Freset_char_table):
3356         * chartab.c (Fget_char_table):
3357         * chartab.c (Fget_range_char_table):
3358         * chartab.c (Fput_char_table):
3359         * chartab.c (Fmap_char_table):
3360         * chartab.c (Fcategory_table_p):
3361         * chartab.c (Fcheck_category_at):
3362         * chartab.c (Fchar_in_category_p):
3363         * chartab.c (Fcategory_table):
3364         * chartab.c (Fcopy_category_table):
3365         * chartab.c (Fset_category_table):
3366         * chartab.c (Fcategory_designator_p):
3367         * chartab.c (Fcategory_table_value_p):
3368         * cmds.c (Fdelete_char):
3369         * cmds.c (Fdelete_backward_char):
3370         * cmds.c (Fself_insert_command):
3371         * cmds.c (Fself_insert_internal):
3372         * console.c (Fvalid_console_type_p):
3373         * console.c (Fcdfw_console):
3374         * console.c (Fconsole_type):
3375         * console.c (Fconsole_name):
3376         * console.c (Fconsole_device_list):
3377         * console.c (Fconsole_on_window_system_p):
3378         * data.c:
3379         * data.c (Feq):
3380         * data.c (Fold_eq):
3381         * data.c (Fsubr_interactive):
3382         * data.c (Fchar_to_int):
3383         * data.c (Fint_to_char):
3384         * data.c (Fsetcar):
3385         * data.c (Fsetcdr):
3386         * data.c (Fnumber_to_string):
3387         * data.c (Fstring_to_number):
3388         * data.c (Frem):
3389         * database.c (mark_database):
3390         * database.c (finalize_database):
3391         * database.c (Fdatabase_live_p):
3392         * database.c (Fdatabasep):
3393         * device-x.c (Fx_get_resource):
3394         * device.c (Fdfw_device):
3395         * dired.c:
3396         * dired.c (Ffile_name_completion):
3397         * dired.c (Ffile_name_all_completions):
3398         * dired.c (Fuser_name_completion):
3399         * dired.c (Fuser_name_completion_1):
3400         * dired.c (Fuser_name_all_completions):
3401         * doc.c (Fdocumentation):
3402         * doc.c (Fdocumentation_property):
3403         * doc.c (Fsubstitute_command_keys):
3404         * editfns.c:
3405         * editfns.c (Fchar_to_string):
3406         * editfns.c (Fstring_to_char):
3407         * editfns.c (Ftemp_directory):
3408         * editfns.c (Finsert_char):
3409         * editfns.c (Fbuffer_substring_no_properties):
3410         * editfns.c (Fnarrow_to_region):
3411         * editfns.c (Fchar_equal):
3412         * editfns.c (Fchar_Equal):
3413         * editfns.c (Ftranspose_regions):
3414         * emacs.c (Fdump_emacs):
3415         * eval.c (Fthrow):
3416         * eval.c (Fcommand_execute):
3417         * eval.c (Fautoload):
3418         * eval.c (Fbacktrace):
3419         * eval.c (Fbacktrace_frame):
3420         * events.c:
3421         * events.c (Fcopy_event):
3422         * events.c (Fcharacter_to_event):
3423         * events.c (Fevent_button):
3424         * events.c (Fevent_process):
3425         * extents.c:
3426         * extents.c (Fnext_extent_change):
3427         * extents.c (Fextent_property):
3428         * faces.c (Ffacep):
3429         * faces.c (Fmake_face):
3430         * file-coding.c:
3431         * file-coding.c (Fencode_shift_jis_char):
3432         * file-coding.c (Fencode_big5_char):
3433         * fileio.c (Ffile_name_directory):
3434         * fileio.c (Ffile_name_nondirectory):
3435         * fileio.c (Ffile_name_as_directory):
3436         * fileio.c (Fdirectory_file_name):
3437         * fileio.c (Ffile_truename):
3438         * fileio.c (Fsubstitute_in_file_name):
3439         * fileio.c (Ffile_modes):
3440         * fileio.c (Fset_file_modes):
3441         * fileio.c (Fset_default_file_modes):
3442         * fileio.c (Fverify_visited_file_modtime):
3443         * floatfns.c (Facos):
3444         * floatfns.c (Fasin):
3445         * floatfns.c (Fatan):
3446         * floatfns.c (Fcos):
3447         * floatfns.c (Fsin):
3448         * floatfns.c (Ftan):
3449         * floatfns.c (Fbessel_j0):
3450         * floatfns.c (Fbessel_j1):
3451         * floatfns.c (Fbessel_jn):
3452         * floatfns.c (Fbessel_y0):
3453         * floatfns.c (Fbessel_y1):
3454         * floatfns.c (Fbessel_yn):
3455         * floatfns.c (Ferf):
3456         * floatfns.c (Ferfc):
3457         * floatfns.c (Flog_gamma):
3458         * floatfns.c (Fexp):
3459         * floatfns.c (Fexpt):
3460         * floatfns.c (Flog):
3461         * floatfns.c (Flog10):
3462         * floatfns.c (Fsqrt):
3463         * floatfns.c (Fcube_root):
3464         * floatfns.c (Facosh):
3465         * floatfns.c (Fasinh):
3466         * floatfns.c (Fatanh):
3467         * floatfns.c (Fcosh):
3468         * floatfns.c (Fsinh):
3469         * floatfns.c (Ftanh):
3470         * floatfns.c (Fabs):
3471         * floatfns.c (Ffloat):
3472         * floatfns.c (Flogb):
3473         * floatfns.c (Fceiling):
3474         * floatfns.c (Ffloor):
3475         * floatfns.c (Fround):
3476         * floatfns.c (Ftruncate):
3477         * floatfns.c (Ffceiling):
3478         * floatfns.c (Fffloor):
3479         * floatfns.c (Ffround):
3480         * floatfns.c (Fftruncate):
3481         * fns.c (Fstring_equal):
3482         * fns.c (Fstring_lessp):
3483         * fns.c (concat2):
3484         * fns.c (concat3):
3485         * fns.c (vconcat2):
3486         * fns.c (vconcat3):
3487         * fns.c (Fsubstring):
3488         * fns.c (Fassoc):
3489         * fns.c (Fold_assoc):
3490         * fns.c (assoc_no_quit):
3491         * fns.c (Fassq):
3492         * fns.c (Fold_assq):
3493         * fns.c (assq_no_quit):
3494         * fns.c (Frassoc):
3495         * fns.c (Fold_rassoc):
3496         * fns.c (Frassq):
3497         * fns.c (Fold_rassq):
3498         * fns.c (rassq_no_quit):
3499         * fns.c (Fremassoc):
3500         * fns.c (remassoc_no_quit):
3501         * fns.c (Fremassq):
3502         * fns.c (remassq_no_quit):
3503         * fns.c (Fremrassoc):
3504         * fns.c (Fremrassq):
3505         * fns.c (remrassq_no_quit):
3506         * fns.c (Fsort):
3507         * fns.c (Fplist_get):
3508         * fns.c (Fplist_put):
3509         * fns.c (Fplist_remprop):
3510         * fns.c (Fplist_member):
3511         * fns.c (Flax_plist_get):
3512         * fns.c (Flax_plist_put):
3513         * fns.c (Flax_plist_remprop):
3514         * fns.c (Flax_plist_member):
3515         * fns.c (Fequal):
3516         * fns.c (Fold_equal):
3517         * fns.c (Frequire):
3518         * fns.c (Fbase64_encode_region):
3519         * fns.c (Fbase64_encode_string):
3520         * fns.c (Fbase64_decode_region):
3521         * frame.c:
3522         * frame.c (frame_matches_frame_spec):
3523         * frame.c (device_matches_device_spec):
3524         * frame.c (next_frame):
3525         * frame.c (previous_frame):
3526         * frame.c (Fnext_frame):
3527         * frame.c (Fprevious_frame):
3528         * frame.c (Fframe_property):
3529         * frame.c (Fset_frame_height):
3530         * frame.c (Fset_frame_size):
3531         * frame.h:
3532         * glyphs.c:
3533         * glyphs.c (if):
3534         * glyphs.c (decode_error_behavior_flag):
3535         * glyphs.c (Fmake_image_instance):
3536         * indent.c (Findent_to):
3537         * intl.c (Fignore_defer_gettext):
3538         * keymap.c (Fkeymapp):
3539         * keymap.c (Flookup_key):
3540         * lread.c:
3541         * lread.c (Fload_internal):
3542         * lread.c (Feval_buffer):
3543         * lread.c (Feval_region):
3544         * macros.c (Fexecute_kbd_macro):
3545         * marker.c (set_marker_internal):
3546         * marker.c (Fset_marker):
3547         * marker.c (set_marker_restricted):
3548         * marker.c (Fcopy_marker):
3549         * marker.c (noseeum_copy_marker):
3550         * menubar.c:
3551         * menubar.c (Fpopup_menu):
3552         * minibuf.c:
3553         * mule-charset.c (Fcharset_name):
3554         * mule-charset.c (Fchar_charset):
3555         * mule-charset.c (Fchar_octet):
3556         * mule-charset.c (Fsplit_char):
3557         * mule-wnnfns.c (Fwnn_open):
3558         * mule-wnnfns.c (Fwnn_dict_comment):
3559         * mule-wnnfns.c (Fwnn_quit_henkan):
3560         * mule-wnnfns.c (Fwnn_word_toroku):
3561         * mule-wnnfns.c (Fwnn_word_sakujo):
3562         * mule-wnnfns.c (Fwnn_word_use):
3563         * mule-wnnfns.c (Fwnn_hindo_set):
3564         * objects.c:
3565         * objects.c (Fmake_color_instance):
3566         * objects.c (Fmake_font_instance):
3567         * print.c (Fwrite_char):
3568         * process.c:
3569         * process.c (mark_process):
3570         * process.c (print_process):
3571         * process.c (get_process_from_usid):
3572         * process.c (Fprocessp):
3573         * process.c (Fprocess_live_p):
3574         * process.c (Fget_process):
3575         * process.c (Fget_buffer_process):
3576         * process.c (get_process):
3577         * process.c (Fprocess_id):
3578         * process.c (Fprocess_name):
3579         * process.c (Fprocess_command):
3580         * process.c (init_process_io_handles):
3581         * process.c (start_process_unwind):
3582         * process.c (Fstart_process_internal):
3583         * process.c (Fopen_multicast_group_internal):
3584         * process.c (Fset_process_window_size):
3585         * process.c (read_process_output):
3586         * process.c (send_process):
3587         * process.c (Fprocess_tty_name):
3588         * process.c (Fset_process_buffer):
3589         * process.c (Fprocess_buffer):
3590         * process.c (Fprocess_mark):
3591         * process.c (set_process_filter):
3592         * process.c (Fset_process_filter):
3593         * process.c (Fprocess_filter):
3594         * process.c (Fprocess_send_region):
3595         * process.c (Fprocess_send_string):
3596         * process.c (exec_sentinel):
3597         * process.c (Fset_process_sentinel):
3598         * process.c (Fprocess_sentinel):
3599         * process.c (status_notify):
3600         * process.c (Fprocess_status):
3601         * process.c (Fprocess_exit_status):
3602         * process.c (process_send_signal):
3603         * process.c (Fprocess_send_eof):
3604         * process.c (deactivate_process):
3605         * process.c (remove_process):
3606         * process.c (Fdelete_process):
3607         * process.c (kill_buffer_processes):
3608         * process.c (Fprocess_kill_without_query):
3609         * process.c (Fprocess_kill_without_query_p):
3610         * rangetab.c:
3611         * rangetab.c (Fget_range_table):
3612         * rangetab.c (Fput_range_table):
3613         * rangetab.c (Fremove_range_table):
3614         * rangetab.c (Fclear_range_table):
3615         * search.c:
3616         * search.c (Fskip_chars_forward):
3617         * search.c (Fskip_chars_backward):
3618         * search.c (Fskip_syntax_forward):
3619         * search.c (Fskip_syntax_backward):
3620         * search.c (search_command):
3621         * search.c (Freplace_match):
3622         * search.c (Fregexp_quote):
3623         * select.c (Fown_selection_internal):
3624         * select.c (Fselection_owner_p):
3625         * select.c (Fselection_exists_p):
3626         * select.c (Fget_selection_internal):
3627         * specifier.c:
3628         * symbols.c:
3629         * symbols.c (Fintern):
3630         * symbols.c (Fintern_soft):
3631         * symbols.c (Funintern):
3632         * symbols.c (Fapropos_internal):
3633         * symbols.c (Fset_default):
3634         * syntax.c:
3635         * syntax.c (Fsyntax_table_p):
3636         * syntax.c (Fcopy_syntax_table):
3637         * syntax.c (Fset_syntax_table):
3638         * syntax.c (Fchar_syntax):
3639         * syntax.c (syntax_match):
3640         * syntax.c (Fmatching_paren):
3641         * syntax.c (Fforward_word):
3642         * syntax.c (scan_lists):
3643         * syntax.c (Fscan_lists):
3644         * syntax.c (Fscan_sexps):
3645         * syntax.c (Fparse_partial_sexp):
3646         * toolbar.c (Fcheck_toolbar_button_syntax):
3647         * tooltalk.doc:
3648         * window.c:
3649         * window.c (Fwindowp):
3650         * window.c (Fwindow_live_p):
3651         * window.c (Fwindow_point):
3652         * window.c (Fdelete_window):
3653         * window.c (Fnext_window):
3654         * window.c (Fprevious_window):
3655         * window.c (Fother_window):
3656         * window.c (window_loop):
3657         * window.c (Fget_lru_window):
3658         * window.c (Fsplit_window):
3659         * window.c (Fenlarge_window):
3660         * window.c (Fenlarge_window_pixels):
3661         * window.c (Fshrink_window):
3662         * window.c (Fshrink_window_pixels):
3663         * window.c (change_window_height):
3664         * window.c (Fwindow_configuration_p):
3665         * window.c (Fcurrent_window_configuration):
3666         * window.h:
3667         * casefiddle.c (casify_object):
3668         * casefiddle.c (Fupcase):
3669         * casefiddle.c (Fdowncase):
3670         * casefiddle.c (Fcapitalize):
3671         * casefiddle.c (Fupcase_initials):
3672         * casefiddle.c (casify_region_internal):
3673         * casefiddle.c (casify_region):
3674         * casefiddle.c (Fupcase_region):
3675         * casefiddle.c (Fdowncase_region):
3676         * casefiddle.c (Fcapitalize_region):
3677         * casefiddle.c (Fupcase_initials_region):
3678         * casefiddle.c (Fupcase_word):
3679         * casefiddle.c (Fdowncase_word):
3680         * casefiddle.c (Fcapitalize_word):
3681         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3682         Replace 0 with '\0' when working with bytes.
3683         Replace initial "(" with "\(" in docstrings.
3684
3685 2000-11-01  Martin Buchholz  <martin@xemacs.org>
3686
3687         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
3688
3689         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
3690
3691 2000-10-31  Martin Buchholz  <martin@xemacs.org>
3692
3693         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
3694
3695 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
3696
3697         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
3698         correctly.
3699
3700 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
3701
3702         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
3703         (inhibit_auto_save_session): New variable.
3704         (vars_of_fileio): Declare and initialize them.
3705         * fileio.c (Fdo_auto_save): Don't create session file if
3706         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
3707
3708 2000-10-31  Martin Buchholz  <martin@xemacs.org>
3709
3710         * sgiplay.c (play_internal): C++ compilability.
3711         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
3712         * callproc.c (Fold_call_process_internal):
3713         Remove unused vars `env', `first'.
3714         * scrollbar.c (update_scrollbar_instance):
3715         #### unused var `current_window'.
3716         * redisplay-tty.c: Put currently unused vars insert_mode_on,
3717         etc. within #ifdef NOT_YET.
3718         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
3719         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
3720         * specifier.c (specifier_instance):
3721         #### unused var `tag'.
3722         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
3723
3724 2000-10-27  Martin Buchholz  <martin@xemacs.org>
3725
3726         * fns.c (Fbutlast):
3727         * fns.c (list_sort):
3728         * fns.c (Ffillarray):
3729         * fns.c (bytecode_nconc2):
3730         * fns.c (Fnconc):
3731         * fns.c (mapcar1):
3732         * fns.c (Fmapconcat):
3733         Be pedantically 64-bit correct.  For the time when someone will
3734         want to have a list with length > 2**32.
3735
3736         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
3737         Work around MIPSpro compiler bug.
3738
3739         * process-unix.c (unix_kill_child_process): Add snarky comment.
3740         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
3741
3742         * config.h.in: Oops, _getpt ==> _getpty
3743
3744 2000-10-26  Martin Buchholz  <martin@xemacs.org>
3745
3746         * config.h.in:
3747         * regex.c:
3748         Use void*, not char*, as return type of alloca().
3749
3750         * alloc.c (free_marker): Side effect inside assert expression!
3751
3752 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
3753
3754         * mule-charset.c (Fset_charset_ccl_program): To check
3755         if the given ccl program is valid, use setup_ccl_program()
3756         instead of CHECK_VECTOR().
3757         (Fmake_charset): Likewise.
3758
3759 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
3760
3761         * faces.c (get_extent_fragment_face_cache_index):
3762         Fix cachel.merged_faces memory leak.
3763
3764 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
3765
3766         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
3767         Reset MSB of octets obtained by DECODE_SJIS
3768         because of the incompatibility with Emacs.
3769         (ccl_driver)<CCL_ENCODE_SJIS>:
3770         Set MSB of octets before passing them to
3771         ENCODE_SJIS because of the incompatibility
3772         with Emacs.
3773
3774 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
3775
3776         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
3777         (DECLARE_LRECORD): Undo the last change.
3778         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
3779
3780 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
3781
3782         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
3783         the implementation to lrecord_implementations_table.
3784
3785 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
3786
3787         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
3788         initial value of `lrecord_type_##c_name' and
3789         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
3790         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
3791         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
3792         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
3793         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
3794
3795 2000-10-17  Martin Buchholz  <martin@xemacs.org>
3796
3797         * miscplay.c (sndcnv8S_2mono):
3798         (sndcnv2monounsigned):
3799         (sndcnvULaw_2linear):
3800         (sndcnv16swap):
3801         Remove implementation-defined behavior.
3802
3803 2000-10-12  Martin Buchholz  <martin@xemacs.org>
3804
3805         * input-method-xlib.c: Warning suppression.
3806
3807 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
3808
3809         * mule-ccl.c: Sync up with Emacs 21.0.90.
3810         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
3811         Do nothing.
3812         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
3813         Likewise.
3814         (ccl_driver[WriteMultibyteChar2]): Bug fix.
3815         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
3816         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
3817         leading char belongs to official 2-dimensional charset.
3818         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
3819         write the given character as is.  Otherwise,
3820         if it is a multibyte char, convert it by
3821         non_ascii_set_charptr_emchar, then write it.
3822         (CCL_WRITE_STRING): Likewise.
3823         (ccl_get_compiled_code): New function.
3824         (setup_ccl_program): When ccl_prog is invalid,
3825         return -1.
3826         (Fregister_code_conversion_map): New function.
3827         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
3828
3829         * mule-ccl.h: Sync up with Emacs 21.0.90.
3830         (Fregister_ccl_program): export it.
3831
3832         * redisplay-msw.c (separate_textual_runs):
3833         If ccl program is not valid, don't do ccl conversion.
3834
3835         * redisplay-x.c (separate_textual_runs): Ditto.
3836
3837         * file-coding.c (Fmake_coding_system):
3838         When type is ccl and value is vector, register it
3839         with a proper symbol.  And checks whether the
3840         given ccl program is valid.
3841         (mule_decode): When calling ccl_driver, if src indicates
3842         NULL pointer, set an empty string instead.
3843         (mule_encode): Likewise.
3844
3845 2000-10-11  Martin Buchholz  <martin@xemacs.org>
3846
3847         The following large batch of changes gets us back to a state of
3848         C++ compilability.  Extbyte is now a char, which means that
3849         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
3850
3851         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
3852
3853         * sound.c (Fplay_sound): Type correctness.
3854
3855         * select-x.c (hack_motif_clipboard_selection): Type correctness.
3856         (x_get_window_property): Type correctness.
3857         (receive_incremental_selection): unsigned char ==> Extbyte
3858         (selection_data_to_lisp_data): unsigned char ==> Extbyte
3859         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
3860         (Fx_store_cutbuffer_internal): Type correctness.
3861
3862         * process-unix.c (try_to_initialize_subtty): Type correctness.
3863
3864         * objects-x.c (x_print_color_instance): Type correctness.
3865         (x_print_font_instance): Type correctness.
3866         (x_list_fonts): SExtbyte ==> Extbyte.
3867         (valid_x_font_name_p): SExtbyte ==> Extbyte.
3868         (x_find_charset_font): SExtbyte ==> Extbyte.
3869         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
3870         (truename_via_XListFonts): SExtbyte ==> Extbyte.
3871         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
3872         Use bufbyte_strcmp.
3873
3874         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
3875         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
3876         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
3877         (BYTE_C0_P): Use bit ops for char-signedness safety.
3878         (BYTE_C1_P): Use bit ops for char-signedness safety.
3879         (CHARSET_BY_LEADING_BYTE):
3880         (CHARSET_BY_ATTRIBUTES):
3881         Always use inline function.
3882         Use type_checking_assert.
3883         Hide chlook.
3884
3885         * mule-charset.c (non_ascii_charptr_copy_char):
3886         Modify to work with both ASCII and non-ASCII characters.
3887         Improve docs and variable names.
3888         Replace over-clever fall-through switch with a simple loop.
3889         (Lstream_get_emchar_1):
3890         Replace over-clever fall-through switch with a simple loop.
3891
3892         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3893         Warning suppression.
3894
3895         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
3896         the return value of Lstream_getc, which could be EOF as well.
3897
3898         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
3899
3900         * lisp.h: Make Extbyte a char, not unsigned char, so that external
3901         APIs can be used on Extbytes without casts.  Risky!
3902         (SExtbyte): Remove.
3903         (UExtbyte): Remove.
3904
3905         * input-method-xlib.c (XIM_init_device):
3906         Use Xlib.h instead of IntrinsicP.h.
3907         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
3908         which will break in X11R7.
3909         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
3910         to call XRegisterIMInstantiateCallback with correct types.
3911
3912         * gui-x.c (button_item_to_widget_value): Type correctness.
3913
3914         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
3915
3916         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
3917         (xbm_instantiate_1): Type correctness.
3918         (BUILD_GLYPH_INST):  Type correctness.
3919
3920         * fileio.c (Fsubstitute_in_file_name): Type correctness.
3921
3922         * file-coding.c:
3923         (decode_coding_sjis):
3924         (decode_coding_big5):
3925         (decode_coding_ucs4):
3926         (decode_coding_utf8):
3927         (decode_coding_iso2022):
3928         (decode_coding_no_conversion):
3929         Make all decoding functions take an Extbyte * arg.
3930         (encode_coding_sjis):
3931         (encode_coding_big5):
3932         (encode_coding_ucs4):
3933         (encode_coding_utf8):
3934         (encode_coding_iso2022):
3935         (encode_coding_no_conversion):
3936         Make all encoding functions take a Bufbyte * arg.
3937         Use size_t instead of unsigned int for memory sizes.
3938         Only cast to unsigned char whenever dereferencing Extbyte *.
3939
3940         * doc.c (unparesseuxify_doc_string): Type correctness.
3941
3942         * console-x.c (split_up_display_spec):
3943         Rewrite without using details of internal string representation.
3944         (x_semi_canonicalize_device_connection): Type correctness.
3945
3946         * config.h.in:
3947         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
3948         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
3949         (HAVE_XFREE386): Removed.
3950
3951         * buffer.h (DEC_CHARPTR): `const' correctness.
3952         (bufbyte_strcmp): New.
3953         (bufbyte_memcmp): New.
3954
3955         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
3956
3957         * buffer.h (XCHAR_OR_CHAR_INT):
3958         Always use inline function.
3959         Remove redundant type checking assert() - XINT will abort quite nicely.
3960
3961 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
3962
3963         * search.c (Freplace_match): Set newtext to an empty string.
3964
3965 2000-10-10  Martin Buchholz  <martin@xemacs.org>
3966
3967         * s/decosf1-3.h: Remove #include of stropts.h
3968         * s/ptx.h: Remove #include of stropts.h
3969         * s/usg5-4.h: Remove #include of stropts.h
3970         * sysproc.h:
3971         * config.h.in:
3972         Use stropts.h, not sys/stropts.h.
3973         Use strtio.h, not sys/strtio.h.
3974
3975 2000-10-04  Martin Buchholz <martin@xemacs.org>
3976
3977         * XEmacs 21.2.36 is released.
3978
3979 2000-09-21  Andy Piper  <andy@xemacs.org>
3980
3981         * glyphs-x.c (x_redisplay_widget): make sure non-structural
3982         changes still involve copying the widget tree.
3983         (update_widget_face): make sure a change is register in the widget
3984         tree. Call update_tab_widget_face appropriately.
3985         (update_tab_widget_face): ditto.
3986         (x_tab_control_redisplay): make sure non-structural changes still
3987         involve copying the widget tree.
3988
3989 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
3990
3991         * lread.c (locate_file): Check the path element is non-nil.
3992
3993 2000-10-02  Martin Buchholz  <martin@xemacs.org>
3994
3995         * lisp.h: Warning suppression for SCO compilers.
3996
3997         * redisplay-tty.c (reset_tty_modes): Fix crash.
3998         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
3999
4000 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4001
4002         Big signal/process handling overhaul.  Bugs fixed:
4003         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4004         M-x comint-kill-subjob should work for both values nil and t of
4005         process-connection-type. It was broken on most platforms.
4006         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4007         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4008         * process-unix.c: Signal/Process handling overhaul.
4009         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4010         (allocate_pty): Use all available modern methods of allocating
4011         ptys, falling back to old style BSD allocation as a last resort.
4012         Use allegedly more secure Unix98 pty allocation by default.
4013         (allocate_pty_the_old_fashioned_way): New. the last resort.
4014         (unix_create_process): Push ptem, ldterm, ttcompat where
4015         available.  Autoconfiscate.
4016         (try_to_initialize_subtty): New.
4017         (unix_kill_child_process): Proper signal handling for ptys on most
4018         platforms, using special knowledge of AIX, BSD, etc...
4019         (unix_create_process): Always disconnect_controlling_terminal() for
4020         subprocesses, whether using ptys or not.
4021         * process.h: Remove old getpt-dependent PTY code.
4022         * process.c (Fprocess_send_signal): New, obvious generic function.
4023         (decode_signal): New.
4024         (Finterrupt_process):
4025         (Fkill_process):
4026         (Fquit_process):
4027         (Fstop_process):
4028         (Fcontinue_process):
4029         (Fsignal_process): Use decode_signal.
4030         (process_send_signal):
4031         Many docstring corrections.
4032         Allow any signal to be sent to a process object.
4033         * config.h.in: Add symbols for big signal/process overhaul.
4034         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4035         * sysproc.h: Include process-related headers, where available:
4036         sys/stropts.h sys/strtio.h pty.h libutil.h
4037         * s/irix4-0.h:
4038         * s/irix5-0.h:
4039         * s/cygwin32.h:
4040         * s/gnu.h:
4041         * s/linux.h:
4042         * s/hpux.h:
4043         * s/aix3-1.h:
4044         Remove old S&M pty stuff.
4045         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4046         * systty.h: Simplify cpp hackery, improve comments.
4047         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4048
4049         * editfns.c (Fformat_time_string):
4050         Be a little more paranoid with the return value of ctime.
4051
4052         * fileio.c (check_executable):
4053         (check_writable):
4054         Use symbolic constants X_OK, W_OK.
4055
4056         * console-x.c (split_up_display_spec): Fix a warning.
4057
4058 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4059
4060         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4061         * ntproc.c (sys_spawnve): make_string ==> build_string
4062         Small clarity improvements.
4063
4064 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4065
4066         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4067
4068         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4069
4070         * config.h.in (HAVE_STRCASECMP): Remove.
4071
4072 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4073
4074         * redisplay-output.c (redisplay_output_pixmap):
4075         Cleaner and possibly more 64-bit correct code.
4076
4077 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4078
4079         * dumper.c (pdump_load_finish): move restoration of
4080         `noninteractive1' to emacs.c (main_1).
4081         * emacs.c (main_1): protect LISP-visible command-line flags
4082         from pdump_load().
4083
4084 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4085
4086         * Makefile.in.in (versionclean):  Use EXE_TARGET and
4087         DUMP_TARGET instead of literal program names.
4088
4089 2000-09-20  Martin Buchholz  <martin@xemacs.org>
4090
4091         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4092
4093 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4094
4095         * *: Spelling mega-patch
4096
4097 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4098
4099         * fns.c (bad_bad_turtle):
4100         Delete "Eek!" comment, since we fixed the bug to which it refers.
4101
4102 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4103
4104         * alloca.c: Replace REGISTER with register.
4105
4106 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
4107
4108         * file-coding.c (ucs_to_char): Use countof.
4109
4110 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4111
4112         * file-coding.c: (ucs_to_char):
4113         (complex_vars_of_file_coding):
4114         Use countof instead of sizeof.
4115         Use CHECK_NATNUM instead of CHECK_INT.
4116
4117         * sysdep.c (strcasecmp): Remove.
4118         * device-x.c (ascii_strcasecmp): New.
4119         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4120         Avoid using non-standard non-portable strcasecmp.
4121
4122 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4123
4124         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4125         * font-lock.c: remove reference to emacsfns.h.
4126         * search.c: small doc improvement.
4127         * event-Xt.c: correct file names in comments.
4128         * console-x.h Correct file names in comments.
4129         * frame.c: Correct file names in comments.
4130         * event-stream.c: remove Energize from comments.
4131
4132 2000-09-15  Martin Buchholz  <martin@xemacs.org>
4133
4134         * symeval.h (DEFERROR_STANDARD):
4135         (DEFERROR):
4136         (DEFSYMBOL):
4137         (DEFSYMBOL_NO_DUMP):
4138         (DEFSYMBOL_MULTIWORD_PREDICATE):
4139         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4140         (DEFKEYWORD):
4141         The construct &##name is not sensible C.
4142         Fixes compilation errors with Unixware native compiler.
4143
4144 2000-09-14  Martin Buchholz  <martin@xemacs.org>
4145
4146         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
4147         (next_frame_internal): Removed.  We now just have next_frame.
4148         (next_frame):
4149         Write a simpler and cleaner one-pass algorithm.
4150         Remove called_from_delete_device arg and #ifdefed-out code.
4151         (previous_frame):
4152         Renamed from prev_frame.  Update callers.
4153         Cleaned up to have an analogous implementation to next_frame.
4154         (other_visible_frames_internal): Remove the
4155         called_from_delete_device bogus arg, and hence, remove this
4156         function.  Just use other_visible_frames().
4157
4158         * window.c (Fnext_window):
4159         Prettify docstring.
4160         Since next_frame() is guaranteed to return a frame, remove check
4161         for nil inserted in previous patch.
4162         (Fprevious_window):
4163         Prettify docstring.
4164         Make code look more like Fnext_window.
4165         (window_loop):
4166         Respect the `console' arg when iterating through windows.
4167         Fixes bug: (get-buffer-window buffer t device) not respecting
4168         the `device' arg.
4169         This function needs more work, as others have pointed out.
4170
4171         * frame.h: Rename prev_frame to previous_frame.
4172         device_matches_console_spec no longer takes a `frame' arg.
4173
4174         * s/gnu.h:
4175         * s/linux.h:
4176         * s/hpux.h:
4177         Use EMACS_BLOCK_SIGNAL instead of sigblock.
4178         From "Golubev I. N." <gin@mo.msk.ru>.
4179
4180         * make-src-depend: Fix typo.
4181
4182 2000-09-13  Martin Buchholz  <martin@xemacs.org>
4183
4184         * window.c (Fnext_window):
4185         next_frame() might return nil, not a frame.
4186         Fixes this crash:
4187         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4188
4189         * frame.c (next_frame_internal):
4190         We've passed a frame if we've passed its device.
4191         Fixes this crash:
4192         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4193 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
4194
4195 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4196
4197         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
4198         Allow option to suppress accelerators in menu/dialog items.
4199         (populate_or_checksum_helper): Pass dialog title through above.
4200
4201 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4202
4203         * event-msw.c (mswindows_key_to_emacs_keysym):
4204         Add "pause" key, fix "menu" key.
4205
4206 2000-09-09  Martin Buchholz  <martin@xemacs.org>
4207
4208         * eval.c (reinit_vars_of_eval):
4209         Increase max_lisp_eval_depth to 1000,
4210         required for thai-xtis.el to byte-compile under some circumstances.
4211
4212 2000-09-04  Martin Buchholz  <martin@xemacs.org>
4213
4214         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
4215         From Kenichi Handa.
4216
4217 2000-09-01  Martin Buchholz  <martin@xemacs.org>
4218
4219         * make-src-depend: Make the generated Makefiles smaller.
4220
4221         * s/hpux.h (SETUP_SLAVE_PTY):
4222         Provide a %d in the format string for the errno argument.
4223
4224         * editfns.c (Ftemp_directory):
4225         Warning fix.
4226         Avoid buffer overrun on very long file name.
4227
4228         * input-method-xlib.c (XIM_init_device):
4229         6th parameter of XRegisterIMInstantiateCallback has different
4230         pointer types on different OSes, so simply cast to (void *).
4231
4232         * unexhp9k800.c: Warning fixes.  Fiddly changes.
4233
4234         * sysdll.c (dll_open):
4235         shl_load will hang hard if passed a NULL filename.
4236         Simply return NULL for compatibility with dlopen.
4237         * sysdll.c: Conform to XEmacs coding standards.
4238
4239         * sysdep.c (get_pty_max_bytes):
4240         Support pty input lines longer than 512 bytes on HP-UX 10.20.
4241
4242 2000-08-31  Martin Buchholz  <martin@xemacs.org>
4243
4244         * tooltalk.c: Add #include <syssignal.h>
4245
4246 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
4247
4248         * s/hpux.h: Don't use undefined function sigunblock().
4249
4250 2000-08-31  Martin Buchholz  <martin@xemacs.org>
4251
4252         * config.h.in: Add HAVE_BALLOON_HELP.
4253         * emacs.c: Use HAVE_BALLOON_HELP.
4254         * Makefile.in.in (x_objs):
4255         Make Balloon Help conditional on finding shape.h.
4256
4257 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
4258
4259         * syntax.c (regex_emacs_buffer_p): New variable.
4260         * syntax.h (regex_emacs_buffer_p): extern.
4261         * search.c (looking_at_1):
4262         (string_match_1):
4263         (fast_string_match):
4264         (search_buffer): Set regex_emacs_buffer_p.
4265         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
4266         when before_dot, at_dot, after_dot.
4267
4268 2000-08-23  Andy Piper  <andy@xemacs.org>
4269
4270         * gui-x.c (popup_selection_callback): Only set action_occurred
4271         when we really have an image instance.
4272         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
4273
4274 2000-08-23  Andy Piper  <andy@xemacs.org>
4275
4276         * gui-msw.c (mswindows_handle_gui_wm_command): set
4277         action_occurred.
4278         * gui-x.c (popup_selection_callback): ditto.
4279
4280         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
4281         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
4282         (struct Lisp_Image_Instance): add action_occurred flag.
4283
4284         * glyphs.c (redisplay_subwindow): use action_occurred flag.
4285         (image_instance_changed): ditto.
4286         (reset_frame_subwindow_instance_cache): only unmap windows - do
4287         not remove them from the cache also.
4288
4289         * glyphs-widget.c (tab_control_update): better debug.
4290         (progress_gauge_update): ditto.
4291         (layout_update): ditto.
4292         (layout_instantiate): ditto.
4293         (tab_control_order_only_changed): cope with null pending items.
4294
4295         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
4296         debug. Force selection of an item when an action occurred. Cope
4297         with null pending_items.
4298         (mswindows_progress_gauge_redisplay): better debug.
4299         * glyphs-x.c (x_tab_control_redisplay): ditto.
4300
4301         * redisplay.c (redisplay_frame): reset the frame cache if the
4302         frame is garbaged.
4303
4304         * window.c (Fset_window_configuration): potentially re-enable
4305         frame cache reset.
4306         (window_unmap_subwindows): need to finalize instances here since
4307         it is only used in mark_window_as_deleted.
4308
4309 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
4310
4311         * nas.c (SndOpenDataForReading):
4312         nas.c (WaveOpenDataForReading):
4313         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
4314         Somehow escaped from the 2000-08-14 patch.
4315
4316 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4317
4318         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
4319         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
4320
4321 2000-08-21  Andy Piper  <andy@xemacs.org>
4322
4323         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
4324         window if it is not already displayed.
4325
4326         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
4327         it is not already displayed.
4328
4329         * window.c (Fset_window_configuration): don't reset the frame
4330         cache.
4331
4332         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
4333         instances from the frame cache if we are actually finalizing them.
4334         (reset_frame_subwindow_instance_cache): reset frame cache only
4335         after unmapping everything.
4336         (map_subwindow): set displayed flag after mapping.
4337
4338 2000-08-21  Martin Buchholz  <martin@xemacs.org>
4339
4340         * data.c (indirect_function):
4341         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
4342
4343         * eval.c (function_argcount):
4344         Use original function when signaling errors.
4345
4346 2000-08-18  Andy Piper  <andy@xemacs.org>
4347
4348         * frame.c (delete_frame_internal): use new
4349         free_frame_subwindow_instances name.
4350
4351         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
4352         (add_tab_item): make return type correct.
4353         (mswindows_tab_control_instantiate): assert index of tab.
4354         (mswindows_tab_control_redisplay): Re-code to use
4355         gui_item_equal_sans_selected and gui_item_list_find_selected.
4356
4357         * glyphs-widget.c (tab_control_update): Correct comment.
4358
4359         * window.c (window_unmap_subwindows): use new
4360         unmap_subwindow_instance_cache_mapper.
4361         (window_unmap_subwindows_cache_mapper): deleted.
4362         (Fset_window_configuration): comparisons should now be with
4363         EQ. Preserve the subwindow instance cache across configuration
4364         changes.
4365         (allocate_window): ditto.
4366         (make_dummy_parent): ditto.
4367
4368         * glyphs.c (free_frame_subwindow_instances): rename from
4369         free_frame_subwindow_instance_cache. finalize all instances rather
4370         than just those in the display cache.
4371         (finalize_all_subwindow_instances): walk windows unmapping and
4372         finalizing subwindows.
4373         (unmap_subwindow_instance_cache_mapper): moved from
4374         window.c. Allow finalization as well as unmapping.
4375
4376         * gui.c (gui_item_list_find_selected): new function.
4377
4378         * gui.h (gui_item_list_find_selected): declare.
4379
4380         * glyphs-x.c (x_tab_control_redisplay): pick tab
4381         explicitly. Re-code to use gui_item_equal_sans_selected and
4382         gui_item_list_find_selected.
4383
4384         * glyphs-x.h: add lwlib-utils.h
4385
4386         * buffer.c (Frecord_buffer): undo previous change.
4387
4388 2000-08-09  Vin Shelton  <acs@xemacs.org>
4389
4390         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
4391         possible.  Create temporary files more securely.  The patch was
4392         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
4393         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
4394         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
4395         for details.
4396
4397 2000-08-07  Ben Wing  <ben@xemacs.org>
4398
4399         * getloadavg.c: remove duplicate (and windows-breaking)
4400         includes of fcntl.h and sys/file.h.
4401
4402         * nt.c: remove duplicate getloadavg() definition.
4403
4404         * sysdll.h (Qdll_filename_encoding): add missing stand-in
4405         encodings.
4406
4407 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4408
4409         * eval.c (function_argcount): If function needs to be autoloaded
4410         actually use the loaded definition.
4411         GCPRO function.
4412
4413 2000-08-05  Ben Wing  <ben@xemacs.org>
4414
4415         * getloadavg.c: add prototype for getloadavg().  remove
4416         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
4417         of the code).  remove duplicate header includes.
4418
4419         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
4420
4421         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
4422         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
4423         useful load average.
4424
4425         * alloc.c (reinit_alloc_once_early): removed references to
4426         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
4427         the lisp vars are the only things referencing the malloc_sbrk_*
4428         vars, and they were already if 0'd out.  these vars only exist
4429         in the older malloc.c, which is basically unused, and they're
4430         only for informational purposes.
4431
4432         * m\*.h: removed useless VIRT_ADDR_VARIES.
4433
4434         * m\powerpc.h: removed stray NO_ARG_ARRAY.
4435
4436 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
4437
4438         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
4439         color if the image is a mono pixmap.
4440
4441 2000-07-30  Ben Wing  <ben@xemacs.org>
4442
4443         * Makefile.in.in (release):
4444         Remove stray @.
4445
4446         * buffer.c (directory_is_current_directory):
4447         * dired-msw.c (mswindows_get_files):
4448         * dired.c:
4449         * dired.c (Fdirectory_files):
4450         * dired.c (file_name_completion_stat):
4451         * dired.c (Ffile_attributes):
4452         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
4453         preprocessor tricks, to avoid problems on some machines
4454         (e.g. SCO).
4455
4456         * callproc.c (egetenv): GC docs.
4457
4458         * console-msw.h:
4459         * console-msw.h (struct mswindows_dialog_id):
4460         * lrecord.h (lrecord_type):
4461         New object for use with MSW dialogs.
4462
4463         * console.h (struct console_methods):
4464         New enable/disable frame methods, for proper modal dialogs.
4465
4466         * device-msw.c (msprinter_default_printer): Fix to follow
4467         proper Mule conventions.
4468
4469         * device-msw.c:
4470         * device-msw.c (signal_open_printer_error):
4471         * device-msw.c (msprinter_init_device):
4472         * device-msw.c (ensure_not_printing):
4473         * device-msw.c (plist_get_margin):
4474         * device-msw.c (Fmsprinter_select_settings):
4475         * device-msw.c (finalize_devmode):
4476         * device-msw.c (Fmsprinter_settings_despecialize):
4477         * device-msw.c (signal_enum_priner_error):
4478         * extents.c (decode_extent):
4479         * extents.c (decode_map_extents_flags):
4480         * extents.c (decode_extent_at_flag):
4481         * extents.c (Fextent_at):
4482         * extents.c (Fextents_at):
4483         * extents.c (symbol_to_glyph_layout):
4484         [[[[2]]]] Use structured errors.
4485
4486         * dialog-msw.c:
4487         * dialog-msw.c (mswindows_is_dialog_msg):
4488         * dialog-msw.c (mark_mswindows_dialog_id):
4489         * dialog-msw.c (dialog_proc):
4490         * dialog-msw.c (handle_question_dialog_box):
4491         * dialog-msw.c (syms_of_dialog_mswindows):
4492         Define new object to clean up marking; use it as a dialog identifier.
4493         Call new delete-dialog-box-hook.
4494
4495         * dialog-x.c (dbox_selection_callback):
4496         * dialog-x.c (dbox_descriptor_to_widget_value):
4497         * dialog-x.c (x_make_dialog_box_internal):
4498         Call new delete-dialog-box-hook.
4499         Return an id.
4500
4501         * dialog.c:
4502         * dialog.c (syms_of_dialog):
4503         * dialog.c (vars_of_dialog):
4504         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
4505
4506         * eval.c:
4507         * eval.c (signal_call_debugger):
4508         when noninteractive, output stack traces on the console instead
4509         of in a (never-seen) buffer.
4510
4511         * eval.c (signal_type_error):
4512         * eval.c (invalid_argument_2):
4513         * lisp.h:
4514         new funs for use w/structured errors.
4515
4516         * event-Xt.c:
4517         * event-Xt.c (x_to_emacs_keysym):
4518         * event-Xt.c (describe_event):
4519         * event-Xt.c (emacs_Xt_event_handler):
4520         * event-Xt.c (vars_of_event_Xt):
4521         * event-msw.c:
4522         * event-msw.c (mswindows_wnd_proc):
4523         * event-msw.c (vars_of_event_mswindows):
4524         rename {x,mswindows}-debug-events to debug-{}-events for
4525         consistency with other debug-foo variables.
4526
4527         * event-stream.c:
4528         document next-event more clearly.
4529
4530         * fileio.c (Ffile_name_directory):
4531         * fileio.c (Ffile_name_nondirectory):
4532         * fileio.c (Funhandled_file_name_directory):
4533         * fileio.c (file_name_as_directory):
4534         * fileio.c (Ffile_name_as_directory):
4535         * fileio.c (directory_file_name):
4536         * fileio.c (Fdirectory_file_name):
4537         * fileio.c (Fmake_temp_name):
4538         * fileio.c (Ffile_truename):
4539         * fileio.c (Fsubstitute_in_file_name):
4540         * fileio.c (expand_and_dir_to_file):
4541         * fileio.c (barf_or_query_if_file_exists):
4542         * fileio.c (check_executable):
4543         * fileio.c (Ffile_exists_p):
4544         * fileio.c (Ffile_writable_p):
4545         * fileio.c (Ffile_directory_p):
4546         * fileio.c (Ffile_regular_p):
4547         * fileio.c (Ffile_modes):
4548         * fileio.c (Ffile_newer_than_file_p):
4549         * fileio.c (Fverify_visited_file_modtime):
4550         * fileio.c (Fset_visited_file_modtime):
4551         * fileio.c (auto_save_1):
4552         (1). (2).
4553         fix up gcpro's.
4554
4555         * frame-msw.c:
4556         * frame-msw.c (mswindows_init_frame_1):
4557         * frame-msw.c (mswindows_enable_frame):
4558         * frame-msw.c (error_frame_unsizable):
4559         * frame-msw.c (msprinter_init_frame_1):
4560         * frame-msw.c (msprinter_init_frame_3):
4561         * frame-msw.c (console_type_create_frame_mswindows):
4562         (2).
4563         implement new enable/disable frame methods.
4564
4565         * frame-x.c:
4566         * frame-x.c (x_enable_frame):
4567         * frame-x.c (console_type_create_frame_x):
4568         implement new enable/disable frame methods.
4569
4570         * frame.c:
4571         * frame.c (Fdisable_frame):
4572         * frame.c (syms_of_frame):
4573         * frame.h (struct frame):
4574         implement new enable/disable frame methods/functions.
4575
4576         * general-slots.h:
4577         add initial-focus.
4578
4579         * glyphs-msw.c (mswindows_widget_instantiate):
4580         comment that initial-focus should be implemented.
4581
4582         * glyphs-widget.c:
4583         * glyphs-widget.c (check_valid_instantiator):
4584         * glyphs-widget.c (check_valid_orientation):
4585         * glyphs-widget.c (check_valid_tab_orientation):
4586         * glyphs-widget.c (check_valid_justification):
4587         * glyphs-widget.c (check_valid_border):
4588         * glyphs-widget.c (check_valid_callback):
4589         * glyphs-widget.c (check_valid_int_or_function):
4590         * glyphs-widget.c (check_valid_string_or_vector):
4591         * glyphs-widget.c (check_valid_item_list_1):
4592         * glyphs-widget.c (widget_validate):
4593         * glyphs-widget.c (combo_box_validate):
4594         * glyphs-widget.c (widget_instantiate):
4595         * glyphs-widget.c (syms_of_glyphs_widget):
4596         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
4597         * glyphs-widget.c (image_instantiator_combo_box):
4598         * glyphs-widget.c (image_instantiator_scrollbar):
4599         * glyphs-widget.c (image_instantiator_tab_control):
4600         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
4601         (2).
4602         support (unimplemented) keyword initial-focus.
4603         reindent long macros.
4604
4605         * glyphs-x.c (x_redisplay_widget):
4606         * glyphs-x.c (x_button_instantiate):
4607         * glyphs-x.c (x_button_redisplay):
4608         * glyphs-x.c (x_progress_gauge_instantiate):
4609         * glyphs-x.c (x_edit_field_instantiate):
4610         * glyphs-x.c (x_combo_box_instantiate):
4611         * glyphs-x.c (x_tab_control_instantiate):
4612         * glyphs-x.c (x_label_instantiate):
4613         * gui-x.c:
4614         * gui-x.c (button_item_to_widget_value):
4615         * gui-x.c (gui_items_to_widget_values_1):
4616         * gui-x.c (gui_item_children_to_widget_values):
4617         * gui-x.c (gui_items_to_widget_values):
4618         * gui-x.h:
4619         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4620         add new flag to gui-parsing routines to indicate whether
4621         accelerator specs should be supported.
4622
4623         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
4624
4625         * glyphs.h (struct Lisp_Image_Instance):
4626         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
4627         add initial-focus flag.
4628
4629         * gui.c:
4630         * gui.c (syms_of_gui):
4631         * gui.c (vars_of_gui):
4632         clean up menu-no-selection-hook.
4633
4634         * gui.h:
4635         support delete-dialog-box-hook.
4636
4637         * lread.c (Fload_internal):
4638         * lread.c (locate_file_in_directory_mapper):
4639         (1).
4640
4641         * lrecord.h:
4642         * lrecord.h (struct toolbar_button):
4643         * lrecord.h (syms_of_toolbar):
4644         document how to create a new object.
4645
4646         * menubar-msw.c (mswindows_char_is_accelerator):
4647         may be called on frames w/o menus.
4648
4649         * menubar.c (vars_of_menubar):
4650         clean up :filter docs.
4651
4652         * nt.c (readdir):
4653         * ntproc.c:
4654         (1).
4655
4656         * process-nt.c:
4657         * process-nt.c (validate_signal_number):
4658         * process-nt.c (signal_cannot_launch):
4659         * process-nt.c (nt_create_process):
4660         * process-nt.c (nt_send_process):
4661         * process-nt.c (nt_kill_child_process):
4662         * process-nt.c (nt_open_network_stream):
4663         * process-nt.c (syms_of_process_nt):
4664         (2).
4665         delete quote-handling.  call new lisp code that does it better.
4666
4667         * process-unix.c (connect_to_file_descriptor):
4668         * process-unix.c (allocate_pty):
4669         * process-unix.c (unix_send_process):
4670         * process-unix.c (unix_kill_child_process):
4671         * process-unix.c (unix_open_network_stream):
4672         * process-unix.c (unix_open_multicast_group):
4673         (1). (2).
4674
4675         * process.c:
4676         * process.c (Fstart_process_internal):
4677         (2).  need to canonicalize process path even if absolute.
4678
4679         * select-msw.c (symbol_to_ms_cf):
4680         * select-msw.c (ms_cf_to_symbol):
4681         * select-msw.c (cf_is_autofreed):
4682         * select-msw.c (mswindows_destroy_selection):
4683         * select.c:
4684         * select.c (syms_of_select):
4685         * select.h:
4686         support dibv5, fix bugs. (from Mike Alexander)
4687
4688         * select.c (Fget_selection_internal):
4689         * select.c (select_convert_out):
4690
4691         * sysdep.c:
4692         * sysdep.c (xemacs_stat):
4693         renamed.
4694
4695         * sysdep.c (mkdir):
4696         * sysdep.c (rmdir):
4697         but keep original stat() here because we provide encapsulation
4698         around these funs.
4699
4700         * sysfile.h:
4701         * sysfile.h (fstat):
4702         remove stat garbage.
4703
4704         * syswindows.h:
4705         fix X/MSW conflict.
4706         don't include tchar.h.  it's inappropriate because it makes
4707         compile-time distinctions when we want runtime distinctions.
4708         (we provide our own tchar replacements)
4709
4710         * toolbar.c:
4711         use default object printer for toolbar-button.
4712
4713         * unexcw.c:
4714         make sure we don't encapsulate.
4715
4716         * window.c (vars_of_window):
4717         emphasize that temp-buffer-show-hook is obsolete.
4718
4719 2000-08-05  Martin Buchholz  <martin@xemacs.org>
4720
4721         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
4722         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
4723
4724         * events.c (Fevent_timestamp_lessp):
4725         Not 64-bit clean.  Use EMACS_INT, not int.
4726
4727 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
4728
4729         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
4730         unsigned int and changed the last enum to
4731         lrecord_type_last_built_in_type.
4732         (lrecord_implementations_table): changed prototype to know how
4733         long the array is supposed to be.
4734         (lrecord_type_count): new unsigned int to keep track of the
4735         current number of lisp lrecord types.
4736         (DEFINE_EXTERNAL_LRECORD):
4737         (DECLARE_EXTERNAL_LRECORD): Added these two for external
4738         dynamic-modules to declare new lisp types. They are the same
4739         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
4740         int for each new type, and increment lrecord_type_count by 1.
4741
4742         * alloc.c (lrecord_implementations_table): Changed to reference
4743         lrecord_type_last_built_in_type for the size of the array.
4744         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
4745
4746 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4747
4748         * glyphs.h (check_valid_item_list): Renamed from
4749         check_valid_item_list_1.
4750
4751 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
4752
4753         * select.c (Qselect_coerce): New.
4754         * select.c (Vselection_coercion_alist): New.
4755         * select.c (syms_of_select): Declare.
4756         * select.c (get-selection-internal): Use it.
4757         Use the new select-coerce functionality.
4758
4759         * select.c (select_coerce): New.
4760         * select.h (select_coerce): Declare.
4761         New function to coerce one type of data into another.
4762
4763 2000-08-03  Martin Buchholz  <martin@xemacs.org>
4764
4765         * callproc.c (Fcall_process_internal):
4766         (Fcall_process_internal):
4767         * process-unix.c (unix_create_process):
4768         Save and restore the value of errno, so that error messages are accurate.
4769
4770 2000-08-01  Martin Buchholz  <martin@xemacs.org>
4771
4772         * elhash.c (print_hash_table):
4773         Fix printing of hash tables to also use `key-and-value' instead of `t'.
4774         Prettify docstrings and indentation.
4775
4776 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4777
4778         * window.c (Fwindow_pixel_edges): Subtract frame border and
4779         gutter size.
4780
4781 2000-07-31  Andy Piper  <andy@xemacs.org>
4782
4783         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
4784         will acknowledge the change.
4785
4786         * glyphs.h: declare tab_control_order_only_changed.
4787
4788         * glyphs-x.c (x_tab_control_redisplay): use
4789         tab_control_order_only_changed.
4790
4791         * glyphs-widget.c (tab_control_order_only_changed): new function.
4792
4793         * glyphs-msw.c (mswindows_tab_control_redisplay): use
4794         tab_control_order_only_changed.
4795
4796         * gui.c (gui_item_equal_sans_selected): new function.
4797         (gui_item_equal): use it.
4798
4799         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
4800         :properties in favor of :items..
4801
4802         * glyphs-widget.c (check_valid_item_list): rename from
4803         check_valid_item_list_1.
4804         (check_valid_item_list_1): renamed.
4805         (combo_box_validate): deprecate :properties in favor of :items.
4806         (widget_instantiate): ditto.
4807         (tab_control_update): ditto.
4808         (image_instantiator_combo_box): ditto.
4809         (image_instantiator_tree_view): ditto.
4810         (image_instantiator_tab_control): ditto.
4811         (layout_post_instantiate): remove dead code.
4812
4813         * print.c (debug_print_no_newline): only write to debugger if in
4814         WIN32_NATIVE.
4815
4816         * elhash.c (Fmake_hash_table): update doc string.
4817
4818         * event-msw.c (mswindows_wnd_proc): don't allow processing of
4819         messages whilst in GC. This at least stops XEmacs crashing but has
4820         the potential for wierd behaviour.
4821
4822 2000-07-31  Martin Buchholz  <martin@xemacs.org>
4823
4824         * config.h.in:
4825         Make existence of s&m files optional.
4826
4827         * s/bsd386.h: Remove HAVE_GETLOADAVG.
4828         * s/freebsd.h: Remove HAVE_GETLOADAVG.
4829         * s/gnu.h: Remove HAVE_GETLOADAVG.
4830         * s/netbsd.h: Remove HAVE_GETLOADAVG.
4831         * s/sol2.h: Remove HAVE_GETLOADAVG.
4832         * lisp.h: Remove getloadavg() declaration.
4833         * fns.c:
4834         Include <sys/loadavg.h> if available.
4835         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
4836         * config.h.in:  Group together getloadavg()-related macros.
4837         Use only configure-time tests to detect getloadavg().
4838
4839 2000-07-30  Martin Buchholz  <martin@xemacs.org>
4840
4841         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
4842
4843 2000-07-25  Andy Piper  <andy@xemacs.org>
4844
4845         * syswindows.h: add tchar.h for native builds.
4846
4847         * frame.c (syms_of_frame): remove set-glyph-image.
4848
4849         * general-slots.h: add Qset_glyph_image.
4850
4851         * glyphs-widget.c (layout_update): add domain arg to
4852         set-glyph-image.
4853         (syms_of_glyphs_widget): remove set-glyph-image.
4854
4855 2000-07-23  Ben Wing  <ben@xemacs.org>
4856
4857         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
4858         Vpopup_frame_list.
4859
4860 2000-07-22  Andy Piper  <andy@xemacs.org>
4861
4862         * symsinit.h: add syms_of_win32().
4863
4864         * gui-msw.c (syms_of_gui_mswindows): remove
4865         Fmswindows_shell_execute.
4866         (Fmswindows_shell_execute): moved to win32.c.
4867
4868         * emacs.c (main_1): add syms_of_win32 ().
4869
4870         * win32.c (init_potentially_nonexistent_functions): rewrite in
4871         compiler-friendly terms.
4872         (Fmswindows_shell_execute): move here from gui-msw.c.
4873         (syms_of_win32): new.
4874
4875         * device-msw.c (Fmswindows_printer_list): clean up args to
4876         EnumPrinters.
4877         Don't include tchar under cygwin or mingw.
4878         (msprinter_default_printer): make cygwin-friendly.
4879
4880 2000-07-21  Andy Piper  <andy@xemacs.org>
4881
4882         * glyphs-widget.c (image_instantiator_tree_view): use tab
4883         control's update function.
4884         (layout_property): new function. Retrieve items.
4885
4886         * glyphs-msw.c (mswindows_tree_view_redisplay): new
4887         function. Re-populate the tree view from the pending items.
4888
4889         * glyphs.c (instantiate_image_instantiator): Make sure the domain
4890         is designated the parent if the domain is an image instance. This
4891         is needed so that dirtiness can be cascade up the hierarchy and
4892         thus for layout children to be redisplayed correctly.
4893         (allocate_image_instance): rename glyph -> parent.
4894
4895         * redisplay.h: change redisplay_output_layout signature.
4896
4897         * redisplay-msw.c (mswindows_output_display_block): use domain
4898         arg.
4899
4900         * redisplay-x.c (x_output_display_block): use domain arg.
4901
4902 2000-07-10  Andy Piper  <andy@xemacs.org>
4903
4904         * window.c (Fset_window_configuration): add comment.
4905
4906         * redisplay-output.c (compare_runes):
4907         (redisplay_output_subwindow): redisplay rather than update subwindow.
4908         (redisplay_output_layout): ditto.
4909
4910         * redisplay-msw.c (mswindows_frame_output_end):
4911         (mswindows_frame_output_end): make defer window pos optional.
4912
4913         * lisp.h: add Flast.
4914
4915         * glyphs.h (struct image_instantiator_methods): add dest_mask top
4916         normalize method. Change update method to be for changed
4917         instantiators. Add redisplay method. Change signature of layout
4918         method.
4919         (struct Lisp_Image_Instance): add instantiator.
4920         (IMAGE_INSTANCE_INSTANTIATOR): new.
4921         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
4922         (XIMAGE_INSTANCE_INSTANTIATOR): new.
4923         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
4924
4925         * glyphs.c:
4926         (find_instantiator_differences): new function.
4927         (Fset_instantiator_property): new convenience function.
4928         (check_image_instance_structure): strictly check for vector
4929         instantiators.
4930         (normalize_image_instantiator): make non-static.
4931         (instantiate_image_instantiator): pass on dest_mask and use new
4932         signatures for image_instance_layout and friends.
4933         (mark_image_instance): mark the instantiator. Mark the subwindow
4934         face not the widget face.
4935         (image_instance_equal): add instantiator.
4936         (image_instance_hash): ditto.
4937         (allocate_image_instance): ditto.
4938         (Fset_image_instance_property): removed.
4939         (Fimage_instance_file_name): ditto.
4940         (Fcolorize_image_instance): ditto.
4941         (image_instance_layout): add offsets to be set.
4942         (update_image_instance): new function. update an image instance
4943         from its changed instantiator.
4944         (inherit_normalize): add dest_mask.
4945         (xbm_normalize): ditto.
4946         (xface_normalize): ditto.
4947         (xpm_normalize): ditto.
4948         (text_update): set_property -> update.
4949         (image_instantiate): use the glyph identity as a hash key, not the
4950         instantiator.
4951         (glyph_width): use new image_instance_layout signature.
4952         (glyph_ascent): ditto.
4953         (glyph_descent): ditto.
4954         (glyph_height): ditto.
4955         (glyph_query_geometry): ressurrect.
4956         (glyph_layout): ditto.
4957         (redisplay_subwindow): update -> redisplay.
4958         (syms_of_glyphs): add Fset_instantiator_property.
4959         (image_instantiator_format_create): set_property -> update.
4960
4961         * glyphs-x.c:
4962         (autodetect_normalize): add dest_maks to signature.
4963         (x_redisplay_subwindow): update -> redisplay.
4964         (x_redisplay_widget): ditto.
4965         (x_button_redisplay): ditto.
4966         (x_progress_gauge_redisplay): ditto.
4967         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
4968         stacking order.
4969         (console_type_create_glyphs_x): update -> redisplay.
4970         (image_instantiator_format_create_glyphs_x): ditto.
4971
4972         * glyphs-widget.c:
4973         (check_valid_instantiator): disallow glyphs in the instantiator,
4974         they must now be vectors.
4975         (check_valid_instantiator_list): ditto.
4976         (glyph_instantiator_to_glyph): use internal symbol rather than
4977         intern.
4978         (widget_update): renamed from widget_set_property. Call cascaded
4979         update methods.
4980         (redisplay_widget): renamed from update_widget.
4981         (widget_layout): image_instance_layout now takes position as well
4982         as size.
4983         (widget_normalize): ditto.
4984         (widget_instantiate): ditto.
4985         (tab_control_query_geometry) ditto.:
4986         (tab_control_update): renamed from tab_control_set_property.
4987         (progress_gauge_update): set_property -> update.
4988         (layout_normalize): rewrite so that child instantiators are
4989         normalized also.
4990         (layout_update): new function. Create glyphs from the normalized
4991         children and cope with any other layout keywords. We do not
4992         instantiate children here that will be take care of by
4993         redisplay_output_layout.
4994         (layout_instantiate): call layout_update and not much else.
4995         (layout_post_instantiate): not sure whether this is needed
4996         anymore.
4997         (layout_query_geometry): query glyph geometry rather than
4998         image_instance geometry.
4999         (layout_layout): set offsets from pass in parameters. Use glyph
5000         geometry and layout functions rather than image instance ones.
5001         (native_layout_layout): ditto.
5002         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5003         (image_instantiator_widget): set_property -> update.
5004         (image_instantiator_buttons): ditto.
5005         (image_instantiator_progress_guage): ditto.
5006         (image_instantiator_tab_control): ditto.
5007         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5008         (image_instantiator_layout): add update method.
5009
5010         * glyphs-msw.c (bmp_normalize):
5011         (mswindows_resource_normalize): add dest_mask so that it can be
5012         proprogated by layout_normalize.
5013         (begin_defer_window_pos): make optional because it may not be the
5014         right thing to do and it introduces differences with X.
5015         (mswindows_unmap_subwindow): ditto.
5016         (mswindows_map_subwindow): ditto.
5017         (mswindows_redisplay_subwindow): renamed from
5018         mswindows_update_subwindow.
5019         (mswindows_redisplay_widget): ditto.
5020         (mswindows_button_redisplay): renamed from
5021         mswindows_button_update. Update is now what the instantiation
5022         function does for a changed instantiator.
5023         (mswindows_progress_gauge_instantiate): set the progress value
5024         here if appropriate.
5025         (mswindows_tab_control_redisplay): cope with re-ordering of the
5026         members of the tab widget by simply selecting the new top
5027         widget. This makes things appear ok if you click on a tab.
5028         (mswindows_combo_box_instantiate): image_instance_layout now takes
5029         position as well as size.
5030         (mswindows_progress_gauge_redisplay): renamed from
5031         mswindows_progress_gauge_update.
5032         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5033         (image_instantiator_format_create_glyphs_mswindows): ditto.
5034
5035         * glyphs-eimage.c (jpeg_normalize):
5036         (gif_normalize):
5037         (png_normalize):
5038         (tiff_normalize): add dest_mask so that it can be proprogated by
5039         layout_normalize.
5040
5041         * elhash.c:
5042         (print_hash_table):
5043         (hash_table_weakness_validate):
5044         (decode_hash_table_weakness):
5045         (Fhash_table_weakness):
5046         (Fhash_table_type):
5047         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5048
5049         * console.h (struct console_methods): move update_* to
5050         redisplay_*.
5051
5052 2000-07-20  Ben Wing  <ben@xemacs.org>
5053
5054         * *.[ch] (XSETOBJ): remove unused middle argument.
5055         lisp-disunion.h: correct wrap_object() to one argument.
5056
5057 2000-07-15  Ben Wing  <ben@xemacs.org>
5058
5059         * s/cygwin32.h:
5060         * s/cygwin32.h (CYGWIN_CONV_PATH):
5061         Add missing logb prototype for v1.1.
5062         Use post-b20 names and alias to pre-b20 names when pre-b20.
5063
5064         * s/windowsnt.h: [5].
5065
5066 2000-07-15  Ben Wing  <ben@xemacs.org>
5067
5068         * Makefile.in.in (x_objs):
5069         * Makefile.in.in (sheap_objs):
5070         * Makefile.in.in (objs):
5071         added win32.o, cosmetic cleanups.
5072
5073         * alloc.c (Fmake_byte_code):
5074         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5075         etc. macros which declare their own args now.
5076
5077         * alloc.c (syms_of_alloc):
5078         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5079
5080         * buffer.c:
5081         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5082
5083         * buffer.c (Fget_file_buffer):
5084         Fixed GCPRO problem.
5085
5086         * buffer.c (get_truename_buffer):
5087         Fixed comment about GC checking.
5088
5089         * buffer.c (syms_of_buffer):
5090         Undeclared those dedicated frame funs.
5091         [2].
5092
5093         * buffer.h:
5094         Define convenience macros for internal/external conversions.
5095         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5096         and Qenvironment_variable_encoding for cleaner code.
5097
5098         * bufslots.h:
5099         Remove dedicated-frame; in lisp.
5100
5101         * bytecode.c (funcall_compiled_function):
5102         [1].
5103
5104         * bytecode.c (syms_of_bytecode):
5105         [2].
5106
5107         * console-msw.c:
5108         * console-msw.c (mswindows_show_console): Rewrote.
5109
5110         * console-msw.c (Fmswindows_debugging_output): New.
5111         Sends to OutputDebugString (special MSWin debugger interface).
5112
5113         * console-msw.c (Fmswindows_message_box):
5114         Fixed stupid bugs so it works when called from kill-emacs.
5115
5116         * console-msw.c (syms_of_console_mswindows):
5117         Declare Fmswindows_debugging_output.
5118
5119         * console-msw.h:
5120         New MSWin prototypes.
5121
5122         * console-msw.h (struct mswindows_frame):
5123         New entry last-click-mods for improved button-modifier support.
5124
5125         * console-msw.h (FRAME_MSWINDOWS_POPUP):
5126         New struct entry `popup' with corresponding accessor.
5127
5128         * console-x.c:
5129         * console-x.c (split_up_display_spec):
5130         * console-x.c (get_display_arg_connection):
5131         * console-x.c (x_semi_canonicalize_console_connection):
5132         * console-x.c (x_canonicalize_device_connection):
5133         [[[6]]]: Change char to more specific type.
5134         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5135
5136         * console-x.c (x_semi_canonicalize_console_connection):
5137         * console-x.c (x_canonicalize_device_connection):
5138         [[[9]]]: Fix up error signalling to use new structured error system.
5139
5140         * console-x.h:
5141         [[[4]]]: Define codesys aliases:
5142         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5143         Qx_color_name_encoding, Qx_display_name_encoding.
5144
5145         * console.h (struct console_methods):
5146         New method make_dialog_box_internal supersedes older
5147         popup_dialog_box method.
5148
5149         * data.c:
5150         Define many new errors, part of new structured errors.
5151
5152         * data.c (init_errors_once_early):
5153         * data.c (syms_of_data):
5154         [2].
5155
5156         * device-msw.c (mswindows_init_device):
5157         [[[5]]]: Cleanup to support NT 3.51.
5158
5159         * device-msw.c (decode_devmode): Cleanup.
5160
5161         * device-msw.c (mswindows_handle_print_setup_dialog_box):
5162         * device-msw.c (mswindows_handle_print_dialog_box):
5163         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5164         * device-msw.c (syms_of_device_mswindows):
5165         Delete the dialog box primitives recently introduced by Kirill and
5166         instead interface to general dialog box interface.
5167
5168         * device-x.c:
5169         * device-x.c (compute_x_app_name):
5170         * device-x.c (x_init_device):
5171         * device-x.c (Fx_valid_keysym_name_p):
5172         * device-x.c (Fx_set_font_path):
5173         [6].
5174         [7].
5175
5176         * device.h (wrap_device): New.
5177         First of its kind; meant to replace XSETDEVICE.
5178
5179         * dialog-msw.c: Many file-dialog symbols.
5180
5181         * dialog-msw.c (mswindows_register_popup_frame): New.
5182         * dialog-msw.c (mswindows_is_dialog_msg): New.
5183         For supporting kbd traversal in dialog boxes.
5184
5185         * dialog-msw.c (dialog_proc):
5186         Support hitting ESC in dialogs.
5187
5188         * dialog-msw.c (struct):
5189         Common dialog box errors.
5190
5191         * dialog-msw.c (handle_file_dialog_box): New.
5192         Add file dialog code.
5193
5194         * dialog-msw.c (handle_question_dialog_box):
5195         Redo existing code to support new question dialog syntax.
5196
5197         * dialog-msw.c (console_type_create_dialog_mswindows):
5198         We support new dialog console method.
5199
5200         * dialog-msw.c (syms_of_dialog_mswindows):
5201         * dialog-msw.c (vars_of_dialog_mswindows):
5202         New file dialog symbols, vars.
5203
5204         * dialog-x.c:
5205         * dialog-x.c (maybe_run_dbox_text_callback):
5206         * dialog-x.c (dbox_descriptor_to_widget_value):
5207         * dialog-x.c (x_make_dialog_box_internal):
5208         * dialog-x.c (console_type_create_dialog_x):
5209         Mule-ize entire file.
5210         Redo to support question dialog syntax.
5211         [6].
5212
5213         * dialog.c:
5214         * dialog.c (Fmake_dialog_box_internal):
5215         * dialog.c (syms_of_dialog):
5216         Kill old popup-dialog-box, replace with new primitive.
5217         Just call device method or signal error.
5218
5219         * eldap.c (Fldap_open):
5220         * eldap.c (Fldap_search_basic):
5221         * eldap.c (Fldap_add):
5222         * eldap.c (Fldap_modify):
5223         [1].
5224         [7].
5225
5226         * emacs.c:
5227         * emacs.c (make_arg_list_1):
5228         * emacs.c (make_arg_list):
5229         Mule-ize call to dll_init().
5230         [6].
5231         [8].
5232
5233         * emacs.c (make_argc_argv):
5234         * emacs.c (free_argc_argv):
5235         * emacs.c (init_cmdargs):
5236         * emacs.c (main_1):
5237         * emacs.c (Fkill_emacs):
5238         * emacs.c (Fdump_emacs):
5239         Update comments about what can be used in syms_* etc.
5240         Call init_win32() when necessary.
5241         Fix up MS Win dialog box in kill-buffer to actually work right.
5242         [7].
5243
5244         * eval.c:
5245         * eval.c (For):
5246         * eval.c (Fand):
5247         * eval.c (Fprogn):
5248         * eval.c (Fprog1):
5249         * eval.c (Fprog2):
5250         * eval.c (FletX):
5251         * eval.c (Flet):
5252         * eval.c (condition_case_3):
5253         * eval.c (Feval):
5254         * eval.c (function_argcount):
5255         * eval.c (funcall_lambda):
5256         [1].
5257
5258         * eval.c (type_error): New.
5259         * eval.c (maybe_type_error): New.
5260         * eval.c (continuable_type_error): New.
5261         * eval.c (maybe_continuable_type_error): New.
5262         * eval.c (type_error_with_frob): New.
5263         * eval.c (maybe_type_error_with_frob): New.
5264         * eval.c (continuable_type_error_with_frob): New.
5265         * eval.c (maybe_continuable_type_error_with_frob): New.
5266         New functions for use with structured errors.
5267
5268         * event-Xt.c:
5269         * event-Xt.c (x_event_to_emacs_event):
5270         Buttons are now modifiers too.
5271
5272         * event-Xt.c (emacs_Xt_current_event_timestamp):
5273         Implement new event method.
5274         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
5275
5276         * event-msw.c:
5277         * event-msw.c (ntpipe_shove_writer): [5].
5278         * event-msw.c (mswindows_enqueue_mouse_button_event):
5279         * event-msw.c (mswindows_drain_windows_queue):
5280         * event-msw.c (mswindows_wnd_proc): [7].
5281         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
5282         * event-msw.c (mswindows_modifier_state):
5283         Throughout: support new button modifiers.
5284
5285         * event-msw.c (emacs_mswindows_current_event_timestamp):
5286         Implement new event method.
5287         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
5288
5289         * event-stream.c:
5290         * event-stream.c (event_stream_current_event_timestamp): New.
5291         * event-stream.c (maybe_kbd_translate): New functionality.
5292         * event-stream.c (vars_of_event_stream):
5293         Document new kbd-translate-table functionality.
5294
5295         * event-stream.c (Fcurrent_event_timestamp): New.
5296         New primitive for use in fabricated events.
5297         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
5298
5299         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
5300
5301         * events.c:
5302         * events.c (Fmake_event):
5303         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
5304         [1].
5305         [9].
5306
5307         * events.c (format_event_object): fix gcc warnings.
5308
5309         * events.c (Fevent_timestamp): Document new primitives.
5310
5311         * events.c (TIMESTAMP_HALFSPACE): New.
5312
5313         * events.c (Fevent_timestamp_lessp): New.  New primitive for
5314         comparing timestamps correctly (half-space algorithm).
5315
5316         * events.c (Fevent_modifier_bits): Doc fix.
5317
5318         * events.c (Fevent_modifiers): Major doc addition.
5319         * events.c (event_x_y_pixel_internal): Typo fix.
5320         * events.c (syms_of_events): Declare new primitives.
5321
5322         * events.h:
5323         Update long comment for button modifiers, timestamps.
5324
5325         * events.h (struct event_stream):
5326         New current_event_timestamp method.
5327
5328         * extents.c:
5329         * extents.c (extent_in_region_p):
5330         * extents.c (decode_extent):
5331         * extents.c (Fset_extent_parent):
5332         * extents.c (decode_map_extents_flags):
5333         Fix gcc warnings.
5334         [9].
5335
5336         * extents.c (struct extent_at_arg):
5337         * extents.c (decode_extent_at_flag):
5338         * extents.c (extent_at_mapper):
5339         * extents.c (extent_at_bytind):
5340         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
5341         * extents.c (Fextents_at): New primitive. [9].
5342         * extents.c (symbol_to_glyph_layout): [9].
5343         Support new primitive `extents-at'.
5344
5345
5346         * extents.c (get_text_property_bytind):
5347         extent_at_bytind has another arg.
5348         [9].
5349
5350         * extents.c (syms_of_extents): New primitive.
5351
5352         * file-coding.c (Fmake_coding_system): [1].
5353         * file-coding.c (subsidiary_coding_system): fix gcc warning
5354         * file-coding.c (syms_of_file_coding): [2].
5355
5356         * fileio.c (Fexpand_file_name):
5357         * fileio.c (Fsysnetunam):
5358         * fileio.c (Ffile_exists_p):
5359         * fileio.c (Ffile_executable_p):
5360         * fileio.c (Fverify_visited_file_modtime):
5361         Clean up GCPROing.
5362
5363         * fileio.c (syms_of_fileio): [2].
5364
5365         * filelock.c (lock_file_1):
5366         * filelock.c (current_lock_owner):
5367         * filelock.c (lock_if_free):
5368         * filelock.c (lock_file):
5369         * filelock.c (unlock_file):
5370         Clean up GCPROing.
5371
5372         * fns.c (concat): Fix gcc warning.
5373
5374         * fns.c (Fmember):
5375         * fns.c (Fold_member):
5376         * fns.c (Fmemq):
5377         * fns.c (Fold_memq):
5378         * fns.c (memq_no_quit):
5379         * fns.c (Fassoc):
5380         * fns.c (Fold_assoc):
5381         * fns.c (Fassq):
5382         * fns.c (Fold_assq):
5383         * fns.c (assq_no_quit):
5384         * fns.c (Frassoc):
5385         * fns.c (Fold_rassoc):
5386         * fns.c (Frassq):
5387         * fns.c (Fold_rassq):
5388         * fns.c (rassq_no_quit):
5389         * fns.c (Fdelete):
5390         * fns.c (Fold_delete):
5391         * fns.c (Fdelq):
5392         * fns.c (Fold_delq):
5393         * fns.c (delq_no_quit):
5394         * fns.c (Fremassoc):
5395         * fns.c (Fremassq):
5396         * fns.c (remassq_no_quit):
5397         * fns.c (Fremrassoc):
5398         * fns.c (Fremrassq):
5399         * fns.c (remrassq_no_quit):
5400         * fns.c (Freverse):
5401         * fns.c (mapcar1):
5402         [1].
5403
5404         * frame-msw.c (mswindows_init_frame_1):
5405         * frame-msw.c (mswindows_delete_frame):
5406         Register popups with dialog code so keyboard traversing works.
5407
5408         * frame-tty.c (tty_raise_frame_no_select): [1].
5409
5410         * frame-x.c:
5411         * frame-x.c (x_set_frame_text_value):
5412         * frame-x.c (x_set_frame_properties):
5413         * frame-x.c (x_create_widgets):
5414         [7].
5415
5416         * frame.c:
5417         * frame.c (Fmouse_pixel_position): Minor doc fixes.
5418
5419         * frame.h (wrap_frame): New.
5420         Macro like wrap_device.
5421
5422         * general.c:
5423         * general.c (SYMBOL):
5424         * general.c (syms_of_general):
5425         Major reorg.  This is now just a wrapper and symbols themselves
5426         are listed in general-slots.h.
5427
5428         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
5429         * glyphs-msw.c (mswindows_resource_instantiate): [5].
5430
5431         * glyphs-msw.c (mswindows_native_layout_instantiate):
5432         Add DS_CONTROL so keyboard traversal will work.
5433
5434         * glyphs-widget.c:
5435         * glyphs-widget.c (syms_of_glyphs_widget):
5436         Move some symbols to general-slots.h.
5437
5438         * glyphs-x.c:
5439         * glyphs-x.c (xbm_instantiate_1):
5440         * glyphs-x.c (x_xbm_instantiate):
5441         * glyphs-x.c (x_xface_instantiate):
5442         * glyphs-x.c (autodetect_instantiate):
5443         * glyphs-x.c (cursor_font_instantiate):
5444         * glyphs-x.c (x_update_widget):
5445         * glyphs-x.c (x_widget_instantiate):
5446         * glyphs.c (bitmap_to_lisp_data):
5447         * glyphs.c (pixmap_to_lisp_data):
5448         [7].
5449
5450         * glyphs.c (syms_of_glyphs):
5451         [2].
5452
5453         * gui-x.c:
5454         * gui-x.c (print_widget_value):
5455         * gui-x.c (menu_separator_style_and_to_external):
5456         * gui-x.c (add_accel_and_to_external):
5457         * gui-x.c (button_item_to_widget_value):
5458         * gui-x.c (gui_items_to_widget_values_1):
5459         * gui-x.c (gui_items_to_widget_values):
5460         * gui-x.c (syms_of_gui_x):
5461         * gui-x.c (vars_of_gui_x):
5462         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
5463         [9].
5464
5465         * gui-x.h:
5466         Muleize, prototype changes matching gui-x.c.
5467
5468         * gui.c:
5469         * gui.c (separator_string_p):
5470         * gui.c (gui_item_add_keyval_pair):
5471         * gui.c (make_gui_item_from_keywords_internal):
5472         * gui.c (signal_too_long_error):
5473         * gui.c (parse_gui_item_tree_item):
5474         * gui.c (syms_of_gui):
5475         * gui.c (vars_of_gui):
5476         * gui.h:
5477         menu-no-selection-hook moved here (used by MSWin).
5478         Move some symbols to general-slots.h.
5479         [6].
5480         [9].
5481
5482         * insdel.c (get_buffer_pos_char):
5483         * insdel.c (get_buffer_range_char):
5484         Add GC comments.
5485
5486         * keymap.c (keymap_lookup_directly):
5487         * keymap.c (keymap_store):
5488         * keymap.c (ensure_meta_prefix_char_keymapp):
5489         * keymap.c (describe_map):
5490         * keymap.h:
5491         Support new button modifiers.
5492
5493         * lisp-disunion.h (wrap_object):
5494         * lisp-disunion.h (XSETOBJ):
5495         Rename make_obj to wrap_object.
5496
5497         * lisp-union.h:
5498         * lisp-union.h (make_int):
5499         * lisp-union.h (make_char):
5500         Support wrap_object.
5501
5502         * lisp.h:
5503         * lisp.h (LIST_LOOP):
5504         * lisp.h (EXTERNAL_LIST_LOOP):
5505         * lisp.h (LIST_LOOP_2):
5506         * lisp.h (EXTERNAL_LIST_LOOP_1):
5507         * lisp.h (EXTERNAL_LIST_LOOP_2):
5508         * lisp.h (EXTERNAL_LIST_LOOP_3):
5509         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
5510         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5511         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
5512         * lisp.h (EXTERNAL_ALIST_LOOP_5):
5513         * lisp.h (EXTERNAL_ALIST_LOOP_6):
5514         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
5515         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
5516         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
5517         * lisp.h (struct Lisp_Symbol):
5518         * lisp.h (maybe_continuable_error_with_frob):
5519         Fix up section comments.
5520         Add new types for char to indicate usage.
5521         Delete symbols auto-generated from general-slots.h.
5522         Add prototypes for structured error functions.
5523         Add long comments describing looping macros and change interface
5524         so that lvalues are automatically declared.
5525         Add NO_DECLARE macro in case callers want to declare lvalues
5526         themselves.
5527
5528         * lread.c (read_syntax_error):
5529         * lread.c (continuable_read_syntax_error):
5530         * lread.c (read_structure):
5531         * lread.c (sequence_reader):
5532         * lread.c (read_list_conser):
5533         * lread.c (read_compiled_function):
5534         Rename syntax_error and continuable_syntax_error to avoid clash
5535         with same-named structured error functions.
5536
5537         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5538         * menubar-msw.c (populate_menu_add_item):
5539         * menubar-msw.c (populate_or_checksum_helper):
5540         [5].
5541         [9].
5542
5543         * menubar-x.c:
5544         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5545         Mule-ize whole file.
5546
5547         * menubar.c (Fnormalize_menu_item_name): Add optimization.
5548
5549         * mule-charset.c (Fmake_charset):
5550         * mule-wnnfns.c (Fwnn_set_param):
5551         [1].
5552
5553         * ntproc.c (create_child):
5554         * ntproc.c (Fwin32_set_current_locale):
5555         Add comments portending doom.
5556
5557         * objects-msw.c:
5558         * objects-msw.c (old_font_enum_callback_2):
5559         * objects-msw.c (font_enum_callback_1):
5560         * objects-msw.c (mswindows_enumerate_fonts):
5561         [5].
5562
5563         * objects-x.c:
5564         * objects-x.c (allocate_nearest_color):
5565         * objects-x.c (x_parse_nearest_color):
5566         * objects-x.c (x_initialize_color_instance):
5567         * objects-x.c (x_print_color_instance):
5568         * objects-x.c (x_finalize_color_instance):
5569         * objects-x.c (x_valid_color_name_p):
5570         * objects-x.c (x_initialize_font_instance):
5571         * objects-x.c (x_print_font_instance):
5572         * objects-x.c (valid_x_font_name_p):
5573         * objects-x.c (truename_via_FONT_prop):
5574         * objects-x.c (truename_via_random_props):
5575         * objects-x.c (truename_via_XListFonts):
5576         * objects-x.c (x_font_truename):
5577         * objects-x.c (x_font_instance_truename):
5578         * objects-x.c (x_font_instance_properties):
5579         * objects-x.c (x_list_fonts):
5580         * objects-x.c (x_find_charset_font):
5581         Mule-ize entire file.
5582         [7].
5583
5584         * objects-x.h:
5585         Mule-verify.
5586
5587         * print.c:
5588         * print.c (std_handle_out_external):
5589         * print.c (debug_print_no_newline):
5590         * print.c (syms_of_print):
5591         Output to all debugger kinds in debug-print.
5592         Fix console-output code under MSWin to actually work.
5593
5594         * process-nt.c (send_signal):
5595         * process-nt.c (nt_create_process):
5596         Use newer Unicode macros.
5597
5598         * process-unix.c (unix_create_process):
5599         * process-unix.c (unix_canonicalize_host_name):
5600         * process-unix.c (unix_open_network_stream):
5601         [7].
5602
5603         * scrollbar-x.c:
5604         Mule-verify.
5605
5606         * search.c (syms_of_search):
5607         [2].
5608
5609         * select-msw.c (mswindows_destroy_selection):
5610         Use LIST_LOOP_2.
5611
5612         * select-x.c (symbol_to_x_atom):
5613         [7].
5614
5615         * select.c (syms_of_select):
5616         [2].
5617
5618         * sound.c (Fplay_sound_file):
5619         [7].
5620
5621         * specifier.c:
5622         * specifier.c (decode_specifier_type):
5623         * specifier.c (Fvalid_specifier_locale_type_p):
5624         * specifier.c (check_valid_locale_or_locale_type):
5625         * specifier.c (decode_locale):
5626         * specifier.c (decode_locale_type):
5627         * specifier.c (decode_locale_list):
5628         * specifier.c (check_valid_domain):
5629         * specifier.c (decode_specifier_tag_set):
5630         * specifier.c (Fcanonicalize_tag_set):
5631         * specifier.c (Fdefine_specifier_tag):
5632         * specifier.c (Fspecifier_tag_predicate):
5633         * specifier.c (check_valid_inst_list):
5634         * specifier.c (check_valid_spec_list):
5635         * specifier.c (decode_how_to_add_specification):
5636         * specifier.c (check_modifiable_specifier):
5637         * specifier.c (specifier_add_spec):
5638         * specifier.c (boolean_validate):
5639         * specifier.c (display_table_validate):
5640         [9].
5641
5642         * specifier.c (syms_of_specifier):
5643         Move some symbols to general-slots.h.
5644         [2].
5645
5646         * symbols.c:
5647         * symbols.c (Fmapatoms):
5648         * symbols.c (Fapropos_internal):
5649         Add GCPROs.
5650
5651         * symbols.c (set_default_buffer_slot_variable):
5652         * symbols.c (set_default_console_slot_variable):
5653         [1].
5654
5655         * symbols.c (defsymbol_massage_name_1):
5656         * symbols.c (defkeyword_massage_name):
5657         * symbols.c (deferror_1):
5658         * symbols.c (deferror):
5659         * symbols.c (deferror_massage_name_and_message):
5660         * symeval.h:
5661         * symeval.h (DEFSYMBOL):
5662         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
5663
5664         * symbols.c (syms_of_symbols):
5665         [2].
5666
5667         * symsinit.h:
5668         * symsinit.h (init_win32): New.
5669         Also new is syms_of_dialog_mswindows.
5670
5671         * syswindows.h:
5672         Add new Unicode macros, missing Cygwin wide-char functions,
5673         convenience conversion macros for Qmswindows_tstr, macros for
5674         encapsulating required MSWin <-> Cygwin filename conversions,
5675         prototype for dynamically-extracted (not in NT 3.51) functions.
5676
5677         * toolbar-x.c:
5678         Mule-verify.
5679
5680         * tooltalk.c (Fadd_tooltalk_message_arg):
5681         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
5682         * tooltalk.c (Fadd_tooltalk_pattern_arg):
5683         [7].
5684
5685         * tooltalk.c (syms_of_tooltalk):
5686         [2].
5687
5688         * unexnt.c:
5689         * unexnt.c (unexec):
5690         Fix up headers, declaration of unexec() to be more standard.
5691
5692 2000-07-20  Martin Buchholz  <martin@xemacs.org>
5693
5694         * offix.h: Revert change to guard macros - they're used in offix.c!
5695
5696 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5697
5698         * lisp.h: Defsubred Fdelete.
5699
5700         * console-msw.h:  (msprinter_default_printer): Added.
5701
5702         * console-msw.c (msprinter_canonicalize_console_connection):
5703         (msprinter_canonicalize_device_connection): Added.
5704
5705         * device-msw.c (msprinter_default_printer):
5706         (Fmswingows_get_default_printer):
5707         (signal_enum_priner_error):
5708         (Fmswingows_printer_list): Added.
5709
5710 2000-07-19  Martin Buchholz <martin@xemacs.org>
5711
5712         * XEmacs 21.2.35 is released.
5713
5714 2000-07-19  Martin Buchholz  <martin@xemacs.org>
5715
5716         * select-x.c (x_handle_selection_request):
5717         Text selected in xemacs and pasted into xterm failed to appear.
5718         Spelling fixes and cosmetic changes.
5719
5720 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5721
5722         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
5723         XEmacs frame (fix for doubling chars in dialog boxes).
5724
5725 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
5726
5727         * select.c (select_convert_in, select_convert_out):
5728         Don't call intern() every time.
5729
5730         * select.c (Qselect_convert_in, Qselect_convert_out): New.
5731         * select.c (vars_of_select): Initialise them.
5732
5733 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
5734
5735         * select.c (selection-coercible-types): New.
5736
5737         * select.c (own-selection-internal):
5738         * select.c (get-selection-internal):
5739         MULE bug fix - these should default to COMPOUND_TEXT and not
5740         STRING for MULE. I think.
5741
5742         * select.c (select_convert_out): Use selection-coercible-types
5743         to find types that we can attempt to perform coercions on.
5744
5745 2000-07-18  Martin Buchholz  <martin@xemacs.org>
5746
5747         * mule-wnnfns.c:
5748         * mule-canna.c:
5749         Add coding: cookie to identify encoding.
5750
5751         * mule-canna.c (CANNA_mode_keys): make static.
5752         Use proper prototypes, even for functions of no arguments.
5753         Remove external prototype for Fding().
5754
5755         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
5756
5757         * select.c (syms_of_select): Add missing DEFSUBR.
5758
5759 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
5760
5761         * select.c (get_selection_internal, own_selection_internal):
5762         Make the type default to STRING, rather than placing a nil type
5763         into Vselection_alist.
5764
5765 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
5766
5767         * gpmevent.c (tty_selection_exists_p):
5768         * gpmevent.c (tty_own_selection):
5769         Updated parameter lists.
5770
5771 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
5772
5773         * select.h (selection-alist): Removed declaration.
5774
5775         * select.h (get_local_selection):
5776         * select.c (get_local_selection):
5777         Made static.
5778
5779         * select.h (convert_selection): Removed declaration.
5780         * select.c (convert_selection): Removed.
5781         This function belongs in Lisp.
5782
5783         * select.h (select_convert_in): Declare.
5784         * select.h (select_convert_out): Declare.
5785         * select.c (select_convert_in): New.
5786         * select.c (select_convert_out): New.
5787         New conversion functions for other files to call.
5788
5789         * select.h (select_notify_buffer_kill): Declare.
5790         * select.c (select_notify_buffer_kill): New.
5791         New functions that get called from kill-buffer.
5792
5793         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
5794         X-specific lisp code.
5795
5796         * select.h: Declare some of the lisp-visible functions for
5797         external use.
5798
5799         * select.c (clean_local_selection_data): Removed. This was
5800         a disgusting function, and previously should have been in
5801         select-x.c in any case. The functionality is now provided
5802         in select-convert-from-integer (select.el).
5803
5804         * select.c (available-selection-types): Fixed stupidity where
5805         INTEGER and ATOM got added twice. Also add STRING when we see an
5806         extent.
5807
5808         * select.c (get-selection-internal): Removed symbol stripping. No
5809         longer causes conversion when data comes from the internal cache.
5810
5811         * select.c (syms_of_select): Added new functions.
5812
5813         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
5814         error checking - previously this called abort!
5815
5816         * select-x.c (x_own_selection): Changed comment.
5817
5818         * select-x.c (x_handle_selection_request): Use select_convert_out.
5819         Don't mess with selection-alist; it's an internal variable of select.c.
5820
5821         * select-x.c (x_get_foreign_selection): Use select_convert_in.
5822
5823         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
5824         rather than messing with selection-alist.
5825
5826         * select-msw.c (mswindows_get_foreign_selection):
5827         Use TO_INTERNAL_FORMAT rather than hacking.
5828
5829 2000-07-14  Martin Buchholz  <martin@xemacs.org>
5830
5831         * process-unix.c (unix_open_multicast_group):
5832         (unix_open_multicast_group): Remove useless casts.
5833
5834 2000-07-13  Martin Buchholz  <martin@xemacs.org>
5835
5836         * sound.c (Fplay_sound): Fix `unused variable' warning.
5837
5838         * emacs.c (main): Use correct type for _environ on SCO5.
5839
5840 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
5841
5842         * console.h (own_selection_method):
5843         * console.h (selection_exists_p_method):
5844         * console.h (available_selection_types_method): New.
5845         * console.h (register_selection_data_type_method): New.
5846         * console.h (selection_data_type_name): New.
5847
5848         * console-msw.h (mswindows_destroy_selection): Declare it.  New
5849         function & alist to track GlobalAlloc()'d handles that need
5850         releasing when the clipboard data gets replaced or emptied.
5851
5852         * event-msw.c (mswindows_wnd_proc): Call it.
5853
5854         * lisp.h, general.c (Qappend): New symbol representing a
5855         `how-to-add' mode.
5856
5857         * select.c (own-selection-internal):
5858         * select.c (selection-exists-p):
5859         * select.c (available-selection-types): New.
5860         * select.c (register-selection-data-type): New.
5861         * select.c (selection-data-type-name): New.  New functions to deal
5862         with device-specific selection data formats.
5863         * select.c (selection-converter-out-alist): Renamed.
5864         * select.c (selection-converter-in-alist): New.
5865         * select.c (selection-appender-alist): New.  Added new alists.
5866         * select.c (syms_of_select, vars_of_select): Added new symbols &
5867         variables.
5868         * select.c (get_local_selection): Split.
5869         * select.c: Removed spurious type checking - selections may now be
5870         of any type, not just strings.
5871         * select.c (own-selection-internal):
5872
5873         * select.h, select.c (convert_selection): New. Created
5874         convert_selection() function based on get_local_selection().
5875         * select.h, select.c (QCF_*): New symbols representing mswindows
5876         clipboard formats.
5877         * select.h, select.c (Qreplace_all, Qreplace_existing): New
5878         symbols representing `how-to-add' modes.
5879
5880         * select-msw.c (x_sym_p): New.
5881         * select-msw.c (symbol_to_ms_cf): New.
5882         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
5883         symbols & clipboard formats. Can also handle string names.
5884         * select-msw.c (mswindows_own_selection):
5885         * select-msw.c (mswindows_selection_exists_p):
5886         Added `data-type' parameter. Use it.
5887         * select-msw.c (mswindows_available_selection_types): New.
5888         * select-msw.c (mswindows_register_selection_data_type): New.
5889         * select-msw.c (mswindows_selection_data_type_name): New.
5890         * select-msw.c (mswindows_own_selection):
5891         * select-msw.c (mswindows_get_foreign_selection):
5892         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
5893         * select-msw.c (console_create_select_mswindows): Added new methods.
5894         * select-msw.c (mswindows_destroy_selection): New.
5895         * select-msw.c (Vhandle_alist): New list.
5896         * select-msw.c (mswindows_own_selection):
5897
5898         * select-x.c (x_own_selection):
5899         * select-x.c (x_selection_exists_p):
5900         * select-x.c: Added some comments about maybe using new
5901         functionality.
5902         * select-x.c (x_own_selection):
5903
5904         * specifier.c: Remove definition of Qappend (now in general.c)
5905         * specifier.c (syms_of_specifier): Remove Qappend.
5906
5907 2000-07-12  Martin Buchholz  <martin@xemacs.org>
5908
5909         * config.h.in: Add socklen_t.
5910
5911         * s/decosf4-0.h: No special compiler flags needed or desired.
5912         In particular, undefine _BSD for DEC OSF 4.0.
5913
5914 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5915
5916         * redisplay-msw.c (msprinter_frame_output_end): Added.
5917         (console_type_create_redisplay_mswindows): Referred the above.
5918
5919         * frame.c (setup_frame_without_minibuffer): Do not create a
5920         default minibuffer frame on a printer device.
5921
5922         * frame-msw.c (apply_dc_geometry): Added.
5923         (msprinter_start_page):
5924         (msprinter_init_frame_3):
5925         (msprinter_eject_page): Use it.
5926
5927         * console-msw.h (struct msprinter_frame): Added pix_left and top,
5928         and removed residual duplex and orientation properties.
5929
5930 2000-07-11  Martin Buchholz  <martin@xemacs.org>
5931
5932         * eval.c (function_argcount): Work around a DEC CC compiler bug.
5933
5934         * unexalpha.c: Remove system prototypes from C sources!
5935
5936 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
5937
5938         * eval.c: Remove references to M-x edit-options in DEFUNs for
5939         `defvar' and `defconst'.
5940
5941 2000-07-09  Martin Buchholz  <martin@xemacs.org>
5942
5943         * config.h.in: Remove SMART_INCLUDE hackery.
5944
5945         PostgreSQL hacking:
5946         * config.h.in: Don't use SMART_INCLUDE.
5947
5948         * postgresql.h: Include libpq-fe.h here.  Fix typo.
5949         * inline.c: Simply #include "postgresql.h"
5950         * postgresql.c:
5951         - Don't use SMART_INCLUDE
5952         - Use simply "const".
5953         - Use standard doc string conventions.
5954         - Use correct type for result of PQstatus.
5955
5956 2000-07-09  Martin Buchholz  <martin@xemacs.org>
5957
5958         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
5959
5960         C++ compilation changes.
5961         * config.h.in (EXTERN_C): Define.
5962         * config.h.in (not): This is also a C++ keyword.
5963         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
5964         * cm.c: Use EXTERN_C.
5965         * redisplay-tty.c: Use EXTERN_C.
5966         * sysdep.c: Use EXTERN_C.  Remove Gould support.
5967
5968 2000-07-09  Martin Buchholz  <martin@xemacs.org>
5969
5970         * general.c: Remove duplicate definition for Qfunction.
5971
5972 2000-07-08  Ben Wing  <ben@xemacs.org>
5973
5974         * device-msw.c (msprinter_init_device):
5975         * device-msw.c (sync_printer_with_devmode):
5976         * device-msw.c (handle_devmode_changes):
5977         * device-msw.c (print_dialog_worker):
5978         * device-msw.c (Fmsprinter_apply_settings):
5979         * device-msw.c (hash_devmode):
5980         * device-msw.c (Fmsprinter_settings_despecialize):
5981         use Qmswindows_tstr, not Qctext.
5982
5983         * vm-limit.c (check_memory_limits):
5984         avoid infinite loop printing warning messages.
5985
5986 2000-07-05  Craig Lanning  <lanning@scra.org>
5987
5988         * Makefile.in.in: Add support for including the Windows resources
5989         when building with the cygwin and mingw targets.
5990
5991         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
5992         not set or not correct.
5993         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
5994         (init_initial_directory): Don't try to use $PWD on the
5995         WIN32_NATIVE target.
5996
5997         * s\cygwin32.h:
5998         [[Add -mwindows to eliminate console window.]] not required --ben
5999         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6000         (MAIL_USE_POP): removed; now handled by configure.
6001
6002         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6003         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6004         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6005         (MAIL_USE_POP): removed; now handled by configure.
6006         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6007         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6008         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6009         constant string.
6010         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6011         up from <winsock.h> via systime.h.
6012         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6013         (getpagesize): from Dan Holmsand, added.
6014         Added #endif which was left dangling by Ben's mega patch; added
6015         comment to help prevent this in the future.
6016
6017         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6018
6019 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6020
6021         * console-msw.h (struct mswindows_device): Removed unnecessary
6022         cached device geometry values.
6023         Added update_tick and an accessor macro.
6024         (Lisp_Devmode): Added lrecord declaration.
6025         (struct msprinter_device): Contain devmode as a Lisp object.
6026         Added mswindows_get_selected_frame_hwnd();
6027
6028         * console.h (struct console_methods): Indentation nitpicking.
6029
6030         * device-msw.c (mswindows_init_device): Do not initialize geometry
6031         cache. Initialize update tick.
6032         (mswindows_device_system_metrics): Ask the device for its geometry.
6033         (global_free_2_maybe):
6034         (devmode_to_hglobal):
6035         (handle_printer_changes):
6036         (ensure_not_printing):
6037         (print_dialog_worker):
6038         (Fmsprinter_print_setup_dialog):
6039         (Fmsprinter_print_dialog):
6040         (plist_get_margin):
6041         (plist_set_margin):
6042         (Fmsprinter_page_setup_dialog): Added functions.
6043         (sync_printer_with_devmode):
6044         (handle_devmode_changes):
6045         (Fmsprinter_get_settings):
6046         (Fmsprinter_select_settings):
6047         (Fmsprinter_apply_settings):
6048         (allocate_devmode):
6049         (Fmsprinter_settings_copy):
6050         (Fmsprinter_settings_despecialize):
6051         (print_devmode):
6052         (finalize_devmode):
6053         (equal_devmode):
6054         (hash_devmode): Added functions
6055         (syms_of_device_mswindows): Init devmode lrecord class.
6056
6057         * device.h: Added an exfun for find-device.
6058
6059         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6060         geometry; although, recreate the device compatible DC.
6061
6062         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6063         (msprinter_init_frame_3):
6064         (msprinter_frame_property):
6065         (msprinter_internal_frame_property_p):
6066         (msprinter_frame_properties):
6067         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6068         print job properties (will move to device settings).
6069
6070         * lisp.h: Added symbols.
6071
6072         * general.c (syms_of_general): Declared them.
6073
6074         * hash.c (string_hash): Added.
6075
6076         * lrecord.h (lrecord_type): Added devmode lrecord type.
6077
6078 2000-07-02  Mike Sperber <mike@xemacs.org>
6079
6080         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6081         FreeBSD 4.0.
6082
6083 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6084
6085         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6086         integer.
6087
6088 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
6089
6090         * data.c (Fstring_to_number): Don't recognize floating point if
6091         base is not 10.
6092
6093 2000-06-22  Martin Buchholz  <martin@xemacs.org>
6094
6095         * glyphs-widget.c (tab_control_query_geometry):
6096         (widget_query_geometry):
6097         (button_query_geometry):
6098         * glyphs.c (text_query_geometry):
6099         Enforce type correctness.
6100
6101 2000-06-18  Martin Buchholz  <martin@xemacs.org>
6102
6103         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6104         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6105
6106 2000-06-17  Martin Buchholz  <martin@xemacs.org>
6107
6108         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6109         conflicts with gcc's fixincluded version of FOO.h.
6110
6111         * glyphs.h (image_instance_geometry): Remove trailing `,'
6112
6113 2000-06-08  Mike Alexander  <mta@arbortext.com>
6114
6115         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6116         (shove_thread): Don't write the same output twice
6117         (make_ntpipe_output_stream): Increase priority of shove thread
6118         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6119         chance to run
6120         (ntpipe_shove_closer): Don't delete the pipe until we're done with
6121         it.
6122
6123 2000-06-12  Ben Wing  <ben@xemacs.org>
6124
6125         * s\mingw32.h (sigset):
6126         * s\windowsnt.h (sigset):
6127         rename msw_ to mswindows_ for consistency with general convention.
6128
6129 2000-06-12  Ben Wing  <ben@xemacs.org>
6130
6131         * console-msw.c:
6132         * console-msw.c (mswindows_get_console_hwnd):
6133         * console-msw.c (mswindows_ensure_console_allocated):
6134         * console-msw.c (mswindows_hide_console):
6135         * console-msw.c (mswindows_show_console):
6136         * console-msw.c (mswindows_ensure_console_buffered):
6137         * console-msw.c (mswindows_output_console_string):
6138         * console-msw.c (mswindows_windows9x_p):
6139         * console-msw.h:
6140         * device-msw.c (mswindows_get_workspace_coords):
6141         * device-msw.c (mswindows_device_system_metrics):
6142         * dialog-msw.c (mswindows_popup_dialog_box):
6143         * event-msw.c (mswindows_wnd_proc):
6144         * frame-msw.c (mswindows_size_frame_internal):
6145         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6146         * menubar-msw.c (displayable_menu_item):
6147         * menubar-msw.c (mswindows_char_is_accelerator):
6148         * nt.c:
6149         * nt.c (mswindows_sigset):
6150         * nt.c (mswindows_sigrelse):
6151         * nt.c (mswindows_sigpause):
6152         * nt.c (mswindows_raise):
6153         * nt.c (timer_proc):
6154         * ntproc.c:
6155         * ntproc.c (find_child_console):
6156         * ntproc.c (sys_kill):
6157         * print.c:
6158         * print.c (std_handle_out_external):
6159         * process-nt.c (find_child_console):
6160         * process-nt.c (send_signal_the_95_way):
6161         * process-nt.c (ensure_console_window_exists):
6162         * process-nt.c (nt_create_process):
6163         * syssignal.h:
6164         rename msw_ to mswindows_ for consistency with general convention.
6165
6166         * emacs.c:
6167         * dumper.c:
6168         include nt.h, not syswindows.h.
6169
6170         * nt.c (mswindows_fstat):
6171         * nt.c (mswindows_stat):
6172         prefix mswindows_ instead of attempting to directly override the
6173         library functions.  fix declarations.
6174
6175         * nt.h:
6176         include syswindows.h.  move some sysdep.h stuff here.
6177
6178         * ntheap.h:
6179         include syswindows.h, not <windows.h>.
6180
6181         * ntplay.c:
6182         clean up headers.
6183
6184         * sysdep.c:
6185         clean up headers.
6186
6187         * sysdep.c (sys_fstat):
6188         * sysdep.c (sys_stat):
6189         call mswindows versions when appropriate.
6190
6191         * sysdep.h:
6192         move mswin decls to nt.h.
6193
6194         * syswindows.h:
6195         add long comment describing appropriate use of the various windows
6196         headers.
6197
6198 2000-06-11  Ben Wing  <ben@xemacs.org>
6199
6200         * device-x.c: Correct doc string for sixth arg of x-get-resource.
6201
6202 2000-06-10  Ben Wing  <ben@xemacs.org>
6203
6204         * Makefile.in.in (release):
6205         Correction to make sure xemacs.exe always dumped when correct.
6206
6207         * alloca.c:
6208         * balloon_help.c:
6209         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
6210
6211         * buffer.c (set_buffer_internal):
6212         [[[[2]]]]: Remove HAVE_FEP code.
6213
6214         * buffer.c (init_initial_directory):
6215         [3].
6216
6217         * bytecode.c:
6218         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
6219         individual files.
6220
6221         * callproc.c:
6222         * callproc.c (call_process_cleanup):
6223         * callproc.c (Fold_call_process_internal):
6224         * callproc.c (child_setup):
6225         * callproc.c (getenv_internal):
6226         * callproc.c (init_callproc):
6227         * callproc.c (vars_of_callproc):
6228         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
6229         __CYGWIN32__ -> CYGWIN.
6230         DOS_NT -> WIN32_NATIVE.
6231         Remove MSDOS support/references, converting to WIN32_NATIVE
6232           where correct.
6233         __MINGW32__ -> MINGW.
6234         Fix windows.h includes.
6235         Remove bogus HAVE_NTGUI.
6236
6237         * config.h.in:
6238         [2].
6239
6240         * console-msw.c:
6241         mswindows_message_outputted added for use in allowing startup
6242         errors on the console to be seen.
6243
6244         * console-msw.c (msw_ensure_console_allocated):
6245         * console-msw.c (msw_output_console_string):
6246         * console-msw.c (DHEADER):
6247         * console-msw.c (DOPAQUE_DATA):
6248         * console-msw.c (DEVENT):
6249         * console-msw.c (DCONS):
6250         * console-msw.c (DCONSCDR):
6251         * console-msw.c (DSTRING):
6252         * console-msw.c (DVECTOR):
6253         * console-msw.c (DSYMBOL):
6254         * console-msw.c (DSYMNAME):
6255         Fix warnings.
6256
6257         * console-stream.c (stream_init_console):
6258         Fix text/binary problems.
6259
6260         * device-msw.c:
6261         * device-msw.c (mswindows_finish_init_device):
6262         * device-msw.c (mswindows_delete_device):
6263         [1].
6264
6265         * device.c (handle_asynch_device_change):
6266         [3].
6267
6268         * dgif_lib.c:
6269         * dgif_lib.c (DGifOpenFileName):
6270         * dgif_lib.c (DGifOpenFileHandle):
6271         * dgif_lib.c (DGifGetLine):
6272         * dgif_lib.c (DGifGetPixel):
6273         Added config.h/lisp.h, fix up includes.
6274         [1].
6275
6276         * dired-msw.c:
6277         [4].
6278
6279         * dired.c:
6280         * dired.c (file_name_completion):
6281         * dired.c (Ffile_attributes):
6282         * dired.c (syms_of_dired):
6283         [1].
6284
6285         * dumper.c:
6286         * dumper.c (pdump_file_unmap):
6287         * dumper.c (pdump_load):
6288         [1].
6289
6290         * editfns.c:
6291         * editfns.c (Ftemp_directory):
6292         * editfns.c (user_login_name):
6293         * editfns.c (Fuser_real_login_name):
6294         * editfns.c (get_home_directory):
6295         [1].
6296
6297         * elhash.c (finish_marking_weak_hash_tables):
6298         [[[[5]]]]: Fix GCC warnings.
6299
6300         * emacs.c:
6301         * emacs.c (mswindows_handle_hardware_exceptions):
6302         * emacs.c (make_arg_list_1):
6303         * emacs.c (main_1):
6304         * emacs.c (Fkill_emacs):
6305         * emacs.c (Fdump_emacs):
6306         [1].
6307         Fix problems with nested crashes, add long comment.
6308
6309         * event-Xt.c (init_event_Xt_late):
6310         [1].
6311
6312         * event-msw.c:
6313         * event-msw.c (mswindows_dde_callback):
6314         * event-msw.c (mswindows_handle_sticky_modifiers):
6315         * event-msw.c (mswindows_wnd_proc):
6316         [1].
6317         [5].
6318
6319         * events.c (character_to_event):
6320         [1].
6321
6322         * fileio.c:
6323         * fileio.c (Ffile_name_directory):
6324         * fileio.c (Ffile_name_nondirectory):
6325         * fileio.c (directory_file_name):
6326         * fileio.c (Fexpand_file_name):
6327         * fileio.c (Fsubstitute_in_file_name):
6328         * fileio.c (Ffile_name_absolute_p):
6329         * fileio.c (check_executable):
6330         * fileio.c (Ffile_readable_p):
6331         * fileio.c (Ffile_accessible_directory_p):
6332         * fileio.c (Ffile_modes):
6333         * fileio.c (Funix_sync):
6334         * fileio.c (vars_of_fileio):
6335         [1]. [4].
6336
6337         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
6338
6339         Expand getdefdir defn.
6340         Fix bogus rename() comment.
6341
6342         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
6343         to use standard XEmacs include files, e.g. sysfile.h, rather
6344         than system-specific includes.
6345
6346         * fns.c:
6347         * fns.c (Fsubseq):
6348         [5]. [6].
6349
6350         * frame.c (vars_of_frame):
6351         [1].
6352
6353         * getloadavg.c:
6354         * getloadavg.c (getloadavg):
6355         [1]. [6].
6356         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
6357         (We don't use it elsewhere in the code; just add a comment.)
6358
6359         * gif_io.c:
6360         [6].
6361         Add config.h.
6362
6363         * glyphs-msw.c:
6364         * glyphs-msw.c (mswindows_resource_instantiate):
6365         [1].
6366
6367         * glyphs-x.c (x_native_layout_instantiate):
6368         [5].
6369
6370         * gui-msw.c (Fmswindows_shell_execute):
6371         [1].
6372
6373         * insdel.c:
6374         [4].
6375
6376         * lisp.h:
6377         [4]. [5].
6378
6379         * lread.c (locate_file_in_directory_mapper):
6380         [1].
6381
6382         * lstream.c:
6383         [4].
6384
6385         * mem-limits.h:
6386         * mem-limits.h (get_lim_data):
6387         [1].
6388
6389         * menubar-msw.c:
6390         [4].
6391
6392         * ndir.h:
6393         [1].
6394
6395         * nt.c:
6396         * nt.c (getwd):
6397         * nt.c (closedir):
6398         * nt.c (rva_to_section):
6399         * nt.c (mswindows_executable_type):
6400         [1]. [6].
6401         Fix closedir() defn.
6402
6403         * nt.h:
6404         [[[[8]]]]: *_OK defs moved to sysfile.h.
6405
6406         * ntproc.c:
6407         [6]. [7].
6408
6409         * objects-x.c:
6410         [4].
6411
6412         * print.c:
6413         * print.c (std_handle_out_external):
6414         [1]. [4].
6415
6416         * process-nt.c:
6417         * process-nt.c (nt_create_process):
6418         [6].
6419         try to fix process quoting somewhat.
6420
6421         * process-unix.c (unix_create_process):
6422         [1].
6423
6424         * process.c:
6425         * process.c (vars_of_process):
6426         Add Vnull_device.
6427
6428         * process.h:
6429         [1].
6430
6431         * realpath.c:
6432         * realpath.c (xrealpath):
6433         [1].
6434
6435         * redisplay-tty.c (init_tty_for_redisplay):
6436         [3].
6437
6438         * redisplay.c:
6439         [4]. [6].
6440
6441         * scrollbar-msw.c:
6442         [4].
6443
6444         * sheap.c:
6445         * sheap.c (more_static_core):
6446         * sheap.c (report_sheap_usage):
6447         [5]. [6].
6448
6449         * signal.c:
6450         * signal.c (alarm_signal):
6451         [1]. [6].
6452
6453         * sound.c:
6454         [6].
6455
6456         * strftime.c:
6457         * strftime.c (zone_name):
6458         [1]. [5].
6459
6460         * symsinit.h (init_sunpro):
6461         [1].
6462
6463         * syscommctrl.h:
6464         commctrl.h not in Cygwin b20.1.
6465
6466         * sysdep.c:
6467         * sysdep.c (endif):
6468         * sysdep.c (sys_subshell):
6469         * sysdep.c (init_baud_rate):
6470         * sysdep.c (emacs_get_tty):
6471         * sysdep.c (emacs_set_tty):
6472         * sysdep.c (tty_init_sys_modes_on_device):
6473         * sysdep.c (init_system_name):
6474         * sysdep.c (sys_open):
6475         * sysdep.c (interruptible_open):
6476         * sysdep.c (sys_fopen):
6477         * sysdep.c (sys_mkdir):
6478         * sysdep.c (sys_rename):
6479         * sysdep.c (get_process_times_1):
6480         [1]. [6].
6481
6482         * sysdep.h:
6483         [1].
6484
6485         * sysdir.h:
6486         * sysdir.h (DIRENTRY_NONEMPTY):
6487         [1]. [6].
6488
6489         * sysdll.c (dll_init):
6490         * sysdll.h:
6491         [1].
6492
6493         * sysfile.h:
6494         [1]. [6]. [8].
6495         added text/binary defs.
6496
6497         * sysfloat.h:
6498         [1].
6499
6500         * sysproc.h:
6501         * sysproc.h (EDESTADDRREQ):
6502         * sysproc.h (poll_fds_for_input):
6503         [1]. [6].
6504
6505         * syspwd.h:
6506         [6].
6507
6508         * syssignal.h:
6509         [1].
6510
6511         * systime.h:
6512         [1]. [6].
6513
6514         * systty.h:
6515         [1].
6516
6517         * syswindows.h:
6518         [1].
6519         Always define WIN32_LEAN_AND_MEAN.
6520
6521         * unexcw.c (unexec):
6522         [5].
6523
6524         * unexec.c:
6525         * unexec.c (copy_text_and_data):
6526         * unexec.c (adjust_lnnoptrs):
6527         [1].
6528
6529         * unexnt.c:
6530         * unexnt.c (_start):
6531         [1].
6532
6533 2000-06-07  Ben Wing  <ben@xemacs.org>
6534
6535         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
6536         was used only as a model.  We've long since extracted any useful
6537         logic or code out of this. (I just did an exhaustive search.)
6538
6539         * s\msdos.h: Removed.
6540
6541         * s\windows95.h: Removed.
6542
6543 2000-06-10  Ben Wing  <ben@xemacs.org>
6544
6545         * s\cygwin32.h:
6546         [1]. [5].
6547         Don't use extern with fun defs.
6548
6549         * s\mingw32.h:
6550         [1]. [7].
6551         Remove nt\inc include.
6552         Remove getdisk, getdefdir. (The former is unused, the latter
6553         expanded in fileio.h.)
6554
6555         * s\windowsnt.h:
6556         * s\windowsnt.h (WIN32_NATIVE):
6557         * s\windowsnt.h (HAVE_STRCASECMP):
6558         [1]. [7].
6559         Add long comment about preprocessor changes.
6560         Remove getdisk, getdefdir. (The former is unused, the latter
6561         expanded in fileio.h.)
6562
6563 2000-06-10  Ben Wing  <ben@xemacs.org>
6564
6565         * m\arm.h:
6566         * m\delta.h:
6567         * m\intel386.h:
6568         * m\sequent.h:
6569         * m\template.h:
6570         * m\windowsnt.h:
6571         [1].
6572         Remove bogus/unused NO_SOCK_SIGIO.
6573
6574 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
6575
6576         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
6577         not an Emchar.
6578
6579 2000-06-04  Mike Sperber <mike@xemacs.org>
6580
6581         * casetab.c (set_case_table): For `set-standard-case-table',
6582         actually deposit the new case tables where the rest of XEmacs can
6583         see them.
6584
6585 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
6586
6587         * data.c (Faset): Don't cast XCHAR() to unsigned char.
6588
6589 2000-06-05  Ben Wing  <ben@xemacs.org>
6590
6591         * callproc.c (child_setup): Don't do close_load_descs() under
6592         MS Windows.  Put in a comment explaining why.
6593
6594 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
6595
6596         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
6597         Toolkit shell" which breaks `kill-compilation' on Windows NT
6598         native, retaining STDERR handling improvements.
6599
6600 2000-06-01  Andreas Jaeger  <aj@suse.de>
6601
6602         * s/s390.h: Support for S390, based on a patch by Martin
6603         Schwidefsky <schwidefsky@de.ibm.com>.
6604
6605 2000-05-30  Andy Piper  <andy@xemacs.org>
6606
6607         * window.c (allocate_window):
6608         (make_dummy_parent):
6609         (Fset_window_configuration): use new hashtable type.
6610
6611         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
6612         (struct image_instantiator_methods):
6613         (struct Lisp_Image_Instance): make instance geometry signed.
6614
6615         * glyphs.c (instantiate_image_instantiator):
6616         (image_instance_query_geometry):
6617         (image_instance_layout):
6618         (image_instance_layout):
6619         (query_string_geometry):
6620         (text_query_geometry):
6621         (image_instantiate):
6622         (image_instantiate):
6623         (cache_subwindow_instance_in_frame_maybe):
6624         (subwindow_query_geometry): make instance geometry signed.
6625
6626         * glyphs-widget.c (widget_query_geometry):
6627         (widget_layout):
6628         (button_query_geometry):
6629         (tree_view_query_geometry):
6630         (tab_control_query_geometry):
6631         (layout_query_geometry):
6632         (layout_layout):
6633         (native_layout_layout): make instance geometry signed.
6634
6635 2000-05-29  Olivier Galibert  <galibert@pobox.com>
6636
6637         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
6638         constant.
6639
6640         * general.c (syms_of_general): Add Qfull_assoc symbol.
6641
6642         * data.c (finish_marking_weak_lists): Mark full-assoc lists
6643         correctly.
6644         (decode_weak_list_type): Decode full-assoc type.
6645         (encode_weak_list_type): Encode full-assoc type.
6646         (Fmake_weak_list): Update doc string.
6647
6648 2000-05-30  Andy Piper  <andy@xemacs.org>
6649
6650         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
6651
6652         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
6653         (decode_hash_table_weakness): ditto.
6654         (Fhash_table_weakness): ditto.
6655         (Fhash_table_type): ditto.
6656         (finish_marking_weak_hash_tables): ditto.
6657         (hash_table_weakness_validate): ditto.
6658         (syms_of_elhash): ditto.
6659
6660 2000-05-28  Martin Buchholz <martin@xemacs.org>
6661
6662         * XEmacs 21.2.34 is released.
6663
6664 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
6665
6666         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
6667         start cache.
6668         (updating_line_start_cache): Gone.
6669         (regenerate_window): Replace resetting of VERTICAL_CLIP by
6670         generic code to force a minimum of 1 line laid out in the
6671         CMOTION_DISP case.
6672
6673 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
6674
6675         * glyphs.c (instantiate_image_instantiator): Check for initialized
6676         height & width no longer special cases IMAGE_NOTHING.
6677         (nothing_instantiate): Set height and width of instance.
6678
6679 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
6680
6681         * unexelf.c (unexec): Search for ".data" section.
6682         Initialize new_data2_offset from old_data_index.
6683         Remove redundant check for ElfW.
6684
6685 2000-05-23  Andy Piper  <andy@xemacs.org>
6686
6687         * glyphs.c (get_image_instantiator_governing_domain): allow more
6688         specific domains as the governing domain rather than expecting an
6689         exact match. This fixes problems with layouts.
6690
6691 2000-05-22  Andy Piper  <andy@xemacs.org>
6692
6693         * redisplay-output.c (compare_runes): check for non-images
6694
6695         * glyphs.c (set_glyph_dirty_p): ditto.
6696         (update_glyph_cachel_data): ditto.
6697
6698         * glyphs-widget.c (layout_post_instantiate): ditto.
6699         (layout_post_instantiate): ditto.
6700
6701         * event-msw.c (mswindows_wnd_proc): warning removal.
6702
6703 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
6704
6705         * s\mingw32.h: Added #undef for CLASH_DETECTION.
6706
6707         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
6708
6709         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
6710
6711         * nt.c (rva_to_section): mingw32 needs rva_to_section.
6712         (mswindows_executable_type): mingw32 now has enough headers for
6713         this to work.
6714
6715 2000-05-20  Andy Piper  <andy@xemacs.org>
6716
6717         * console-msw.c (mswindows_output_last_error): ; -> ,
6718
6719 2000-05-12  Andy Piper  <andy@xemacs.org>
6720
6721         * console-msw.c (FROB): compare ints with ints.
6722
6723 2000-05-11  Andy Piper  <andy@xemacs.org>
6724
6725         * glyphs-x.c (x_finalize_image_instance): make minimal build
6726         happy.
6727
6728 2000-05-20  Ben Wing  <ben@xemacs.org>
6729
6730         * event-Xt.c:
6731         * event-Xt.c (vars_of_event_Xt):
6732         move modifier-keys-are-sticky to event-stream.c.
6733
6734         * event-msw.c:
6735         * event-msw.c (mswindows_enqueue_mouse_button_event):
6736         * event-msw.c (key_needs_default_processing_p):
6737         * event-msw.c (XEMSW_LCONTROL):
6738         * event-msw.c (mswindows_handle_sticky_modifiers):
6739         * event-msw.c (FROB):
6740         * event-msw.c (clear_sticky_modifiers):
6741         * event-msw.c (output_modifier_keyboard_state):
6742         * event-msw.c (output_alt_keyboard_state):
6743         * event-msw.c (mswindows_wnd_proc):
6744         * event-msw.c (mswindows_modifier_state):
6745         * event-msw.c (emacs_mswindows_handle_magic_event):
6746         implement sticky modifiers.
6747
6748         * event-stream.c:
6749         * event-stream.c (vars_of_event_stream):
6750         move modifier-keys-are-sticky here.
6751
6752         * lisp.h:
6753         add CHECK_FUNCTION.
6754
6755         * rangetab.c:
6756         implement map-range-table.
6757
6758
6759 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
6760
6761         * redisplay-tty.c (reset_tty_modes):
6762         (tty_redisplay_shutdown): Adjust argument type to
6763         tty_frame_output_end.
6764
6765 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6766
6767         * eval.c (Fbacktrace): Don't output a line with only right
6768         parenthesis.
6769
6770 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
6771
6772         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
6773         (Fpq_reset_poll): Ditto.
6774
6775 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
6776
6777         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
6778
6779 2000-05-16  Ben Wing  <ben@xemacs.org>
6780
6781         * buffer.c:
6782         * buffer.c (dfc_convert_to/from_internal_format):
6783         * buffer.c (reinit_vars_of_buffer):
6784         Fix conversion functions to allow reentrancy.
6785
6786         * console-msw.c:
6787         * console-msw.c (mswindows_output_last_error):
6788         New fun, generally useful -- output a human-readable
6789         version of GetLastError() on the console.
6790
6791         * console-msw.h:
6792         * console-msw.h (struct mswindows_frame):
6793         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
6794
6795         * console-stream.c (stream_output_begin):
6796         * console-stream.c (stream_output_end):
6797         * console-stream.c (stream_output_vertical_divider):
6798         * console-stream.c (stream_clear_region):
6799         * console-stream.c (stream_flash):
6800         * console-stream.c (console_type_create_stream):
6801         Delete blank stream methods, not needed.
6802
6803         * console.h (struct console_methods):
6804         Split begin/end methods into window and frame.
6805
6806         * event-msw.c:
6807         * event-msw.c (mswindows_handle_paint):
6808         * event-msw.c (output_alt_keyboard_state):
6809         * event-msw.c (mswindows_wnd_proc):
6810         * event-msw.c (vars_of_event_mswindows):
6811         Comment about problems with ignored-expose.
6812         Define mswindows-debug-events; not really implemented.
6813
6814         * frame-msw.c (mswindows_init_frame_1):
6815         random cleanups.
6816
6817         * glyphs-msw.c:
6818         * glyphs-msw.c (begin_defer_window_pos):
6819         * glyphs-msw.c (mswindows_unmap_subwindow):
6820         * glyphs-msw.c (mswindows_map_subwindow):
6821         * glyphs-msw.c (mswindows_resize_subwindow):
6822         Use DeferWindowPos to reduce flashing when mapping/unmapping.
6823
6824         * glyphs.c (make_image_instance_1):
6825         Fix crash.
6826
6827         * gutter.c (Fredisplay_gutter_area):
6828         Use new begin/end methods.
6829
6830         * lisp.h (Dynarr_new2):
6831         New creation fun.
6832
6833         * redisplay-msw.c:
6834         * redisplay-msw.c (mswindows_frame_output_begin):
6835         * redisplay-msw.c (mswindows_frame_output_end):
6836         * redisplay-msw.c (console_type_create_redisplay_mswindows):
6837         New begin/end methods -- handle DeferWindowPos.
6838
6839         * redisplay-output.c (redisplay_move_cursor):
6840         * redisplay-output.c (redraw_cursor_in_window):
6841         * redisplay-output.c (redisplay_update_line):
6842         * redisplay-output.c (redisplay_output_window):
6843         New begin/end methods.
6844
6845         * redisplay-tty.c:
6846         * redisplay-tty.c (tty_frame_output_begin):
6847         * redisplay-tty.c (tty_frame_output_end):
6848         * redisplay-tty.c (console_type_create_redisplay_tty):
6849         New begin/end methods.
6850
6851         * redisplay-x.c:
6852         * redisplay-x.c (x_window_output_begin):
6853         * redisplay-x.c (x_window_output_end):
6854         * redisplay-x.c (console_type_create_redisplay_x):
6855         New begin/end methods.
6856
6857         * redisplay.c (redisplay_frame):
6858         * redisplay.c (Fredisplay_echo_area):
6859         New begin/end methods.
6860         use MAYBE_DEVMETH for clear_frame; it may not exist.
6861
6862         * window.h (WINDOW_XFRAME):
6863         WINDOW_XFOO macros -- get locale and decode struct pointer.
6864
6865
6866 2000-05-12  Ben Wing  <ben@xemacs.org>
6867
6868         * emacs.c:
6869         * emacs.c (ensure_no_quitting_from_now_on):
6870         * emacs.c (fatal_error_signal):
6871         * emacs.c (mswindows_handle_hardware_exceptions):
6872         * emacs.c (main):
6873         * emacs.c (Fkill_emacs):
6874         * emacs.c (shut_down_emacs):
6875         * emacs.c (assert_failed):
6876         various improvements in fatal error handling.
6877
6878         * eval.c:
6879         move preparing_for_armageddon to emacs.c.
6880
6881         * lisp.h:
6882         declare fatal_error_in_progress.
6883
6884         * print.c:
6885         * print.c (std_handle_out_external):
6886         * print.c (std_handle_out_va):
6887         * print.c (stderr_out):
6888         * print.c (stdout_out):
6889         use console under mswin when no standard output.
6890         don't do code conversion during fatal error.
6891
6892         * scrollbar.c (Fscrollbar_page_up):
6893         * scrollbar.c (Fscrollbar_page_down):
6894         fix missing else.  reindent.
6895
6896 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
6897
6898         Emergency fix.
6899
6900         * glyphs.h (GLYPH_CACHEL_DESCENT):
6901         (GLYPH_CACHEL_DESCENT):
6902         (GLYPH_CACHEL_DESCENT):
6903         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
6904         used in case these are inline functions.
6905         Use more absurd values to error check.
6906
6907         include window.h for error check functions.
6908
6909 2000-05-11  Ben Wing  <ben@xemacs.org>
6910
6911         * cmdloop.c (Freally_early_error_handler):
6912         Display message box under windows; otherwise, message will disappear
6913         before it can be viewed.
6914
6915         * console-msw.c:
6916         * console-msw.c (Fmswindows_message_box):
6917         * console-msw.c (FROB):
6918         * console-msw.c (syms_of_console_mswindows):
6919         Define new fun `mswindows-message-box'.
6920         #### I will merge this into `popup-dialog-box'; just give me
6921         a bit of time.
6922
6923         * general.c:
6924         * general.c (syms_of_general):
6925         Some new symbols used in `mswindows-message-box'.
6926
6927         * glyphs.c:
6928         * glyphs.c (Fset_image_instance_property):
6929         put warning in this fun.
6930
6931         * glyphs.h:
6932         * glyphs.h (GLYPH_CACHEL_WIDTH):
6933         * glyphs.h (GLYPH_CACHEL_ASCENT):
6934         * glyphs.h (GLYPH_CACHEL):
6935         * glyphs.h (GLYPH_CACHEL_GLYPH):
6936         define error-checking versions to try to catch a bug i've seen --
6937         redisplay gets in an infinite loop because the glyph width of the
6938         continuation glyph is 65535.
6939
6940         * lisp.h:
6941         Extern message-box stuff.
6942
6943         * window.c (allocate_window):
6944         * window.c (make_dummy_parent):
6945         * window.c (Fset_window_configuration):
6946         Use EQUAL not EQ for subwindow caches to make them work a bit
6947         better. (Something is still very broken.)
6948
6949
6950 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6951
6952         * glyphs.c (image_instantiate): Suppress gcc warnings.
6953         (Fmake_image_instance): Fix doc string.
6954         * specifier.c (Fmake_specifier): Ditto.
6955
6956 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6957
6958         * paths.h.in (PATH_LOCK): Removed.
6959         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
6960         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
6961
6962 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6963
6964         * fns.c (Ffeaturep): Update e-mail address in doc-string.
6965         Document (featurep '(and xemacs 21.02)).
6966
6967 2000-05-09  Ben Wing  <ben@xemacs.org>
6968
6969         * buffer.c (complex_vars_of_buffer):
6970         update modeline-format doc.
6971
6972         * device.h:
6973         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
6974
6975         * emacs.c:
6976         timeline of all released versions of Emacs, for use in creating
6977         authorship comments and in synching up.
6978
6979         * glyphs-widget.c (image_instantiator_buttons):
6980         * glyphs-widget.c (image_instantiator_edit_fields):
6981         * glyphs-widget.c (image_instantiator_combo_box):
6982         * glyphs-widget.c (image_instantiator_scrollbar):
6983         * glyphs-widget.c (image_instantiator_progress_guage):
6984         * glyphs-widget.c (image_instantiator_tree_view):
6985         * glyphs-widget.c (image_instantiator_tab_control):
6986         * glyphs-widget.c (image_instantiator_labels):
6987         * glyphs-widget.c (image_instantiator_layout):
6988         * glyphs-widget.c (image_instantiator_native_layout):
6989         rename decode_domain method to governing_domain.
6990
6991         * glyphs.c:
6992         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
6993         * glyphs.c (add_entry_to_device_ii_format_list):
6994         make sure we don't put an entry more than once into the list.
6995         * glyphs.c (check_instance_cache_mapper):
6996         *************************************************************
6997         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
6998         HAVE BEEN GETTING.
6999         *************************************************************
7000         * glyphs.c (get_image_instantiator_governing_domain):
7001         clean up, expand on new concept of governing domain.
7002         * glyphs.c (instantiate_image_instantiator):
7003         * glyphs.c (allocate_image_instance):
7004         use governing_domain instead of cache_domain in naming.
7005         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7006         * glyphs.c (make_image_instance_1):
7007         * glyphs.c (Fmake_image_instance):
7008         allow for any domain (not just device), and process the
7009         governing domain correctly.  very big doc fix.
7010         * glyphs.c (Fimage_instance_domain):
7011         new primitive, to retrieve the governing domain of an image instance.
7012         * glyphs.c (image_instantiate):
7013         use new governing_domain stuff.  this fixes a crash you could get
7014         by instantiating certain widget glyphs in frame locales. (should
7015         signal an error instead of crashing.)
7016         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7017         * glyphs.c (Fglyphp): clean up doc.
7018         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7019         * glyphs.c (syms_of_glyphs):
7020         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7021         * glyphs.c (image_instantiator_format_create): add some comments about
7022         bogus code.
7023         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7024         for current-display-table. (Apparently Hrjove implemented in 1998 a
7025         design I wrote up in 1996, but didn't update the doc string.)
7026
7027         * glyphs.h: clean up a doc string.
7028         * glyphs.h (governing_domain):
7029         * glyphs.h (struct image_instantiator_methods):
7030         changes for governing_domain stuff.
7031
7032         * gutter.c:
7033         * gutter.c (Fgutter_specifier_p):
7034         * gutter.c (Fgutter_size_specifier_p):
7035         * gutter.c (Fgutter_visible_specifier_p):
7036         * objects.c:
7037         * objects.c (Fcolor_specifier_p):
7038         * objects.c (Ffont_specifier_p):
7039         * objects.c (Fface_boolean_specifier_p):
7040         doc strings moved to make-*-specifier.
7041
7042         * redisplay.c (add_disp_table_entry_runes_1):
7043         * redisplay.c (generate_fstring_runes):
7044         * redisplay.c (screen):
7045         add random comments and doc strings.
7046
7047         * specifier.c:
7048         * specifier.c (Fmake_specifier):
7049         major overhaul of this doc string.
7050
7051         * specifier.c (Fvalid_specifier_domain_p):
7052         comment about the bogosity of image instances being domains.
7053         * specifier.c (decode_domain):
7054         now non-static, used in glyphs.c.
7055         * specifier.c (specifier_instance):
7056         comment about the bogosity of image instances being domains.
7057         * specifier.c (Fgeneric_specifier_p):
7058         move doc string to make-generic-specifier.
7059         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7060         rebackslashify.
7061
7062         * specifier.h:
7063         * specifier.h (DOMAIN_FRAME):
7064         * specifier.h (DOMAIN_LIVE_P):
7065         * specifier.h (DOMAIN_XDEVICE):
7066         rebackslashify.
7067         add comments about problems with these macros.
7068         prototype for decode_domain.
7069
7070         * toolbar.c:
7071         * toolbar.c (Ftoolbar_specifier_p):
7072         move doc string to `make-toolbar-specifier'.
7073
7074         * window.c (window_unmap_subwindows_cache_mapper):
7075         *************************************************************
7076         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7077         HAVE BEEN GETTING.
7078         *************************************************************
7079
7080 2000-05-09  Andy Piper  <andy@xemacs.org>
7081
7082         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7083
7084         * window.c (Fset_window_configuration): reset the frame subwindow
7085         cache and re-initialize the window subwindow caches.
7086
7087         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7088
7089 2000-05-09  Ben Wing  <ben@xemacs.org>
7090
7091         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7092         DWORD.
7093
7094 2000-04-26  Mike Woolley  <mike@bulsara.com>
7095
7096         * ntheap.c: Changed recreate_heap to limit the amount reserved
7097         for the heap to that which is actually available. Also now
7098         displays a message box (with some dignostics) in the event that
7099         it still can't start.
7100
7101 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
7102
7103         * callproc.c (Fold_call_process_internal): GCPRO path
7104
7105 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
7106
7107         Patch by Bill Perry.
7108
7109         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7110         back data instead of #ifdef.
7111         (Fscrollbar_page_down): ditto.
7112
7113 2000-05-07  Ben Wing  <ben@xemacs.org>
7114
7115         * buffer.h:
7116         Kludge for defining Qmswindows_tstr.
7117
7118         * nt.c:
7119         * nt.c (open_input_file):
7120         * nt.c (open_output_file):
7121         * nt.c (rva_to_section):
7122         * nt.c (mswindows_executable_type):
7123         Move all memory-mapped-file routines here (some were in unexnt.c,
7124         which is bad because they are used by process-nt.c, and unexnt
7125         won't be around when portable dumping).  Synched the above routines
7126         with FSF 20.6.
7127
7128         * nt.h:
7129         Removed ifdef'd out bogus code.
7130         Fixed some prototypes.
7131
7132         * nt.h (file_data):
7133         * nt.h (OFFSET_TO_RVA):
7134         * nt.h (RVA_TO_OFFSET):
7135         * nt.h (RVA_TO_PTR):
7136         Moved the memory-mapped-file structures, macros and prototypes
7137         here, to parallel nt.c.  ntheap.h should really be removed
7138         entirely, and it's a non-portable-dumper specific file.
7139
7140         * ntheap.h (round_to_next):
7141         Moved the memory-mapped-file structures, macros and prototypes
7142         to nt.h.
7143
7144         * ntproc.c (compare_env):
7145         Moved rva_to_section and mswindows_executable_type to nt.c.
7146         Moved compare_env to process-nt.c.
7147         ntproc.c will die, one day.
7148
7149         * ntproc.c (sys_spawnve):
7150         Account for win32_ -> mswindows_.
7151
7152         * process-nt.c:
7153         * process-nt.c (struct nt_process_data):
7154         * process-nt.c (ensure_console_window_exists):
7155         * process-nt.c (compare_env):
7156         * process-nt.c (nt_create_process):
7157         * process-nt.c (nt_kill_process_by_pid):
7158         * process-nt.c (syms_of_process_nt):
7159         * process-nt.c (vars_of_process_nt):
7160         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
7161         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
7162         changes).  Eliminate our old `nt-quote-process-args' mechanism.
7163         Synch up nt_create_process with FSF 20.6 sys_spawnve.
7164         Move compare_env here from ntproc.c.
7165
7166         * process.c (Fprocess_send_region):
7167         Takes an optional fourth argument, BUFFER, which should fix some
7168         problems with call-process.
7169
7170         * syscommctrl.h:
7171         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
7172
7173         * syswindows.h:
7174         Move ICC_BAR_CLASSES to syscommctrl.h.
7175         Add preliminary macros for MSWindows/Mule.  More to come.
7176
7177         * unexnt.c:
7178         * unexnt.c (unexec):
7179         open_output_file moved to nt.c.
7180
7181
7182 2000-05-05  Andy Piper  <andy@xemacs.org>
7183
7184         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
7185         instance from the frame cache also since GC may catch up too late
7186         to make frame deletion sane.
7187
7188 2000-05-04  Andy Piper  <andy@xemacs.org>
7189
7190         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
7191         (x_finalize_image_instance): ungcpro on deletion.
7192
7193         * glyphs.c (image_instantiator_format_create): give pointers a
7194         query geometry method so that the geometry is at least set.
7195
7196         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
7197         initialize layouts if using widgets.
7198
7199 2000-05-03  Andy Piper  <andy@xemacs.org>
7200
7201         * nt.c: remove bogus reference to sysmmsystem.h
7202
7203         * gui-x.c (popup_selection_callback): fix no selection abort.
7204
7205 2000-05-02  Andy Piper  <andy@xemacs.org>
7206
7207         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
7208         (mswindows_widget_instantiate): ditto.
7209
7210         * glyphs-widget.c (initialize_widget_image_instance): initialize
7211         children correctly.
7212         (widget_instantiate): cope with children and items in the same
7213         instance.
7214
7215         * glyphs.c (mark_image_instance): cope with children as a first
7216         class member.
7217         (image_instance_equal): ditto.
7218         (image_instance_hash): ditto.
7219         (image_instance_changed): ditto.
7220
7221 2000-04-30  Andy Piper  <andy@xemacs.org>
7222
7223         * glyphs.c (subwindow_query_geometry): new function. Return some
7224         defaults.
7225         (subwindow_instantiate): don't assign dimensions if none have been
7226         given.
7227         (image_instantiator_format_create): add subwindow_query_geometry.
7228         (print_image_instance): cope with layouts as widgets.
7229
7230 2000-04-29  Andy Piper  <andy@xemacs.org>
7231
7232         * frame.c (delete_frame_internal): call
7233         free_frame_subwindow_instance_cache so that all subwindows are
7234         finalized before their parent.
7235         (mark_frame): remove subwindow_cachels.
7236         (Fmake_frame): remove subwindow_cachel manipulation.
7237         (allocate_frame_core): subwindow_instance_cache is a weak list.
7238         (delete_frame_internal): set subwindow_instance_cache to nil.
7239
7240         * glyphs-msw.c (mswindows_finalize_image_instance): make double
7241         finalization safe.
7242         (mswindows_finalize_image_instance): use the device
7243         not the domain as the domain may have died already.
7244
7245         * glyphs-x.c (x_finalize_image_instance): ditto.
7246         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
7247         HEIGHT.
7248
7249         * redisplay-output.c (redisplay_unmap_subwindows): update for
7250         subwindow instance cache as a weak list.
7251         (redisplay_unmap_subwindows_maybe): ditto.
7252         (redisplay_unmap_subwindows_except_us): ditto.
7253
7254         * glyphs.c (unmap_subwindow): error checking will check the domain
7255         so don't deal with it here. Don't use cachels anymore.
7256         (map_subwindow): ditto.
7257         (update_subwindow_cachel_data): remove old accessor names.
7258         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
7259         (Fresize_subwindow): don't update cachel.
7260         (mark_subwindow_cachels):
7261         (update_subwindow_cachel_data):
7262         (add_subwindow_cachel):
7263         (get_subwindow_cachel_index):
7264         (update_subwindow_cachel):
7265         (reset_subwindow_cachels):
7266         (mark_subwindow_cachels_as_not_updated): deleted.
7267         (cache_subwindow_instance_in_frame_maybe): new function. Add a
7268         subwindow instance to the frame cache.
7269         (find_matching_subwindow): update for subwindow instance cache as
7270         a weak list.
7271         (update_widget_instances): ditto.
7272         (image_instance_type_to_mask):inlined.
7273         (free_frame_subwindow_instance_cache): new function. finalize all
7274         subwindows that are instantiated.
7275
7276         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
7277         of cachel information.
7278         (IMAGE_INSTANCE_DISPLAY_X):
7279         (IMAGE_INSTANCE_DISPLAY_Y):
7280         (IMAGE_INSTANCE_DISPLAY_WIDTH):
7281         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
7282         (XIMAGE_INSTANCE_DISPLAY_X):
7283         (XIMAGE_INSTANCE_DISPLAY_Y):
7284         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
7285         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
7286         remove subwindow_cachel structure and function references.
7287         (image_instance_type_to_mask): inline from glyphs.c
7288
7289         * redisplay.c (redisplay_frame): remove subwindow_cachel
7290         references.
7291
7292         * frame.h (struct frame): remove subwindow_cachels.
7293         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
7294
7295         * frameslots.h: add subwindow_instance_cache.
7296
7297         * window.c (replace_window): check subwindow cache of replacement.
7298         (window_unmap_subwindows_cache_mapper):
7299         (window_unmap_subwindows): new functions. Unmap all subwindows
7300         cached on this window.
7301         (mark_window_as_deleted): unmap all subwindows.
7302
7303 2000-04-27  Andy Piper  <andy@xemacs.org>
7304
7305         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
7306
7307         * glyphs-widget.c (widget_layout): return something.
7308         (layout_layout): return something. Fail if not initialized.
7309         (layout_query_geometry): ditto.
7310         (image_instantiator_native_layout): new function. Initialized the
7311         native layout type.
7312         (widget_instantiate): don't do layout stuff here.
7313
7314         * glyphs.c (instantiate_image_instantiator): reorded calling or
7315         instantiate and post_instantiate with layout in between.
7316         (image_instance_layout): be more selective about deciding whether
7317         the layout has been done or not.
7318
7319         * glyphs.h (struct image_instantiator_methods): return a value
7320         from layout_method.
7321
7322 2000-04-26  Andy Piper  <andy@xemacs.org>
7323
7324         * glyphs.c (allocate_image_instance): make initial width and
7325         height unspecified. Set initialized to 0.
7326
7327         * syscommctrl.h new file. Encapsulates commctrl.h.
7328
7329         * syswindows.h new file. Encapsulates windows.h.
7330
7331         * ntplay.c: use new syswindows.h and syscommctrl.h header.
7332         * nt.c: ditto.
7333         * console-msw.h: ditto.
7334
7335         * redisplay-tty.c (tty_output_display_block): remove layout references.
7336
7337         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
7338         window handle rather than just the frame.
7339
7340         * glyphs.c (mark_image_instance): remove layout references.
7341         (print_image_instance): ditto.
7342         (image_instance_equal): ditto.
7343         (image_instance_hash): ditto.
7344         (decode_image_instance_type): ditto.
7345         (encode_image_instance_type): ditto.
7346         (image_instantiate): ditto.
7347         (allocate_glyph): ditto.
7348         (Fimage_instance_height): ditto.
7349         (Fimage_instance_width): ditto.
7350         (update_subwindow): ditto.
7351
7352         * redisplay-x.c (x_output_display_block): recode for layouts as
7353         widgets.
7354
7355         * redisplay-output.c (redisplay_output_layout): recode for layouts
7356         as widgets.
7357         (compare_runes): remove layout references.
7358
7359         * redisplay-msw.c (mswindows_output_display_block): recode for
7360         layouts as widgets.
7361
7362         * glyphs-widget.c (image_instantiator_layout): remove
7363         layout_possible_dest_types.
7364         (layout_possible_dest_types): deleted.
7365
7366         * glyphs.h (image_instance_type): remove layout references.
7367         (struct Lisp_Image_Instance): ditto. Add initialized flag.
7368         (IMAGE_INSTANCE_INITIALIZED): new accessor.
7369         (XIMAGE_INSTANCE_INITIALIZED): ditto.
7370
7371 2000-04-25  Andy Piper  <andy@xemacs.org>
7372
7373         * glyphs-widget.c (image_instantiator_buttons):
7374         (image_instantiator_edit_fields):
7375         (image_instantiator_combo_box):
7376         (image_instantiator_scrollbar):
7377         (image_instantiator_progress_guage):
7378         (image_instantiator_tree_view):
7379         (image_instantiator_tab_control):
7380         (image_instantiator_labels):
7381         (image_instantiator_layout): call default post_instantiate method.
7382         (widget_post_instantiate): new function. Simply lays out the
7383         widgets.
7384
7385         * glyphs.h (struct image_instantiator_methods): add
7386         post_instantiate method.
7387
7388         * glyphs.c (instantiate_image_instantiator): add post_instantiate
7389         method calls.
7390
7391 2000-04-23  Andy Piper  <andy@xemacs.org>
7392
7393         * glyphs.h (struct image_instantiator_methods): add
7394         decode_domain_method.
7395         (struct Lisp_Image_Instance): remove subwindow frame - it can be
7396         derived from the domain.
7397         (IMAGE_INSTANCE_FRAME): new accessor.
7398         (XIMAGE_INSTANCE_FRAME): ditto.
7399
7400         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
7401         instead of _SUBWINDOW_FRAME.
7402         (finalize_image_instance): ditto.
7403         (Fimage_instance_foreground): ditto.
7404         (Fimage_instance_background): ditto.
7405         (image_instantiate): ditto.
7406         (update_subwindow_cachel): ditto.
7407         (update_subwindow): ditto.
7408         (unmap_subwindow): ditto.
7409         (map_subwindow): ditto
7410         (subwindow_instantiate): ditto.
7411         * glyphs-msw.c (mswindows_update_widget): ditto.
7412         (mswindows_progress_gauge_instantiate): ditto.
7413         (mswindows_tab_control_update): ditto.
7414         * glyphs-x.c (x_update_widget): ditto.
7415         (x_widget_instantiate): ditto.
7416         (x_tab_control_instantiate): ditto.
7417         (x_tab_control_update): ditto.
7418         * event-msw.c (mswindows_wnd_proc): ditto
7419
7420         * glyphs-widget.c (image_instantiator_layout): use
7421         subwindow_decode_domain.
7422         (image_instantiator_buttons): ditto.
7423         (image_instantiator_edit_fields): ditto.
7424         (image_instantiator_combo_box): ditto.
7425         (image_instantiator_scrollbar): ditto.
7426         (image_instantiator_progress_guage): ditto.
7427         (image_instantiator_tree_view): ditto.
7428         (image_instantiator_tab_control): ditto.
7429         (image_instantiator_labels): ditto.
7430         (image_instantiator_layout): ditto.
7431
7432         * glyphs.c: add instance error checking to many functions.
7433         (instantiate_image_instantiator): decode device from cache_domain.
7434         (image_instantiate): partially rewrite by using
7435         decode_image_instantiator_domain to determine what domain the
7436         instance needs to be cached in.
7437         (decode_image_instantiator_domain): new function. Determine what
7438         domain the image needs to be cached in.
7439         (check_window_subwindow_cache): new error checking function.
7440         (check_instance_cache_mapper): ditto.
7441         (check_image_instance_structure): ditto.
7442         (subwindow_decode_domain): new function. Encodes a window as a
7443         subwindow's cache domain.
7444         (image_instantiator_format_create): use it for text and
7445         subwindows.
7446
7447 2000-04-21  Andy Piper  <andy@xemacs.org>
7448
7449         * glyphs.c (image_instance_device): new function.
7450         (image_instance_frame): new function.
7451         (image_instance_window): new function.
7452         (image_instance_live_p): new function.
7453
7454         * window.c (mark_window_as_deleted): reset the subwindow_instance_
7455         cache to nil.
7456
7457         * glyphs.h (struct Lisp_Image_Instance): device->domain.
7458         (IMAGE_INSTANCE_DOMAIN): new accessor.
7459         (XIMAGE_INSTANCE_DOMAIN): ditto.
7460
7461         * glyphs-x.c (x_finalize_image_instance): device->domain.
7462
7463         * glyphs-msw.c (init_image_instance_geometry): device->domain.
7464         (mswindows_finalize_image_instance): ditto.
7465
7466         * glyphs-eimage.c (jpeg_instantiate): device->domain.
7467         (gif_instantiate): ditto.
7468         (png_instantiate): ditto.
7469         (tiff_instantiate): ditto.
7470
7471         * glyphs.c (instantiate_image_instantiator): use domain rather
7472         than device.
7473         (mark_image_instance): device -> domain.
7474         (print_image_instance): ditto.
7475         (finalize_image_instance): ditto.
7476         (image_instance_equal): ditto.
7477         (allocate_image_instance): ditto.
7478         (Fcolorize_image_instance): ditto.
7479         (query_string_geometry): ditto.
7480         (image_instantiate): ditto
7481         (query_string_font): ditto.
7482         (image_instantiate): ditto.
7483         (update_subwindow): ditto.
7484         (unmap_subwindow): ditto.
7485         (map_subwindow): ditto.
7486         (subwindow_instantiate): ditto.
7487
7488         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
7489         (DOMAIN_FRAME): ditto.
7490         (DOMAIN_WINDOW): ditto.
7491         (DOMAIN_LIVE_P): ditto.
7492         (XDOMAIN_DEVICE): ditto.
7493         (XDOMAIN_FRAME): ditto.
7494         (XDOMAIN_WINDOW): ditto.
7495
7496         * specifier.c (Fvalid_specifier_domain_p): add image instances as
7497         a valid specifier domain.
7498
7499 2000-04-19  Andy Piper  <andy@xemacs.org>
7500
7501         * glyphs-widget.c (syms_of_glyphs_widget): remove
7502         widget-callback-current-channel.
7503         (vars_of_glyphs_widget): ditto.
7504         * glyphs.h: ditto
7505
7506         * gui.c (get_gui_callback): revert to previous behaviour.
7507
7508 2000-04-18  Andy Piper  <andy@xemacs.org>
7509
7510         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
7511         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
7512         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
7513
7514         * glyphs.c (image_instance_equal): add margin_width.
7515         (image_instance_hash): ditto.
7516
7517         * glyphs-widget.c (widget_instantiate): deal with margin-width.
7518         (layout_query_geometry): ditto.
7519         (layout_layout): ditto.
7520         (syms_of_glyphs_widget): add margin-width.
7521         (image_instantiator_layout): allow margin-width.
7522
7523         * glyphs.c (update_widget_instances): make a normal function.
7524         (syms_of_glyphs): remove Qupdate_widget_instances.
7525         * glyphs.h: ditto.
7526
7527         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
7528         so that we don't corrupt ideas about the last event or
7529         command. Remove widget-callback-current-channel fiddling.
7530         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
7531
7532 2000-05-01  Martin Buchholz <martin@xemacs.org>
7533
7534         * XEmacs 21.2.33 is released.
7535
7536 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
7537
7538         * make-src-depend: Allow dots in header file name.
7539
7540 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
7541
7542         * mule-charset.h (struct charset_lookup): Add
7543         next_allocated_1_byte_leading_byte and
7544         next_allocated_2_byte_leading_byte.
7545         * mule-charset.c: Move above two variables so that those values
7546         will be dumped.
7547
7548 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
7549
7550         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
7551         when string length is zero.
7552         (find_charsets_in_emchar_string): Ditto.
7553
7554 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
7555
7556         * lisp.h: extern Qdialog and Qmenubar.
7557
7558         * gui-x.c: added events.h.
7559                 also fixed typo which made the file uncompilable.
7560
7561         * general.c: Added Qmenubar and Qdialog
7562
7563 2000-04-28  Ben Wing  <ben@xemacs.org>
7564
7565         * frame-msw.c (mswindows_init_frame_1):
7566         * frame-msw.c (mswindows_mark_frame):
7567         * event-msw.c (mswindows_enqueue_dispatch_event):
7568         * console-msw.h:
7569         * console-msw.h (struct mswindows_frame):
7570         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
7571         there are now three hash tables for callbacks.
7572         mswindows_enqueue_dispatch_event is no longer static.
7573
7574         * dialog-x.c (maybe_run_dbox_text_callback):
7575         * dialog-x.c (dbox_descriptor_to_widget_value):
7576         switch to new cons3 form for callbacks.
7577
7578         * glyphs-msw.c (mswindows_register_gui_item):
7579         * glyphs-msw.c (mswindows_widget_instantiate):
7580         * glyphs-msw.c (add_tree_item):
7581         * glyphs-msw.c (add_tab_item):
7582         new image instance parameter, so it can be passed to callback-ex.
7583         respect :callback-ex as well as :callback.
7584
7585         * glyphs-widget.c (VALID_GUI_KEYWORDS):
7586         add :callback-ex.
7587
7588         * glyphs.c (print_image_instance):
7589         prettify, e.g. now prints widget type.
7590
7591         * gui-x.h:
7592         certain funs have new image instance parameter.
7593
7594         * gui.c:
7595         * gui.c (get_gui_callback):
7596         * gui.c (gui_item_add_keyval_pair):
7597         * gui.c (gui_item_init):
7598         * gui.c (gui_add_item_keywords_to_plist):
7599         * gui.c (mark_gui_item):
7600         * gui.c (gui_item_hash):
7601         * gui.c (gui_item_equal):
7602         * gui.c (copy_gui_item):
7603         * gui.c (syms_of_gui):
7604         recognize callback-ex in a number of places.
7605         also, fix the annoying "can't get out of yes-no dialog" bug.
7606
7607         * gui.h:
7608         * gui.h (struct Lisp_Gui_Item):
7609         recognize callback-ex in a number of places.
7610
7611         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7612         new parameter in button_item_to_widget_value.
7613
7614         * glyphs-x.c (x_update_widget):
7615         * glyphs-x.c (x_button_instantiate):
7616         * glyphs-x.c (x_button_update):
7617         * glyphs-x.c (x_progress_gauge_instantiate):
7618         * glyphs-x.c (x_edit_field_instantiate):
7619         * glyphs-x.c (x_combo_box_instantiate):
7620         * glyphs-x.c (x_tab_control_instantiate):
7621         * glyphs-x.c (x_label_instantiate):
7622         new image instance parameter in various places.
7623
7624         * event-Xt.c:
7625         * event-Xt.c (enqueue_Xt_dispatch_event):
7626         this fun gets exported.
7627
7628         * gui-msw.c:
7629         * gui-msw.c (mswindows_handle_gui_wm_command):
7630         handle both :callback and :callback-ex, and generate our own
7631         event because it's one of the callback-ex arguments.
7632
7633         * gui-x.c:
7634         * gui-x.c (popup_selection_callback):
7635         handle both :callback and :callback-ex, and generate our own
7636         event because it's one of the callback-ex arguments.
7637         * gui-x.c (button_item_to_widget_value):
7638         * gui-x.c (gui_items_to_widget_values_1):
7639         * gui-x.c (gui_item_children_to_widget_values):
7640         * gui-x.c (gui_items_to_widget_values):
7641         new image instance parameter in various places.
7642
7643         * fns.c (Freplace_list):
7644         fix small typo in doc string.
7645
7646         * lisp.h:
7647         declare enqueue_Xt_dispatch_event.
7648
7649 2000-04-28  Ben Wing  <ben@xemacs.org>
7650
7651         * buffer.c:
7652         * buffer.c (Frecord_buffer):
7653         * buffer.c (syms_of_buffer):
7654         delete record-buffer-hook.
7655
7656         * fns.c:
7657         * fns.c (Freplace_list):
7658         * fns.c (syms_of_fns):
7659         new primitive replace-list.
7660
7661         * frameslots.h:
7662         slot for old buffer-alist.
7663
7664         * lisp.h:
7665         exfun replace-list.
7666
7667         * redisplay.c:
7668         * redisplay.c (redisplay_frame):
7669         * redisplay.c (syms_of_redisplay):
7670         * redisplay.c (vars_of_redisplay):
7671         new hook buffer-list-changed-hook.
7672         call it.
7673
7674 2000-04-27  Ben Wing  <ben@xemacs.org>
7675
7676         * extents.h: extern in_modeline_generation.
7677
7678         * redisplay.c (generate_formatted_string_db): set
7679         in_modeline_generation.
7680
7681         * extents.c (extent_changed_for_redisplay): don't mark redisplay
7682         flags if in modeline generation.  otherwise frame-modified-tick
7683         is ticked far too often.
7684         Declare in_modeline_generation.
7685
7686 2000-04-26  Ben Wing  <ben@xemacs.org>
7687
7688         * emacs.c (vars_of_emacs): document quick-build "error-checking"
7689         option.
7690         (vars_of_emacs): add quick-build as an error-checking option.
7691         A bit kludgy, but there doesn't seem much point in creating
7692         a real var for this.
7693
7694         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
7695
7696 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
7697
7698         * redisplay.h (struct display_line): Add a new variable,
7699         line_continuation.
7700
7701         * redisplay.c (create_text_block): Set dl->line_continuation if
7702         the line continues.
7703         (create_string_text_block): Ditto.
7704         (regenerate_window_incrementally): Use line_continuation instead
7705         of searching continuation glyph.
7706         (add_margin_runes): Call add_glyph_rune.
7707         (add_glyph_rune): Handle margin glyph.
7708
7709 2000-04-20  Martin Buchholz  <martin@xemacs.org>
7710
7711         * filelock.c (fill_in_lock_file_name):
7712         ANSIfy.
7713         Check for IS_ANY_SEP instead of '/'.
7714         (lock_file_1):
7715         Avoid generating gratuitous garbage.  Call user_login_name() directly.
7716         Never check errno without first seeing that system call failed.
7717         (unlock_file): Add GCPRO.
7718         (Flock_buffer): Fix docstring.
7719         (Ffile_locked_p): Fix docstring.  Add GCPRO.
7720
7721 2000-04-19  Martin Buchholz  <martin@xemacs.org>
7722
7723         * sysdep.c (get_pty_max_bytes):
7724         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
7725         strings longer than 252 bytes.
7726
7727         * md5.c: Unconditionally include ANSI header <limits.h>
7728
7729         * glyphs-x.c (convert_EImage_to_XImage):
7730         * lisp-union.h (union Lisp_Object):
7731         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
7732
7733 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7734
7735         * filelock.c (current_lock_owner): Remove unused variable o, p.
7736
7737 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
7738
7739         * callint.c: Remove multiply defined symbol Qlet
7740         (syms_of_callint): ditto.
7741
7742 2000-04-14  Andy Piper  <andy@xemacs.org>
7743
7744         * general.c (syms_of_general): add last-command, this-command, let
7745         and funcall.
7746
7747         * lisp.h: declare various symbols.
7748
7749         * glyphs.h: declare Qwidget_callback_current_channel;
7750
7751         * glyphs-widget.c (syms_of_glyphs_widget): add
7752         Qgui_callback_current_channel.
7753         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
7754
7755         * gui-msw.c (mswindows_handle_gui_wm_command): bind
7756         widget-callback-current-channel when invoking the interactive
7757         arg. Also bind last-command and next-command when invoking the
7758         widget updates.
7759         * gui-x.c (popup_selection_callback): ditto.
7760
7761         * gui.c (get_gui_callback): massage args so that we are always
7762         calling eval. This allows us to add our own variable bindings
7763         outside.
7764
7765         * glyphs-x.c (x_button_instantiate): use
7766         gui_items_to_widget_values since this is GC safe.
7767         (x_progress_gauge_instantiate): ditto.
7768         (x_edit_field_instantiate): ditto.
7769         (x_label_instantiate): ditto.
7770
7771         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
7772         (emacs_Xt_event_widget_focus_out): new function
7773         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
7774         focus.
7775         (emacs_Xt_event_add_widget_actions): new function. add focus
7776         functions as actions.
7777         (init_event_Xt_late): use it.
7778
7779 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
7780
7781         * event-stream.c (Fdispatch_event): Doc fix.
7782
7783 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
7784
7785         * postgresql.c: Remove all references to PQsetenv*.
7786
7787         * postgresql.h: Remove references to PGsetenvHandler object.
7788         * lrecord.h (lrecord_type): Ditto.
7789
7790 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7791
7792         * glyphs-msw.h (struct mswindows_image_instance_data): Added
7793         real_heigh and real_width members, and accessor macros for these.
7794
7795         * glyphs-msw.c (init_image_instance_geometry): New function.
7796         (init_image_instance_from_dibitmap): Use it.
7797         (mswindows_resource_instantiate): Use it.
7798         (init_image_instance_from_xbm_inline): Use it.
7799         (mswindows_initialize_image_instance_mask): Use real bitmap
7800         geometry.
7801         (mswindows_create_resized_bitmap): Ditto.
7802         (mswindows_create_resized_mask): Ditto.
7803
7804         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
7805         and bitmap to their surface size.
7806
7807 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
7808
7809         * process-unix.c (unix_send_process): Guard against process MIA
7810         after Faccept_process_output.
7811
7812 2000-04-11  Ben Wing  <ben@xemacs.org>
7813
7814         * eval.c (unbind_to_hairy): fix brokenness introduced by
7815         nanosecond speed improvements.
7816
7817 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
7818
7819         * sunplay.c (init_device): To play sounds correctly, the device
7820         apparently needs to be initialized at least once by XEmacs.  Make
7821         it so.
7822
7823 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
7824
7825         * redisplay.c (add_margin_runes): Add text image glyph
7826           handling.
7827
7828 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7829
7830         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
7831         gcc is newer than 2.5.
7832
7833 2000-04-06  Colin Rafferty  <colin@xemacs.org>
7834
7835         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
7836
7837         * fns.c (size_bit_vector):
7838         * alloc.c (size_vector):
7839         (make_vector_internal):
7840         (make_bit_vector_internal):
7841         (sweep_bit_vectors_1):
7842         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
7843
7844 2000-04-06  Andy Piper  <andy@xemacs.org>
7845
7846         * gmalloc.c (malloc): undo previous change.
7847         (malloc): ditto.
7848         (free): ditto.
7849         (realloc): ditto.
7850
7851 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
7852
7853         * line-number.c (buffer_line_number): Revert to former version.
7854
7855 2000-04-06  Andy Piper  <andy@xemacs.org>
7856
7857         * gmalloc.c (malloc): add error checking.
7858         (malloc): ditto.
7859         (free): ditto.
7860         (realloc): ditto.
7861
7862         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
7863         button_item_to_widget_value arg.
7864
7865         * glyphs-x.c (x_button_instantiate): add extra
7866         button_item_to_widget_value arg.
7867         (x_progress_gauge_instantiate): ditto.
7868         (x_edit_field_instantiate): ditto.
7869         (x_label_instantiate): ditto.
7870
7871         * gui-x.c (gui_items_to_widget_values_1): add extra
7872         button_item_to_widget_value arg.
7873         (button_item_to_widget_value): add extra menu_item_p arg.
7874
7875         * gui-x.h: change signature of button_item_to_widget_value.
7876
7877         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
7878         button_item_to_widget_value arg.
7879
7880 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7881
7882         * buffer.h (struct buffer): auto_save_modified should be long.
7883
7884 2000-04-05  Andy Piper  <andy@xemacs.org>
7885
7886         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
7887         type.
7888         (button_query_geometry): give a little more room so that athena
7889         buttons fit.
7890
7891 2000-04-05  Andy Piper  <andy@xemacs.org>
7892
7893         * faces.c (complex_vars_of_faces): The widget face should inherit
7894         the font of the gui-element face.
7895
7896 2000-04-04  Andy Piper  <andy@xemacs.org>
7897
7898         * glyphs-x.c (x_button_update): new function. unconditionally
7899         update a button's state when the instance is dirty.
7900         (image_instantiator_format_create_glyphs_x): add x_button_update.
7901         (x_widget_instantiate): remove old resize cruft.
7902
7903 2000-04-02  Andy Piper  <andy@xemacs.org>
7904
7905         * frame.c (change_frame_size_1): The introduction of gutters means
7906         that we need to allow 0 as a potential frame dimension.
7907
7908 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
7909
7910         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
7911         image glyph if allow_cursor.
7912         (add_hscroll_rune): Don't allow cursor to border glyph.
7913         (create_text_block): Ditto.
7914
7915         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
7916         text not in buffer.
7917         (redisplay_output_layout): Call ensure_face_cachel_complete for
7918         text image glyph.
7919
7920
7921 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
7922
7923         * redisplay.c (add_glyph_rune): Adding text image as text runes.
7924
7925         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
7926         not in buffer
7927
7928         * redisplay-tty.c (tty_output_display_block): Delete the routine
7929         for text image glyph
7930         * redisplay-x.c (x_output_display_block): ditto
7931         * redisplay-msw.c (mswindows_output_display_block): ditto
7932
7933 2000-02-02  Mike Alexander  <mta@arbortext.com>
7934
7935         Note: Some of these were committed by accident as part of other
7936         patches.
7937
7938         * regex.c (regex_compile): Avoid compiler warnings.
7939
7940         * ntproc.c (sys_spawnve): Avoid compiler warnings.
7941
7942         * nt.h: Declare term_ntproc correctly.
7943
7944         * nt.c: Remove incorrect declaration of get_home_directory which
7945         is declared correctly in lisp.h.
7946
7947         * keymap.c (get_keyelt): Avoid compiler warnings.
7948         (raw_lookup_key_mapper): Avoid compiler warnings.
7949
7950         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
7951
7952         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
7953
7954         * filemode.c (mode_string): Avoid compiler warnings.
7955
7956         * file-coding.c (Fcoding_system_aliasee): Add return statement to
7957         avoid warning.
7958
7959         * events-mod.h: Undef some things that winuser.h defines differently.
7960
7961         * data.c (Faset): Avoid compiler warnings.
7962
7963         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
7964
7965 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
7966
7967         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
7968         Fall through to simple beep on error.
7969         Replace "extern" by real header file.
7970
7971         * linuxplay.c: Use nativesound.h
7972         (play_sound_data): Return error code. Be less verbose on error.
7973
7974         * sunplay.c: Use nativesound.h
7975         (play_sound_data): Return error code. Be less verbose on error.
7976
7977         * ntplay.c: Use nativesound.h
7978         (play_sound_data): Return fake error code
7979
7980         * sgiplay.c: Use nativesound.h
7981         (play_sound_data): Return error code
7982
7983         * hpplay.c: Use nativesound.h, partially implement
7984         new error code. Break compilation until finished.
7985         (play_sound_data): error code.
7986
7987         * nativesound.h (play_sound_file):
7988           (play_sound_data): Prototype in new header.
7989
7990 2000-03-31  Andy Piper  <andy@xemacs.org>
7991
7992         * glyphs-widget.c: (button_query_geometry): new function. Adjust
7993         for toggle and radio buttons.
7994         (image_instantiator_buttons): use it.
7995
7996 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
7997
7998         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
7999         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8000         found. Scrollbar event probably belonged to some old config.
8001
8002 2000-03-31  Andy Piper  <andy@xemacs.org>
8003
8004         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8005         than 1.
8006         (initialize_widget_image_instance): default layout to
8007         LAYOUT_HORIZONTAL rather than 0.
8008         (widget_instantiate): reverse the item list at the end rather than
8009         every iteration.
8010         (layout_layout): re-code for the border text at the front of the
8011         item list rather than at the end.
8012         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8013         provided by the user.
8014         (widget_query_geometry): comment.
8015
8016 2000-03-30  Andy Piper  <andy@xemacs.org>
8017
8018         * glyphs-widget.c (image_instantiator_layout): allow standard
8019         widget keywords in layouts.
8020
8021         * gutter.c (output_gutter): cope with nil gutter contents.
8022
8023         * frame.c (Fset_frame_properties): add gutter docs.
8024
8025 2000-03-29  Andy Piper  <andy@xemacs.org>
8026
8027         * toolbar-msw.c (TBSTYLE_FLAT): add.
8028         (mswindows_output_toolbar): minor fiddling.
8029
8030 2000-03-29  Andy Piper  <andy@xemacs.org>
8031
8032         * gutter.c (output_gutter): force gutter size recalculation if
8033         what we are trying to display won't fit.
8034         (update_gutter_geometry): new function. A per-gutter version of
8035         update_frame_gutter_geometry.
8036         (update_frame_gutter_geometry): use it.
8037         (redraw_exposed_gutter): add extra debugging output.
8038
8039 2000-03-28  Mike Alexander  <mta@arbortext.com>
8040
8041         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8042         (pdump_file_unmap): Implement it on Windows
8043         (pdump_file_get): Save alocated handles for pdump_file_unmap
8044
8045 2000-03-28  Andy Piper  <andy@xemacs.org>
8046
8047         * gui.c (get_gui_callback): treat Quit specially.
8048
8049 2000-03-27  Andy Piper  <andy@xemacs.org>
8050
8051         * glyphs.c (image_instantiate): be careful to check in the same
8052         way we assigned.
8053
8054 2000-03-27  Didier Verna  <didier@xemacs.org>
8055
8056         * config.h.in: define the proper SMART_INCLUDE macro.
8057         handle renaming of `foo_h_path' to `foo_h_file'.
8058
8059         * database.c: ditto.
8060
8061         * emacs.c: ditto.
8062
8063         * linuxplay.c: ditto.
8064
8065         * terminfo.c: ditto.
8066
8067         * tooltalk.h: ditto.
8068
8069 2000-03-27  Andy Piper  <andy@xemacs.org>
8070
8071         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8072         gets updated whenever the face might have changed.
8073
8074 2000-03-26  Mike Alexander  <mta@arbortext.com>
8075
8076         * dumper.c (pdump_resource_free): Fix the comment.
8077
8078 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8079
8080         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8081
8082 2000-03-22  Mike Alexander  <mta@arbortext.com>
8083
8084         * dumper.c: Include Windows headers on Windows
8085         (pdump_resource_free): Add a body to the function
8086         (pdump_load): exe_name -> exe_path and add some comments.
8087
8088 2000-03-25  Mike Alexander  <mta@arbortext.com>
8089
8090         * gui.c (copy_gui_item_tree): Return a value in all cases
8091
8092 2000-03-21  Didier Verna  <didier@xemacs.org>
8093
8094         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8095         lwlib/config.h.in.
8096         (SMART_INCLUDE): new macro.
8097         (POSTGRES_INCLUDE): new macro to include postgresql headers from
8098         the proper location.
8099
8100         * postgresql.c: use it.
8101
8102         * inline.c: ditto.
8103
8104 2000-03-24  Andy Piper  <andy@xemacs.org>
8105
8106         * gutter.c (redraw_exposed_gutters): must be "in display" when we
8107         do this.
8108
8109 2000-03-24  Andy Piper  <andy@xemacs.org>
8110
8111         * redisplay-output.c (compare_runes): use image_instance_changed
8112         to detect changes. Do not depend on glyphs_changed, only depend on
8113         dirtiness.
8114          (redisplay_output_layout): add debug messages.
8115         (compare_runes): ditto.
8116
8117         * glyphs.h: declare new functions.
8118         (struct Lisp_Image_Instance): remove percent and associated
8119         accessors.
8120
8121         * gui.h: declare new copying functions.
8122
8123         * gui.c (copy_gui_item_tree): new function.
8124         (copy_gui_item): new function.
8125         (gui_item_id_hash): revert to standard hash.
8126         (gui_item_hash): ditto.
8127         (gui_item_hash_internal): deleted.
8128         (mark_gui_item): mark value.
8129         (gui_item_add_keyval_pair): add value.
8130         (gui_item_init): ditto.
8131         (gui_add_item_keywords_to_plist): ditto.
8132         (gui_item_equal): ditto.
8133         (syms_of_gui): add Q_value.
8134
8135         * glyphs-x.c (x_progress_gauge_update): use pending items and
8136         value for setting the state.
8137         (x_update_widget): don't set items from pending here.
8138
8139         * glyphs-widget.c (update_widget): update items here.
8140         (progress_gauge_set_property): use items for storing value. Put
8141         new value in pending items.
8142
8143         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8144         items for new value. Convert percent -> value.
8145         (mswindows_tab_control_update): don't update items here.
8146
8147         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
8148         (update_subwindow): ditto.
8149         (image_instance_changed): new function. Compare hash values and
8150         past and present widget items.
8151         (image_instantiate): We more careful about where we instantiate
8152         things.
8153         (image_instantiate): add error checking.
8154
8155         * gutter.c (syms_of_gutter): use -hook.
8156
8157 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
8158
8159         * console-tty.c (Fset_console_tty_input_coding_system): Use
8160         Qkeyboard.
8161         (Fset_console_tty_output_coding_system): Use Qterminal.
8162         (tty_init_console): Use Qkeyboard and Qterminal.
8163
8164 2000-03-21  Ben Wing  <ben@xemacs.org>
8165
8166         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
8167         From Mike Alexander <mta@arbortext.com>.
8168
8169 2000-03-21  Ben Wing  <ben@xemacs.org>
8170
8171         * event-msw.c (mswindows_need_event): Horrible kludge to fix
8172         process brokenness.  Proper implementation to come.
8173         * callproc.c:
8174         Rename call-process-internal to old-call-process-internal.
8175         New impl. in process.el.
8176
8177 2000-03-21  Martin Buchholz  <martin@xemacs.org>
8178
8179         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
8180
8181 2000-03-20  Andy Piper  <andy@xemacs.org>
8182
8183         * glyphs.c (full_list_hash): make hashes of the same elements in
8184         different orders return different values.
8185
8186 2000-03-20  Martin Buchholz <martin@xemacs.org>
8187
8188         * XEmacs 21.2.32 is released.
8189
8190 2000-03-20  Martin Buchholz  <martin@xemacs.org>
8191
8192         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
8193         (DFC_MALLOC_USE_CONVERTED_DATA):
8194         Add aliasing-safe casts to allow use with char* or unsigned char*
8195         lvalues.
8196
8197         * eldap.c (Fldap_open):
8198         (Fldap_search_basic):
8199         (Fldap_add):
8200         (Fldap_modify):
8201         Make C++-compilable.
8202         Make sure GCPRO'ed variables are initialized.
8203         Use temp variables to avoid repeated calls to Flength.
8204
8205 2000-03-16  Martin Buchholz  <martin@xemacs.org>
8206
8207         * sysfile.h:
8208         Make sure PATH_MAX is always defined.
8209         Include limits.h for PATH_MAX.
8210         Deprecate use of MAXPATHLEN.
8211
8212 2000-03-10  Martin Buchholz  <martin@xemacs.org>
8213
8214         * emacs.c: Add reinit_vars_of_fileio.
8215         * symsinit.h: Add reinit_vars_of_fileio.
8216         * fileio.c (reinit_vars_of_fileio): New.
8217         * fileio.c (Fmake_temp_name):
8218         Initialize temp_name random number from microseconds to make
8219         collisions even less likely.  Initialize always at process startup
8220         time.  (make-temp-name) used to return the same file name twice in
8221         a row when PDUMP.
8222         Random stylistic fiddling.
8223         Comment fixes.
8224
8225 2000-03-20  Andy Piper  <andy@xemacs.org>
8226
8227         * glyphs.c (image_instantiate): allow text glyphs to be
8228         instantiated in the minibuffer window.
8229
8230 2000-03-19  Andy Piper  <andy@xemacs.org>
8231
8232         * glyphs.c (image_instance_hash): be careful about which items we
8233         hash on.
8234
8235         * glyphs-widget.c (tab_control_set_property): record into pending
8236         items rather than the actual items.
8237
8238         * glyphs-x.c (x_update_widget): use pending items to update with.
8239
8240         * glyphs-msw.c (mswindows_tab_control_update): use pending items
8241         to update with.
8242
8243         * glyphs.c (mark_image_instance): mark pending items.
8244
8245         * window.c (Fset_window_configuration): record the buffer.
8246         (Fselect_window): totally revert previous change which breaks many
8247         things.
8248
8249 2000-03-18  Andy Piper  <andy@xemacs.org>
8250
8251         * glyphs-msw.c (mswindows_tab_control_update): force selected
8252         item.
8253
8254         * glyphs.c (image_instantiate): don't allow the minibuffer as a
8255         window domain cache, otherwise we get inconsistencies at
8256         startup. There is something fishy at startup which can lead to the
8257         minibuffer being the selected window when the gutter content is
8258         instantiated.
8259
8260         * gui.c (parse_gui_item_tree_list): add probably unnecessary
8261         gcpros.
8262         (parse_gui_item_tree_children): ditto.
8263         (parse_gui_item_tree_item): ditto.
8264
8265         * glyphs.c (Fupdate_widget_instances): return something.
8266
8267 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8268
8269         * window.c (Fselect_window): Undo 2000-03-17 change.
8270
8271 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
8272
8273         * postgresql.c (Fpq_setenv): Remove this turkey when linking
8274         against v7.0 libraries.  Insta-coredump city until the postgres
8275         folks fix it.
8276
8277 2000-03-17  Andy Piper  <andy@xemacs.org>
8278
8279         * faces.c (complex_vars_of_faces): don't give the widget face an
8280         inherited background pixmap.
8281
8282         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
8283         selected item.
8284
8285         * event-stream.c (Fdispatch_non_command_events): return something.
8286
8287         * gutter.c (output_gutter): use widget face.
8288         (clear_gutter): ditto.
8289
8290         * NEWS: adjust again.
8291
8292         * window.c (Fselect_window): make sure this runs to completion to
8293         avoid oddities with Fset_window_configuration.
8294         (Fcurrent_window_configuration): in general do not save the
8295         minibuffer as the selected window.
8296
8297         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
8298
8299 2000-03-16  Olivier Galibert  <galibert@pobox.com>
8300
8301         * emacs.c (Frunning_temacs_p): Revert previous patch.
8302         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
8303
8304 2000-03-16  Andy Piper  <andy@xemacs.org>
8305
8306         * glyphs-x.c (x_tab_control_update): if no widget values then
8307         return.
8308
8309         * NEWS: update for new features.
8310
8311         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
8312         synthetic event to the native system.
8313         (reinit_vars_of_event_Xt): set force_event_pending to
8314         emacs_Xt_force_event_pending.
8315
8316         * events.h (struct event_stream): add force_event_pending.
8317
8318         * specifier.c (recompute_one_cached_specifier_in_window): add
8319         comment.
8320
8321         * redisplay.c (redisplay_frame): don't call
8322         update_frame_subwindows. Reset subwindow cachels when
8323         subwindows_changed, removing this was an optimization too far.
8324
8325         * redisplay-output.c (compare_runes): reorganize so that we catch
8326         glyph changes when we want them. Set optimize_output when this
8327         would help layouts.
8328         (redisplay_output_layout): remove frame_really_changed, use
8329         optimize_output instead.
8330
8331         * redisplay-msw.c (mswindows_output_display_block): reset
8332         optimize_output after outputting a glyph.
8333         * redisplay-x.c (x_output_display_block): ditto.
8334         * redisplay-tty.c (tty_output_display_block): ditto.
8335
8336         * gutter.c: (specifier_vars_of_gutter): use new spec changed
8337         functions.
8338         (gutter_specs_changed): do specific gutter positions.
8339         (top_gutter_specs_changed): new function. Only update the
8340         specified gutter specs.
8341         (bottom_gutter_specs_changed): ditto.
8342         (left_gutter_specs_changed): ditto.
8343         (right_gutter_specs_changed): ditto.
8344
8345         * gui.c (gui_item_hash_internal): new function, does a real hash.
8346         (gui_item_id_hash): use it.
8347         (gui_item_hash): hash the eval'ed gui_item.
8348
8349         * gui-x.c (popup_selection_callback): send an eval event to call
8350         Fupdate_widget_instances.
8351
8352         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
8353         to call Fupdate_widget_instances.
8354
8355         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
8356         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
8357
8358         * glyphs.c: (update_frame_subwindows): deleted.
8359         (Fupdate_widget_instances): new function for updating the dirty
8360         state of widgets that might have changed.
8361         (syms_of_glyphs): add Qupdate_widget_instances.
8362         (full_list_hash): hash a list completely.
8363         (image_instance_hash): use it for items and properties.
8364
8365         * frame-msw.c (mswindows_size_frame_internal): remove unused
8366         variable.
8367
8368         * faces.h (struct face_cachel): fix comment.
8369
8370         * event-stream.c (Fdispatch_non_command_events): new
8371         function. Process non-command events, forcing an event cycle
8372         beforehand.
8373         (syms_of_event_stream): declare.
8374         (event_stream_force_event_pending): new function. Force an event
8375         on the native event queue so that an event cycle will occur next
8376         time we check.
8377
8378         * event-msw.c:
8379         (struct ntpipe_shove_stream):
8380         (mswindows_enqueue_dispatch_event):
8381         (mswindows_dequeue_dispatch_event):
8382         (mswindows_cancel_dispatch_event):
8383         (mswindows_pump_outstanding_events):
8384         (mswindows_drain_windows_queue):
8385         (mswindows_handle_paint):
8386         (mswindows_wnd_proc):
8387         (mswindows_key_to_emacs_keysym):
8388         (get_process_input_waitable):
8389         (emacs_mswindows_delete_stream_pair): re-indent file.
8390         (mswindows_need_event): do not process further fds if the windows
8391         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
8392         fixes the 100% cpu problem.
8393         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
8394
8395 2000-03-15  Olivier Galibert  <galibert@pobox.com>
8396
8397         * alloc.h: New.
8398         * dumper.h: New.
8399         * dumper.c: New.
8400
8401         * emacs.c: Moved dump file searching to dumper.c.
8402         (Frunning_temacs_p): Fixed.
8403
8404         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
8405         last_lrecord_type_index_assigned.
8406
8407 2000-02-20  Olivier Galibert  <galibert@pobox.com>
8408
8409         * symsinit.h: Added reinit parameter to init_console_stream
8410         declaration.
8411
8412         * lisp.h: Added file parameter to pdump_load declaration.
8413
8414         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
8415         support.  Added dump file searching.
8416
8417         * config.h.in: Added EMACS_PROGNAME.
8418
8419         * console-stream.c (init_console_stream): Fix reinitialisation
8420         when running from temacs.
8421
8422         * alloc.c (pdump): Add id support.
8423         (pdump_load): Add file parameter and signature/id support.
8424
8425         * Makefile.in.in: Add full pdump support.
8426
8427 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
8428
8429         * postgresql.c: Update documentation to reflect latest code
8430         status.
8431         (print_result): Show tuple counts in printed representation when
8432         appropriate.
8433         (Fpq_put_nbytes): MULE-ize.
8434         (Fpq_get_line_async): Ditto.
8435
8436 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
8437
8438         * postgresql.c (Fpq_lo_import): Fix return value.
8439         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
8440
8441 2000-03-13  Ben Wing  <ben@xemacs.org>
8442
8443         * alloc.c (pdump_load):
8444         Fix compile warning under mswin.
8445
8446 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
8447
8448         * postgresql.c: Mule-ization, bug fixes.
8449         Use PG_CODING to encapsulate coding system name changes.
8450         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
8451         (pg-coding-system): Create.
8452
8453         (Fpq_conn_defaults): Mule-ize.
8454         (Fpq_connectdb): Mule-ize & bug fix.
8455         (Fpq_connect_start): Mule-ize.
8456         (Fpq_set_client_encoding): Mule-ize.
8457         (Fpq_finish): Document `DEAD' connection status.
8458         (Fpq_clear): Ditto.
8459         (Fpq_pgconn): Mule-ize.
8460         (Fpq_exec): Mule-ize & bug fix.
8461         (Fpq_send_query): Ditto.
8462         (Fpq_get_result): Ditto.
8463         (Fpq_res_status): Mule-ize.
8464         (Fpq_result_error_message): Mule-ize.
8465         (Fpq_ntuples): fix comments.
8466         (Fpq_fname): Mule-ize.
8467         (Fpq_fnumber): Mule-ize.
8468         (Fpq_ftype): fix comments.
8469         (Fpq_get_value): Mule-ize.
8470         (Fpq_cmd_status): Ditto.
8471         (Fpq_cmd_tuples): Ditto.
8472         (Fpq_oid_value): Ditto.
8473         (Fpq_notifies): Ditto.
8474         (Fpq_lo_import): Ditto.
8475         (Fpq_lo_export): Ditto.
8476         (Fpq_get_line): Ditto.
8477         (Fpq_put_line): Mule-ize and bug fix.
8478         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
8479
8480 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
8481
8482         * postgresql.c (vars_of_postgresql): Mule-ize.
8483         (Fpq_conn_defaults): Ditto.
8484
8485 2000-03-12  Ben Wing  <ben@xemacs.org>
8486
8487         * alloc.c (Fmake_byte_code):
8488         * alloc.c (debug_string_purity_print):
8489         * alloc.c (pdump_backtrace):
8490         * alloc.c (pdump_get_indirect_count):
8491         * alloc.c (pdump_register_sub):
8492         * alloc.c (pdump_register_object):
8493         * alloc.c (pdump_register_struct):
8494         * alloc.c (pdump_dump_data):
8495         * alloc.c (pdump_reloc_one):
8496         Minor cleanups.
8497
8498         * console-msw.c:
8499         * console-msw.c (GetConsoleHwnd):
8500         * console-msw.c (msw_hide_console):
8501         * console-msw.c (msw_show_console):
8502         * console-msw.c (msw_ensure_console_buffered):
8503         * console-msw.c (msw_output_console_string):
8504         * console-msw.c (console_type_create_mswindows):
8505
8506         a) Added functions to manipulate the console window for use with
8507         shell support.
8508
8509         b) Added support for writing text to the console, which is now
8510         used under Windows when xemacs is not being run non-interactively,
8511         to write text that would otherwise be destined for stdout because
8512         under these circumstances, text written to stdout tends to
8513         disappear and not be seen.
8514
8515         * console-msw.h:
8516         * event-Xt.c:
8517         * event-Xt.c (x_event_to_emacs_event):
8518         * event-Xt.c (describe_event_window):
8519         * events-mod.h (XEMACS_MOD_CONTROL):
8520         * events.c:
8521         * events.c (Fmake_event):
8522         * events.c (character_to_event):
8523         * events.c (event_to_character):
8524         * events.c (format_event_object):
8525         * events.c (Fevent_modifiers):
8526         * events.h:
8527         * events.h (struct key_data):
8528         * events.h (struct button_data):
8529         * events.h (struct misc_user_data):
8530         * frame-x.c (Fcde_start_drag_internal):
8531         * frame-x.c (Foffix_start_drag_internal):
8532         * gpmevent.c (Freceive_gpm_event):
8533         * keymap.c:
8534         * keymap.c (bucky_sym_to_bucky_bit):
8535         * keymap.c (control_meta_superify):
8536         * keymap.c (make_key_description):
8537         * keymap.c (keymap_lookup_directly):
8538         * keymap.c (create_bucky_submap):
8539         * keymap.c (keymap_store):
8540         * keymap.c (define_key_check_and_coerce_keysym):
8541         * keymap.c (define_key_parser):
8542         * keymap.c (define_key_alternate_name):
8543         * keymap.c (Fdefine_key):
8544         * keymap.c (raw_lookup_key_mapper):
8545         * keymap.c (struct map_keymap_unsorted_closure):
8546         * keymap.c (map_keymap_unsorted_mapper):
8547         * keymap.c (map_keymap_sort_predicate):
8548         * keymap.c (map_keymap_sorted):
8549         * keymap.c (accessible_keymaps_mapper_1):
8550         * keymap.c (where_is_recursive_mapper):
8551         * keymap.c (describe_map_mapper):
8552         * keymap.c (describe_map_sort_predicate):
8553         * keymap.c (describe_map):
8554         * keymap.c (complex_vars_of_keymap):
8555         And a number of other files, the key modifier preprocessor
8556         constants that xemacs uses have names that conflict with constants
8557         defined under MS Windows for other purposes, so they were renamed
8558         to begin with the prefix XEMACS_. The variables that hold such
8559         modifiers were changed to consistently be of type int to fix
8560         various compile warnings.
8561
8562         * console.c (complex_vars_of_console):
8563         * device.c:
8564         * device-msw.c:
8565         * device-msw.c (mswindows_finish_init_device):
8566         * device-msw.c (msw_get_workspace_coords):
8567         * device-msw.c (mswindows_device_system_metrics):
8568         and various other files, added support for a new
8569         device property called offset-workspace which returns the position
8570         of the upper left corner of the workspace area and goes along with
8571         the existing size-workspace property.
8572
8573         * dialog-msw.c:
8574         * dialog-msw.c (push_bufbyte_string_as_unicode):
8575         * dialog-msw.c (mswindows_popup_dialog_box):
8576         Added support for XEmacs-style accelerator specifications in
8577         button text.  Note: I didn't add support for this under X Windows,
8578         and somebody needs to do this.
8579
8580         * dialog.c:
8581         * dialog.c (Fpopup_dialog_box):
8582         Documented the support for accelerators that was just mentioned.
8583
8584         editfns.c (get_home_directory): Changed behavior under Windows
8585         when HOME not defined; former behavior was irretrievably broken.
8586
8587         * emacs.c:
8588         * emacs.c (main_1):
8589         * emacs.c (main):
8590         * minibuf.c (clear_echo_area_internal):
8591         * minibuf.c (echo_area_append):
8592         * print.c:
8593         * print.c (std_handle_out_external):
8594         * print.c (std_handle_out_va):
8595         * print.c (fatal):
8596         * print.c (write_string_to_stdio_stream):
8597         * print.c (output_string):
8598         * print.c (debug_print):
8599         * print.c (debug_backtrace):
8600         * print.c (debug_short_backtrace):
8601         Cleaned up the code that prints text to stdout so that this can be
8602         changed to output into a console window instead under MS Windows,
8603         as described above.
8604
8605         * eval.c:
8606         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
8607         * eval.c (internal_catch):
8608         * eval.c (unwind_to_catch):
8609         * eval.c (throw_or_bomb_out):
8610         * eval.c (condition_case_1):
8611         * eval.c (signal_1):
8612         * eval.c (check_error_state_sanity):
8613         * eval.c (call_with_suspended_errors_1):
8614         * eval.c (call_with_suspended_errors):
8615         * eval.c (reinit_vars_of_eval):
8616         Added code to catch throw loops and check for a pesky bug that may
8617         be gone now.
8618
8619         * event-msw.c:
8620         * event-msw.c (key_needs_default_processing_p):
8621         * event-msw.c (mswindows_wnd_proc):
8622         * event-msw.c (mswindows_modifier_state):
8623         * event-msw.c (emacs_mswindows_quit_p):
8624         * event-msw.c (vars_of_event_mswindows):
8625         a) Added support for using the alt key to select menu items as is
8626         standard under MS Windows.  This is controlled using the variable
8627         menu-accelerator-enabled, just like under X Windows.  There is an
8628         option on the options menu to turn this support on.  I really
8629         think that it should be on by default under Windows, but I'm not
8630         going to make this change yet.
8631
8632         b)  Added support for dynamic display size changes under Windows.
8633
8634         * event-stream.c:
8635         * event-stream.c (maybe_echo_keys):
8636         * event-stream.c (Fnext_event):
8637         * event-stream.c (command_builder_find_leaf):
8638         * event-stream.c (lookup_command_event):
8639         * event-stream.c (execute_command_event):
8640         * event-stream.c (pre_command_hook):
8641         * event-stream.c (post_command_hook):
8642         * event-stream.c (syms_of_event_stream):
8643         * event-stream.c (vars_of_event_stream):
8644         * event-stream.c (complex_vars_of_event_stream):
8645         * events.h (struct command_builder):
8646
8647         a) Tried to clean up a little bit the horribly written x-specific
8648         accelerator code that crept into this file.  I moved this code
8649         into menubar-x.c where it belongs. I also needed to move the
8650         command builder structure into the file events.h because it is
8651         accessed directly by this accelerator code.  What I didn't do, but
8652         which should be done at some point, is to properly abstract this
8653         code using device methods instead of the kludgy way that it
8654         currently hooks into the event code.
8655
8656         b) Added the lisp variables this-command-properties and
8657         last-command- properties, which should be used to synchronize two
8658         adjacent commands in preference to playing games with the variable
8659         this-command, which is typically what happens.
8660
8661         c) Added some slightly nasty code to hook into the lisp support
8662         for shifted- motion-key selection.  This is actually necessary for
8663         somewhat complicated reasons, which are described in
8664         simple.el. (NB: I think the proper thing would be to have the code
8665         that calls the pre and post command hooks also call out to generic
8666         lisp functions in simple.el, where all built-in stuff could be
8667         added.  I will think about this more.)
8668
8669         * event-unixoid.c (poll_fds_for_input):
8670         * lread.c (readchar):
8671         * redisplay-tty.c (tty_clear_frame):
8672         * redisplay-x.c (x_get_gc):
8673         * signal.c (interrupt_signal):
8674         And a whole bunch of other files: fixed up places that printed
8675         directly to stderr to instead call the function stderr_out so that
8676         the changes I made under Windows work correctly.
8677
8678         * filemode.c (mode_string):
8679         Warning fixes.
8680
8681         * frame-msw.c:
8682         * frame-msw.c (mswindows_size_frame_internal):
8683         Fixed the computation of frame size and position to keep the frame
8684         within the workspace area, rather than within the physical
8685         dimensions of the screen, so that the frame doesn't overlap window
8686         manager decorations, such as the start menu and toolbar, typically
8687         at the bottom of the screen.
8688
8689         * frame.c (vars_of_frame):
8690         Changed the default frame title format under MS Windows to consist
8691         of buffername-XEmacs, which is standard under MS Windows.  I think
8692         it might be a good idea to change this everywhere because I think
8693         it is superior to the current frame title format, but this is the
8694         kind of change that is likely to cause some people to get annoyed,
8695         so I'm not making it.
8696
8697         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
8698
8699         * gui-msw.c (mswindows_handle_gui_wm_command):
8700         Fixed compile warnings.
8701
8702         * gui-x.c:
8703         * gui-x.c (strdup_and_add_accel):
8704         * gui-x.c (button_item_to_widget_value):
8705         * gui-x.h:
8706         Added code to automatically put an accelerator onto the beginning
8707         of menu items that don't have one as is now the standard, and is
8708         described more later.  Also fixed things so that the menu item
8709         name can be an evaluated expression, again a new standard.
8710
8711         * gui.c:
8712         * gui.c (gui_item_add_keyval_pair):
8713         * gui.c (make_gui_item_from_keywords_internal):
8714         * gui.c (gui_add_item_keywords_to_plist):
8715         * gui.c (gui_item_accelerator):
8716         * gui.c (gui_name_accelerator):
8717         * gui.c (gui_item_included_p):
8718         * gui.c (gui_item_display_flush_left):
8719         * gui.c (gui_item_display_flush_right):
8720         * gui.c (parse_gui_item_tree_item):
8721         * gui.c (parse_gui_item_tree_children):
8722         * gui.c (parse_gui_item_tree_list):
8723         Mule-ized.  Cleanup.  GCPRO addition.
8724
8725         * line-number.c (buffer_line_number):
8726         * lisp.h:
8727         * lisp.h (EMACS_INT_MAX):
8728         Added the manifest constant EMACS_INT_MIN corresponding to the
8729         existing constant EMACS_INT_MAX.  This is partially to fix compile
8730         warnings under Windows, and partly for cleanliness.
8731
8732         * menubar-msw.c:
8733         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
8734         * menubar-msw.c (msw_translate_menu_or_dialog_item):
8735         * menubar-msw.c (displayable_menu_item):
8736         * menubar-msw.c (populate_menu_add_item):
8737         * menubar-msw.c (populate_or_checksum_helper):
8738         * menubar-msw.c (populate_menu):
8739         * menubar-msw.c (update_frame_menubar_maybe):
8740         * menubar-msw.c (prune_menubar):
8741         * menubar-msw.c (msw_char_is_accelerator):
8742         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
8743         * menubar-msw.c (mswindows_handle_wm_command):
8744         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
8745         * menubar-msw.c (mswindows_handle_wm_initmenu):
8746         * menubar-msw.c (mswindows_update_frame_menubars):
8747         * menubar-msw.c (mswindows_free_frame_menubars):
8748         * menubar-msw.c (mswindows_popup_menu):
8749         Fixed a bug in handling accelerators where an extra character
8750         would be displayed in the menu item.  Also generalized the
8751         function displayable_menu_item because it is now used by the
8752         dialog box code as well.  And finally, added code in the functions
8753         that create the menubar to extract a list of accelerators for the
8754         top level menubar, which is used in the event code to determine
8755         whether a particular alt-key combination should be used to invoke
8756         a menu item, or should be passed through to access the standard
8757         XEmacs keymap binding for this key combination.
8758
8759         Much needed GCPROing.
8760
8761         * menubar-x.c:
8762         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8763         * menubar-x.c (menu_item_descriptor_to_widget_value):
8764         * menubar-x.c (restore_in_menu_callback):
8765         * menubar-x.c (x_popup_menu):
8766         * menubar-x.c (menu_move_up):
8767         * menubar-x.c (menu_move_down):
8768         * menubar-x.c (menu_move_left):
8769         * menubar-x.c (menu_move_right):
8770         * menubar-x.c (menu_select_item):
8771         * menubar-x.c (command_builder_operate_menu_accelerator):
8772         * menubar-x.c (menu_accelerator_junk_on_error):
8773         * menubar-x.c (command_builder_find_menu_accelerator):
8774         * menubar-x.c (Faccelerate_menu):
8775         * menubar.h:
8776         Moved a whole bunch of code here that was previously in
8777         event-stream.c as described above.  There is also code connected
8778         to the new standard of adding an accelerator to the beginning of
8779         menu items that don't have one as described above and below.
8780
8781         * menubar.c:
8782         * menubar.c (menu_parse_submenu_keywords):
8783         * menubar.c (Fmenu_find_real_submenu):
8784         * menubar.c (Fnormalize_menu_item_name):
8785         * menubar.c (syms_of_menubar):
8786         * menubar.c (vars_of_menubar):
8787         * menubar.c (complex_vars_of_menubar):
8788
8789         a) Cleaned up a bunch of documentation and improved it.
8790
8791         b) XEmacs now automatically adds an accelerator onto the beginning
8792         of any menu items that don't have one.  I did this because there
8793         will inevitably be some menu items on the main menubar that don't
8794         have accelerators on them because the package that adds that
8795         particular menu item hasn't yet been fixed up to have accelerators
8796         in them and it looked rather strange to have some items with and
8797         some items without accelerators, especially since even in items
8798         without accelerators, you can, at least under windows, still
8799         access the item through an accelerator corresponding to the first
8800         character in the item's name.  If people don't like this behavior,
8801         I can add a variable to turn it off optionally, but I'm not sure
8802         this is a good idea because we really do need to have accelerators
8803         on all of the menu items, and if a package doesn't like the
8804         accelerators being put on the first character, then it should put
8805         the accelerators where they belong.
8806
8807         c) I made a behavior change, which is that the descriptor that
8808         specifies the text of the menu item, which formerly was just a
8809         string, can now also be an evaluated expression.  This makes this
8810         descriptor parallel with all of the others, which could also be
8811         evaluated expressions.  This also obviates the need for the
8812         keyword :label, which was previously listed in the documentation
8813         as unimplemented, and which was for the same purpose.
8814
8815         d) GCPROing.
8816
8817         * ntproc.c:
8818         * ntproc.c (new_child):
8819         * ntproc.c (sys_spawnve):
8820         * ntproc.c (find_child_console):
8821         * ntproc.c (sys_kill):
8822         Fixed compile warnings.  By the way, this file should really go
8823         away entirely, and this will happen as soon as Kirill makes his
8824         final round of process cleanups, which affect the function
8825         call-process.
8826
8827         * process-nt.c:
8828         * process-nt.c (struct nt_process_data):
8829         * process-nt.c (find_process_from_pid):
8830         * process-nt.c (send_signal_the_nt_way):
8831         * process-nt.c (enable_child_signals):
8832         * process-nt.c (find_child_console):
8833         * process-nt.c (send_signal_the_95_way):
8834         * process-nt.c (nt_finalize_process_data):
8835         * process-nt.c (ensure_console_window_exists):
8836         * process-nt.c (nt_create_process):
8837         * process-nt.c (nt_kill_child_process):
8838         * process-nt.c (nt_kill_process_by_pid):
8839         * process-nt.c (nt_open_network_stream):
8840         * process-nt.c (vars_of_process_nt):
8841         Copied over code from Emacs 20.5 to correctly send signals to sub-
8842         processes under Windows 95.  Also added code to automatically
8843         create and hide console window when a sub-process is created under
8844         Windows 95, which obviates the need for the separate runemacs.exe
8845         executable, and finally implemented some variables that were
8846         implemented in Emacs 20.5, but previously not in XEmacs.  These
8847         include mswindows- start-process-share-console and
8848         mswindows-start-process-inherit-error-mode. (Both of these only
8849         apply to Windows 95.)
8850
8851         * regex.c (regex_compile): Fixed a compile warning.
8852
8853         * select-msw.c:
8854         * select-msw.c (mswindows_own_selection):
8855         * select-msw.c (mswindows_get_foreign_selection):
8856         * select-msw.c (mswindows_disown_selection):
8857         * select-msw.c (console_type_create_select_mswindows):
8858         * select-msw.c (syms_of_select_mswindows):
8859         Cleaned up the file and implemented the device method
8860         selection_exists_p, which had accidentally been left out.  Also
8861         removed four lisp functions that were remnants from before the
8862         time when the selection code was properly device abstracted.
8863         These functions are no longer needed because there are generic
8864         equivalents, and because they were added recently and don't exist
8865         in FSF Emacs, I don't think there's any problem with just deleting
8866         them.
8867
8868         * sysdep.c:
8869         * sysdep.c (sys_subshell):
8870         Fixed a compile warning, although in this case there's probably
8871         something wrong with this code, and it ought to be looked into
8872         more thoroughly by somebody who understands it.
8873
8874         * window.c:
8875         * window.c (Fwindow_text_area_height):
8876         * window.c (Fwindow_width):
8877         * window.c (Fwindow_full_width):
8878         * window.c (Fwindow_pixel_width):
8879         * window.c (debug_print_window):
8880         * window.c (syms_of_window):
8881         Added functions window-text-area-height and window-full-width,
8882         which are functions for returning various width and height
8883         characteristics of a window. (One of these functions is necessary
8884         for making the file dialog box work correctly, and the other one
8885         was added for completeness.)  Also added a table to the
8886         documentation for window-height which describes the entire scheme
8887         for accessing width and height characteristics of a window.
8888
8889 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8890
8891         * nt.c (fstat): Added a comment for another problem with
8892         non-encapsulated [f]stat(), reported by Adrian Aichner
8893         <aichner@ecf.teradyne.com>.
8894
8895 2000-03-11  Andy Piper  <andy@xemacs.org>
8896
8897         * window.c (make_dummy_parent): initialize subwindow instance
8898         cache.
8899         (Fset_window_configuration): zero extent_modiff.
8900
8901 2000-03-10  Andy Piper  <andy@xemacs.org>
8902
8903         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
8904         more changes can be triggered.
8905         (Fredisplay_frame): ditto.
8906         (Fredraw_device): ditto.
8907         (Fredisplay_device): ditto.
8908         (redisplay_frame): make non-static.
8909         (redisplay_frame): call update_frame_gutter_geometry outside of
8910         display proper.
8911
8912         * gutter.h: declare update_frame_gutter_geometry.
8913
8914         * redisplay.h: declare redisplay_frame.
8915
8916         * gutter.c (update_frame_gutter_geometry): move geometry changes
8917         in update_frame_gutters here. Geometry changes can only occur
8918         outside of redisplay.
8919         (update_frame_gutters): remove geometry change code.
8920         (Fredisplay_gutter_area): make sure that we are in display when we
8921         update and that we have flushed any size changes.
8922
8923 2000-03-11  Andy Piper  <andy@xemacs.org>
8924
8925         * alloc.c (pdump_dump_data): remove i & count shadows.
8926
8927 2000-02-27  Mike Alexander  <mta@arbortext.com>
8928
8929         * sysdep.h: Declare pdump_read_file
8930
8931         * sysdep.c (pdump_read_file): New function
8932
8933         * alloc.c (pdump_load): Call pdump_read_file to get the portable
8934         dump data
8935
8936 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
8937
8938         * lrecord.h: add `lrecord_type_pgsetenv'.
8939
8940 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
8941
8942         * symsinit.h: declare (vars|syms)_of* functions.
8943         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
8944
8945 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
8946
8947         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
8948
8949         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
8950         GCCs.
8951
8952         * emacs.c (main_1): Call postgres initialization code.
8953
8954         * postgresql.h: New file.  PostgreSQL RDBMS support.
8955         * postgresql.c: New file.
8956
8957 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8958
8959         * redisplay-output.c (redisplay_output_display_block): Disable
8960         redundant code.
8961
8962 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8963
8964         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
8965         (Fcanna_henkan_next): Ditto.
8966         (Fcanna_bunsetu_henkou): Ditto.
8967         (Fcanna_henkan_kakutei): Ditto.
8968         (Fcanna_henkan_end): Ditto.
8969         (Fcanna_henkan_quit): Ditto.
8970         (Fcanna_henkan_next): Set retun value correctly.
8971         (c2mu): Use unsigned char instead of signed char.
8972
8973 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8974
8975         * emacs.c (main_1): Always call syms_of_gui.
8976         * inline.c: include gui.h
8977
8978 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8979
8980         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
8981         converted to Lisp_Object.
8982         (Qtop_bottom): New variable.
8983         (syms_of_redisplay): Initialize it.
8984         * redisplay.h (Vvisible_bell): Ditto.
8985         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
8986         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
8987         only flash top and bottom.
8988
8989 2000-03-08  Andy Piper  <andy@xemacs.org>
8990
8991         * buffer.c (Frename_buffer): record new buffer name the right way.
8992
8993 2000-03-08  Andy Piper  <andy@xemacs.org>
8994
8995         * glyphs.c (update_subwindow): increase hash depth so that widget
8996         items get picked up properly.
8997
8998         * redisplay-output.c (compare_runes): increase hash depth so that
8999         widget items get picked up properly.
9000
9001 2000-03-08  Andy Piper  <andy@xemacs.org>
9002
9003         * gutter.c (output_gutter): add some debug.
9004
9005         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9006         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9007         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9008
9009         * redisplay-output.c (compare_runes): use display_hash to
9010         determine if glyphs really are not the same.
9011
9012         * glyphs.c (update_subwindow): check display_hash to see if
9013         anything really needs to be updated. If not then do
9014         nothing. Record the display_hash after updating.
9015         (image_instance_equal): compare the image_instance face also.
9016
9017 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9018
9019         * redisplay.h: Fix comment style.
9020
9021 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9022
9023         * consle-msw.h (struct mswindows_frame):
9024         Added new member paint_pending to indicate whether a WM_PAINT
9025         magic event has been queued for this frame.
9026
9027         * event-msw.c (mswindows_drain_windows_queue):
9028         Don't queue a WM_PAINT magic event if one is already queued.
9029         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9030
9031         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9032
9033 2000-03-07  Didier Verna  <didier@xemacs.org>
9034
9035         * dired.c: #include `regex.h' after `sysfile.h'.
9036
9037 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9038
9039         * sound.c (init_nas_sound): Fix compiler warning.
9040
9041         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9042         (FREE_STRUCT_P):
9043         (MARK_STRUCT_AS_FREE):
9044         (MARK_STRUCT_AS_NOT_FREE):
9045         Make `gcc -fstrict-aliasing' work properly.
9046
9047 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9048
9049         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9050         (mswindows_delete_device): Call CoUnnitialize().
9051
9052         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9053
9054 2000-02-25    <CraigL@DyCon.com>
9055
9056         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9057         <errno.h>.
9058
9059         * sysdep.c: This extern declaration for environ prevents MinGW
9060         from finding the variable in CRTDLL.DLL.
9061
9062         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9063         windows headers.
9064         (SHGFI_EXETYPE): ..
9065         (WM_MOUSEWHEEL): ..
9066         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9067         definitions.
9068         (MMRESULT): Removed, now defined in cygwin's windows headers.
9069         (TIMECAPS): ..
9070         (uid_t,gid_t,pid_t,ssize_t): ..
9071         (_timeb): Removed, MinGW defines both _timeb and timeb.
9072         (HAVE_H_ERRNO): Added.
9073         (HAVE_TZNAME): Added, configure is not detecting this.
9074
9075 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9076
9077         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9078         * syntax.c (syntax_match): Use it.
9079
9080         * cmds.c: Import auto-fill-chars from FSF Emacs.
9081         (Vauto_fill_chars): New variables.
9082         (internal_self_insert): Check Vauto_fill_chars.
9083         (vars_of_cmds):
9084         Declare auto-fill-chars as a Lisp variable and initialize it.
9085
9086 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9087
9088         * fileio.c (Fmake_symbolic_link):
9089         (Ffile_symlink_p):
9090         Run handlers even if local machine doesn't have symlinks.
9091
9092 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9093
9094         * event-msw.c (mswindows_drain_windows_queue):
9095         Don't generate paint magic events for non-XEmacs frames.
9096
9097 2000-03-05  Andy Piper  <andy@xemacs.org>
9098
9099         * redisplay.c (redisplay_frame): generate_displayable_area and
9100         friends assumes that we are not in GC, we therefore have to make
9101         sure that this doesn't happen.
9102
9103         * gutter.c (calculate_gutter_size): generate_displayable_area
9104         assumes that we are not in GC, we therefore have to make sure that
9105         this doesn't happen.
9106
9107 2000-03-05  Martin Buchholz  <martin@xemacs.org>
9108
9109         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9110
9111 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9112
9113         * redisplay.c (regenerate_window): Make sure we set a sane value
9114         for end_pos even if we jump out of the loop.
9115         (regenerate_window): Answer Ben's question :-).
9116         (start_end_of_last_line): Add may_error argument.
9117         (start_of_last_line):
9118         (end_of_last_line): Pass may_error = 0.
9119         (end_of_last_line_may_error): New function.
9120         (pixel_to_glyph_translation): Use it, so we don't crash in
9121         event_to_glyph.
9122
9123 2000-03-04  Andy Piper  <andy@xemacs.org>
9124
9125         * window.h (struct window): add gutter_extent_modiff.
9126
9127         * window.c (allocate_window): zero out gutter_extent_modiff.
9128
9129         * redisplay.h: declare sync_display_line_structs.
9130
9131         * redisplay.c (add_glyph_rune): add a better comment.
9132
9133         * redisplay-output.c (sync_display_line_structs): made non-static.
9134         (compare_runes): remove unneccesary glyph cachel access.
9135
9136         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9137
9138         * gutter.c (output_gutter): don't output the gutter if extent
9139         changes only involve extents in buffers. use 4 sets of display
9140         lines.
9141         (gutter_extent_signal_changed_region_maybe): new function. Mark
9142         extents in gutters as changed.
9143         (update_frame_gutters): use 4 sets of display lines.
9144         (reset_gutter_display_lines): ditto.
9145         (free_frame_gutters): ditto.
9146         (redraw_exposed_gutter): force output of gutters.
9147
9148         * frame.h (struct frame): add 4 sets of gutter display lines.
9149
9150         * extents.c: (extent_changed_for_redisplay): signal changes to
9151         extents in strings in the gutter as well as extents in buffers.
9152
9153 2000-03-02  Andy Piper  <andy@xemacs.org>
9154
9155         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
9156
9157         * frame.c (Fmake_frame): make sure the gutters get initialized
9158         after the frame is visible.
9159         (set_frame_selected_window): re-arrange compilation macros a
9160         little.
9161         (change_frame_size_1): mark gutters changed.
9162
9163         * device.c (Fset_device_class): mark gutters changed.
9164
9165 2000-03-01  Andy Piper  <andy@xemacs.org>
9166
9167         * window.c (window_top_frame_gutter_height): deleted.
9168         (window_bottom_frame_gutter_height): ditto.
9169         (window_left_frame_gutter_height): ditto.
9170         (window_right_frame_gutter_height): ditto.
9171         (window_top_gutter_height): don't use them.
9172         (window_bottom_gutter_height): ditto.
9173         (window_left_gutter_width): ditto.
9174         (window_right_gutter_width): ditto.
9175         (Fsplit_window): ditto.
9176         (Fwindow_pixel_edges): don't use border dimensions here.
9177
9178         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
9179         (update_scrollbar_instance): ditto.
9180
9181         * redisplay.c (generate_modeline): don't take gutters into account.
9182         (generate_modeline): ditto.
9183         (redisplay_frame): small gutter display optimization.
9184
9185         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
9186
9187         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
9188         gutters into account.
9189
9190         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
9191         for window position and type.
9192
9193         * gutter.c (get_gutter_coords): fix for frame gutters.
9194         (update_frame_gutters): update frame geometry if the gutters have
9195         changed.
9196         (init_frame_gutters): record current gutter geometries.
9197
9198         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
9199         var.
9200         (mswindows_widget_instantiate): ditto.
9201
9202         * frame.h (struct frame): add current_gutter_bounds.
9203
9204         * frame.c (change_frame_size_1): position window and minibuffer
9205         appropriately taking into account the frame gutters.
9206
9207         * frame-x.c: (x_initialize_frame_size): take into account the
9208         frame gutters.
9209
9210 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9211
9212         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
9213
9214 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9215
9216         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
9217
9218 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
9219
9220         * file-coding.c (reset_decoding_stream): Clear previous
9221         detection state when autodetect.
9222
9223 2000-02-29  Didier Verna  <didier@xemacs.org>
9224
9225         * extents.c (set_extent_glyph_1): don't require extents to be
9226         attached.
9227
9228 2000-02-27  Andy Piper  <andy@xemacs.org>
9229
9230         * gutter.c (Fset_default_gutter_position): don't default left and
9231         right gutter visibility to t.
9232         (Fset_default_gutter_position): run
9233         default-gutter-position-changed-hook.
9234         (syms_of_gutter): add default-gutter-position-changed-hook.
9235
9236 2000-02-26  Andy Piper  <andy@xemacs.org>
9237
9238         * specifier.c (Fmake_specifier): add gutter references.
9239
9240         * gutter.h (RAW_WINDOW_GUTTER): new macro.
9241
9242         * lisp.h: declare Fvalid_plist_p.
9243
9244         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
9245         as changed.
9246         (default_gutter_visible_p_changed_in_window): invalidate gutter as
9247         well as its visibility so that it gets reconstructed.
9248         (construct_window_gutter_spec): new function. Construct a string
9249         to be displayed in the gutter from a plist of strings. Take care
9250         to only use elements that are declared as visible.
9251         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
9252         WINDOW_GUTTER.
9253         (gutter_validate): allow plists of strings in the specifier.
9254         (gutter_specs_changed): construct the real_gutter from the gutter
9255         specs using construct_window_gutter_spec.
9256         (gutter_visible_validate): gutter-visible is a new specifier type.
9257         (Fgutter_visible_specifier_p): new function for the new specifier.
9258         (syms_of_gutter): declare gutter-visible and
9259         Fgutter_visible_specifier_p.
9260         (specifier_type_create_gutter): intitalize new gutter-visible
9261         specifier.
9262         (reinit_specifier_type_create_gutter): ditto.
9263         (specifier_vars_of_gutter): use new specifier type for gutter
9264         visibility.
9265         (init_frame_gutters): construct real_gutter correctly.
9266         (Fgutter_specifier_p): beef up documentation.
9267         (Fgutter_size_specifier_p): ditto.
9268
9269         * winslots.h: add real_gutter slots.
9270
9271 2000-02-25  Andy Piper  <andy@xemacs.org>
9272
9273         * device-msw.c: Be kind to older cygwin versions. From Raymond
9274         Toy <toy@rtp.ericsson.se>.
9275
9276         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
9277         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
9278
9279 2000-02-25  Martin Buchholz  <martin@xemacs.org>
9280
9281         * elhash.c (MARK_OBJ): Practice macro hygiene.
9282
9283 2000-02-24  Martin Buchholz  <martin@xemacs.org>
9284
9285         * miscplay.c: s/__inline__/inline/g;
9286         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
9287         (get_device_compdc): INLINE ==> static inline
9288         * *.[ch]: Change INLINE to INLINE_HEADER globally.
9289         find -name '*.h' | \
9290         xargs global-replace \
9291         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
9292
9293 2000-02-25  Andy Piper  <andy@xemacs.org>
9294
9295         * window.c (window_top_frame_gutter_height): new function.
9296         (window_top_window_gutter_height): ditto.
9297         (window_top_gutter_height): use them.
9298         (window_bottom_frame_gutter_height): new function.
9299         (window_bottom_window_gutter_height): ditto.
9300         (window_bottom_gutter_height): use them.
9301         (window_left_window_gutter_width): new function.
9302         (window_left_frame_gutter_width): ditto.
9303         (window_left_gutter_width): use them.
9304         (window_right_window_gutter_width): new function.
9305         (window_right_frame_gutter_width): ditto.
9306         (window_right_gutter_width): use them.
9307         (window_pixel_height): new function. calulate window pixel height
9308         with frame gutter involvement.
9309         (Fsplit_window): calculate new sizes taking frame gutters into
9310         account.
9311         (window_char_height_to_pixel_height): don't include frame gutters.
9312         (window_char_height): use window_pixel_height.
9313         (window_pixheight): rename from window_pixel_height.
9314         (change_window_height): use it.
9315         (window_pixel_height_to_char_height): don't include frame gutters.
9316         (window_char_width_to_pixel_width): ditto.
9317
9318 2000-02-25  Andy Piper  <andy@xemacs.org>
9319
9320         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
9321         if it is.
9322
9323 2000-02-24  Martin Buchholz  <martin@xemacs.org>
9324
9325         * alloc.c (staticpro):
9326         (staticpro_nodump):
9327         (dumpstruct):
9328         (dumpopaque):
9329         (pdump_wire):
9330         (pdump_wire_list):
9331         (compact_string_chars):
9332         (pdump_dump_wired):
9333         Convert:  if (foo) abort();  ==>  assert (! foo);
9334
9335         * eldap.c (Fldap_search_basic):
9336         (Fldap_add):
9337         (Fldap_modify):
9338         (Fldap_delete):
9339         Fix compiler warnings, and possible crashes if (random) return
9340         value were to be used.
9341
9342 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9343
9344         * device-msw.c: Workaround ResetDC failure.
9345
9346         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
9347         applying a devmode.
9348
9349         * redisplay-msw.c (get_frame_dc): Added start_page_p.
9350         (mswindows_text_width): Do not start printer page.
9351
9352         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
9353
9354         * glyphs-msw.c: Added image methods to msprinter console and
9355         msprinter-specific image instantiation.
9356
9357 2000-02-20  Mike Alexander  <mta@arbortext.com>
9358
9359         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
9360         to avoid crashes when selection-sets-clipboard is on
9361         (mswindows_own_selection): ditto
9362
9363 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9364
9365         * glyphs-msw.c:
9366         * redisplay-msw.c (get_frame_dc):
9367         (get_frame_compdc):
9368         * console-msw.h:
9369         * device-msw.c (mswindows_init_device):
9370         (mswindows_delete_device):
9371         (msprinter_init_device):
9372         (msprinter_delete_device):
9373         * frame-msw.c (mswindows_init_frame_1):
9374         (mswindows_delete_frame):
9375         (msprinter_init_frame_3):
9376         (msprinter_delete_frame): Move compatible DC to device object from
9377         frame object, for both mswindows and msprinter. Only one at a time
9378         is needed, it is a real waste to have one per frame!
9379
9380 2000-02-23  Andy Piper  <andy@xemacs.org>
9381
9382         * glyphs.c: add dynamic width and height elements.
9383         (image_instance_equal): ditto.
9384
9385         * glyphs-widget.c (widget_query_geometry): calculate width and
9386         height dynamically if required.
9387         (initialize_widget_image_instance): initialize dynamic dimensions.
9388         (widget_instantiate): pick-up dynamic dimensions.
9389
9390         * glyphs.h (struct Lisp_Image_Instance): add width and height for
9391         dynamic determination. Add appropriate macros.
9392
9393         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
9394         dimensions safe.
9395         (WINDOW_GUTTER_SIZE): ditto.
9396         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
9397
9398         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
9399         inline.
9400         (get_frame_dc): ditto.
9401
9402         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
9403         here.
9404
9405 2000-02-23  Martin Buchholz <martin@xemacs.org>
9406
9407         * XEmacs 21.2.31 is released.
9408
9409 2000-02-22  Ben Wing <ben@xemacs.org>
9410
9411         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
9412
9413 2000-02-22  Andy Piper  <andy@xemacs.org>
9414
9415         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
9416
9417 2000-02-21  Mike Sperber <mike@xemacs.org>
9418
9419         * .dbxrc:
9420         * .gdbinit:
9421         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
9422         variables.
9423
9424 2000-02-21  Mike Sperber <mike@xemacs.org>
9425
9426         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
9427
9428 2000-02-21  Martin Buchholz <martin@xemacs.org>
9429
9430         * XEmacs 21.2.30 is released.
9431
9432 2000-02-20  Martin Buchholz  <martin@xemacs.org>
9433
9434         Performance hacking.
9435         * *.c (syms_of_*):
9436         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
9437         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
9438         * emacs.c (main_1):
9439         * lisp.h (DEFUN):
9440         * console.c (DEFVAR_CONSOLE_LOCAL_1):
9441         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
9442         * symeval.h (DEFVAR_SYMVAL_FWD):
9443         * symbols.c (guts_of_unbound_marker):
9444         Make all c_readonly objects also lisp_readonly and marked for life.
9445         * lrecord.h (struct lrecord_implementation):
9446         Document flags better.
9447         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
9448         * lrecord.h (DECLARE_LRECORD):
9449         * lrecord.h (XSETRECORD):
9450         * lrecord.h (RECORDP):
9451         * lrecord.h (RECORD_TYPEP):
9452         * lrecord.h (RECORD_MARKER): New.
9453         * lrecord.h (error_check_*):
9454         * lrecord.h (CONCHECK_NONRECORD):
9455         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
9456         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
9457         * lrecord.h (set_lheader_implementation):
9458         * lrecord.h (enum lrecord_type): New.
9459         * symeval.h (SYMBOL_VALUE_MAGIC_P):
9460         * alloc.c (disksave_object_finalization_1):
9461         * alloc.c (mark_object):
9462         * alloc.c (lrecord_type_index):
9463         * alloc.c (tick_lcrecord_stats):
9464         * alloc.c (Fgarbage_collect):
9465         * alloc.c (init_alloc_once_early):
9466         * alloc.c (pdump_load):
9467         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
9468         * alloc.c (lrecord_type_index): Delete.
9469         Make lisp object type indexes be constant.
9470           Makes (byte-compile) 5% faster.
9471         Put all marker functions into their own array.
9472           Makes (garbage-collect) 5% faster.
9473         Optimize SYMBOL_VALUE_MAGIC_P.
9474           Makes (byte-compile) 2-3% faster.
9475         * config.h.in (gc_checking_assert): New.
9476         * alloc.c: Use gc_checking_assert().
9477         * .dbxrc: Make compatible with new object type implementation.
9478         * .gdbinit: Make compatible with new object type implementation.
9479         * alloc.c: Delete all symbols defined only for debugging, such as
9480         Lisp_Type_Vector and lrecord_charset.
9481
9482 2000-02-21  Andy Piper  <andy@xemacs.org>
9483
9484         * gui-msw.c (Fmswindows_shell_execute): fix file location
9485         problems.
9486
9487         * buffer.c (Fkill_buffer): remove buffer from alist buffer
9488         unshowing so that set_window_buffer doesn't undo
9489         kill_buffer_hook's hard work.
9490
9491         * glyphs-widget.c (tab_control_query_geometry): don't count the
9492         first item when calculating geometry.
9493
9494         * glyphs.c (map_subwindow): remove redundant code.
9495         (update_frame_subwindows): be more circumspect about when to
9496         update subwindows.
9497
9498         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
9499         when items haven't changed. Update faces if faces have changed as
9500         well as just the widget face.
9501         (x_tab_control_update): Update faces if faces have changed as well
9502         as just the widget face.
9503
9504 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9505
9506         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
9507         registration.
9508         (build_syscolor_string): Use mswindows_color_to_string to try to
9509         get a named color.
9510         (mswindows_device_system_metrics): Reverse the foreground and
9511         background colors so that they match the documentation.
9512
9513         * objects-msw.c: (mswindows_X_color_map): tweak some values so
9514         they match the default Windows palette.
9515         (mswindows_color_to_string): New function.
9516
9517 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9518
9519         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
9520
9521 2000-02-18  Olivier Galibert  <galibert@pobox.com>
9522
9523         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
9524         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
9525
9526         * symbols.c (init_symbols_once_early): Removed obsolete
9527         DATA_SEG_BITS related kludge.
9528         (defvar_magic): Ditto.
9529
9530         * malloc.c: Removed obsolete DATA_SEG_BITS
9531         * ralloc.c: Ditto.
9532         * mem-limits.h: Ditto.
9533
9534         * Makefile.in.in: Removed obsolete HAVE_SHM
9535         * emacs.c: Ditto.
9536
9537 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9538
9539         *  device-msw.c (mswindows_delete_device): Free DDE string
9540         handles.
9541
9542 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9543
9544         * keymap.c (get_keyelt):
9545         * unexnt.c (unexec):
9546         * vm-limit.c (memory_warnings):
9547         * ntheap.c (recreate_heap):
9548         * ntheap.h (UNINIT_PTR):
9549         * select-msw.c (Fmswindows_get_clipboard):
9550         (Fmswindows_set_clipboard):
9551         * objects-msw.h (MSWINDOWS_BAD_HFONT):
9552         * objects-msw.c:
9553         * menubar-msw.c (displayable_menu_item):
9554         * glyphs-msw.c:
9555         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
9556         * sysdep.c (sys_subshell):
9557         * process-nt.c (nt_create_process):
9558         * nt.c (normalize_filename):
9559         (dostounix_filename):
9560         (unixtodos_filename):
9561         * ntproc.c (win32_executable_type):
9562         * ntplay.c (play_sound_data_1):
9563         (play_sound_file):
9564         * editfns.c (get_home_directory):
9565         * event-msw.c (struct winsock_stream):
9566         (mswindows_dde_callback):
9567         * device-msw.c (msprinter_init_device):
9568         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
9569
9570         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
9571         mswindows_clear_toolbar were swapped!
9572
9573         * objects-msw.c:(colormap_t):
9574         (fontmap_t):
9575         * emacs.c (struct standard_args): Fixed const jumble.
9576
9577         * glyphs-widget.c (update_widget): Fixed comparison notation.
9578
9579         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
9580
9581         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
9582         __declspec(noreturn) syntax.
9583
9584 2000-02-19  Martin Buchholz  <martin@xemacs.org>
9585
9586         * eldap.c (Fldap_open):
9587         (Fldap_search_basic):
9588         (Fldap_add):
9589         (Fldap_modify):
9590         Use new coding system conversion macros.
9591
9592 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
9593
9594         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
9595
9596 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
9597
9598         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
9599         (Fldap_add, Fldap_modify, Fldap_delete): New functions
9600
9601         * eldap.c (Qadd, Qreplace): New constant symbols
9602         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
9603         interruptions by XEmacs signals
9604         Remove unnecessary calls to slow_down_interrupts and
9605         speed_up_interrupts
9606         (Fldap_search_basic): Renamed from Fldap_search_internal
9607         Added new optional parameter VERBOSE that triggers the
9608         display of progress messages
9609         Remove unnecessary calls to slow_down_interrupts and
9610         speed_up_interrupts
9611         LDAP result code analysis rewritten
9612         (Fldap_add, Fldap_modify, Fldap_delete): New functions
9613         (syms_of_eldap): Define the new symbols and functions
9614
9615
9616 2000-02-17  Martin Buchholz  <martin@xemacs.org>
9617
9618         * realpath.c: Determine PATH_MAX maximally portably.
9619
9620         * insdel.c (bytecount_to_charcount): Optimize.
9621         The function used to be optimized for entirely ASCII sequences.
9622         Now it is optimized for successive characters from the same
9623         charset.  This also wins big for _mostly_ ASCII sequences.
9624
9625         * fileio.c (Ffile_truename): convert return from realpath() using
9626         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
9627         - Rewrite GCPROing slightly.
9628
9629         * sysdep.c (sys_open): Do filename conversion, like all other
9630         sys_* functions.  Fixes bug:
9631         (let ((file-name-coding-system 'iso-8859-2))
9632            (write-region x y latin2-name))
9633         ==> writes filename using internal encoding.
9634
9635 2000-02-18  Martin Buchholz  <martin@xemacs.org>
9636
9637         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
9638         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
9639         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
9640         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
9641         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
9642         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
9643         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
9644         (CONST_IF_NOT_DEBUG): Delete.
9645         * alloc.c (this_one_is_unmarkable): Delete.
9646         (mark_object): Don't check for this_one_is_unmarkable. Use the
9647         c_readonly flag instead.
9648         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
9649
9650 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9651
9652         * event-msw.c (mswindows_drain_windows_queue):
9653         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
9654         away redundant repaint events.
9655
9656 2000-02-17  Andy Piper  <andy@xemacs.org>
9657
9658         * redisplay.h: declare mark_redisplay_structs.
9659
9660         * redisplay.c (redisplay_window):
9661         (redisplay_frame): don't check subwindows_state_changed.
9662         (mark_redisplay): mark gutters here.
9663
9664         * glyphs.c: (instantiate_image_instantiator): always layout if we
9665         haven't done so already.
9666         (allocate_image_instance): don't mark as dirty.
9667         (update_subwindow): bind inhibit_quit.
9668
9669         * gutter.c (mark_gutters): new function.
9670
9671         * glyphs-x.c (x_update_widget): Always resize to get round a
9672         widget bug.
9673
9674         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
9675         breaking absolutely everything.
9676
9677         * gutter.h: declare mark_gutters.
9678
9679 2000-02-16  Martin Buchholz <martin@xemacs.org>
9680
9681         * XEmacs 21.2.29 is released.
9682
9683 2000-02-15  Olivier Galibert  <galibert@pobox.com>
9684
9685         * fns.c (size_bit_vector): Fix computation of the size.
9686
9687 2000-02-15  Martin Buchholz  <martin@xemacs.org>
9688
9689         * *.[ch]: Change CONST to const globally.
9690         find -name '*.[ch]' | \
9691         xargs global-replace \
9692         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
9693         - Remove vestigial references to CONST_IS_LOSING
9694
9695 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9696
9697         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
9698         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
9699         events instead of dispatching them directly.
9700         (mswindows_handle_paint): New function to do repainting.
9701         (mswindows_wnd_proc):
9702         (emacs_mswindows_handle_magic_event): Call above function.
9703
9704 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9705
9706         * objects-msw.c (mswindows_create_font_variant): Return the new
9707         font handle.
9708         (initialize_font_instance): Get font metrics from the underlined
9709         variant of the font to cope with the case where the underlined
9710         font has a bigger descent.
9711
9712 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
9713
9714         * gui.c (gui_item_accelerator): Return the first underlined
9715         character in item name.
9716
9717 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9718
9719         * lisp.h: Added Qprinter.
9720
9721         * general.c (syms_of_general): Initialized it.
9722
9723         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
9724         (get_frame_dc):
9725         (get_frame_compdc): Made inline.
9726
9727         * console.h (struct console_methods): Added eject_page method.
9728
9729         * frame.h: Added FRAME_DISPLAY_P and friends.
9730         Aligned backslahes in many macros in more readable fashion.
9731         Added page_number to struct frame, and an accessor macro
9732         for it.
9733
9734         * defice.h: Added DEVICE_DISPLAY_P and friends.
9735
9736         * device.c (Fdevice_printer_p): Used these.
9737
9738         * frame.c (allocate_frame_core): Initialize page number.
9739         (Fprint_job_page_number):
9740         (Fprint_job_eject_page): Implemented.
9741
9742         * frame-msw.c (msprinter_eject_page): Added method.
9743         (msprinter_start_page): Added.
9744
9745         * window.c (Fwindow_truncated_p): Fixed docstring.
9746         (Fwindow_last_line_visible_height): Implemented.
9747
9748 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9749
9750         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
9751
9752 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
9753
9754         * syntax.c (scan_words): Always advance at least one character.
9755
9756 2000-02-13  Andy Piper  <andy@xemacs.org>
9757
9758         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
9759         to make sure the glyph is in the cachels.
9760
9761         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
9762         global image instance flag.
9763         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
9764         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
9765
9766         * glyphs.c (allocate_image_instance): set dirty bits correctly.
9767         (Fset_image_instance_property): mark layout as changed.
9768         (invalidate_glyph_geometry_maybe): mark layout as changed.
9769         (glyph_width): use new NEEDS_LAYOUT macro.
9770         (glyph_ascent): ditto.
9771         (glyph_descent): ditto.
9772         (glyph_height): ditto.
9773         (image_instance_layout): mark layout as clean after laying out.
9774         (update_subwindow): don't mark layout as clean here.
9775
9776         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
9777         should no longer be needed.
9778
9779         * glyphs-x.c (x_update_widget): sanitize asserts.
9780         (x_finalize_image_instance): sanitize assignment to widgets.
9781
9782         * glyphs-widget.c (widget_instantiate): don't need to clear the
9783         layout flag here.
9784
9785 2000-02-13  Martin Buchholz  <martin@xemacs.org>
9786
9787         * sysdep.c (getcwd): Use standard prototype.
9788         * sysdep.h (getcwd): Use standard prototype.
9789
9790         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
9791         (sequence, start, end).
9792         Remove redundant type checking.
9793         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
9794         view of `caller-protects') to avoid a crash where the real fix was
9795         found elsewhere.
9796
9797 2000-02-12  Martin Buchholz  <martin@xemacs.org>
9798
9799         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
9800
9801         * s/sol2.h: Remove feature macro initialization.
9802
9803         * alloc.c (alloc_lcrecord): Add more type checking assertions.
9804         (vector_hash): New.  Code from internal_hash.
9805         * lrecord.h:
9806         Fix up allocation subsystem comments.
9807
9808         * config.h.in: Add __EXTENSIONS__ for Solaris.
9809
9810         * systime.h (EMACS_GETTIMEOFDAY): New.
9811         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
9812         Remove Solaris-specific code.
9813         Use void* for the (ignored) second arg for gettimeofday().
9814
9815         * elhash.c (hash_table_hash): Implement it, finally.
9816         * elhash.c:  Use hashcode_t.
9817
9818         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
9819         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
9820
9821         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
9822         * fns.c (size_bit_vector):
9823         * alloc.c (size_vector):
9824         (make_vector_internal):
9825         (make_bit_vector_internal):
9826         (sweep_bit_vectors_1):
9827         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
9828
9829 2000-02-10  Martin Buchholz  <martin@xemacs.org>
9830
9831         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
9832         Include strings.h to avoid warnings for bzero and strcasecmp.
9833
9834 2000-02-10  Olivier Galibert  <galibert@pobox.com>
9835
9836         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
9837         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
9838
9839         * fns.c (size_bit_vector): New.  Declare bit vectors as a
9840         sequence.
9841
9842 2000-02-10  Olivier Galibert  <galibert@pobox.com>
9843
9844         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
9845         use a value field instead.
9846         (symbol_value_forward_forward): Use value field.
9847         (DEFVAR_SYMVAL_FWD): Use value field.
9848         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
9849         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
9850         (DEFVAR_CONST_INT): Ditto.
9851         (DEFVAR_BOOL): Ditto.
9852         (DEFVAR_CONST_BOOL): Ditto.
9853         (DEFVAR_INT_MAGIC): Ditto.
9854         (DEFVAR_BOOL_MAGIC): Ditto.
9855
9856         * symbols.c (guts_of_unbound_marker): Use value field.
9857         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
9858         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
9859
9860         * lisp.h: Declare dumpopaque and noninteractive1.
9861
9862         * alloc.c (dumpopaque): Added.
9863         (pdump_dump_opaquevec): Added.
9864         (pdump): Call pdump_dump_opaquevec to dump opaque data.
9865         (pdump_load): Reload opaque data.  Sync noninteractive1 with
9866         noninteractive.
9867
9868 2000-02-10  Andy Piper  <andy@xemacs.org>
9869
9870         * glyphs.c (image_instance_layout): if the size changes, mark it
9871         as such.
9872
9873         * redisplay-output.c (redisplay_output_layout): Update the
9874         subwindow here.
9875         (redisplay_output_subwindow): ditto.
9876
9877         * glyphs.c (update_subwindow): make sure we reset flags for
9878         layouts as well as everything else.
9879
9880         * glyphs-widget.c (layout_layout): don't need to set the instances
9881         dimensions here.
9882
9883 2000-02-09  Martin Buchholz  <martin@xemacs.org>
9884
9885         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
9886         not HAVE_DLOPEN, which is a lower-level thing.
9887
9888         * .cvsignore: Ignore gmon.out
9889
9890 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
9891
9892         * .cvsignore: Ignore portable dumper xemacs.dmp file
9893
9894 2000-02-09  Andy Piper  <andy@xemacs.org>
9895
9896         * redisplay-output.c (redisplay_output_layout): be more clever
9897         about when we output based on the changed flags.
9898
9899         * glyphs.h (struct image_instantiator_methods): add update_method.
9900         (struct Lisp_Image_Instance): add changed flags. Declare new
9901         macros for manipulating them.
9902
9903         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
9904         (image_instance_parent_glyph): find an image_instance's parent
9905         glyph or image_instance.
9906         (image_instance_layout): mark the size as changed.
9907         (set_image_instance_dirty_p): new function. mark an image
9908         instance, plus all of its parents, as dirty.
9909         (Fset_image_instance_property): use it.
9910         (Fglyph_animated_timeout_handler): use it.
9911         (update_subwindow): call update_widget and device methods for
9912         update_subwindow. Mark all changed flags as clean.
9913         (Fresize_subwindow): mark size as changed.
9914
9915         * glyphs-x.c (x_finalize_image_instance): try and detect gc
9916         failures.
9917         (x_update_subwindow): only resize subwindows here.
9918         (x_update_widget): new function. Update all changed properties of
9919         a widget.
9920         (x_resize_subwindow): deleted.
9921         (x_widget_set_property): deleted.
9922         (x_progress_gauge_set_property): deleted.
9923         (x_progress_gauge_update): new function. Implement recorded
9924         changes.
9925         (x_tab_control_update): ditto.
9926         (x_tab_control_set_property): deleted.
9927         (console_type_create_glyphs_x): declare new functions.
9928         (image_instantiator_format_create_glyphs_x): ditto.
9929
9930         * glyphs-widget.c (widget_set_property): mark text changed.
9931         (update_widget): new function. Update properties of a widget.
9932         (widget_instantiate): for layouts make sure we set their
9933         children's parent correctly.
9934         (tab_control_set_property): new function. Record changes that will
9935         take place under redisplay's control.
9936         (progress_gauge_set_property): ditto.
9937         (image_instantiator_progress_guage): declare new functions.
9938         (image_instantiator_tab_control): ditto.
9939
9940         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
9941         now.
9942         (mswindows_update_widget): new function. Update all properties on
9943         a widget that have changed.
9944         (mswindows_button_update): new function. Update a button's set
9945         state.
9946         (mswindows_tab_control_update): new function. Update the items in
9947         a tab.
9948         (mswindows_tab_control_set_property): deleted.
9949         (mswindows_progress_gauge_update): new function. Update the
9950         progress gauge's progress.
9951         (mswindows_widget_set_property): deleted. This is all done
9952         asynchronously now.
9953         (mswindows_progress_gauge_set_property): ditto.
9954         (console_type_create_glyphs_mswindows): declare new methods.
9955         (image_instantiator_format_create_glyphs_mswindows): ditto.
9956
9957         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
9958         (msprinter_set_frame_properties): ditto.
9959
9960         * console.h (struct console_methods): Add update_widget_method.
9961
9962 2000-02-09  Andy Piper  <andy@xemacs.org>
9963
9964         * gui-msw.c (Fmswindows_shell_execute): Make
9965         mswindows-shell-execute industrial strength.
9966
9967 2000-02-08  Martin Buchholz  <martin@xemacs.org>
9968
9969         * lrecord.h: Make macro argument `props' match member function `plist'.
9970         * fns.c (Fget):
9971         * fns.c (Fput):
9972         * fns.c (Fremprop):
9973         * fns.c (Fobject_plist):
9974         * alloc.c:
9975         * symbols.c:
9976         Object property list frobbing cleanup.
9977         - Allow any lisp object (compared with `eq'), not just symbols, as
9978           keys in object plists.
9979         - Move symbol plist frobbing into symbols.c, where it belongs.
9980         - Move string plist frobbing into alloc.c, where it belongs.
9981         - Everything's an lrecord now, so no need to test for symbolp, etc.
9982         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
9983
9984         * extents.c: Reorder code to remove declarations.
9985
9986         * frame.h (store_in_alist): Remove useless declaration.
9987
9988 2000-02-07  Martin Buchholz  <martin@xemacs.org>
9989
9990         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
9991         * config.h.in: Add HAVE_XCONVERTCASE.
9992
9993 2000-02-07  Andy Piper  <andy@xemacs.org>
9994
9995         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
9996         it breaks many things.
9997
9998 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9999
10000         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10001         actually can start a common comment type.
10002         * src/syntax.h (SYNTAX_END_P): ditto for end.
10003
10004 2000-02-07  Martin Buchholz <martin@xemacs.org>
10005
10006         * XEmacs 21.2.28 is released.
10007
10008 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10009
10010         * event-Xt.c (x_keysym_to_character): New.
10011         (maybe_define_x_key_as_self_inserting_character): New.
10012         (x_has_keysym): New.
10013         Auto-define all keys on the keyboard as self-insert-key.
10014
10015 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10016
10017         * menubar.c (vars_of_menubar): A small code simplification.
10018
10019         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10020
10021         * ExternalShell.c:
10022         * ExternalClient.c:
10023         * EmacsShell-sub.c:
10024         * EmacsManager.c:
10025         * EmacsFrame.c:
10026         Use consistent style for specifying X resources.
10027
10028         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10029         This makes (dontusethis-set-symbol-value-handler) actually usable.
10030
10031         * lrecord.h (lrecord_decription_type):
10032         * alloc.c (pdump_register_sub):
10033         (pdump_dump_data):
10034         (pdump_reloc_one):
10035         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10036         Comply with XEmacs coding style.
10037         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10038         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10039
10040         * keymap.c (Faccessible_keymaps):
10041         Make (accessible-keymaps map "\C-h") do the Right Thing.
10042         Make (accessible-keymaps map []) do the Right Thing.
10043         Make (accessible-keymaps map "") do the Right Thing.
10044         (check_keymap_definition_loop): New function.
10045         (keymap_store_internal): Keep luser from shooting self in foot,
10046           via (define-key ctl-x-4-map "p" global-map).
10047         Remove fullness slot from struct Lisp_Keymap, since hash tables
10048         are now reliable.
10049         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10050
10051 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10052
10053         * redisplay.c (init_redisplay): Fix small memory leak.
10054         * elhash.h:
10055         * elhash.c (pdump_reorganize_hash_table):
10056         Rename from reorganize_hash_table. Change prototype.
10057         Reuse the original memory for hentries.  Save 100k.
10058         * alloc.c (PDUMP_READ): new macro.
10059         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10060         * alloc.c: No need to #ifndef before #undef.
10061
10062         * print.c: Allow debug_print() to print readably by modifying
10063         debug_print_readably.  Use consistent variable names.
10064
10065         * .dbxrc: Try to get things to work even if stopped in a function
10066         without source available by explicitly specifying source files.
10067 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10068
10069         * unexnt.c (_start): Removed bogus code which caused loading heap
10070         from differrent executable file.
10071         Removed bogus assignment to _fmode, which caused inconsistencies.
10072
10073 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10074
10075         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10076         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10077         Do not preliminary `#define signal sigset'.
10078
10079         * systime.h: Do not prototype environ on windows nt and cygwin,
10080         this conflicts with system header.
10081
10082         * syssignal.h: Use correct define for WINDOWSNT
10083
10084         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10085         with system header.
10086
10087         * sysdep.c (near start of file): Fixed commentary and rearranged
10088         ifdefs in readable order.
10089         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10090         (start_of_text):
10091         (end_of_text):
10092         (end_of_data): Do not compile in if using PDUMP.
10093
10094         * symsinit.h: Prototyped vars_of_nt().
10095
10096         * ntproc.c (windows9x_p): Added, instead of os_subtype.
10097         (find_child_console): Use it.
10098         (sys_kill): Use it.
10099
10100         * ntheap.h: Do not extern os_subtype.
10101
10102         * ntheap.c (cache_system_info): Do not cache unneeded:
10103         nt_major_version, nt_minor_version and os_subtype.
10104         (recreate_heap): Do not compile in when PDUMPing.
10105
10106         * nt.c (geteuid and friends): Use the new varibale
10107         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10108         (init_user_info): Removed the above mentioned hackery.
10109         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10110         stat has been fixed in the C runtime.
10111         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10112
10113         * file-coding.c (struct file_coding_dump): Do not define
10114         ucs_to_mule_table in the struct if not MULE.
10115         (struct struct lrecord_description fcd_description_1): Do not dump
10116         the above.
10117
10118         * emacs.c (main_1): Call vars_of_nt().
10119         (right before Fdump_emacs_data): Don't need lastfile if using both
10120         portabe dumper and system malloc.
10121
10122         * alloc.c (Fmemory_limit): Conditionalized out.
10123         (pdump): Use OPEN_BINARY for the portable dump file.
10124         (pdump_load): Ditto.
10125
10126 2000-02-02  Mike Alexander  <mta@arbortext.com>
10127
10128         * nt.c (convert_time): Set tm_isdst before calling mktime and
10129         avoid calling it at all if the compiler supports 64 bit integers.
10130         Also initialize utc_base_ft before using it.
10131
10132 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10133
10134         * frame.c (change_frame_size_1): Take f->internal_border_width
10135         into consideration when calculating the width of the frame.
10136
10137 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10138
10139         * window.c (frame_min_height):
10140         (frame_size_valid_p):
10141         (frame_pixsize_valid_p): Added.
10142         (check_frame_size): Generalized.
10143
10144         * window.h: Prototyped the above.
10145
10146         * lisp.h:
10147         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
10148         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
10149         Deleted Vwin32_* and Vbinary_process_* unused variables.
10150
10151         * device-msw.c (msprinter_init_device): Do not get printer font
10152         list; Added DEVMODE functions.
10153
10154         * frame-msw.c: Added lots of printer code.
10155
10156         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
10157         general.c.
10158
10159         * console-msw.h: Added more msprinter device private slots.
10160
10161 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10162
10163         * event-msw.c (key_needs_default_processing_p): Added.
10164         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
10165
10166 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10167
10168         * glyphs.c (image_instance_layout): Mark image instance as clean
10169         after layout.
10170         (glyph_dirty_p): Removed redundant function.
10171         (invalidate_glyph_geometry_maybe): Added.
10172         (update_glyph_cachel_data): Call it.
10173
10174         * glyphs.h: Prototyped it.
10175
10176         * redisplay.c (add_glyph_rune): Call it.
10177         (redisplay_window): Reset glyphs cachels when frame faces have
10178         changed, thus forcing recomputation of built-in border glyphs.
10179
10180 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10181
10182         * Makefile.in.in: Make portable dumper and purify play well together.
10183         Add imperfect, but better than nothing, support for pdump.
10184         Remove xemacs.dmp when temacs is re-generated.
10185         Don't ignore errors when dumping xemacs.
10186
10187         * symbols.c (maybe_call_magic_handler): Remove one magic number.
10188
10189 2000-01-28  Andy Piper  <andy@xemacs.org>
10190
10191         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
10192         (setup_normal_frame): ditto.
10193         (setup_frame_without_minibuffer): ditto.
10194         (setup_minibuffer_frame): ditto.
10195         (delete_frame_internal): ditto.
10196         (Fmake_frame_invisible): ditto.
10197         (Ficonify_frame): ditto.
10198
10199         * window.h: change Fset_window_buffer signature.
10200
10201         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
10202         (Fset_window_buffer): allow recording of buffer if the window is
10203         the selected window.
10204         (window_loop): Use new Fset_window signature.
10205
10206 2000-01-23  Daniel Pittman  <daniel@danann.net>
10207
10208         * config.h.in: Added template for `HAVE_ATHENA_3D'
10209
10210 2000-01-29  Andy Piper  <andy@xemacs.org>
10211
10212         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
10213
10214         * gutter.c (output_gutter): Don't output if the window isn't live.
10215
10216 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10217
10218         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
10219         of 01/12/00: Moved SetFocus back here where it belongs.
10220
10221 2000-01-23  Andy Piper  <andy@xemacs.org>
10222
10223         * s/cygwin32.h: declare printer things.
10224
10225 2000-01-26  Andy Piper  <andy@xemacs.org>
10226
10227         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
10228         Alexander.
10229
10230 2000-01-24  Andy Piper  <andy@xemacs.org>
10231
10232         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
10233         (mswindows_button_instantiate): Make sure glyph is a pixmap.
10234
10235         * glyphs-widget.c (widget_instantiate): Avoid shadows.
10236
10237         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
10238
10239         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
10240
10241         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
10242         (mswindows_output_display_block): Avoid local shadows.
10243
10244         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
10245         (mswindows_enqueue_mouse_button_event): ditto.
10246         (mswindows_handle_gui_wm_command): remove declaration.
10247
10248         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
10249         warnings.
10250
10251         * console-msw.h: Avoid shadows.
10252         (mswindows_get_toolbar_button_text):
10253         (emacs_mswindows_create_stream_pair):
10254         (emacs_mswindows_delete_stream_pair):
10255         (mswindows_handle_toolbar_wm_command): declare.
10256
10257         * device-msw.c (build_syscolor_string): Avoid shadows.
10258
10259 2000-01-23  Andy Piper  <andy@xemacs.org>
10260
10261         * glyphs-widget.c (widget_instantiate): reverse the items for
10262         layouts so that children are in the expected order.
10263
10264 2000-01-28  Martin Buchholz  <martin@xemacs.org>
10265
10266         * ralloc.c: safe_bcopy ==> memmove
10267         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
10268         * s/msdos.h: Remove BCOPY macros.
10269         * insdel.c (gap_right): Remove BCOPY conditional code.
10270         * insdel.c (gap_left): Remove BCOPY conditional code.
10271         XEmacs demands a working ANSI C compiler - hence memmove.
10272
10273         * regex.c (regex_compile): Remove accidental use of trigraphs.
10274
10275 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10276
10277         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
10278         event timestamp.
10279
10280 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10281
10282         * event-msw.c (mswindows_drain_windows_queue): Added the
10283         parameter.
10284         (mswindows_need_event): Commented the call to
10285         mswindows_drain_windows_queue().
10286         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
10287         only.
10288
10289         * console-msw.h: Moved a few function prototypes here from
10290         event-msw.c.
10291
10292         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
10293         parameter from unsigned short to unsigned long.
10294         (Fmswindows_shell_execute): Added return value.
10295
10296 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10297
10298         * sysdep.c (init_system_name):
10299           process-unix.c (unix_canonicalized_host_name):
10300         Don't call freeaddrinfo() if getaddrinfo() fails.
10301
10302         * process-unix.c (unix_open_unix_network_stream):
10303         Moved the code to get a port # into address loop.
10304
10305 2000-01-27  Martin Buchholz  <martin@xemacs.org>
10306
10307         * buffer.c (reinit_vars_of_buffer):
10308         The right place to initialize conversion_in_dynarr and
10309         conversion_out_dynarr.
10310
10311         * alloc.c (pdump): Use the real open() till sys_open() is functional.
10312
10313         * process-unix.c (unix_canonicalize_host_name): Muleize.
10314         (unix_open_network_stream): Muleize.
10315
10316         * buffer.h: Fix up prototypes for ralloc.c functions.
10317
10318 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
10319         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
10320         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
10321                 instead of gethostbyname()
10322         * process-unix.c: In unix_canonicalize_host_name() and
10323                 unix_open_network_stream(), add code to use getaddrinfo()
10324                 instead of gethostbyname().
10325
10326 2000-01-27  Daniel Pittman <daniel@danann.net>
10327
10328         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
10329         libs when built with flat Athena.
10330
10331 2000-01-27  Martin Buchholz  <martin@xemacs.org>
10332
10333         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
10334         Use coding standards for function prototypes.
10335
10336 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10337
10338         * dialog-msw.c (push_lisp_string_as_unicode):
10339         * doc.c (unparesseuxify_doc_string):
10340         * dired.c (Fuser_name_completion_1):
10341         * dired.c (Fuser_name_all_completions):
10342         * dired.c (free_user_cache):
10343         * dired.c (user_name_completion):
10344         * console-x.c (get_display_arg_connection):
10345         * minibuf.c (clear_echo_area_internal):
10346         * minibuf.c (echo_area_append):
10347         * eldap.c (Fldap_open):
10348         * eldap.c (Fldap_search_internal):
10349         * frame-x.c (x_set_frame_text_value):
10350         * frame-x.c (x_set_frame_properties):
10351         * frame-x.c (x_create_widgets):
10352         * redisplay-tty.c (term_get_fkeys_1):
10353         * objects-x.c (x_parse_nearest_color):
10354         * objects-x.c (x_valid_color_name_p):
10355         * objects-x.c (x_initialize_font_instance):
10356         * objects-x.c (x_list_fonts):
10357         * objects-x.c (x_find_charset_font):
10358         * tooltalk.c (Fadd_tooltalk_message_arg):
10359         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10360         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10361         * process-unix.c (unix_create_process):
10362         * ntproc.c (sys_spawnve):
10363         * sound.c (Fplay_sound_file):
10364         * sound.c (Fplay_sound):
10365         * buffer.c (init_initial_directory):
10366         * buffer.c (init_buffer):
10367         * editfns.c (init_editfns):
10368         * editfns.c (Ftemp_directory):
10369         * editfns.c (Fuser_full_name):
10370         * editfns.c (uncache_home_directory):
10371         * editfns.c (get_home_directory):
10372         * editfns.c (Fuser_home_directory):
10373         * editfns.c (Fformat_time_string):
10374         * editfns.c (Fcurrent_time_string):
10375         * gui-x.c (button_item_to_widget_value):
10376         * database.c (Fopen_database):
10377         * event-Xt.c (x_to_emacs_keysym):
10378         * event-Xt.c (x_event_to_emacs_event):
10379         * event-Xt.c (describe_event_window):
10380         * event-msw.c (mswindows_wnd_proc):
10381         * glyphs-eimage.c (jpeg_instantiate):
10382         * glyphs-eimage.c (gif_instantiate):
10383         * glyphs-eimage.c (png_instantiate):
10384         * glyphs-eimage.c (tiff_instantiate):
10385         * glyphs-x.c (xbm_instantiate_1):
10386         * glyphs-x.c (x_xbm_instantiate):
10387         * glyphs-x.c (x_xface_instantiate):
10388         * glyphs-x.c (autodetect_instantiate):
10389         * glyphs-x.c (cursor_font_instantiate):
10390         * glyphs-x.c (x_widget_instantiate):
10391         * glyphs-x.c (x_widget_set_property):
10392         * glyphs-x.c (x_widget_property):
10393         * glyphs-x.c (BUILD_GLYPH_INST):
10394         * print.c (write_string_to_stdio_stream):
10395         * print.c (output_string):
10396         * print.c (Falternate_debugging_output):
10397         * print.c (Fexternal_debugging_output):
10398         * glyphs-msw.c (extract_xpm_color_names):
10399         * glyphs-msw.c (mswindows_xpm_instantiate):
10400         * glyphs-msw.c (bmp_instantiate):
10401         * glyphs-msw.c (resource_name_to_resource):
10402         * glyphs-msw.c (mswindows_resource_instantiate):
10403         * glyphs-msw.c (xbm_instantiate_1):
10404         * glyphs-msw.c (mswindows_xbm_instantiate):
10405         * glyphs-msw.c (mswindows_xface_instantiate):
10406         * glyphs-msw.c (mswindows_widget_instantiate):
10407         * glyphs-msw.c (add_tree_item):
10408         * glyphs-msw.c (add_tab_item):
10409         * glyphs-msw.c (mswindows_combo_box_instantiate):
10410         * glyphs-msw.c (mswindows_widget_property):
10411         * glyphs-msw.c (mswindows_combo_box_property):
10412         * glyphs-msw.c (mswindows_widget_set_property):
10413         * console.c (stuff_buffered_input):
10414         * objects-msw.c (mswindows_initialize_color_instance):
10415         * objects-msw.c (mswindows_valid_color_name_p):
10416         * objects-msw.c (mswindows_list_fonts):
10417         * objects-msw.c (mswindows_font_instance_truename):
10418         * bytecode.c (optimize_compiled_function):
10419         * select-x.c (symbol_to_x_atom):
10420         * select-x.c (x_atom_to_symbol):
10421         * select-x.c (hack_motif_clipboard_selection):
10422         * select-x.c (selection_data_to_lisp_data):
10423         * select-x.c (lisp_data_to_selection_data):
10424         * select-x.c (Fx_get_cutbuffer_internal):
10425         * select-x.c (Fx_store_cutbuffer_internal):
10426         * buffer.h (TO_EXTERNAL_FORMAT): New function.
10427         * buffer.h (TO_INTERNAL_FORMAT): New function.
10428         * emacs.c (make_arg_list_1):
10429         * emacs.c (make_argc_argv):
10430         * emacs.c (main_1):
10431         * emacs.c (Fdump_emacs):
10432         * emacs.c (split_string_by_emchar_1):
10433         * file-coding.h:
10434         * lisp.h:
10435         * lstream.h:
10436         * symsinit.h:
10437         * device-x.c (x_init_device):
10438         * device-x.c (Fx_valid_keysym_name_p):
10439         * device-x.c (Fx_get_font_path):
10440         * device-x.c (Fx_set_font_path):
10441         * glyphs.c (bitmap_to_lisp_data):
10442         * glyphs.c (pixmap_to_lisp_data):
10443         * alloc.c (make_ext_string): Use coding system arguments.  Update
10444         all callers.
10445         * alloc.c (build_string):
10446         * callproc.c (child_setup):
10447         * callproc.c (init_callproc):
10448         * fileio.c (lisp_strerror):
10449         * fileio.c (directory_file_name):
10450         * fileio.c (Fexpand_file_name):
10451         * fileio.c (Ffile_truename):
10452         * fileio.c (Fsysnetunam):
10453         * fileio.c (Fdo_auto_save):
10454         * sysdep.c (sys_readdir):
10455         * tests.c: New file.  Allow adding C tests.
10456         Replace GET_* macros with a more comprehensible and flexible
10457         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
10458         Modify all calls.
10459         Any coding system can be used to do format conversion.
10460         Eliminate enum external_data_format.
10461         Eliminate convert_to_external_format.
10462         Eliminate convert_to_internal_format.
10463         Make sure file-name, keyboard, terminal, and ctext are always
10464         defined as coding systems or aliases.  Make
10465         file-name-coding-system, terminal-coding-system, and
10466         keyboard-coding-system magical variables that are equivalent to
10467         defining the corresponding coding system aliases.
10468
10469         * file-coding.c (Fcoding_system_canonical_name_p): New function.
10470         * file-coding.c (Fcoding_system_alias_p): New function.
10471         * file-coding.c (Fcoding_system_aliasee): New function.
10472         * file-coding.c (append_suffix_to_symbol): New function.
10473         * file-coding.c (dangling_coding_system_alias_p): New function.
10474         * file-coding.c (Ffind_coding_system):
10475         * file-coding.c (Fcopy_coding_system):
10476         * file-coding.c (encode_coding_no_conversion):
10477         * file-coding.c (syms_of_file_coding):
10478         * file-coding.c (vars_of_file_coding):
10479         Rewrite coding system alias code.
10480         Allow nested aliases, like symbolic links.
10481         Allow redefinition of coding system aliases.
10482         Prevent existence of dangling coding system aliases.
10483
10484         * dired.c (Fuser_name_completion_1):
10485         * dired.c (Fuser_name_all_completions):
10486         A crash would happen if user did QUIT in the middle of building
10487         user_name_cache.  Remove redundant code in mainline and unwind_protect.
10488
10489         * lisp.h:
10490         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
10491
10492         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
10493         an unsigned char *.  Update all callers.
10494
10495 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10496
10497         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
10498
10499 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10500
10501         * elhash.c (hentry_description): Use more portable definition.
10502         (resize_hash_table): Initialize new hentries using
10503         xnew_array_and_zero, thereby simplifying the code.
10504
10505         * mule-charset.c (make_charset): Make sure entire object is
10506         initialized, to avoid Purify warnings.
10507
10508         * alloc.c (resize_string): Fix unlikely crash with big strings.
10509
10510 2000-01-24  Martin Buchholz  <martin@xemacs.org>
10511
10512         * realpath.c (xrealpath):
10513         Don't call getwd().
10514
10515 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10516
10517         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
10518
10519 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
10520
10521         * unexelfsgi.c (unexec): Change the way we decide which segment
10522         should be extended.
10523
10524         Assumption that .bss section should be outside the PT_LOADable
10525         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
10526         it's present) is inside the 'data' segment. This would fail the
10527         test which was used to find a segment to grow and cover new
10528         heap. Instead of this assumption, I created another one - on IRIX
10529         the segment to grow should start below .bss and it's address
10530         should extent above the end of .bss. Once this segment is
10531         identified, it's grown to accommodate the new heap and new
10532         zero-length .bss section is added at the end of .data2.
10533
10534 2000-01-25  Martin Buchholz  <martin@xemacs.org>
10535
10536         * eval.c (Feval): Wrong number of arguments should use original
10537         function, not the indirect_function version of it.
10538
10539 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10540
10541         * glyphs-x.c (x_button_instantiate): Don't add image if
10542         it is not a pixmap.
10543         (x_locate_pixmap_file): Call Fexpand_file_name when file name
10544         is relative.
10545
10546 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10547
10548         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
10549         declaration.
10550         (DEFVAR_INT_MAGIC): Ditto.
10551         (DEFVAR_BOOL_MAGIC): Ditto.
10552         * glyphs.h: Reindent backslash.
10553
10554 2000-01-24  Martin Buchholz  <martin@xemacs.org>
10555
10556         * glyphs-widget.c (layout_query_geometry):
10557         (layout_layout): Use correct types for gheight, gwidth.
10558
10559 2000-01-24  Martin Buchholz  <martin@xemacs.org>
10560
10561         * EmacsManager.c (QueryGeometry): Purified.
10562
10563 2000-01-23  Martin Buchholz  <martin@xemacs.org>
10564
10565         * alloc.c (make_float): Make sure entire object is initialized, to
10566         avoid Purify warnings.
10567         (pdump_register_sub): Remove useless assignment.
10568         (pdump): Use xmalloc, not malloc.
10569         (pdump_load): Use xmalloc, not malloc.
10570
10571 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10572
10573         * callproc.c:
10574         * dired-msw.c:
10575         * fileio.c:
10576         * process-nt.c:
10577         * redisplay-msw.c:
10578         * sysdep.c: Removed redundant #include <windows.h>
10579
10580 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10581
10582         * frame.c (delete_frame_internal): Do not delete device when its
10583         implementation so declares.
10584         (delete_frame_internal): Set device selected frame to nil when
10585         last frame goes away.
10586
10587         * device-msw.c (msprinter_device_system_metrics): Implemented.
10588         (mswindows_device_system_metrics): Added 'device-dpi property.
10589
10590         * device.c: (Fdevice_printer_p): Added.
10591         Added 'offset-workspace device metric.
10592
10593         * console.h (device_metrics): Declared DM_offset_workspace.
10594
10595 2000-01-23  Martin Buchholz  <martin@xemacs.org>
10596
10597         * fileio.c (Ffile_truename): Remove pointless and confusing
10598         initialization of elen.
10599
10600         * glyphs-widget.c: Compiler warning fixes.
10601
10602 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10603
10604         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
10605         instead of a Lisp_Object as argument to make it consistent with
10606         the other LIVE_P macros.
10607         (CHECK_LIVE_PROCESS): New macro.
10608
10609         * process.c: Declare Qprocess_live_p.
10610         (Fprocess_live_p): New function.
10611         (create_process): Use PROCESS_LIVE_P.
10612         (read_process_output): Ditto.
10613         (set_process_filter): Ditto.
10614         (Fdelete_process): Ditto.
10615         (kill_buffer_processes): Ditto
10616         (process_send_signal): Use CHECK_LIVE_PROCESS.
10617         (Fprocess_input_coding_system): Check whether process is still
10618         alive (fix PR#1061).
10619         (Fprocess_output_coding_system): Ditto.
10620         (Fprocess_coding_system): Ditto.
10621         (Fset_process_input_coding_system): Ditto.
10622         (Fset_process_output_coding_system): Ditto.
10623
10624 2000-01-23  Andy Piper  <andy@xemacs.org>
10625
10626         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
10627         layout and widget.
10628
10629         * glyphs.c (mark_image_instance): take into account changed
10630         image_instance format.
10631         (image_instance_equal): ditto.
10632         (image_instance_hash): ditto.
10633
10634         * glyphs-widget.c (widget_instantiate): Incorporate layout
10635         instantiation here. Delay layout of the layout until later.
10636         (layout_instantiate): deleted.
10637         (layout_query_geometry): new function. get the geometry of a
10638         layout.
10639         (layout_layout): layout a layout dynamically.
10640         (image_instantiator_widget): New function - splitting up
10641         image_instantiator_format_create_glyphs_widget for netwinder
10642         compilation.
10643         (image_instantiator_buttons):
10644         (image_instantiator_edit_fields):
10645         (image_instantiator_combo_box):
10646         (image_instantiator_scrollbar):
10647         (image_instantiator_progress_guage):
10648         (image_instantiator_tree_view):
10649         (image_instantiator_tab_control):
10650         (image_instantiator_labels):
10651         (image_instantiator_layout): ditto.
10652         (image_instantiator_format_create_glyphs_widget): Call preceding
10653         functions.
10654
10655 2000-01-22  Martin Buchholz  <martin@xemacs.org>
10656
10657         * process.c (Fset_process_coding_system):
10658         * device-x.c (Fx_keysym_hash_table):
10659         Docstring fixes.
10660
10661         * lstream.c (Lstream_write): Return documented value, not 0.
10662
10663         * fileio.c (directory_file_name):
10664         (Fsubstitute_in_file_name):
10665         (Fsubstitute_insert_file_contents_internal):
10666         (Fwrite_region_internal):
10667         * emacs.c:
10668         * sysdep.c:
10669         * getloadavg.c:
10670         * systty.h:
10671         Remove vestigial APOLLO-conditional code.
10672
10673 2000-01-21  Martin Buchholz  <martin@xemacs.org>
10674
10675         * getpagesize.h: Add guard macros.
10676         * libsst.h: Add guard macros.
10677         * libst.h: Add guard macros.
10678         * line-number.h: Add guard macros.
10679         * ndir.h: Add guard macros.
10680         * sysfloat.h: Add guard macros.
10681         * sysfile.h: Add guard macros.
10682         * sysproc.h: Add guard macros.
10683         * syswait.h: Add guard macros.
10684         * xintrinsic.h: Add guard macros.
10685         * xintrinsicp.h: Add guard macros.
10686         * xmmanager.h: Add guard macros.
10687         * xmmanagerp.h: Add guard macros.
10688         * xmprimitive.h: Add guard macros.
10689         * xmu.h: Add guard macros.
10690         * gpmevent.h: Add copyright statement. Add guard macros.
10691         * miscplay.h: Add guard macros.
10692         * *.h: Use consistent C-standards-approved guard macro names.
10693
10694         * opaque.c (make_opaque): Switch parameter order.
10695         * opaque.h (make_opaque): Switch parameter order.
10696         Update all callers.
10697         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
10698
10699         * config.h.in (type_checking_assert): Added.
10700         (bufpos_checking_assert): Added.
10701
10702 2000-01-21  Martin Buchholz  <martin@xemacs.org>
10703
10704         * alloc.c: Harmless pdump changes.
10705         - Use countof().
10706         - spell alignment correctly.
10707         * sysdep.c: Use countof()
10708
10709 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10710
10711         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
10712         initially_selected_for_input() console method, default to 0.
10713         (semi_canonicalize_console_connection): Try to delegate to
10714         canonicalize_console_connection if no such console method.
10715         (canonicalize_console_connection): Vice versa.
10716         (print_console): Do not print nil connection.
10717
10718         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
10719         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
10720         (XDEVIMPF_FRAMELESS_OK): Added.
10721         (CONSOLE_INHERITS_METHOD): Added.
10722
10723         * console-msw.c (mswindows_canonicalize_console_connection):
10724         Added.
10725         (mswindows_canonicalize_device_connection): Added.
10726
10727         * console-msw.h (struct msprinter_device): Added this struct and
10728         accessor macros.
10729         (mswindows_device): Made fontlist a lisp object.
10730
10731         * device.c (semi_canonicalize_device_connection):  Try to delegate
10732         to canonicalize_device_connection if no such console method.
10733         (canonicalize_device_connection): Vice versa.
10734         (print_device): Do not print nil connection.
10735
10736         * device-msw.c (mswindows_init_device): Call InitCommonControls
10737         when have widgets.
10738         (mswindows_delete_device): Removed fontlist deallocation.
10739         (mswindows_mark_device): Added.
10740
10741         * events.c (event_equal): Added abort() at unreached code.
10742         (event_hash): Ditto.
10743
10744         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
10745         fallback tags of Windows devices.
10746
10747         * general.c (syms_of_general): Initialized Qmsprinter.
10748
10749         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
10750         of fallback tags of Windows devices.
10751
10752         * lisp.h: Declared Qmsprinter.
10753
10754         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
10755         of strings.
10756         (mswindows_list_fonts): Ditto.
10757         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
10758         that it can be used by both mswindows and msprinter devices.
10759         (initialize_font_instance): Added.
10760         (mswindows_initialize_font_instance): Use it.
10761         (msprinter_initialize_font_instance): Added.
10762
10763         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
10764         and implementation flags check.
10765         (redisplay_without_hooks): Changed the call to the above.
10766         (Fredraw_device): Ditto.
10767         (Fredisplay_device): Ditto.
10768
10769         * redisplay-msw.c (get_frame_dc): Implemented.
10770         (get_frame_compdc): Implemented.
10771         (many functions): Use the two functions above to get device
10772         contexts, ether for a window or a printer.
10773
10774 2000-01-21  Olivier Galibert  <galibert@pobox.com>
10775
10776         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
10777         initialization here.
10778         (init_symbols_once_early): Call it.
10779         * emacs.c (main_1): Call it.
10780         * symsinit.h: Declare it.
10781
10782 2000-01-19  Olivier Galibert  <galibert@pobox.com>
10783
10784         * alloc.c: Use a lrecord_header * in the backtrace instead of a
10785         Lisp_Object.
10786         (pdump_backtrace): Ditto.
10787         (pdump_register_object): Ditto.  Cleanup use of the pointers.
10788         (pdump_get_entry): Abort if trying to register a null pointer.
10789         (pdump_dump_data): Cleanup types when relocating.
10790         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
10791         (pdump_dump_rtables): Remove bad casts.
10792         (pdump_load): Cleanup relocation w.r.t union type.  Use a
10793         Lisp_Object instead of a EMACS_INT for the hashtable
10794         reorganization.
10795
10796 2000-01-20  Martin Buchholz  <martin@xemacs.org>
10797
10798         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
10799
10800         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
10801
10802         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
10803
10804         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
10805
10806 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10807
10808         * faces.h (FACE_STRIKETHRU_P): Added.
10809
10810         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
10811         of font variants.
10812
10813         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
10814         (mswindows_set_dc_font): New function, aware of font variants,
10815         separated from mswindows_update_dc.
10816
10817         * objects-msw.h (struct mswindows_font_instance_data): Added
10818         definition.
10819
10820         * objects-msw.c (mswindows_finalize_font_instance): Delete all
10821         cached fonts and the data structure.
10822         (mswindows_initialize_font_instance): Added creation of font data
10823         structure.
10824         (mswindows_print_font_instance): Print at least something.
10825         (mswindows_create_font_variant): Implemented.
10826         (mswindows_get_hfont): Implemented.
10827
10828 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
10829
10830         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
10831         prototyping problem with msvc.
10832
10833         * emacs.c (main_1): added syms_of_gui_mswindows() call
10834
10835         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
10836         syms_of_gui_mswindows() function
10837
10838         * symsinit.h: added the prototype for syms_of_gui_mswindows()
10839
10840 2000-01-18  Martin Buchholz <martin@xemacs.org>
10841
10842         * XEmacs 21.2.27 is released.
10843
10844 2000-01-18  Martin Buchholz  <martin@xemacs.org>
10845
10846         * glyphs-eimage.c (struct tiff_error_struct):
10847         (tiff_error_func):
10848         (tiff_warning_func):
10849         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
10850
10851         * unexmips.c:
10852         * unexhp9k3.c:
10853         * unexfreebsd.c:
10854         * unexec.c: Remove vestigial Lucid C code.
10855         * unexalpha.c:
10856         * unexaix.c:
10857         * termcap.c:
10858         * libsst.c: Ansify.
10859         Remove declarations of errno and strerror().
10860
10861         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
10862
10863         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
10864
10865 2000-01-16  Martin Buchholz  <martin@xemacs.org>
10866
10867         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
10868         Optimize.
10869
10870 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10871
10872         * md5.c:
10873         * file-coding.c:
10874         * file-coding.h:
10875         Change enum eol_type to eol_type_t.
10876
10877 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10878
10879         * gui.c (get_gui_callback): Check cons before accessing car.
10880
10881 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10882
10883         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
10884         (XSETSPECIFIER_TYPE): Ditto.
10885
10886 2000-01-17  Didier Verna  <didier@xemacs.org>
10887
10888         * redisplay.c (generate_fstring_runes): compute string size in
10889         characters, not bytes.
10890
10891 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
10892
10893         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
10894
10895 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
10896
10897         * print.c (print_error_message): Call print_prepare().
10898
10899 2000-01-14  Martin Buchholz  <martin@xemacs.org>
10900
10901         * .dbxrc: Renamed from dbxrc.
10902
10903         * events.c (event_to_character):
10904         Use `assert (foo)' instead of `if (!foo) abort()'
10905
10906         * .gdbinit (xtype): Add documentation.
10907         * .gdbinit (check-temacs): New function.
10908         * .gdbinit (check-xemacs): New function.
10909         * dbxrc (check-xemacs): New function.
10910         * dbxrc (check-xemacs): New function.
10911
10912 2000-01-14  Andy Piper  <andy@xemacs.org>
10913
10914         * glyphs-widget.c (widget_query_geometry): Make sure that we
10915         calculate default dimensions correctly.
10916
10917 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10918
10919         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
10920
10921         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
10922         pdump_wire'd variable.
10923
10924         * emacs.c: (main_1): Conditionalized calls to
10925         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
10926
10927 2000-01-13  Martin Buchholz  <martin@xemacs.org>
10928
10929         * window.c (Fset_window_configuration):
10930         * sysdep.c (_start):
10931         * input-method-motif.c (res):
10932         * event-Xt.c (Xt_process_to_emacs_event):
10933         Simple compiler warning fixes.
10934
10935         * bytecode.c (funcall_compiled_function): Use the original
10936         function symbol on the backtrace list in preference to the
10937         compiled_function object in error messages.
10938
10939 2000-01-13  Andy Piper  <andy@xemacs.org>
10940
10941         * glyphs-x.c (update_widget_face): Make sure we update the widget
10942         background as well as foreground.
10943
10944 2000-01-13  Andy Piper  <andy@xemacs.org>
10945
10946         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
10947         fields to subwindow.
10948         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
10949         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
10950         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
10951         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
10952
10953         * glyphs-widget.c (check_valid_tab_orientation): new function.
10954         (initialize_widget_image_instance): zero orientation and
10955         justification.
10956         (widget_instantiate): pick up orientation.
10957         (tab_control_query_geometry): return appropriate values for
10958         vertical tabs.
10959
10960         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
10961         appropriate creation flags for left, right and bottom tabs.
10962
10963         * s/cygwin32.h: add tab definitions.
10964
10965 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10966
10967         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
10968         frame upon hiding a subwindow.
10969         (mswindows_button_instantiate): Changed the push button style to
10970         BS_PUSHBUTTON.
10971         (mswindows_button_instantiate): Removed button BS_NOTIFY
10972         style.
10973         (mswindows_button_instantiate): Removed redundant check for
10974         a disabled gui item.
10975         (mswindows_button_instantiate): Made use of WS_TABSTOP
10976         consistent: "operable" controls (edit, button, tree, scroll) have
10977         this style, "display-only" ones (static, progress gauge) do
10978         not. This style is currently ignored by XEmacs though. Also,
10979         removed the WS_EX_CONTROLPARENT style - it is not for children,
10980         it is for their parents!
10981         (mswindows_edit_field_instantiate): Ditto.
10982         (mswindows_progress_gauge_instantiate): Ditto.
10983         (mswindows_tree_view_instantiate): Ditto.
10984         (mswindows_tab_control_instantiate): Ditto.
10985         (mswindows_scrollbar_instantiate): Ditto.
10986         (mswindows_combo_box_instantiate): Ditto.
10987         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
10988         style to the "clip" window.
10989         (mswindows_button_instantiate): Removed compilation warning by
10990         equally typing terms of the ?: operator.
10991
10992 2000-01-12  Didier Verna  <didier@xemacs.org>
10993
10994         * redisplay.c (generate_fstring_runes): new parameter holding the
10995         last modeline-format extent.
10996         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
10997         extent, fill the glyph block with it.
10998         (generate_fstring_runes): handle these parameters.
10999         (generate_formatted_string_db): ditto.
11000
11001         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11002         glyphs'extents in the modeline.
11003
11004 1999-01-11  Mike Woolley  <mike@bulsara.com>
11005
11006         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11007         256Mb, as a workaround for the non-starting problem many people
11008         have experienced.
11009
11010 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11011
11012         * console-tty.c (Fset_console_tty_output_coding_system):
11013         Force redrawing tty frame.
11014
11015 2000-01-10  Didier Verna  <didier@xemacs.org>
11016
11017         * redisplay.c (generate_fstring_runes): fix size computation bug.
11018
11019 2000-01-09  William M. Perry <wmperry@aventail.com>
11020
11021         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11022
11023 2000-01-09  Andy Piper  <andy@xemacs.org>
11024
11025         * glyphs-msw.c: index -> i to avoid shadows.
11026         (xbm_create_bitmap_from_data): make static.
11027         (check_valid_string_or_int): deleted.
11028         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11029
11030         * glyphs-x.c (x_update_subwindow): remove unused args.
11031
11032         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11033         back pointer - this is done in allocate_image_instance.
11034         (query_string_font): return Qnil to make the compiler happy.
11035         (unmap_subwindow): set to ~0 to make the compiler happy.
11036         (glyph_query_geometry): comment out until used.
11037         (glyph_layout): ditto.
11038
11039 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11040
11041         * insdel.c (signal_after_change): Remove extraneous unbind_to().