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