Coverity changes
[sxemacs] / src / ChangeLog.1.XEmacs
1 1998-05-06  Oliver Graf <ograf@fga.de>
2
3         * Makefile.in.in: removed dragdrop.o from objs
4         * config.h.in: HAVE_DRAGNDROP added
5         * emacs.c: do syms_of_dragdrop only if HAVE_DRAGNDROP is defined
6         * event-Xt.c: dragdrop.h include now depends on HAVE_DRAGNDROP
7         changed calls to dnd_url_hexify_string
8         MIME data is now a list of MIME strings or lists
9         this was required by CDE, and a good idea in any case
10         * dragdrop.c (dnd_url_hexify_string): method prefix code added
11         * dragdrop.h: dnd_url_hexify_string prototype changed
12         * frame-x.c (x_cde_transfer_callback): CDE adapted the new API
13
14 1998-05-05  Jonathan Harris <jhar@tardis.ed.ac.uk>
15
16         * event-msw.c: now creates misc-user-events on dnd drops
17
18 1998-05-05  Oliver Graf <ograf@fga.de>
19
20         * events.h: changed comment for misc_user_events
21         * events.c (make-event): removed dnd_data defs
22         * frame.c: removed everything referring to drag_and_drop_functions
23         * frame-x.c (x_cde_transfer_callback): disabled (needs to be changed)
24         * lisp.h: removed Qdnd_data
25         * general.c: removed Qdnd_data
26         * symsinit.h: added syms_of_dragdrop
27         * frame.el: deleted default-drag-and-drop-functions
28
29 1998-05-04  Oliver Graf <ograf@fga.de>
30
31         * events.c: removed all dnd_drop stuff
32         * events.h: extended misc_user_data by button info
33         removed dnd_drop event
34         * emacs.c: added call to syms_of_dragdrop
35         * dragdrop.c: created
36         * dragdrop.h: created
37         * event-stream.c (enqueue_misc_user_event): initialization of the
38         new fields of misc_user_data
39         dnd_drop stuff removed
40         * keymap.c: drop symbols removed
41         * Makefile.in.in: added dragdrop.o to objs
42
43 1998-05-09  SL Baur  <steve@altair.xemacs.org>
44
45         * EmacsFrame.c (EmacsFrameSetValues): Fix typo.
46         Suggested by: Kirill M. Katsnelson  <kkm@kis.ru>
47
48 1998-05-09  Kirill M. Katsnelson  <kkm@kis.ru>
49
50         * This change adds four scrollbar specifiers:
51           {horizontal,vertical}-scrollbar-visible-p and
52           scrollbar-on-{top,left}-p.
53           Spare parts supplied by Didier Verna <didier@xemacs.org>
54
55         * frameslots.h: Added slots for the four specifier caching.
56
57         * frame.h: FRAME_SCROLLBAR_{WIDTH,HEIGHT} count for scrollbar
58         visible specifiers.
59         Removed old resource-only controlled scrollbar_on_* ints.
60
61         * frame-x.c (x_layout_widgets): Removed (to x-scrollbar.el)
62         initialization of old style scrollbar placement from resources.
63
64         * frame-tty.c (tty_init_frame_1): Removed initialization of old
65         style scrollbar placement.
66
67         * frame-msw.c (mswindows_init_frame_1): Removed random
68         initialization of scrollbar sizes to 15 pixel.
69
70         * redisplay-msw.c (mswindows_redisplay_deadbox_maybe): Use
71         scrollbar placement specifiers cached values from window, instead
72         of the old per-frame values.
73         (mswindows_output_vertical_divider): Ditto.
74
75         * redisplay-x.c (x_output_vertical_divider): Ditto.
76
77         * redisplay-output.c (redisplay_clear_bottom_of_window): Ditto.
78
79         * scrollbar.c (update_scrollbar_instance): Ditto.
80         (specifier_vars_of_scrollbar): Declared the four specifiers.
81
82         * window.h (struct window): Defined slots for caching the new
83         specifiers.
84
85         * window.c (mark_window): Mark them.
86         (allocate_window): Initialize them.
87         (struct saved_window): Store them in a cool place.
88         (saved_window_equal): Compare them.
89         (save_window_save): Save them.
90         (Fset_window_configuration): Fetch them back.
91         (window_needs_vertical_divider): Check for scrollbar placement
92         using window cached specs.
93         (window_top_gutter_height): Ditto.
94         (window_bottom_gutter_height): Ditto.
95         (window_left_gutter_width): Ditto.
96         (window_right_gutter_width): Ditto.
97         (window_scrollbar_width): Account for scrollbar visibility
98         specification in window.
99         (window_scrollbar_height): Ditto.
100
101 1998-04-18  Kirill M. Katsnelson  <kkm@kis.ru>
102
103         * device.c (Fdevice_system_metrics): Added function.
104         Moved (device-pixel-height), (device-pixel-width),
105         (device-mm-width), (device-mm-height), (device-bitplanes),
106         (device-color-cells) to device.el, amd make them call
107         (device-system-metrics).
108
109         * console.h (struct console_methods): Replaced methods:
110         device_pixel_width_method(), device_pixel_height_method(),
111         device_mm_width_method(), device_mm_height_method(),
112         device_bitplanes_method(), device_color_cells_method()
113         with single device_system_metrics_method().
114         (device_metrics): Declared enumeration of supported
115         device system metrics.
116
117         * device-msw.c (mswindows_device_system_metrics): Implement
118         device_system_metrics_method(), remove six obsolete methods.
119
120         * device-tty.c (tty_device_system_metrics): Ditto.
121
122         * device-x.c (x_device_system_metrics): Ditto.
123
124 1998-05-10  Kirill M. Katsnelson  <kkm@kis.ru>
125
126         * EmacsFrame.c (update_various_frame_slots): Do not store internal
127         border width there.
128         (EmacsFrameInitialize): Do it rather here.
129         (EmacsFrameSetValues): If EditRes has changed internal border
130         width, mark frame size as slipped.
131
132 1998-05-06  Kirill M. Katsnelson  <kkm@kis.ru>
133
134         * frame.h (struct frame): Added char_{width,height} member
135         variables and access macros
136         Added size_slipped redisplay bit and mark/clear macros.
137
138         * redisplay.c (redisplay_frame): Adjust frame size if size slipped
139         bit is set.
140         (redisplay_device): Call redisplay_frame if size slipped bit is set.
141
142         * frame.c (adjust_frame_size): Redisplay beats frame back in shape
143         with this. Added.
144         (frame_size_slipped): Added.
145         (internal_set_frame_size): Clear size slipped bit.
146         (change_frame_size_1): Store real charsize into frame object.
147         (vars_of_frame): Declared adjust-frame-function.
148
149         * frame-msw.c (mswindows_update_frame_external_traits): Same
150         change as for frame-x.c
151         (mswindows_frame_size_fixed_p): Implemented the method.
152
153         * frame-x.c (x_update_frame_external_traits): Do not call
154         Fset_frame_size to adjust frame, redisplay will do.
155
156         * faces.c (update_EmacsFrame): Mark frame as slipped when default
157         font changes.
158
159         * toolbar.c (compute_frame_toolbars_data): Removed obsoleted call
160         to change_frame_size. Redisplay will fix it later.
161         Removed toolbar_*_changed_in_frame specifier
162         change handlers.
163         (specifier_vars_of_toolbar): Calls to these routed to
164         frame_size_slipped generic handler.
165
166         * toolbar-x.c: Removed toolbar_*_changed_in_frame device methods.
167
168         * scrollbar-x.c: Removed scrollbar_*_changed_in_frame device
169         methods.
170
171         * scrollbar.c: Removed scrollbar_*_changed_in_frame specifier
172         change handlers.
173         (specifier_vars_of_scrollbar): Calls to the above changed to
174         frame_size_slipped generic handler.
175
176         * menubar-x.c (x_update_frame_menubar_internal): Do not resize
177         frame, just mark frame size as slipped.
178
179         * device-x.c: Removed declaration of in_specifier_change_function.
180
181         * EmacsFrame.c (EmacsFrameSetValues): Do not check
182         in_specifier_change_function.
183         (EmacsFrameSetValues): Simulate a call to resize callback when no
184         actual geometry change happened.
185
186         * console.h (struct console_methods): Removed declarations for all
187         <specifier>_changed_in_frame methods for toolbars and scrollbars.
188         Added frame_size_fixed_p method.
189
190 1998-05-08  SL Baur  <steve@altair.xemacs.org>
191
192         * redisplay.c (decode_mode_spec): Guard against garbage
193         overwriting the stack.
194
195 1998-05-08  Kirill M. Katsnelson  <kkm@kis.ru>
196
197         * dired-msw.c (vars_of_dired_mswindows): Syntax fix for union
198         lisp object type.
199
200         * menubar-msw.c (populate_menu_add_item): Ditto.
201
202         * ntheap.c (sbrk): Ditto.
203
204         * ntproc.c (create_child): Ditto.
205         (syms_of_ntproc): Ditto.
206
207 1998-05-07  Andy Piper  <andyp@parallax.co.uk>
208
209         * glyphs-msw.c: updates to support total transparency.
210         (mswindows_initialize_image_instance_icon): don't resize bitmaps
211         for icons.
212         (mswindows_initialize_image_instance_mask): new function.
213         Use these new functions as appropriate.
214
215         * glyphs-msw.h (mswindows_initialize_image_instance_icon):
216         function renamed.
217
218         * frame-msw.c: use renamed mswindows_initialize_image_instance_icon.
219
220         * redisplay-msw.c: MaskBlt bitmaps if we have a mask, BitBlt
221         otherwise.
222
223 1998-05-07  Kirill M. Katsnelson  <kkm@kis.ru>
224
225         * unexnt.c (read_in_bss): Removed unused variables, replaced exits
226         with aborts.
227         (map_in_heap): Ditto.
228
229 1998-05-06  SL Baur  <steve@altair.xemacs.org>
230
231         * frame.c (adjust_frame_size): Don't mix integers and Lisp_Objects.
232
233 1998-05-07  Kirill M. Katsnelson  <kkm@kis.ru>
234
235         * print.c (write_string_to_stdio_stream): Under MS Windows, flush
236         stdio and stderr after output. Ouch.
237
238 1998-05-05  Andy Piper  <andyp@parallax.co.uk>
239
240         * event-msw.c: comment out broken dnd stuff and don't use msw socket
241         support if we have cygwin select.
242
243 1998-05-03  Kirill M. Katsnelson  <kkm@kis.ru>
244
245         * events.h (STREAM_* defines): Defined constants for the parameter
246         FLAGS to create_stream_pair_cb().
247
248         * process.c (Fopen_network_stream_internal): Use flags from events.h
249         (Fopen_multicast_group_internal): Ditto.
250
251         * process-unix.c (unix_create_process): Ditto.
252
253         * event-unixoid.c (event_stream_unixoid_create_stream_pair): Ditto.
254         Changed #ifdef process type logic to catch configuretion errors
255         when no process type is defined.
256
257         * event-msw.c: Implemented winsock_stream
258         (get_process_input_waitable): Differentiate network connections.
259         (emacs_mswindows_select_process): Ditto.
260         (emacs_mswindows_create_stream_pair): Ditto.
261         (emacs_mswindows_delete_stream_pair): Ditto.
262
263         * process-nt.c: Implemented network connections.
264         (nt_init_process): Initialize Winsock.
265
266         * sysdep.c (init_system_name): Ask for the right name right from
267         the system.
268
269         * ntproc.c: Removed select emulation crap and dynamic Windock
270         loading.
271
272         * nt.c: Removed a lot of terrible wrappers for socket functions.
273
274         * s/windowsnt.h: Removed sys_select encapsulation.
275
276 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
277
278         * search.c (Fmatch_data): Synch with FSF.
279
280 1998-05-04  Greg Klanderman  <greg@alphatech.com>
281
282         * events.h: Add extern declarations for focus_follows_mouse and
283         investigate_frame_change().
284         * cmdloop.c (Fcommand_loop_1): cleanup focus-follows-mouse
285         handling - move externs to events.h.
286
287 1998-05-05  Andy Piper  <andyp@parallax.co.uk>
288
289         * glyphs-msw.c: generate an AND mask when creating an icon and really
290         make it an icon if that is what is required.
291
292         * glyphs-msw.h (mswindows_create_icon_from_image): new cursor
293         argument.
294
295         * frame-msw.c (mswindows_set_frame_pointer): set the frame cursor when
296         asked.
297
298 1998-05-05  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
299
300         * s/windowsnt.h:
301         * s/rtu.h:
302         * s/aix4.h:
303         * m/wicat.h:
304         * m/gould.h:
305         * m/gould-np1.h
306         * unexhp9k3.c:
307         * unexconvex.c:
308         * unexalpha.c:
309         * unexaix.c:
310         * regex.c:
311         * process-unix.c:
312         * mule-mcpath.c:
313         * msdos.c:
314         * lisp.h:
315         * gmalloc.c:
316         * getloadavg.c:
317         * broken-sun.h:
318         Removed references to ancient bcmp, bzero, and bcopy.
319
320 1998-05-04  Andy Piper  <andyp@parallax.co.uk>
321
322         * gui.el: make gui-button-face colors apply in the mswindows
323         domain as well as for x.
324
325         * objects-msw.c (mswindows_string_to_color): grok
326         rgb:rrrr/gggg/bbbb color formats used by xpm-button.el.
327
328 1998-05-04  Greg Klanderman  <greg@alphatech.com>
329
330         * window.c (Fselect_window): Add optional second argument
331         `norecord' to avoid recording a buffer change.
332         * window.h: change the EXFUN for Fselect_window.
333         * window.c (Fdelete_window): call Fselect_window with 2nd arg Qnil.
334         (Fother_window): ditto.
335         (temp_output_buffer_show): ditto.
336         (Fset_window_configuration): ditto.
337         (Fset_window_configuration): ditto.
338         * frame.c (Fselect_frame): ditto.
339         (Fset_frame_selected_window): ditto.
340         (delete_frame_internal): ditto.
341         * device.c (Fselect_device): ditto.
342         * console.c (Fselect_console): ditto.
343         * callint.c (Fcall_interactively): ditto.
344
345 1998-05-05  Hrvoje Niksic  <hniksic@srce.hr>
346
347         * search.c (Fregexp_quote): Loop by characters, not by bytes.
348
349 1998-05-05  Jan Vroonhof  <vroonhof@math.ethz.ch>
350
351         * redisplay.c (window_line_number): Guard against selected_device
352         = nil.
353
354         * frame-x.c (x_init_frame_2): Revert to updating frame title.
355
356 1998-05-05  SL Baur  <steve@altair.xemacs.org>
357
358         * emacs.c (shut_down_emacs): Update crash report information.
359
360 1998-05-04  Kyle Jones  <kyle_jones@wonderworks.com>
361
362         * linuxplay.c: Initialize audio_dev to /dev/dsp at
363           compile time instead of at run-time.  Don't initialize
364           mixer_fd, audio_fd and audio_vol to -1; none of them need
365           it, and XEmacs will crash on some architectures when
366           these variable are modified after being initialized.
367           Declare audio_dev, audio_vol, audio_fd, and mixer_fd as
368           static, since none of them need to be visible outside
369           linuxplay.c.
370
371 1998-04-27  Hrvoje Niksic  <hniksic@srce.hr>
372
373         * eldap.c (make_ldap): New function.
374         (finalize_ldap): Use it.
375         (Fldap_open): Ditto.
376
377         * eldap.c (struct Lisp_LDAP): Removed connection status symbol.
378
379         * eldap.h (LDAP_LIVE_P): Removed
380         (CHECK_LIVE_LDAP): Adapt to changes in struct Lisp_LDAP
381
382 1998-05-03  Hrvoje Niksic  <hniksic@srce.hr>
383
384         * lread.c: (read_escape): Restore handling of \M-a; clarify
385         comment.
386
387 1998-05-04  Kyle Jones  <kyle_jones@wonderworks.com>
388
389         * realpath.c: Rename realpath() to xrealpath().
390
391         * fileio.c: Call xrealpath() instead of realpath().
392
393         * sysdep.h: Use #define to map xrealpath() calls to
394           realpath() on systems that have realpath().
395
396 1998-05-04  Martin Buchholz  <martin@xemacs.org>
397
398         * rangetab.c:
399         * rangetab.h: Move #include's from rangetab.h into rangetab.c for
400         consistency.
401         * inline.c: include rangetab.h to get GCC inlines
402
403 1998-05-03  SL Baur  <steve@altair.xemacs.org>
404
405         * event-stream.c (event_stream_next_event): Reverse previous patch to
406         slow down poll for quit.
407         Suggested by Kyle Jones <kyle_jones@wonderworks.com>
408
409         * lread.c (read_escape): Turn off interpretation of "\M..."
410         Suggested by Olivier Galibert <galibert@pobox.com>
411
412         * lread.c (read_escape): add explanatory comment about why
413         FSF_KEYS are being turned off.
414
415 1998-05-02  SL Baur  <steve@altair.xemacs.org>
416
417         * lread.c (FSF_KEYS): Remove if built with Mule.
418
419 1998-05-01  Kirill M. Katsnelson  <kkm@kis.ru>
420
421         * event-msw.c (ntpipe_shove_flusher): Removed.
422         (init_shove_stream): Flusher undeclared.
423
424 1998-05-02  SL Baur  <steve@altair.xemacs.org>
425
426         * rangetab.c: `default_dumped' removed.
427
428 1998-05-02  Hrvoje Niksic  <hniksic@srce.hr>
429
430         * events.c (Fmake_event): Initialize key data for key-press
431         events.
432
433 1998-05-02  Hrvoje Niksic  <hniksic@srce.hr>
434
435         * fileio.c (close_stream_unwind): Renamed to delete_stream_unwind.
436         Delete the stream.
437         (Finsert_file_contents_internal): Delete STREAM after use.
438         (Fmake_temp_name): Improve randomness of generated file names.
439         (Fmake_temp_name): Don't initialize COUNT if in temacs.
440
441 1998-05-02  Olivier Galibert  <galibert@pobox.com>
442
443         * buffer.h: Put  the  range_table  lrecrod  declaration  where  it
444         belongs...
445
446         * rangetab.h: New file - ...which is here.
447
448         * rangetab.c: Move declarations to rangetab.h
449
450 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
451
452         * data.c (Fneq): Fix docstring.
453         (arithcompare_many): Slightly simplify.
454
455 1998-04-29  Andy Piper  <andyp@parallax.co.uk>
456
457         * s/cygwin32.h: don't define BROKEN_CYGWIN anymore since we normally
458         link with unixoid event loop now.
459
460 1998-05-01  Kirill M. Katsnelson  <kkm@kis.ru>
461
462         * event-stream.c (event_stream_next_event): Disable polling for
463         quit while XEmacs is blocked waiting for an event.
464
465 1998-05-01  Kirill M. Katsnelson  <kkm@kis.ru>
466
467         * specifier.h: Corrected documentation on magic specifiers.
468         Documented DEPTH parameter to instantiate_method.
469         Renamed reveal->unlock_ghost_specifiers_protected().
470
471         * specifier.c: Removed the reveal mechanism and made ghost
472         specifiers read-only, so they are accessible as fallbacks of magic
473         specifier, but aren't modifiable unless C code enables so.
474          (specifier_equal): Compare specifier fallbacks as well.
475
476         * scrollbar.c (init_frame_scrollbars):
477         (init_device_scrollbars):
478         (init_global_scrollbars): Renamed
479         reveal->unlock_ghost_specifiers_protected().
480
481 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
482
483         * fileio.c (Fcar_less_than_car): Fix Flss caller.
484         (Fcdr_less_than_cdr): Ditto.
485
486         * lisp.h: Fix declarations.
487
488         * data.c: Enable many arguments versions of <, >, <=, >= and /=.
489
490         * bytecode.c (Fbyte_code): Use arithcompare.
491
492         * data.c (arithcompare): Make non-static.
493
494 1998-04-30  Greg Klanderman  <greg@alphatech.com>
495
496         * frame.c (Fselect_frame): update docstring to describe
497         focus-follows-mouse behavior.
498
499 1998-05-01  Hrvoje Niksic  <hniksic@srce.hr>
500
501         * print.c (Fwrite_char): Don't touch Vprint_gensym.
502         (print_error_message): Don't gcpro TAIL.
503         (Fdisplay_error): Simplify.
504
505 1998-04-30  Hrvoje Niksic  <hniksic@srce.hr>
506
507         * print.c (print_internal): Use long_to_string().
508
509         * redisplay.c (decode_mode_spec): Remove bogus calculation of the
510         number of digits.
511
512         * print.c (Fprin1): Removed THE_STREAM.
513         (Fprinc): Ditto.
514         (Fprint): Ditto.
515         (Fdisplay_error): Canonicalize STREAM here.
516         (print_error_message): Don't canonicalize STREAM.
517         (print_error_message): Use print_internal() instead of Fprin1 and
518         Fprinc.
519
520         * print.c: (Fprin1_to_string): Delete internal stream explicitly.
521         (Ferror_message_string): Ditto.
522         (Fterpri): Use write_char_internal.
523
524 1998-04-18  Martin Buchholz  <martin@xemacs.org>
525
526         * console-x.h: Initialize_Locale should not depend on HAVE_XIM,
527         esp. in the future.
528
529         * Makefile.in.in: be more careful generating depend.
530
531         * *.c (F*): Unfortunately, etags can only detect per-line
532         patterns, and so the DEFUN macro must have the lisp name and the C
533         name on the same line for a complete TAGS file.  Make it so.
534
535         * signal.c (init_signals_very_early):
536         * process.c (Fsignal_process): Order the signals in decreasing
537         order of standardization.  Provide helpful standardization
538         comments.  Add missing signal names.
539
540         * unexhp9k800.c: Remove undefined roundup.
541         * symsinit.h: Add prototype for init_hpplay().
542
543 1998-04-30  Hrvoje Niksic  <hniksic@srce.hr>
544
545         * window.c (Fcenter_to_window_line): New function.
546         (Frecenter): Use it.
547
548 1998-04-30  Hrvoje Niksic  <hniksic@srce.hr>
549
550         * dired.c (make_directory_hash_table): Constify.
551
552         * scrollbar.c (Fscrollbar_page_up): Use Fcenter_to_window_line
553         instead of Frecenter.
554         (Fscrollbar_page_down): Ditto.
555         (Fscrollbar_to_top): Ditto.
556         (Fscrollbar_to_bottom): Ditto.
557
558         * window.c (Frecenter): Removed.
559
560 1998-04-29  Andy Piper  <andyp@parallax.co.uk>
561
562         * console.h: xpm_normalize is not a console method anymore.
563
564         * event-msw.c: honour toolbar help string length.
565
566         * glyphs-msw.c: make copyright more meaningful. implement color
567         symbol support for Xpm. (extract_xpm_color_symbols) new function.
568
569         * glyphs.c (pixmap_to_lisp_data) (xpm_normalize): fucntions moved
570         from glyphs-x.c
571
572         * glyphs.h: declare pixmap_to_lisp_data.
573
574         * toolbar-msw.c: more meaningful copyright.
575
576 1998-04-30  Hrvoje Niksic  <hniksic@srce.hr>
577
578         * macros.c (Fend_kbd_macro): New arg REMOVE-LAST.
579
580         * gui-x.c (popup_selection_callback): Treat anonymous interactive
581         and compiled-function interactive callbacks as commands.
582
583 1998-04-28  Hrvoje Niksic  <hniksic@srce.hr>
584
585         * abbrev.c (obarray_has_blank_p): Simplify.
586
587 1998-04-27  Hrvoje Niksic  <hniksic@srce.hr>
588
589         * getloadavg.c (getloadavg): Removed some code repetition.
590
591 1998-05-01  Kirill M. Katsnelson  <kkm@kis.ru>
592
593         * process-nt.c: Document usage of #pragma warning.
594         (alloc_process_memory): Spell _ALPHA_ correctly.
595
596 1998-04-29  SL Baur  <steve@altair.xemacs.org>
597
598         * Makefile.in.in: Change `progname' to `PROGNAME' for
599         consistency.
600
601 1998-04-29  Kirill M. Katsnelson  <kkm@kis.ru>
602
603         * frame.c (change_frame_size_1): Adjust frame row/columns taking
604         real toolbar size into account, not the theoretical one.
605
606         * toolbar.c (set_frame_toolbar): Removed unused parameter.
607         Return void, not unused int.
608         Logic which checks whether toolbar to be recomputed moved here
609         from macro COMPUTE_TOOLBAR_DATA (r.i.p)
610         (compute_frame_toolbars_data): Removed COMPUTE_TOOLBAR_DATA. It
611         did not work due to a bug, and also did not check whether toolbar
612         size has changed.
613         Compute new character sizes passed to change_frame_size, do not
614         use the old (pre-toolbar-change) ones.
615         (update_frame_toolbars): Honor frame_changed and clear frame bits.
616         (recompute_overlaying_specifier): New helper function, called from
617         default toolbar specifier change handlers.
618         (default_toolbar_specs_changed): Use it.
619         (default_toolbar_size_changed_in_frame): Ditto.
620         (default_toolbar_border_width_changed_in_frame): Ditto.
621         (default_toolbar_visible_p_changed_in_frame): Ditto.
622         (toolbar_geometry_changed_in_window): New handler. The old one,
623         some_windows_value_changed, did not do the trick.
624         (default_toolbar_size_changed_in_window): New handler for default
625         toolbar.
626         (default_toolbar_border_width_changed_in_window): Ditto.
627         (default_toolbar_visible_p_changed_in_window): Ditto.
628         (specifier_vars_of_toolbar): Use one of the above four handlers
629         instead of some_windows_value_changed in toolbar specifiers.
630
631 1998-04-29  Andy Piper  <andyp@parallax.co.uk>
632
633         * redisplay-msw.c (mswindows_output_string)
634         (mswindows_output_string): output the background pixmap if we have
635         one.
636
637 1998-04-28  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
638
639         * paths.h.in: Added PATH_PROGNAME and PATH_VERSION.
640
641 1998-04-28  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
642
643         * emacs.c (complex_vars_of_emacs): Added `emacs-program-name' and
644         `emacs-program-version'.
645
646 1998-04-29  Kirill M. Katsnelson  <kkm@kis.ru>
647
648         * process-nt.c: Signal support for Windows NT.
649         New code under subheadings "Running remote threads" and "Sending
650         signals".
651         (nt_create_process): Create new process suspended, then enable
652         signals in it, then resume it.
653         (nt_kill_child_process): Implemented
654         (nt_kill_process_by_pid): Ditto.
655         (process_type_create_nt): Registered the two above.
656
657 1998-04-28  P. E. Jareth Hein  <jareth@camelot-soft.com>
658
659         * glyphs-x.c : slight cleanup and bugfix related to memory
660         corruption and possible leaks. Also fix a visual problem
661         with XPM pointers
662
663 1998-04-28  P. E. Jareth Hein  <jareth@camelot-soft.com>
664
665         * glyphs-x.c (x_init_image_instance_from_eimage): Make sure
666         automatic pointers are null...
667
668 1998-04-27  Greg Klanderman  <greg@alphatech.com>
669
670         * cmdloop.c (Fcommand_loop_1): Call investigate_frame_change if
671         focus_follows_mouse is true.
672
673         * event-stream.c (next_event_internal): Only call
674         investigate_frame_change if focus_follows_mouse is false.
675
676         * event-stream.c (investigate_frame_change): Fix
677         focus_follows_mouse handling.  It was the case that, with
678         focus_follows_mouse true, (select-frame (next-frame)) could leave
679         next-frame with input focus, but not window manager focus.  Now
680         needs to be called from 2 places, conditional on the value of
681         focus_follows_mouse.
682
683 1998-04-24  Kirill M. Katsnelson  <kkm@kis.ru>
684
685         * frame.c (Fmake_frame): GC-protect new frame immediately upon
686         creation.
687
688 1998-04-27  Kirill M. Katsnelson  <kkm@kis.ru>
689
690         * frame.c (delete_frame_internal): Fixed spurious minibuffer
691         frames when creating minibufferless frames (reverted to 20.3
692         source, change not in ChangeLog)
693
694 1998-04-26  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
695
696         * eldap.h: Added CONCHECK_LDAP macro
697
698         * eldap.c: Moved definition of most Lisp_object keywords to
699         general.c
700         (Fldap_close): Modified semantics to match those of
701         `Fclose_database'
702         (Fldap_search_internal): Do not consider a
703         `LDAP_SIZELIMIT_EXCEEDED' a fatal error
704
705         * general.c: Added several keywords needed by eldap.c.  Sorted
706         keywords alphabetically.
707
708 1998-04-24  Hrvoje Niksic  <hniksic@srce.hr>
709
710         * eldap.c (finalize_ldap): New function; use it when declaring
711         LDAP lrecord type.
712
713 1998-04-27  Kirill M. Katsnelson  <kkm@kis.ru>
714
715         * fileio.c (Fwrite_file_contents_internal): Prefer stat() over
716         fstat() back for Windows, where closing a file changes its
717         modification time.
718
719 1998-04-26  Amir J. Katz  <amir@ndsoft.com>
720
721         * sysdep.h: Simplified definition of strerror()
722
723 Sun Apr 23 1998  Andy Piper  <andyp@parallax.co.uk>
724
725         * emacs.c:
726         * symsinit.h:
727         * glyphs-eimage.c: rename glyphs_read to glyphs_eimage.
728
729         * glyphs.c:
730         * console.h:
731         * glyphs-x.c:
732         * glyphx-msw.c: make xpm_normalize and xpm_instantiate device
733         methods and use them appropriately. Remove redundant pixmap file
734         handling functions.
735
736 Sun Apr 23 1998  Andy Piper  <andyp@parallax.co.uk>
737
738         * glyphs-msw.c: use XINT for lisp ints.
739
740         * console-msw.c: remove redundant functions that break under union
741         type.
742
743         * frame-msw.c: build lisp ints for functions that expect them.
744
745         * objects-msw.c: don't LISP_HASH COLORREF's.
746
747         * sheap.c: remove dependency on VALMASK.
748
749 1998-04-27  SL Baur  <steve@altair.xemacs.org>
750
751         * debug.c (vars_of_debug): Remove `Fprovide("internal-debug")'.
752
753 1998-04-27  Jonathan Harris <jhar@tardis.ed.ac.uk>
754
755         * device-msw.c: Unconditionally use InitCommonControls() instead
756         of InitcommonControlsEx() - the latter is not defined in all
757         environments.
758
759 1998-04-26  SL Baur  <steve@altair.xemacs.org>
760
761         * Makefile.in.in: Religiously use ${progname}.
762
763         * paths.h.in: Remove reference to user-defined site-lisp location.
764         * debug.c (vars_of_debug): Rename feature to 'internal-debug.
765
766 1998-04-24  Martin Buchholz  <martin@xemacs.org>
767
768         * mule-charset.h:
769         * mule-charset.c:
770         Use ints instead of bitfields for Lisp_Charset fields.  This
771         should work around bugs in the latest egcs snapshot, and make
772         XEmacs faster.  Introduce dimension and chars as fields in
773         Lisp_Charset instead of computing them every time.  The extra
774         space is about 1k, a reasonable price.
775
776 1998-04-25  SL Baur  <steve@altair.xemacs.org>
777
778         * glyphs-x.c (xface_normalize): Add console_type parameters to
779         calls to `potential_pixmap_file_instantiator'.
780
781 Sat Apr 24 1998  Andy Piper  <andyp@parallax.co.uk>
782
783         * event-msw.c: fix and enable signal pipe handling when using msg
784         select().
785
786 1998-04-25  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
787
788         * process-unix.c (allocate_pty): Typo fix.
789
790 1998-04-25  Olivier Galibert  <galibert@pobox.com>
791
792         * s/irix5-0.h (PTY_OPEN): Ditto
793         * s/irix4-0.h (PTY_OPEN): Restore the stb variable.
794
795 1998-04-25  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
796
797         * emacs.c (complex_vars_of_emacs): Typo fixes.
798
799         * emacs.c: Added configure-exec-prefix-directory.
800
801         * paths.h.in: Added PATH_EXEC_PREFIX.
802
803 1998-04-25  Olivier Galibert  <galibert@pobox.com>
804
805         * unexelfsgi.c (unexec): Kludge for Irix 5.3 which clears the
806         .sbss section no matter what. Defensively remove the alignment fix
807         if the .sbss section type isn't modified (Irix 6.5SE). Remove some
808         warnings.
809
810 1998-04-24  Martin Buchholz  <martin@xemacs.org>
811
812         * data.c (Fnot): There has traditionally been kludgy startup lisp
813         code that called `null' even if `not' was more appropriate,
814         because `not' was defined in lisp.  This is one primitive
815         sufficiently important that it should ALWAYS be defined.
816
817 Sat Apr 24 1998  Andy Piper  <andyp@parallax.co.uk>
818
819         * Makefile.in.in: add glyphs-eimage.o to build.
820
821         * console.h: added console methods init_image_instance_from_eimage
822         and locate_pixmap_file.
823
824         * emacs.c: add initialisation for glyphs-eimage.c
825
826         * symsinit.h: declare glyphs-eimage functions.
827
828         * glyphs-eimage.c: New file - generalised eimage support for gif,
829         tiff, png and jpeg, mainly from glyphs-x.c.
830
831         * glyphs-msw.c: added init_image_instance_from_eimage. Tidied up
832         file location.
833
834         * glyphs-x.c: disable gif, tiff, png and jpeg support in this
835         file. Added init_image_instance_from_eimage. Tidied up file
836         location.
837
838         * glyphs.h:
839         * glyphs.c: abstract image location.
840
841 Fri Apr 24 19:38:19 1998  Andy Piper  <andyp@parallax.co.uk>
842
843         * config.h.in: support our special select
844
845         * event-msw.c:
846         * toolbar-msw.c:
847         * console-msw.h: toolbar cleanup.
848
849         * device-msw.c:
850         * emacs.c:
851         * frame-msw.c:
852         * glyphs-msw.h:
853         * ntplay.c:
854         * process-unix.c:
855         * select-msw.c:
856         * sheap.c:
857         * s/cygwin32.h: warning elimination.
858
859 1998-04-24  Hrvoje Niksic  <hniksic@srce.hr>
860
861         * fns.c (Fload_average): New argument USE_FLOATS.
862
863         * alloc.c (Fstring): New function, synched with FSF 20.3.
864
865 Thu Apr 23 19:38:19 1998  Andy Piper  <andyp@parallax.co.uk>
866
867         * unexcw.c: cope with the reversed executable sections written by
868         binutils-2.9 ld and egcs.
869
870 1998-04-24  Kirill M. Katsnelson  <kkm@kis.ru>
871
872         * menubar-msw.c (populate_or_checksum_helper): Fixed to compile
873         with union type.
874
875 1998-04-23  Hrvoje Niksic  <hniksic@srce.hr>
876
877         * fns.c (Fload_average): Respect errno when reporting getloadavg()
878         errors.
879
880         * getloadavg.c (getloadavg): Cleaner Solaris implementation, based
881         on sample code by Casper Dik.
882
883 1998-04-23  SL Baur  <steve@altair.xemacs.org>
884
885         * frame-x.c (x_delete_frame): remove dead code.
886
887 1998-04-22  SL Baur  <steve@altair.xemacs.org>
888
889         * print.c (Falternate_debugging_output): Unconditionally define.
890
891 1998-04-22  Hrvoje Niksic  <hniksic@srce.hr>
892
893         * eval.c: Ditto.
894
895         * alloc.c: Ditto.
896
897         * lread.c: Ditto.
898
899         * print.c: Removed standalone hacks.
900
901 1998-04-23  Kirill M. Katsnelson  <kkm@kis.ru>
902
903         * toolbar-msw.c (mswindows_clear_toolbar): Fixed wabbit buttons.
904         (mswindows_output_toolbar): Gave 3D look to toolbars. Still no
905         pretty, needs more work.
906         (mswindows_move_toolbar): Renamed so because it does not deal with
907         redrawing exposed toolbars.
908         Properly position toolbars.
909         (mswindows_redraw_exposed_toolbars): Changed calls to the above.
910         (mswindows_find_toolbar_pos): Do not assert if toolbar not
911         found: a command can come from a menu.
912         (mswindows_handle_toolbar_wm_command): Quickly return nil if
913         toolbar not found.
914
915 1998-04-22  Kirill M. Katsnelson  <kkm@kis.ru>
916
917         * device-msw.c (tagINITCOMMONCONTROLSEX): Uniform declaration
918         between SDK and cygwin.
919         (mswindows_init_device): InitCommonControls ->
920         InitCommonControlsEx typo fix.
921
922 Wed Apr 22 12:59:35 1998  Andy Piper  <andyp@parallax.co.uk>
923
924         * glyphs-msw.c (EImage2DIBitmap): count the number of bytes correctly.
925
926 Wed Apr 22 12:59:35 1998  Andy Piper  <andyp@parallax.co.uk>
927
928         * config.h.in: support for HAVE_MSG_SELECT.
929
930         * console-msw.h: add support for four toolbars.
931
932         * device-msw.c: init common controls.
933
934         * event-msw.c: if HAVE_MSG_SELECT is defined use unixoid event
935         stream tye callbacks and select() on events rather than MWFMO.
936         Added event handling for tooltip messages. If you have this
937         special select then all process support works under cygwin.
938
939         * frame-msw.c: add support for four toolbars.
940
941         * redisplay-msw.c: update toolbars when an area is exposed.
942
943         * signal.c: _WIN32 -> WINDOWSNT.
944
945         * event-stream.c: enable unixoid initialization if we have it.
946
947         * event-unixoid.c: allow us to turn off the signal pipe.
948
949         * toolbar-msw.c: major overhaul. Enable support for all four
950         toolbars, fix display and sizing problems, enable tooltip support,
951         be more optimal about deleting toolbars.
952
953         * toolbar.h: reinstate 0 toolbar border width for msw.
954
955         * s/cygwin32.h: minor define updates.
956
957 1998-04-22  Hrvoje Niksic  <hniksic@srce.hr>
958
959         * print.c (Falternate_debugging_output): Define only if
960         DEBUG_XEMACS.
961
962 1998-04-21  Hrvoje Niksic  <hniksic@srce.hr>
963
964         * fileio.c (Fmake_temp_name): Updated docstring.
965
966 1998-04-21  Hrvoje Niksic  <hniksic@srce.hr>
967
968         * print.c (print_prepare): New argument FRAME_KLUDGE.
969         (print_prepare): If writing to a frame, return a resizing buffer
970         stream.
971         (print_finish): Flush the stream.
972         (Fprin1): Adjust calls to print_prepare() and print_finish().
973         (Fprinc): Ditto.
974         (Fprint): Ditto.
975         (print_internal): Optimize printing of characters.
976
977         * print.c (RESET_PRINT_GENSYM): New macro.
978         (print_prepare): Use it.
979         (print_finish): Ditto.
980         (Fwrite_char): Ditto.
981         (Fprin1_to_string): Ditto.
982
983 1998-04-22  SL Baur  <steve@altair.xemacs.org>
984
985         * config.h.in: add FOR_MSW variable.
986         From Itay Ben-Yaacov <pezz@www-mail.huji.ac.il>
987
988 1998-04-20  Kirill M. Katsnelson  <kkm@kis.ru>
989
990         * alloc.c (report_pure_usage): Remove ifdef WINDOWSNT around
991         "Don't panic, I will restart make".
992
993 1998-04-19  Kirill M. Katsnelson  <kkm@kis.ru>
994
995         * process.c (vars_of_process): Declared lisp variable
996         windowed-process-io.
997
998         * procimpl.h: Externally declared it.
999
1000         * process-nt.c (nt_create_process): Changed to honor the above
1001         variable, and to utilize SHGetFileInfo to determine file type.
1002
1003 1998-04-21  Martin Buchholz  <martin@xemacs.org>
1004
1005         * mule-ccl.c: Fix compiler warnings.  I hate compiler warnings.
1006         The code is clearer anyways without macros that goto.
1007
1008 1998-04-22  SL Baur  <steve@altair.xemacs.org>
1009
1010         * glyphs.h: Add prototypes for signal_image_error and
1011         signal_image_error_2.
1012         Suggested by Hrvoje Niksic <hniksic@srce.hr>
1013
1014 1998-04-18  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1015
1016         * fileio.c: Changed `directory-sep-char' to `path-separator',
1017         following a change in GNU Emacs.
1018
1019 1998-04-21  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
1020
1021         * eldap.c: As suggested by Hrvoje Niksic
1022         (Fldap_search_internal): Loop and GCPRO cleanup
1023         (print_ldap): Removed text translation
1024
1025 1998-04-19  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
1026
1027         * eldap.c: (print_ldap): Ignore escapeflag
1028         (Fldap_search_internal): Added unwind protection to appropriately
1029         free the LDAP temporary structures in case of interruption.  Added
1030         a QUIT to the result fetching loop.
1031
1032 1998-04-19  SL Baur  <steve@altair.xemacs.org>
1033
1034         * emacs.c (TopLevel): New variables: Vinfodock_major_version,
1035         Vinfodock_minor_version, Vinfodock_build_version.
1036         (vars_of_emacs): Initialize them.
1037
1038         * config.h.in: Add InfoDock version numbers.
1039
1040         * device-x.c (have_xemacs_resources_in_xrdb): distinguish whether
1041         we're running as InfoDock or XEmacs.
1042
1043 1998-04-18  SL Baur  <steve@altair.xemacs.org>
1044
1045         * glyphs-x.c: Remove definition of Q_color_symbols.
1046
1047         * glyphs.h: Declare Q_color_symbols and evaluate_xpm_color_symbols.
1048
1049 1998-04-17  Jonathan Harris <jhar@tardis.ed.ac.uk>
1050
1051         * console-msw.h:
1052         Added "commctrl.h" and "X11/xpm.h" includes to support toolbars
1053         and XPM.
1054
1055         * glyphs-msw.c:
1056         Removed (!NILP (Vmswindows_bitmap_file_path)) check in
1057         locate_pixmap_file() so that lookups of absolute paths don't fail
1058         if this is unset.
1059         Added new mswindows_xpm_normalize();
1060
1061         * glyphs.h:
1062         * glyphs.c:
1063         * glyphs-x.c:
1064         Moved generic XPM support out of glyphs-x.c into glyphs.c.
1065         Functions moved:
1066         signal_image_error, signal_image_error_2,
1067         check_valid_xpm_color_symbols, evaluate_xpm_color_symbols,
1068         xpm_possible_dest_types.
1069         xpm_normalize and xpm_instantiate in glyphs.c just call the
1070         appropriate x_ or mswindows_ funtion in glyphs-x.c or
1071         glyphs-msw.c.
1072
1073         * toolbar-msw.c:
1074         Don't assert on empty toolbar.
1075
1076         * toolbar.c:
1077         * toolbar.h:
1078         Adjusted mswindows default toolbar height/widths so redisplay is
1079         correct.
1080
1081 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
1082
1083         * tooltalk.c (tt_message_arg_ival_string): Ditto.
1084
1085         * redisplay.c (window_line_number): Ditto.
1086         (decode_mode_spec): Ditto.
1087
1088         * glyphs.c (print_image_instance): Ditto.
1089
1090         * doprnt.c (emacs_doprnt_1): Ditto.
1091
1092         * data.c (Fnumber_to_string): Use long_to_string().
1093
1094         * lisp.h: Declare long_to_string().
1095
1096         * print.c (Fprin1_to_string): Do the Vprint_gensym_alist stunt.
1097
1098         * emacs.c (main_1): Don't create print stream.
1099
1100         * print.c: Removed print_stream implementation.
1101         (print_prepare): Don't create a print_stream.
1102         (long_to_string): New function, from GNU Wget.
1103         (print_internal): Use it.
1104         (output_string): alloca() copies only for strings smaller than
1105         65536 bytes; else, inhibit gc.
1106
1107 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
1108
1109         * config.h.in: Check for DLERROR.
1110
1111         * sysdll.c: Cosmetic changes.
1112
1113 1998-04-18  Hrvoje Niksic  <hniksic@srce.hr>
1114
1115         * sysdll.c (dll_error): It's `dlerror', not `dl_error'.
1116
1117 1998-04-17  Kirill M. Katsnelson  <kkm@kis.ru>
1118
1119         * specifier.c (prune_specifiers): Fix for Vall_specifiers
1120         corruption.
1121
1122         * specifier.h: Fixed GC_* macros to utilize GC_EQ, as suggested by
1123         Steve.
1124
1125 1998-04-17  Hrvoje Niksic  <hniksic@srce.hr>
1126
1127         * dll.c (Fdll_open): Simplify interface.
1128
1129         * sysdll.c: Allocate BUF dynamically.
1130
1131         * cmds.c (internal_self_insert): Removed `no-self-insert' hack.
1132
1133 Fri Apr 17 12:59:35 1998  Andy Piper  <andyp@parallax.co.uk>
1134
1135         * event-msw.c: don't use LocalAlloc()/LocalFree(). With unix
1136         processes use a filestream for output. This makes subprocess
1137         support work under cygwin.
1138
1139 1998-04-17  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1140
1141         * fileio.c (vars_of_fileio): Resurreced directory-sep-char to be
1142         DIRECTORY_SEP instead of hardwired "/".
1143
1144 1998-04-16  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1145
1146         * fileio.c (file_name_as_directory): Now returns "./" (or NT
1147         equivalent) for "".
1148
1149 1998-04-09  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
1150
1151         * eldap.c: Fully rewritten introducing a new opaque LDAP Lisp
1152         data type.
1153
1154         * eldap.h: Ditto
1155
1156 1998-04-17  Olivier Galibert  <galibert@pobox.com>
1157
1158         * fileio.c (vars_of_fileio): Finish directory_sep_char removal.
1159
1160 1998-04-14  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1161
1162         * emacs.c (main_1): Added option --debug-paths and analogous
1163         variable.
1164
1165 1998-04-15  Hrvoje Niksic  <hniksic@srce.hr>
1166
1167         * frame-msw.c (Vmswindows_frame_being_created): Don't staticpro.
1168
1169         * console-msw.h, event-msw.c, frame-msw.c: Renamed
1170         mswindows_frame_being_created to Vmswindows_frame_being_created.
1171
1172 1998-04-12  Kirill M. Katsnelson  <kkm@kis.ru>
1173
1174         * event-msw.c (emacs_mswindows_quit_p): Do not check for quit
1175         character in modal loop.
1176
1177         * fileio.c: Removed Vdirectory_sep_char variable.
1178
1179         * lisp.h: Removed extern decl for the above.
1180
1181 1998-04-16  SL Baur  <steve@altair.xemacs.org>
1182
1183         * indent.c (vertical_motion_1): set_marker_restricted takes
1184         Lisp_Objects.
1185
1186 1998-04-17  Hrvoje Niksic  <hniksic@srce.hr>
1187
1188         * md5.c (Fmd5): Correctly rename argument.
1189
1190         * print.c (Fprin1_to_string): Remove useless variable.
1191
1192 1998-04-13  Greg Klanderman  <greg@alphatech.com>
1193
1194         * indent.c (vertical_motion_1): new helper function to share
1195         common code between Fvertical_motion and Fvertical_motion_pixels.
1196         Properly handle the WINDOW argument as the doc string indicates it
1197         should.  Update docstrings to be more clear and concise.
1198         (Fvertical_motion): use vertical_motion_1.
1199         (Fvertical_motion_pixels): use vertical_motion_1.
1200
1201 1998-04-15  Kirill M. Katsnelson  <kkm@kis.ru>
1202
1203         * specifier.h: Introduced magic specifiers. Please read comments
1204         in specifier.h.
1205
1206         * specifier.c: Reworked many functions to support magic
1207         specifiers.
1208
1209         * scrollbar.c (specifier_vars_of_scrollbar): Made magic specifiers
1210         Vscrollbar_width and Vscrollbar_height.
1211         (init_frame_scrollbars): Enabled critical lisp code operate on
1212         ghost specifiers.
1213         (init_device_scrollbars): Ditto.
1214         (init_global_scrollbars): Ditto.
1215
1216         * scrollbar-msw.c (Fmswindows_init_scrollbar_metrics): Scrollbar
1217         init function, called from init-scrollbars-from-resuorce in
1218         lisp/scrollbar.c
1219         (syms_of_scrollbar_mswindows): DEFSUBR it.
1220
1221         * emacs.c (main_1): Called syms_of_scrollbar_mswindows()
1222
1223         * symsinit.h: Declared syms_of_scrollbar_mswindows()
1224
1225 Thu Apr 16 12:59:35 1998  Andy Piper  <andyp@parallax.co.uk>
1226
1227         * frame-msw.c:
1228         * console-msw.h: add toolbars to frame parameters.
1229
1230         * emacs.c: call console_type_create_mswindows_toolbar
1231
1232         * event-msw.c: call toolbar handling code in main event loop.
1233
1234         * glyphs-msw.c (mswindows_create_icon_from_image)
1235         (mswindows_resize_dibitmap_instance): new functions. Remove mask
1236         stuff from various others.
1237
1238         * redisplay-msw.c:
1239         * menubar-msw.c: warning elimination.
1240
1241         * toolbar-msw.c: new file. Reasonable implementation of toolbars
1242         for mswindows. Some features are not complete.
1243
1244         * toolbar.c: enable toolbar parameters for mswindows.
1245
1246         * toolbar.h: choose slightly different toolbar defaults for
1247         mswindows.
1248
1249 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
1250
1251         * lisp.h (CHECK_IMPURE): Use it.
1252
1253         * data.c (pure_write_error): Accept an argument.
1254
1255         * emacs.c (vars_of_emacs): New variable `internal-error-checking';
1256         initialize it.
1257
1258 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
1259
1260         * fileio.c (Fmake_temp_name): Avoid random(); simplify.
1261
1262 1998-04-13  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1263
1264         * emacs.c (complex_vars_of_emacs): Changed configure-exec-path to
1265         configure-exec-directory.
1266         (decode_path): Doesn't call file-name-as-directory no more as
1267         empty components would lead to evil behavior.
1268
1269 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
1270
1271         * extents.c (decode_extent): Unify the error message.
1272
1273 1998-04-17  Hrvoje Niksic  <hniksic@srce.hr>
1274
1275         * md5.c (Fmd5): Simplify; use only input and encoding streams.
1276         (Fmd5): Separate coding guesswork into md5_coding_system().
1277         (Fmd5): Don't close the stream; deleting it is enough.
1278
1279 1998-04-16  Hrvoje Niksic  <hniksic@srce.hr>
1280
1281         * fileio.c (Finsert_file_contents_internal): Prefer fstat() over
1282         stat.
1283
1284 1998-04-15  Martin Buchholz  <martin@xemacs.org>
1285
1286         * fns.c (Fsubseq): Make (subseq nil 0 0) return nil, not #*.
1287
1288 1998-04-16  SL Baur  <steve@altair.xemacs.org>
1289
1290         * device-x.c (get_device_from_display): Use "infodock" as the
1291         fallback name when running as InfoDock.
1292
1293 1998-04-14  Greg Klanderman  <greg@alphatech.com>
1294
1295         * device-x.c (compute_x_app_name): New function needed to compute
1296         application name to use now that XtOpenDisplay is decomposed into
1297         XOpenDisplay and XtDisplayInitialize.
1298         (x_init_device): use it.
1299
1300 1998-04-06  Greg Klanderman  <greg@alphatech.com>
1301
1302         * device-x.c (have_xemacs_resources_in_xrdb): adhere to coding
1303         standards and avoid opening display twice by breaking
1304         XtOpenDisplay into XOpenDisplay and XtDisplayInitialize.
1305         (x_init_device): Ditto.
1306
1307 1998-04-15  Olivier Galibert  <galibert@pobox.com>
1308
1309         * s/aix3-2-5.h: Ditto.
1310
1311         * s/aix4-1.h: Ditto.
1312
1313         * s/aix4-2.h: Ditto.
1314
1315         * s/bsd386.h: Ditto.
1316
1317         * s/bsdos2-1.h: Ditto.
1318
1319         * s/dgux.h: Ditto.
1320
1321         * s/esix.h: Ditto.
1322
1323         * s/esix5r4.h: Ditto.
1324
1325         * s/hpux8.h: Ditto.
1326
1327         * s/hpux9-shr.h: Ditto.
1328
1329         * s/hpux9-x11r4.h: Ditto.
1330
1331         * s/hpux9.h: Ditto.
1332
1333         * s/hpux9shxr4.h: Ditto.
1334
1335         * s/isc3-0.h: Ditto.
1336
1337         * s/isc4-0.h: Ditto.
1338
1339         * s/ptx.h: Ditto.
1340
1341         * s/sco4.h: Ditto.
1342
1343         * s/sco5.h: Ditto.
1344
1345         * s/usg5-3.h: Ditto.
1346
1347         * s/usg5-4-2.h: Ditto.
1348
1349         * s/usg5-4.h: Kill a bunch of now autodetected defines.
1350
1351 1998-04-05  Greg Klanderman  <greg@alphatech.com>
1352
1353         * window.c (Fwindow_displayed_pixel_height): rename more
1354         appropriately as window-text-pixel-height.
1355         (syms_of_window): Update the DEFSUBR.
1356         (Fwindow_text_pixel_width): New function for completeness.
1357         (Fwindow_text_pixel_edges): New function.
1358         (syms_of_window): DEFSUBR 2 new functions.
1359
1360 1998-04-13  Greg Klanderman  <greg@alphatech.com>
1361
1362         * redisplay.c (redisplay_window): When echo area is active, and we
1363         swap in the echo area buffer, restore the minibuffer's pointm and
1364         startp when we restore the minibuffer to the window.  This avoids
1365         having the minibuffer point randomly change when it is active but
1366         not selected and a message is shown.
1367
1368 1998-04-16  Hrvoje Niksic <hniksic@srce.hr>
1369
1370         * md5.c: replaced RSA reference code with GNU textutils implementation.
1371
1372 1998-04-14  Martin Buchholz  <martin@xemacs.org>
1373
1374         * signal.c (init_signals_very_early): Make `nohup xemacs &' work.
1375         Wrap #ifdefs around uses of SIGQUIT and SIGILL.
1376
1377 1998-04-12  Kirill M. Katsnelson  <kkm@kis.ru>
1378
1379         * objects-msw.c (mswindows_initialize_font_instance): Fixed assert
1380         abuse; proper cleanup on GDI error.
1381
1382 1998-04-14  Kirill M. Katsnelson  <kkm@kis.ru>
1383
1384         * console-msw.h: Declared get_nt_process_handle() and
1385         mswindows_bump_queue().
1386         Removed declarations for mswindows_enqueue_dispatch_event() and
1387         mswindows_enqueue_magic_event().
1388
1389         * event-msw.c (emacs_mswindows_create_stream_pair): Casts on
1390         handle types and get_osfhandle() return type. From Andy Piper.
1391         (emacs_mswindows_select_process): Get Win32 process handle
1392         directly from process lrecord.
1393         (get_process_handle): Removed function.
1394         (emacs_mswindows_handle_magic_event): Removed handling of
1395         XM_BUMPQUEUE magic event.
1396         (mswindows_wnd_proc): Removed handling of WM_EXITMENULOOP message,
1397         which called a do-nothing handler in menubar-msw.c
1398         (mswindows_wnd_proc, WM_EXITSIZEMOVE): Queue an empty event
1399         instead of magic event, via mswindows_bump_queue().
1400         (mswindows_wnd_proc, WM_CLOSE): Ditto.
1401         (mswindows_need_event): Call mswindows_bump_queue() upon process
1402         termination, in case process pipe does not get closed along.
1403         Do not close process handle.
1404         (mswindows_bump_queue): Added function.
1405         (mswindows_enqueue_dispatch_event): Made static.
1406         (ntpipe_slurp_*): Revamped the slurp thread implementation so the
1407         stream does not expect the thread to terminate when stream is closed.
1408         (ntpipe_slurp_reader): Fixed an attempt to read zero bytes from
1409         the pipe.
1410
1411         * event-stream.c (event_stream_deal_with_async_timeout):
1412         Conditionalized timer-based polling for finished processes on
1413         HAVE_UNIX_PROCESSES.
1414
1415         * menubar-msw.c (mswindows_handle_wm_command): Queued proper bump
1416         queue event.
1417         (mswindows_handle_wm_exitmenuloop): Removed function.
1418
1419         * menubar-msw.h: Removed unused function prototype.
1420
1421         * process-nt.c (get_nt_process_handle): Added function.
1422
1423         * signal.c (init_poll_for_sigchld): Conditionalized on
1424         HAVE_UNIX_PROCESSES.
1425
1426 1998-04-13  Kirill M. Katsnelson  <kkm@kis.ru>
1427
1428         * frame-msw.c: Implemented the following methods:
1429         mswindows_get_mouse_position()
1430         mswindows_set_mouse_position()
1431         mswindows_frame_totally_visible_p()
1432
1433 1998-04-11  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1434
1435         * emacs.c: Renamed inhibit-package-init to inhibit-early-packages
1436         to better reflect its semantics.
1437         Renamed inhibit-update-autoloads to inhibit-package-autoloads.
1438         (complex_vars_of_emacs): Added site-directory and lisp-directory.
1439         -no-packages -> no-early-packages.
1440
1441         * Makefile.in.in: Reflected reinstatement of paths.h.in.
1442
1443         * paths.h.in: Reinstated.
1444
1445         * paths.h.in.in: Removed.
1446
1447         * config.h.in: Moved configure path and directory options from
1448         paths.h.in.in.
1449
1450 1998-04-11  Kirill M. Katsnelson  <kkm@kis.ru>
1451
1452         * event-msw.c (emacs_mswindows_quit_p): don't recurse.
1453
1454 1998-04-10  Kirill M. Katsnelson  <kkm@kis.ru>
1455
1456         * callproc.c (init_callproc): Correctly initialize
1457         `shell-file-name' for WINDOWSNT
1458
1459         * emacs.c (main_1): Properly called new functions (see symsinit.h
1460         entry for which).
1461
1462         * event-msw.c (struct ntpipe_slurp_stream):
1463         (slurp_thread):
1464         (make_ntpipe_input_stream):
1465         (get_ntpipe_input_stream_waitable):
1466         (get_ntpipe_input_stream_param):
1467         (ntpipe_slurp_reader):
1468         (ntpipe_slurp_closer):
1469         (init_slurp_stream): Win32 pipe input stream implementation.
1470         (struct ntpipe_shove_stream):
1471         (shove_thread):
1472         (make_ntpipe_output_stream):
1473         (get_ntpipe_output_stream_param):
1474         (ntpipe_shove_writer):
1475         (ntpipe_shove_was_blocked_p):
1476         (ntpipe_shove_flusher):
1477         (ntpipe_shove_closer):
1478         (init_shove_stream): Win32 pipe output stream implementation.
1479         (mswindows_enqueue_process_event): Dispatch helper.
1480         (find_waitable_handle):
1481         (add_waitable_handle):
1482         (remove_waitable_handle): New three, waitable handles handling.
1483         (mswindows_need_event_in_modal_loop): Simplified.
1484         (mswindows_need_event): Simplified.
1485         (mswindows_need_event): Generate process events on process output;
1486         kick status_notify when a process ends.
1487         (mswindows_find_console): Simplified.
1488         (emacs_mswindows_event_pending_p): Adjusted parameters to
1489         mswindows_need_event().
1490         (emacs_mswindows_next_event): Ditto.
1491         (get_process_input_waitable):
1492         (get_process_handle): Process select/unselect helpers.
1493         (emacs_mswindows_select_process): Implemented.
1494         (emacs_mswindows_unselect_process): Implemented.
1495         (emacs_mswindows_quit_p): Call mswindows_drain_windows_queue()
1496         directly so do not even try do dequeue process events. Saved a
1497         byte and a tick.
1498         (emacs_mswindows_create_stream_pair): Implemented.
1499         (emacs_mswindows_delete_stream_pair): Implemented.
1500         (vars_of_event_mswindows): Registered the above two.
1501         (lstream_type_create_mswindows_selectable): Function called from
1502         emacs.c to create two pipe lstream types.
1503
1504         * ntproc.c (sys_select): Disgustful brain fart this file is.
1505
1506         * process-nt.c: New file: Asynchronous subprocess implemenation
1507         for Win32.
1508
1509         * process.h: Declare Fprocess_id().
1510
1511         * signal.c (init_signals_very_early): Conditionalize possibly
1512         nonexistent signals.
1513
1514         * symsinit.h: Declared:
1515         lstream_type_create_mswindows_selectable ()
1516         process_type_create_nt ()
1517         vars_of_process_nt ()
1518
1519         * s/windowsnt.h: Defined HAVE_WIN32_PROCESSES.
1520         Removed fake SIGTRAP, SIGPIPE and SIGCHLD.
1521
1522 1998-04-10  Martin Buchholz  <martin@xemacs.org>
1523
1524         * fns.c (Fnthcdr):
1525         Most times through the loop will get a cons, so optimize for that.
1526
1527         * bytecode.c (Fbyte_code): Remove '91 vintage compiler bug workaround.
1528         Add NATNUMP check for Bnth bytecode.
1529         Bnth: Optimize case of n > length (list).
1530         QUITs not necessary since even if list is circular, n will count
1531         down to 0.
1532         Bnthcdr: inline the code for nthcdr (we have a bytecode for it,
1533         after all)
1534         Bcdr, Bcar: Use tail recursion.
1535
1536 1998-04-10  Hrvoje Niksic  <hniksic@srce.hr>
1537
1538         * redisplay.c (redisplay_window): Don't lose with negative
1539         scroll_step.
1540
1541 1998-04-09  Hrvoje Niksic  <hniksic@srce.hr>
1542
1543         * fileio.c (Fmake_temp_name): Don't use `+' in generated file
1544         names.
1545         (Fmake_temp_name): Randomize the initial values of counters.
1546
1547 1998-04-07  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1548
1549         * Makefile.in.in: paths.h.in is now generated from paths.h.in.in.
1550
1551         * emacs.c (decode_path): Removed parsing of "::" into nil component.
1552
1553 1998-04-09  Martin Buchholz  <martin@xemacs.org>
1554
1555         * lstream.c (make_filedesc_stream_1): Fix another Martin blooper.
1556
1557 1998-04-07  SL Baur  <steve@altair.xemacs.org>
1558
1559         * emacs.c (Fdump_emacs): Delete superfluous open comment.
1560
1561 1998-04-06  SL Baur  <steve@altair.xemacs.org>
1562
1563         * emacs.c (Fdump_emacs): Move call to disable_free_hook back to
1564         Fdump_emacs where it belongs.
1565
1566 1998-04-07  Kirill M. Katsnelson  <kkm@kis.ru>
1567
1568         * nt.c (sys_mkdir): Added the second unused parameter, after UNIX
1569         version. Suggested by Martin.
1570
1571 1998-04-07  Kirill M. Katsnelson  <kkm@kis.ru>
1572
1573         * event-msw.c (mswindows_wnd_proc): Fix member access macro names.
1574
1575         * frame-msw.c (mswindows_frame_property):
1576         (mswindows_internal_frame_property_p):
1577         (mswindows_frame_properties): Implemented for the 'left and 'top
1578         properties.
1579         (console_type_create_frame_mswindows): Regsitered the above.
1580         (mswindows_set_title_from_bufbyte): Update title only if it has
1581         really changed. This avoids a bit of flashing.
1582
1583         * console-msw.h (FRAME_MSWINDOWS_TITLE_CHECKSUM): To update title
1584         smoother.
1585         (MSWINDOWS_FRAME_*(f)): Were MSWINDOWS_FRAME_*(f). Eeek!
1586
1587 1998-04-06  Kazuyuki IENAGA <ienaga@jsys.co.jp>
1588
1589         * unexfreebsd.c: introduce FreeBSD port's patch to avoid
1590         FreeBSD-current warns "Absurd new brk addr".
1591
1592 1998-04-06  Colin Rafferty  <colin@xemacs.org>
1593
1594         * glyphs-x.c (struct gif_error_struct): Made the err_str point to
1595         a CONST char* instead of non-const.
1596         (tiff_memory_write): Add fake return statement to shut up warnings.
1597
1598 1998-04-06  Hrvoje Niksic  <hniksic@srce.hr>
1599
1600         * fileio.c (Finsert_file_contents_internal): Correctly handle
1601         special files larger than 32K.
1602
1603 1998-04-06  Hrvoje Niksic  <hniksic@srce.hr>
1604
1605         * fileio.c (Fmake_temp_name): Don't call mktemp().
1606
1607 1998-04-06  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1608
1609         * unexelf.c: include <config.h> first.
1610
1611 1998-04-04  Martin Buchholz  <martin@xemacs.org>
1612
1613         * sysdep.c:  Add #include <sys/termio.h> for AIXHFT as suggested
1614         on c.e.x.
1615
1616         * nt.c:
1617         * ntproc.c:
1618         Change "config.h" to <config.h>.  Add dire warnings to code since
1619         config.h is not included first.
1620
1621         * powerpc.h: Avoid redefinition warning on START_FILES.
1622
1623         * window.c: Rename Vminibuf_scroll_window to Vminibuffer_scroll_window.
1624         * hpplay.c: Rename play_gain to hp_play_gain in accordance with
1625         coding standards.
1626
1627         * frame-x.c (x_lower_frame):
1628         (x_raise_frame_1): Clarify code.  Save a nanosecond if frame not
1629         visible.
1630
1631         * fileio.c (Fmake_temp_name): Use static CONST suffix; save a
1632         nanosecond.
1633
1634 1998-04-05  Amir J. Katz  <amir@ndsoft.com>
1635
1636         * sysproc.h: Added #include <sys/types.h> before <sys/socket.h>
1637         otherwise callproc.c does not compile on SunOS 4.1.4 with gcc 2.8.1
1638
1639         * sysdep.h: strerror() does not return CONST in gcc 2.8.1
1640
1641 1998-04-05  Hrvoje Niksic  <hniksic@srce.hr>
1642
1643         * redisplay.c (generate_fstring_runes): Grok specifiers and
1644         symbols indirecting to specifiers.
1645
1646 1998-04-06  Olivier Galibert  <galibert@pobox.com>
1647
1648         * events.c (print_event): XINT() may return a long.
1649
1650         * insdel.c (make_gap): Thou shan't cast EMACS_INT_MAX to int.
1651         (buffer_insert_string_1): ditto.
1652
1653         * regex.c (print_partial_compiled_pattern): Neither EMACS_INTs nor
1654         ptrdiff_t are portably printable as an int.
1655
1656         * redisplay.c (window_line_number): Don't assume that an EMACS_INT
1657         in an int.
1658
1659         * alloc.c (report_pure_usage): Don't assume that a size_t is
1660         displayable as an int.
1661
1662 1998-04-06  SL Baur  <steve@altair.xemacs.org>
1663
1664         * process-unix.c: Fix typo in #ifdef.
1665         From Hrvoje Niksic <hniksic@srce.hr>
1666
1667 1998-04-06  Olivier Galibert  <galibert@pobox.com>
1668
1669         * unexelfsgi.c (unexec): Don't treat the sbss section as bss if it
1670         isn't one. Needed for irix 6.5.
1671
1672 1998-04-05  Martin Buchholz  <martin@xemacs.org>
1673
1674         * sysdep.h: Two prototypes that weren't properly size_t'ed
1675
1676 1998-04-04  Martin Buchholz  <martin@xemacs.org>
1677
1678         * ralloc.c: mallopt <==> malloc.h.
1679
1680 1998-04-04  Martin Buchholz  <martin@xemacs.org>
1681
1682         * emacs.c: #include <paths.h>, not "paths.h"
1683         This is a standard bug.  It manifests if you configure in the
1684         source tree, then configure elsewhere with --srcdir.
1685         Remove misleading PATH_EXEC comment; PATH_PACKAGEPATH is also used.
1686
1687 1998-04-04  Olivier Galibert  <galibert@pobox.com>
1688
1689         * s/386bsd.h: Removed obsolete define.
1690
1691 1998-04-04  Olivier Galibert  <galibert@pobox.com>
1692
1693         * s/386-ix.h: Removed useless define.
1694
1695         * sysdep.c (insque): Removed. Not used anywhere in the code.
1696
1697 1998-04-04  Olivier Galibert  <galibert@pobox.com>
1698
1699         * process-unix.c (unix_kill_child_process): Use TIOCSIGSEND or
1700         TIOCSIGNAL as needed.
1701
1702         * s/usg5-4.h: Remove kludgy TIOCSIGSEND #define which breaks on
1703         irix 6.5.
1704
1705 1998-03-28  Hrvoje Niksic  <hniksic@srce.hr>
1706
1707         * insdel.c (emchar_string_displayed_columns): Simplify for
1708         non-Mule case.
1709
1710         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Issue nicer output.
1711
1712 1998-04-01  Martin Buchholz  <martin@xemacs.org>
1713
1714         * sysdir.h (sys_mkdir):
1715         * sysfile.h (sys_read):
1716         (sys_write):
1717         (sys_chmod):
1718         (sys_creat):
1719
1720         * sysdep.c (sys_read_1):
1721         (sys_read):
1722         (sys_write_1):
1723         (sys_write):
1724         (sys_mkdir):
1725         (sys_readlink):
1726         (sys_chmod):
1727         (sys_creat):
1728
1729         * nt.c (sys_read):
1730         (sys_chmod):
1731         (sys_creat):
1732         (sys_write): Change types of sys_* in accordance with published
1733         standards. Use size_t and mode_t instead of unsigned int and int.
1734
1735 1998-04-03  Martin Buchholz  <martin@xemacs.org>
1736
1737         * config.h.in (enum_field):
1738         * lisp-union.h:
1739         * extents.h:
1740         * redisplay.c (add_margin_runes):
1741         Prefer enums for use as bitfields in preference to unsigned int,
1742         but allow the possibility to suppress it if a compiler disallows
1743         it or emits annoying warnings.  Currently only __SUNPRO_C cc -Xc
1744         used unsigned ints.
1745
1746         * event-stream.c: Fixup DEFVAR for
1747         Vcomposed_character_default_binding; Real bug!
1748         * event-msw.c: Rename mswindows_button2* to mswindows_mouse_button*
1749         * emacs.c: Rename suppress_early_backtrace to
1750         suppress_early_error_handler_backtrace
1751         * objects-x.c: Rename handle_nonfull_spec_fonts to
1752         x_handle_non_fully_specified_fonts
1753         * lread.c: Rename puke_on_fsf_keys to
1754         fail-on-bucky-bit-character-escapes
1755         * lread.c:
1756         * doc.c: Rename Vdoc_file_name to Vinternal_doc_file_name
1757         * fileio.c:
1758         * bufslots.h:
1759         * buffer.c: Rename save_length to saved_size
1760         * alloc.c: Rename pureptr to pure_bytes_used
1761         * abbrev.c: Rename last_abbrev_point to last_abbrev_location
1762         * lisp.h:
1763         DEFVAR_* are supposed to be named following a standard convention.
1764
1765 1998-04-03  Martin Buchholz  <martin@xemacs.org>
1766
1767         * callint.c:
1768         * ralloc.c:
1769         * data.c:
1770         * eldap.c:
1771         * extents.c:
1772         * frame-msw.c:
1773         * frame-x.c:
1774         * general.c:
1775         * process.c:
1776         * xselect.c:
1777         Rationalize defsymbol handling.
1778         defsymbols are supposed to have equivalent C and Lisp names, for
1779         consistency.  At least one real bug (end-glyph-layout) fixed.
1780         Move multiply defsymbol'ed stuff into general.c.
1781
1782 1998-04-03  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1783
1784         * m/ibmrs6000.inp: Removed; obsoleted by configure.in changes.
1785
1786 1998-04-03  Martin Buchholz  <martin@xemacs.org>
1787
1788         * console-tty.c (Fset_console_tty_input_coding_system):
1789         (Fset_console_tty_output_coding_system):
1790         Input/Output and encoding/decoding were reversed.
1791
1792 1998-04-02  SL Baur  <steve@altair.xemacs.org>
1793
1794         * m/powerpc.h: Remove LD_SWITCH_MACHINE for Linux.
1795
1796 1998-04-02  Greg Klanderman  <greg@alphatech.com>
1797
1798         * window.c (set_window_pixsize): Move up call to
1799         check_min_window_sizes.
1800
1801         * indent.c (vmotion_1): renamed from vmotion() and added
1802         additional argument to optionally return the pixel motion.
1803         (vpix_motion): Helper for vmotion_1.
1804         (vmotion): Wrapper - just call vmotion_1() with the right args.
1805         (Fvertical_motion_pixels): New function.
1806         (syms_of_indent): DEFSUBR it.
1807
1808 1998-04-02  Martin Buchholz  <martin@xemacs.org>
1809
1810         * xselect.c:
1811         * event-Xt.c:
1812         * emacs.c:
1813         Remove last vestiges of #ifdef EPOCH code.  It had no chance of
1814         working anyways.  In honour of seeing Marc Andreesen in person for
1815         the first time today.
1816
1817 1998-04-01  Martin Buchholz  <martin@xemacs.org>
1818
1819         * extents.h:
1820         * lisp-union.h:
1821         Don't use enums as bitfields - only unsigned ints.
1822         Fixes: warning: nonportable bit-field type
1823
1824         * eval.c (call_with_suspended_errors): More volatilizing to
1825         appease Sunpro cc.
1826
1827         * mem-limits.h:
1828         * ralloc.c: Remove #undef NULL; they're not even used!
1829
1830         * process-unix.c (unix_send_process): send_process is a method, so
1831         we can't include volatile in the prototype.  We make the argument
1832         non-volatile, make a volatile copy, and then use that instead.
1833
1834         * frame-x.c (x_delete_frame): The `frame' variable is initialized
1835         but not actually used.
1836
1837         * Makefile.in.in (xselect.o): The last line of b34-pre2's
1838         src/Makefile.in.in contains a dependency that should have been
1839         patched away.
1840         (mostlyclean): Remove the removal of depend.* - no such files
1841         exist anymore
1842
1843         * make-src-depend: include a dependency on only one of
1844         lisp-union.h or lisp-disunion.h.
1845
1846 1998-04-01  Martin Buchholz  <martin@xemacs.org>
1847
1848         * specifier.c (specifier_instance_from_inst_list): A nanosecond
1849         saved is a nanosecond earned.
1850
1851 1998-03-31  Greg Klanderman  <greg@alphatech.com>
1852
1853         * redisplay.c (update_line_start_cache): Fix bug involving
1854         invisible text in which the line_start_cache gets hosed.
1855
1856 Sun Mar 29 1998  Andy Piper  <andyp@parallax.co.uk>
1857
1858         * console-msw.h: define FRAME_MSWINDOWS_CDC.
1859
1860         * frame-msw.c: (mswindows_set_frame_icon) new function. Works but
1861         no masks as yet.
1862
1863         * glyphs-msw.c: GNUize the code. Fix 24bpp display and make the
1864         default. Add managment of icons.
1865
1866         * glyphs-msw.h: add icon attributes.
1867
1868         * redisplay-msw.c: (mswindows_output_pixmap) remove unused cursor
1869         code.
1870
1871         * objects-msw.c: eliminate char subscript warning.
1872
1873 1998-04-01  SL Baur  <steve@altair.xemacs.org>
1874
1875         * sysdll.c (dll_close): fix typo.
1876         Suggested by Marcus Thiessel <marcus_thiessel@hp.com>
1877
1878
1879 1998-03-28  Kyle Jones  <kyle_jones@wonderworks.com>
1880
1881         * device.c (Fset_device_class): Recompute cached
1882           specifiers everywhere if device class is changed.
1883           Set various redisplay flags so that the device's
1884           various frames are redisplayed.
1885
1886 1998-03-31  SL Baur  <steve@altair.xemacs.org>
1887
1888         * lrecord.h (DECLARE_NONRECORD): Remove redundant paren.
1889         Suggested by Martin Buchholz <martin@xemacs.org>
1890
1891 1998-04-01  Kirill M. Katsnelson  <kkm@kis.ru>
1892
1893         * gui.c (gui_item_display_flush_left): Fix suffix length.
1894
1895 1998-04-01  Kirill M. Katsnelson  <kkm@kis.ru>
1896
1897         * s/windowsnt.h: Defined SIZEOF_LONG_LONG and SIZEOF_VOID_P
1898
1899         * dired-msw.c: Included <limits.h>
1900
1901         * config.h.in (VOID_P_BITS): Fixed so that uses SIZEOF_VOID_P
1902
1903 1998-03-31  SL Baur  <steve@altair.xemacs.org>
1904
1905         * glyphs.c (image_instantiate_cache_result): Correct order of
1906         parameters to Fputhash.
1907         Suggested by Kirill M. Katsnelson <kkm@kis.ru>
1908
1909 1998-03-30  Martin Buchholz  <martin@xemacs.org>
1910
1911         * redisplay.c (create_right_glyph_block): glyph_type should really
1912         be glyph_layout.
1913
1914 1998-03-29  Martin Buchholz  <martin@xemacs.org>
1915
1916         * sysfile.h: Move all encapsulations from lisp.h/emacsfns.h into
1917         sysfile.h.  Users of the functionality herein will have to
1918         #include sysfile.h.
1919         Check all .o files for missing #includes.
1920         * config.h.in:
1921         Discovered that config.h.in was missing ENCAPSULATE_CLOSEDIR, as a
1922         result of fixing the above.
1923
1924         * gui.c (gui_item_add_keyval_pair): We should not use the idiom
1925         error ("%S", lisp_object) in C code.
1926         I converted the code to use signal_simple_error_2 instead.
1927         (signal_too_long_error): Ditto.
1928
1929         * glyphs.c (image_instantiate_cache_result): Use XC[AD]R instead
1930         of Fc[ad]r.  This is always called with valid conses, and in fact,
1931         already assumed it.
1932
1933         * font-lock.c (find_context): Use context_none with context
1934         instead of ccontext_none.
1935
1936         * fns.c (Flength): The CONSP and NILP code can be combined.
1937         Change the name of the arg to SEQUENCE from OBJ.
1938         (Fnthcdr): CHECK_NATNUM instead of CHECK_INT.  Optimize out Fcdr calls.
1939         (Felt): Change argument from seq to sequence to match docstring.
1940
1941 1998-03-28  Martin Buchholz  <martin@xemacs.org>
1942
1943         * fns.c (string_putprop):
1944         (string_getprop): Make method functions static.
1945
1946         * window.c (find_window_by_pixel_pos): Warning suppression.
1947
1948         * imgproc.c (splitbox): Warning suppression.
1949
1950         * redisplay-x.c (x_output_eol_cursor): Remove redundant XSETWINDOW.
1951
1952         * glyphs-x.c (signal_image_error):
1953         (signal_image_error_2):
1954         (convert_EImage_to_XImage):  Make functions static.
1955
1956         * editfns.c (Fbuffer_size): Rename the `F' function to
1957         Fbuffer_size in accordance with coding standards.
1958
1959         * dll.c (Fdll_open): Fix up data conversion.
1960         Provide auxiliary function maybe_call_library_function().
1961
1962         * device-x.c (get_x_display): make function static.
1963
1964         * data.c (Fcar): Should generate listp, not consp error.
1965         (Fcdr): Should generate listp, not consp error.
1966
1967 1998-03-27  Martin Buchholz  <martin@xemacs.org>
1968
1969         * console-tty.c (free_tty_console_struct):
1970         Replace con->console_data with CONSOLE_type_DATA (con)
1971
1972         * *.[ch]:  C++ compilability of xemacs, on Linux and Solaris.
1973
1974         * casetab.c (Fcase_table_p): Optimize.
1975
1976         * eval.c:
1977         * bytecode.c:
1978         Rename Fcondition_case_3 to condition_case_3 - it's not a DEFUN.
1979
1980         * buffer.h:
1981         Remove all *BUFFER_OR_STRING* macros - unused.
1982         (memind_to_bytind): Merge two versions of function by moving
1983         #ifdef ERROR_CHECK_BUFPOS into the function body.
1984         (*_DATA_ALLOCA*): get types correct.  rewrite for clarity.
1985
1986         * balloon_help.c (balloon_help_destroy): rearrange order of
1987         functions, and remove prototype from header file.
1988
1989         * alloc.c (deadbeef_memory): Rewrite. Use size_t for clarity.
1990         Don't bother with the left-over bytes, since in practice we will
1991         always get called with a size multiple of 4.
1992         (Fmake_list): CHECK_NATNUM instead of CHECK_INT
1993         (vector[4567]): Currently unused; ifdef out.
1994         (make_pure_float): make function static.
1995         (garbage_collect_1): Optimize.
1996
1997 1998-03-23  Martin Buchholz  <martin@xemacs.org>
1998
1999         * marker.c (print_marker): Fix compiler warning, real bug!
2000
2001         * device.h (MARK_DEVICE_FRAMES_FACES_CHANGED):
2002         * frame.h (MARK_FRAME_FACES_CHANGED):
2003         (MARK_FRAME_TOOLBARS_CHANGED):
2004         (MARK_FRAME_SIZE_CHANGED):
2005         (MARK_FRAME_CHANGED):
2006         (MARK_FRAME_WINDOWS_CHANGED):
2007         (MARK_FRAME_WINDOWS_STRUCTURE_CHANGED):
2008         Fix multiple evaluation of macro arguments.
2009         Macros are a fact of life.  Callers have to use temp variables to
2010         avoid multiple evaluation of arguments.
2011
2012         * data.c (Ftrue_list_p): New function, with obvious meaning.
2013         This is terminology from Cltl2.
2014         Also define a corresponding macro TRUE_LIST_P.
2015
2016         * device-x.c (validify_resource_component): Optimize. Rename.
2017         Use the standard technique of using a precomputed table of valid chars.
2018
2019         (x_get_resource_prefix):
2020         (Fx_get_resource):
2021         (Fx_get_resource_prefix):
2022         Avoid fixed buffer sizes.  Use a char_dynarr.
2023         Run validify_resource_component on all computed components.
2024
2025         * lisp.h: Define a char_dynarr type.
2026
2027 1998-03-22  Martin Buchholz  <martin@xemacs.org>
2028
2029         * fns.c (Fcopy_alist): Optimize.
2030
2031         * alloc.c (acons): New function.  Now used in the C code.
2032         Definition in cl.el is commented out.  Add docstring.
2033         Use acons in functions which create alists.
2034         * lisp/cl.el (acons): Add docstring.  Really otta be a macro, tho.
2035
2036         * buffer.c (Fbuffer_memory_usage):
2037         * window.c (Fwindow_memory_usage):
2038         Clean up horrible consing code using new acons function.
2039         Fix incorrect value reported for gap-overhead.
2040
2041         * fns.c (Fmember):
2042         (Fold_member):
2043         (Fmemq):
2044         (Fold_memq):
2045         (memq_no_quit):
2046         (Fassoc):
2047         (Fold_assoc):
2048         (Fassq):
2049         (Fold_assq):
2050         (assq_no_quit):
2051         (Frassoc):
2052         (Fold_rassoc):
2053         (Frassq):
2054         (Fold_rassq):
2055         (rassq_no_quit):
2056         (Fdelete):
2057         (Fold_delete):
2058         (Fdelq):
2059         (Fold_delq):
2060         (delq_no_quit):
2061         (delq_no_quit_and_free_cons):
2062         (Fremassoc):
2063         (Fremassq):
2064         (remassq_no_quit):
2065         (Fremrassoc):
2066         (Fremrassq):
2067         (remrassq_no_quit):
2068         (Fnreverse):
2069         (Freverse):
2070         (Fnthcdr):
2071         Optimize.
2072         Replace calls to Fcar, Fcdr, Fsetcar with XCAR and XCDR.
2073         Simplify logic.
2074         Many of these functions wouldn't QUIT if called on cyclic lists.
2075         e.g. try (progn (setq x '(nil)) (setcdr x x) (reverse x))
2076         One benchmark of delq showed it to be 3 times faster.
2077
2078         * emacs.c:
2079         * database.c:
2080         Cleanup of database functions.
2081         Make the get_subtype and get_type methods return Lisp_Objects,
2082         instead of C strings.  No more need for both dbm_type and dbm_lisp_type.
2083         Rewrite the doc strings to be consistent with XEmacs tradition.
2084         Replace old `dbm' names with `database'.
2085         Rename struct database to struct Lisp_Database.
2086         Rename DEFUN arguments to `database', when applicable.
2087
2088         * buffer.c:
2089         * chartab.c:
2090         * console.c:
2091         * data.c:
2092         * database.c:
2093         * device.c:
2094         * elhash.c:
2095         * eval.c:
2096         * event-stream.c:
2097         * extents.c:
2098         * faces.c:
2099         * frame.c:
2100         * glyphs.c:
2101         * keymap.c:
2102         * lstream.c:
2103         * mule-charset.c:
2104         * mule-coding.c:
2105         * objects.c:
2106         * opaque.c:
2107         * process.c:
2108         * rangetab.c:
2109         * specifier.c:
2110         * symbols.c:
2111         * tooltalk.c:
2112         * window.c:
2113         Place DEFINE_LRECORD_* after definition of static object methods, to
2114         avoid redundant declarations.
2115
2116         * console.c:
2117         * console.h:
2118         * device.c:
2119         * device.h:
2120         * extents.c:
2121         * extents.h:
2122         * frame.c:
2123         * frame.h:
2124         * glyphs.c:
2125         * glyphs.h:
2126         * lisp.h:
2127         * lstream.c:
2128         * lstream.h:
2129         * signal.c:
2130         * specifier.c:
2131         * specifier.h:
2132         Eliminate MAC_* macros.
2133         The MAC_ macros use non-standard comiler extenstions which cause
2134         gcc to generate bad code on Sparc/Solaris.  Attractive though the
2135         idea of using those compiler extensions is, they are just not
2136         robust enough to use in the real world.  So we eliminate them.
2137         We put up with some sub-optimalities, like macros with multiple
2138         evaluation.  Such is life with C.  The MAC_ macros were pretty
2139         darn ugly anyways.  We CAN use inline functions, since the advent
2140         of C++ means that compilers must support those anyways.
2141
2142 1998-03-21  Martin Buchholz  <martin@xemacs.org>
2143
2144         * alloc.c (list*): Optimize recursion levels.
2145
2146         * alloc.c: Add debugger support via enum dbg_constants.
2147         * gdbinit: Complete rewrite.
2148         * gdbinit.union: Remove
2149         * gdbinit.pre-4.14: Remove
2150         * dbxrc: Complete rewrite.
2151         * man/xemacs-faq.texi:
2152         Proper robust debugger support for gdb and Sun's dbx.
2153         Support all combinations of Kylish DEFINEs.
2154         Work out of the box with no user customizations.
2155         See the updated faq for details.
2156
2157         * emacsfns.h: Remove.  Move declarations to lisp.h
2158         * dynarr.h: Remove.  Move declarations to lisp.h
2159         * lisp.h.
2160         Optimize header file handling to improve compile time over a network.
2161         Introduce EXFUN macro for external declaration to correspond to DEFUN.
2162         Include header files only when necessary, i.e. not from lisp.h:
2163         - unistd.h, limits.h, fnctl.h, blocktype.h, dynarr.h, emacsfns.h
2164
2165
2166         * lisp.h:
2167         * lisp-union.h:
2168         * lisp-disunion.h:
2169         Rewrite low level object frobbing.
2170         Make it safe to use XSETOBJ on uninitialized Lisp_Objects.
2171         (markbit might have been set otherwise)
2172         Move XPRNTRVAL->XPNTR computation out of lisp-*union.h, since it
2173         is union-type-independent.
2174
2175         * EmacsFrame.c:
2176         * alloc.c:
2177         * chartab.c:
2178         * console.c:
2179         * dialog-x.c:
2180         * doc.c:
2181         * elhash.c:
2182         * eval.c:
2183         * event-Xt.c:
2184         * event-stream.c:
2185         * event-unixoid.c:
2186         * extents.c:
2187         * faces.c:
2188         * file-coding.c:
2189         * frame.c:
2190         * glyphs.c:
2191         * insdel.c:
2192         * keymap.c:
2193         * lstream.c:
2194         * marker.c:
2195         * menubar-x.c:
2196         * mule-coding.c:
2197         * opaque.c:
2198         * ralloc.c:
2199         * rangetab.c:
2200         * redisplay-msw.c:
2201         * redisplay-output.c:
2202         * redisplay-tty.c:
2203         * redisplay-x.c:
2204         * redisplay.c:
2205         * scrollbar-x.c:
2206         * scrollbar.c:
2207         * specifier.c:
2208         * symbols.c:
2209         * toolbar-x.c:
2210         * toolbar.c:
2211         * window.c:
2212         As a result of the above lisp*.h changes, we can now safely remove
2213         initializations of Lisp_Objects before calling XSETOBJ on them.
2214         This was only being done half the time, anyways.
2215
2216         * Makefile.in.in (depend): New target. calls make-src-depend.
2217         * depend: New file. Generated by make-src-depend
2218         * make-src-depend: New file. generates up-to-date dependencies.
2219         Makefile dependencies are now automagically maintained, and
2220         CORRECT.  lisp.h and friends are now included in the dependencies,
2221         since this complies with the principle of least astonishment.
2222
2223         * symbols.c (symbol_is_constant): Optimize.
2224
2225 1998-03-30  SL Baur  <steve@altair.xemacs.org>
2226
2227         * frame.c (vars_of_frame): Default frame name should be InfoDock
2228         for InfoDock.
2229
2230 1998-03-29  SL Baur  <steve@altair.xemacs.org>
2231
2232         * emacs.c (voodoo_free_hook): ELF libraries built with newer
2233         versions of GCC do horrible things in dumped binaries after exit()
2234         is called.
2235         (Fkill_emacs): Use it.
2236
2237 1998-03-28  SL Baur  <steve@altair.xemacs.org>
2238
2239         * s/linux.h: For simplicity, do not use standard linking because
2240         it is deadly with new GCC.
2241
2242 Sat Mar 28 10:16:29 1998  Andy Piper  <andyp@parallax.co.uk>
2243
2244         * Makefile.in.in: fix fastdump target
2245
2246         * console-msw.h: add memory dc to frame.
2247
2248         * frame-msw.c: manage memory dc on frame creation/deleteion
2249
2250         * frame.h: mess with toolbar macros so that xemacs doesn't die
2251         in redisplay with a triple build.
2252
2253         * g;yphs-msw.c: GNUize the code. Fix 24bpp display and make the
2254         default.
2255
2256         * glyphs-msw.h: remove memory dc from image attributes.
2257
2258         * redisplay-msw.c: fix redisplay to use new frame memory dc.
2259
2260         * sheap.c: bump initial sheap yet again to allow byyte
2261         recompilation.
2262
2263         * unexcw.c: fix section parsing for multiple idata and rdata
2264         sections.
2265
2266 1998-03-27  SL Baur  <steve@altair.xemacs.org>
2267
2268         * emacs.c: Enabled free-hook.c code if
2269         LOSING_GCC_DESTRUCTOR_FREE_BUG is defined.
2270
2271 1998-03-28  Kyle Jones  <kyle_jones@wonderworks.com>
2272
2273         * Fixed display bug where changes to builtin glyphs like
2274           Vcontrol_arrow_glyph would not be propagated
2275           immediately to the display.
2276
2277         * device.h: Added glyphs_changed field to device
2278            struct.  Created MARK_DEVICE_GLYPHS_CHANGED macro.
2279
2280         * frame.h: Added glyphs_changed field to frame
2281            struct.  Created MARK_FRAME_GLYPHS_CHANGED macro.
2282
2283         * redisplay.h: Declared glyph_changed and
2284            glyph_changed_set variables, mimicking clip_changed
2285            and clip_changed_set.  New macro MARK_GLYPHS_CHANGED.
2286
2287         * redisplay.c: Defined glyph_changed and
2288            glyph_changed_set variables, mimicking
2289            clip_changed and clip_changed_set.
2290
2291            (redisplay_window): Reset the window's glyph cache is
2292            f->glyphs_changed is non-zero.  Call regenerate_window
2293            if f->glyphs_changed is non-zero.
2294
2295            (redisplay_frame): Clear f->glyphs_changed after
2296            successful redisplay of all windows on frame.
2297
2298            (redisplay_device): Redisplay frame if f->glyphs_changed
2299            is non-zero.  Clear d->glyphs_changed after successful
2300            redisplay of all frames on device
2301
2302            (redisplay_without_hooks): Redisplay devices if
2303            glyphs_changed is non-zero.  Redisplay an individual
2304            device if d->glyphs_changed is non-zero.  Clear
2305            glyphs_changed after successful redisplay of all
2306            devices.
2307
2308            (redisplay_glyphs_changed): Dropped use of
2309            MARK_CLIP_CHANGED.  Call MARK_FRAME_GLYPHS_CHANGED for
2310            all affected frames.  For locales that are not device
2311            related, mark all frames.
2312
2313         * redisplay-output.c (compare_display_blocks):
2314            Output the whole display block if f->glyphs_changed is
2315            non-nil.
2316
2317 1998-03-27  Kyle Jones  <kyle_jones@wonderworks.com>
2318
2319         * callproc.c (Fcall_process_internal): In the case where
2320           fd_error and fd1 are the same don't close that
2321           descriptor twice.
2322
2323 1998-03-27  SL Baur  <steve@altair.xemacs.org>
2324
2325         * frame-x.c (x_update_frame_external_traits): Need a Lisp_Object
2326         frame as well as a struct frame.
2327
2328 1998-03-27  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
2329
2330         * emacs.c (main_1): Reinstated PATH searching for invocation data.
2331
2332 1998-03-26  Kirill M. Katsnelson  <kkm@kis.ru>
2333
2334         * menubar.c (Fmenu_find_real_submenu): See the entry for gui.h.
2335
2336         * menubar-msw.c (populate_menu_add_item): Used GCPRO_GUI_ITEM
2337         macro to aviod warnings, in 2 places.
2338         (populate_or_checksum_helper): Ditto
2339         (populate_or_checksum_helper): Added placeholder for menu right
2340         flash customization.
2341
2342         * gui.h (GCPRO_GUI_ITEM): Code which warning-free GC protects a
2343         GUI_ITEM structure moved into this macro from menubar.c
2344
2345         * frame-x.c (x_update_frame_external_traits): Moved part of the
2346         former update_EmacsFrame() here.
2347         (console_type_create_frame_x): Declared the above method.
2348
2349         * frame-msw.c (mswindows_set_frame_properties): Do not try to
2350         resize the frame if called from Fmake_frame the first time
2351         (potential race condition).
2352         (mswindows_init_frame_1): Fixed support for popup frames.
2353         (mswindows_delete_frame): Fixed memory leak.
2354         (mswindows_get_frame_parent): Implemented.
2355         (mswindows_update_frame_external_traits): Moved part of the former
2356         update_EmacsFrame() here.
2357         (console_type_create_frame_mswindows): Declare get_frame_parent
2358         and update_frame_external_traits methods.
2359
2360         * faces.c (update_EmacsFrame): Converted into a device method
2361         `update_frame_external_traits'.
2362
2363         * event-msw.c (mswindows_wnd_proc, WM_SIZE): Rewrote to avoid
2364         relying on an assumption on when Windows calls this handler.
2365         (mswindows_find_frame): Return the frame being created if the
2366         windows does not yet have associated frame object
2367         (mswindows_find_frame): Casted long to Lisp_Object properly.
2368
2369         * device.c (window_system_pixelated_geometry): Changed to call the
2370         device_implementation_flags device method.
2371
2372         * device-msw.c (mswindows_device_implementation_flags):
2373         Implemented.
2374         (console_type_create_device_mswindows): Declared the above.
2375
2376         * console.h (struct console_methods): Added
2377         device_implementation_flags_method and
2378         update_frame_external_traits_method.
2379         Defined flags retuned by device_implementation_flags_method.
2380
2381         * console-msw.h (struct mswindows_frame): Added charheight and
2382         charwidth fields.
2383         Added macros for referring to these two, Rvalue.
2384         Moved Windows-specific macros from frame.h here.
2385         (typedef struct XEMACS_RECT_WH): Added.
2386         Declared global variables.
2387
2388 1998-03-19  Kirill M. Katsnelson  <kkm@kis.ru>
2389
2390         * console-msw.h: Added prototypes for
2391         mswindows_protect_modal_loop() and
2392         mswindows_unmodalize_signal_maybe().
2393
2394         * scrollbar-msw.c (mswindows_update_scrollbar_instance_status):
2395         Removed redundant call to set_frame_size method.
2396
2397         * frame.c (Fframe_property): For a window system with pixel-based
2398         geometry, convert passed char-based metrics to pixels.
2399         (Fframe_properties): Ditto.
2400         (Fset_frame_height): Ditto.
2401         (Fset_frame_width): Ditto.
2402         (Fset_frame_size): Ditto.
2403         (frame_conversion_internal): Added a parameter, controlling
2404         whether the function uses real char metrics or 1 when geometry is
2405         pixel-based.
2406         Allow NULL for output int* params.
2407         (pixel_to_char_size): frame_conversion_internal() is called with
2408         indication to fake font size to 1.
2409         (char_to_pixel_size): Ditto.
2410         (round_size_to_char): Ditto.
2411         (pixel_to_real_char_size):
2412         (char_to_real_pixel_size):
2413         (round_size_to_real_char): New three counterparts of the above
2414         metioned functions, which always use real character metrics.
2415         (change_frame_size_1): Use real character metrics when computing
2416         minibuffer height.
2417
2418         * frame.h: Prototypes for pixel_to_real_char_size(),
2419         char_to_real_pixel_size(), round_size_to_real_char().
2420
2421         * frame-msw.c (mswindows_init_frame_1): Rewritten to support
2422         system-default new window width and height.
2423         (mswindows_init_frame_2): Commented out, unused.
2424         (mswindows_after_init_frame): Added frame method.
2425         (mswindows_set_frame_size): Reworked to support pixel base
2426         geometry.
2427         (mswindows_set_frame_position): Cahnged to use SetWindowPos.
2428         (mswindows_lower_frame): Ditto.
2429         (mswindows_set_frame_properties): Fixed to perform correct
2430         calculation, and to support pixel geometry.
2431         (console_type_create_frame_mswindows): init_frame_2 removed,
2432         after_init_frame added.
2433
2434         * faces.c (default_face_height_and_width_1): Added.
2435         (update_EmacsFrame): Changed method of notifying mswindwows frame,
2436         so modeline border gets redrawn.
2437
2438         * faces.h: Prototype for default_face_height_and_width_1().
2439
2440         * event-msw.c (mswindows_wnd_proc, WM_SIZE): Redisplay after
2441         maximize/restore window.
2442         (mswindows_wnd_proc, WM_WINDOWPOSCHANGING): Do not round size to
2443         char if window is maximized.
2444         Use real char metrics for rounding.
2445         Call DefWindowProc to process WM_GETMINMAXINFO
2446         (mswindows_set_chord_timer): Changed chord timeout from 1/2 to 1/3
2447         system double click time
2448
2449         * device.c (domain_device_type): New function.
2450         (window_system_pixelated_geometry): New function.
2451         (Fdomain_device_type): New function, lisp interface to
2452         domain_device_type().
2453         (syms_of_device): DEFSUBRed the above.
2454
2455         * device.h: Ptorotypes for domain_device_type() and
2456         window_system_pixelated_geometry().
2457
2458         * menubar-msw.c (mswindows_update_frame_menubars): Call
2459         update_frame_menubar_maybe always.
2460
2461 1998-03-27  SL Baur  <steve@altair.xemacs.org>
2462
2463         * s/hpux11.h:
2464         * s/hpux11-shr.h: New files.
2465         From Marcus Thiessel <marcus_thiessel@hp.com>
2466
2467         * Makefile.in.in: temporarily comment -lmcheck support.
2468         Suggested by Marcus Thiessel <marcus_thiessel@hp.com>
2469
2470 1998-03-26  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
2471
2472         * emacs.c (vars_of_emacs): Fixed bug: Now respects configure
2473         setting of inhibit-site-lisp.
2474         (main_1): inhibit-site-lisp is now exclusively
2475         configure-initialized.
2476
2477 1998-03-27  Hrvoje Niksic  <hniksic@srce.hr>
2478
2479         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Don't feed
2480         error_with_frob() with LispObjects.
2481
2482 1998-03-26  Kirill M. Katsnelson  <kkm@kis.ru>
2483
2484         * redisplay-msw.c (mswindows_output_cursor): Added parameters for
2485         character under cursor, and a flag indicating whether the cursir
2486         is over an image. Draw bar cursor always over an image glyph.
2487         Callers are changed accross the file.
2488         Honor the value of window::text_cursor_visible_p.
2489         (mswindows_output_pixmap): Cursor drawing code #if0ed.
2490         (mswindows_output_display_block): Call to output cursor after
2491         drawind an image.
2492
2493 1998-03-27  P. E. Jareth Hein  <jareth@camelot-soft.com>
2494
2495         * glyphs-x.c:
2496         * imgproc.c:
2497         * imgproc.h:
2498         * glyphs-x.h: Added in a colormap variable in the X specific image
2499         struct to handle IMAGE_POINTER images which must be allocated in the
2500         default colormap of the screen.  Also reformated the code to follow
2501         coding standards.
2502
2503         * glyphs.h:
2504         * glyphs.c:
2505         * glyphs-x.c: added image-conversion-error type
2506
2507         * objects-x.c (allocate_nearest_color): Corrected a minor bug involving
2508         setting the values into XColor.
2509
2510 1998-03-25  P. E. Jareth Hein  <jareth@camelot-soft.com>
2511
2512         * free-hook.c (check_realloc): Handle the degerate case of realloc with
2513         a NULL value acting the same as malloc.
2514
2515 1998-03-24  Kyle Jones  <kyle_jones@wonderworks.com>
2516
2517         * redisplay-x.c (x_output_eol_cursor): Use x_clear_region
2518           instead of XClearArea to erase the cursor so that background
2519           pixmaps are handled properly.  New fourth parameter findex
2520           added so that it can be passed to x_clear_region.
2521
2522 1998-03-25  Kirill M. Katsnelson  <kkm@kis.ru>
2523
2524         * process.c (Fprocess_send_eof): Close output stream before
2525         deleting stream pair.
2526         (deactivate_process): Ditto, both input and output streams.
2527
2528         * event-unixoid.c (event_stream_unixoid_delete_stream_pair): Do
2529         not close passed lstreams.
2530
2531 1998-03-24  Kirill M. Katsnelson  <kkm@kis.ru>
2532
2533         * fileio.c (Ffile_readable_p): GC protect fix, MS Windows specific.
2534
2535 Mon Mar 23 22:14:12 1998  Andy Piper  <andyp@parallax.co.uk>
2536
2537         * configure.in: compile in glyphs-msw.o when compiling fopr
2538         mswindows.
2539
2540 Mon Mar 23 22:14:12 1998  Andy Piper  <andyp@parallax.co.uk>
2541
2542         * msw-glyphs.el: add support for xpm and bmp. change
2543         eval-and-compile to progn.
2544
2545 Mon Mar 23 22:14:12 1998  Andy Piper  <andyp@parallax.co.uk>
2546
2547         * Makefile.in.in: fastdump - new target for dumping bypassing
2548         bytecompilation, DOC. Add dependencies for glyphs-msw.o. Move
2549         imgproc.o to object list.
2550
2551         * glyphs-msw.h:
2552         * glyphs-msw.c: new files adding support for xpm and bmp and
2553         EImages.
2554
2555         * redisply-msw.c: add support for outputing color pixmaps.
2556
2557         * console-msw.h: add bitspixel field to mswindows frame.
2558
2559         * device-msw.c: initialise bitspixel field in mswindows frame.
2560
2561         * glyphs-x.c (xpm_instantiate): call mswindows_xpm_instantiate if
2562         the device type is mswindows.
2563
2564         * emacs.c: call glyphs-msw.c init functions if compiling with
2565         mswindows.
2566
2567         * symsinit.h: add prototypes for glyphs-msw.c functions.
2568
2569         * sheap.c: make includes src-dir compliant.
2570
2571         * events.c: remove cygwin ^H <-> erase hack.
2572
2573         * s/cygwin32.h: remove NOMULTIPLEJOBS defn.
2574
2575 1998-03-24  P. E. Jareth Hein  <jareth@camelot-soft.com>
2576
2577         * glyphs-x.c (my_jpeg_output_message): Added new function to redirect
2578         any error/warning messages from the jpeg library to XEmacs.  Also
2579         get rid of an unneeded temp variable in the tiff code.
2580
2581 1998-03-14  Hrvoje Niksic  <hniksic@srce.hr>
2582
2583         * insdel.c (fixup_internal_substring): Protect asserts with #ifdef
2584         ERROR_CHECK_BUFPOS.
2585
2586         * minibuf.c (scmp_1): c1 and c2 are Emchar, not Bufbyte.
2587         (Ftry_completion): Fixed typo.
2588
2589         * dired.c (file_name_completion): Removed `readfunc', a remnant of
2590         dead VMS code.
2591
2592 1998-03-13  Hrvoje Niksic  <hniksic@srce.hr>
2593
2594         * dired.c (Fdirectory_files): Simplify logic.
2595
2596         * symbols.c (reject_constant_symbols): Allow setting a keyword's
2597         function slot.
2598
2599 1998-03-23  Hrvoje Niksic  <hniksic@srce.hr>
2600
2601         * lread.c (readevalloop): Don't specbind Qstandard_input to
2602         READCHARFUN.
2603
2604 1998-03-09  Hrvoje Niksic  <hniksic@srce.hr>
2605
2606         * lread.c (read_atom): Ditto.
2607
2608         * symbols.c (reject_constant_symbols): Do the keyword stunts only
2609         if the symbol is in Vobarray.
2610
2611         * symbols.c (reject_constant_symbols): Signal error when
2612         attempting to assign a value to a keyword, unless the value is the
2613         keyword itself.
2614
2615         * symbols.c (Fintern): Initialize symbol's ->obarray to t only
2616         when OBARRAY is Vobarray.
2617
2618 1998-03-21  Hrvoje Niksic  <hniksic@srce.hr>
2619
2620         * events.c (Fmake_event): Allow creation of misc-user-events.
2621
2622 1998-03-23  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
2623
2624         * config.h.in, emacs.c: Changed allow-site-lisp to
2625         inhibit-site-lisp.  Made -no-autoloads set inhibit-site-lisp.
2626
2627 1998-03-22  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
2628
2629         * <Today>: The Big Path Searching Overhaul.
2630
2631         * symsinit.h: Added declaration for complex_vars_of_emacs in
2632         emacs.c.
2633
2634         * paths.h.in: Adjusted the comments to reality as dictated by
2635         configure.
2636
2637         * filelock.c (complex_vars_of_filelock): Added support for lock
2638         directories passed in from configure.
2639
2640         * emacs.c (complex_vars_of_emacs): Added all relevant installation
2641         paths passed from configure.  They all have the prefix "configure-" now.
2642
2643         * config.h.in: Added HAVE_SITE_LISP configuration option.
2644
2645         * callproc.c (init_callproc): Ripped out all the bogus path setup.
2646
2647         * Makefile.in.in: Updated all calls of "temacs -l" with absolute
2648         file names because auf the more minimalistic load-path setup in
2649         lread.c.  Also set EMACSBOOTSTRAPLOADPATH on calling temacs rather
2650         than EMACSLOADPATH because EMACSLOADPATH is now more persistent than
2651         before.
2652
2653         * lread.c (init_lread): Ripped out bogus load-path setup.
2654
2655 1998-03-21  Kyle Jones  <kyle_jones@wonderworks.com>
2656
2657         * frame.h: Move the check for an initialize_frame_toolbars
2658           method into FRAME_RAW_REAL_TOOLBAR_VISIBLE to avoid getting
2659           clunked by toolbar-less builds.
2660
2661 1998-03-20  SL Baur  <steve@altair.xemacs.org>
2662
2663         * m/powerpc.h (LD_SWITCH_MACHINE): Fix path to ppc.ldscript.
2664
2665 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
2666
2667         * redisplay.c (window_line_number_buf): Made it larger.
2668
2669         * opaque.c (print_opaque): Ditto.
2670
2671         * lstream.c (print_lstream): Avoid `%p'.
2672
2673         * keymap.c (ensure_meta_prefix_char_keymapp): Use
2674         error_with_frob().
2675
2676         * input-method-xlib.c (EmacsXtCvtStringToXIMStyles): Allocate buf
2677         dynamically.
2678
2679         * event-Xt.c (describe_event_window): Allocate buf dynamically.
2680
2681         * doc.c (Fsubstitute_command_keys): Warn of sprintf().
2682
2683         * device-x.c (x_init_device): Allocate path dynamically.
2684         (x_init_device): Allocate buf1 and buf2 dynamically.
2685
2686 1998-03-14  Hrvoje Niksic  <hniksic@srce.hr>
2687
2688         * ExternalShell.c (GetGeometry): Use a larger buffer for
2689         sprintf().
2690
2691 1998-03-19  Kirill M. Katsnelson  <kkm@kis.ru>
2692
2693         * redisplay.c (point_would_be_visible): Fix
2694         window::line_cache_validation_override reference counter.
2695         (start_with_line_at_pixpos): Ditto.
2696
2697 1998-03-20  Olivier Galibert  <olivier.galibert@mines.u-nancy.fr>
2698
2699         * insdel.c (bytecount_to_charcount): Use 'L' suffix on long
2700         constants probably too large for an int.
2701
2702 1998-03-18  Hrvoje Niksic  <hniksic@srce.hr>
2703
2704         * lread.c (read_atom_0): Signal Qend_of_file if readcharfun
2705         returned -1.
2706         (read_escape): Ditto.
2707         (FSF_LOSSAGE): Ditto.
2708
2709 1998-03-20  SL Baur  <steve@altair.xemacs.org>
2710
2711         * emacs.c: path-separator (and parse-colon-path) moved from Lisp
2712         into C because we need it for early initialization.
2713
2714         * Makefile.in.in (libmcheck): Add.
2715
2716         * config.h.in: Add HAVE_LIBMCHECK and HAVE_MCHECK_H.
2717
2718         * hash.c (grow_hashtable): Fix tests to compare against
2719         Qnull_pointer since this function may be called before any symbols
2720         or the Lisp engine is initialized.
2721
2722         * emacs.c (main_1): Restore usage of free-hook.c.
2723
2724         * free-hook.c (check_realloc): Change aborts to printfs.
2725         (check_free): Ditto.
2726
2727 1998-03-18  SL Baur  <steve@altair.xemacs.org>
2728
2729         * emacs.c (Fkill_emacs): Use LIST_LOOP_DELETING because our
2730         control variable is being modified underneath us.
2731         - Avoid calling delete_console_internal on stream consoles.
2732
2733         * console-tty.c (free_tty_console_struct): NULL out pointers after
2734         xfree'ing.
2735
2736         * console-stream.c (allocate_stream_console_struct): Fix memory
2737         leak -- if the stream_console struct is already allocated, don't
2738         reallocate it.
2739         (free_stream_console_struct): Don't leave dangling freed pointer
2740         around.
2741
2742         * redisplay-output.c (redisplay_redraw_cursor): Fully bracket.
2743
2744 1998-03-17  SL Baur  <steve@altair.xemacs.org>
2745
2746         * frame.c (delete_frame_internal): Correct check.
2747
2748         * imgproc.c: Include <config.h>.
2749
2750 1998-03-13  P. E. Jareth Hein  <jareth@camelot-soft.com>
2751
2752         * glyphs-x.c: fix for upside-down TIFFs.
2753
2754 1998-03-14  Kirill M. Katsnelson  <kkm@kis.ru>
2755
2756         * fileio.c (Finsert_file_contents_internal): Removed all DOS_NT
2757         specific code; rely on FILE_CODING streams instead.
2758         (Fwrite_region_internal): Ditto.
2759         (decide_buffer_type): Function removed.
2760         (buf_decide_buffer_type): Function removed.
2761         (Many places): References to DOS_NT replaced with WINDOWSNT. MSDOS-
2762         specific code removed.
2763
2764         * lread.c (Fload_internal): Removed ugly DOS style re-opening a
2765         file in text mode. '\r' is perfectly handled in readevallop().
2766
2767         * redisplay.c (decode_mode_spec): Made %t decode to "T" unconditionally.
2768
2769         * s/windowsnt.h (FILE_CODING): Define always.
2770
2771 1998-03-15  Kirill M. Katsnelson  <kkm@kis.ru>
2772
2773         * s/windowsnt.h: Added prototypes for generally used functions
2774         implemented in nt.c
2775
2776         * fileio.c (Ffile_readable_p): Conditionalized declared never used
2777         variables.
2778         (Fexpand_file_name): Ditto.
2779         (check_executable): Ditto.
2780
2781         * lread.c (parse_integer): Eliminated a warning resulted from
2782         applying unary minus to unsigned int.
2783
2784 1998-03-15  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
2785
2786         * eldap.c: (Fldap_search_internal): Print error information from
2787         errno when connection fails
2788
2789 1998-03-16  Hrvoje Niksic  <hniksic@srce.hr>
2790
2791         * lread.c: New macro, to avoid exposing an lstream to Lisp error
2792         handlers.
2793         (reader_nextchar): Use it.
2794         (read1): Ditto.
2795
2796 1998-03-15  Kyle Jones  <kyle_jones@wonderworks.com>
2797
2798         * cmds.c (Fforward_char): Dropped support for
2799           signal-error-on-buffer-boundary.  Added details to
2800           doc string.
2801
2802           (Fbackward_char): Dropped support for
2803           signal-error-on-buffer-boundary by way of change to
2804           Fforward_char.  Added details to doc string.
2805
2806           Definition of signal-error-on-buffer-boundary moved to
2807           lisp/simple.el.
2808
2809         * window.c (Fscroll_up): Dropped support for
2810           signal-error-on-buffer-boundary.  Added details to
2811           doc string.
2812
2813           (Fscroll_down): Dropped support for
2814           signal-error-on-buffer-boundary.  Added details to doc
2815           string.
2816
2817 1998-03-15  Kyle Jones  <kyle_jones@wonderworks.com>
2818
2819         * redisplay-tty.c (tty_clear_frame): Record that the
2820           real location of teh cursor has been moved to 0,0.
2821           Failure to do this makes the display code believe the
2822           cursor is in a place where it is not.
2823
2824 1998-03-15  Kyle Jones  <kyle_jones@wonderworks.com>
2825
2826         * console.h: Added set_final_cursor_coords method to console
2827           struct.
2828
2829         * console-tty.h: Added final_cursor_x and final_cursor_y
2830           slots to console struct.  Added CONSOLE_TTY_FINAL_CURSOR
2831           macros to access them.
2832
2833         * redisplay.c (create_text_block): No longer
2834           turn off the cursor if computing a block when
2835           cursor_in_echo_area is 0 and the echo area is
2836           inactive.  Needed so that the cursor will not be
2837           frozen in the minibuffer when cursor_in_echo_area
2838           is non-zero.
2839
2840         * redisplay-output.c (redisplay_move_cursor): Don't
2841           bail if we're moving the cursor in a selected
2842           minibuffer window.  Needed so that simple cursor
2843           optimization can be done in the minibuffer even when
2844           cursor_in_echo_area is non-zero.
2845
2846           (redraw_cursor_in_window): Set final cursor coordinates
2847           as a special case for cursor_in_echo_area != 0, since
2848           the buffer switching between minibuffer and echo area
2849           buffer seems to confuse the normal cursor positiong
2850           code otherwise.  Set final cursor coordinates in the
2851           general case before calling output_display_line.
2852
2853         * redisplay-tty.c: New function tty_set_final_cursor_coords.
2854
2855           (tty_output_end): Set logical cursor position to the final
2856           cursor position as specified in CONSOLE_TTY_CURSOR_{X,Y},
2857           and then go to it.
2858
2859           (tty_redisplay_shutdown): Changed code to use
2860           tty_set_final_cursor_coords() to go to the bottom
2861           left of the screen instead of using cmgoto()
2862
2863           (console_type_create_redisplay_tty): Declare that tty
2864           consoles have the set_final_cursor_coords method.
2865
2866 1998-03-13  Hrvoje Niksic  <hniksic@srce.hr>
2867
2868         * emacs.c (main_1): Avoid snprintf(); allocate the buffer
2869         dynamically.
2870
2871 1998-03-13  P. E. Jareth Hein  <jareth@camelot-soft.com>
2872
2873         * glyphs-x.c (png_instantiate): Added in override support
2874         for png backgrounds.
2875
2876 1998-03-13  P. E. Jareth Hein  <jareth@camelot-soft.com>
2877
2878         * glyphs-x.c (png_instantiate): Fixed a bug that was causing
2879         overruns when attempting to display transparent pngs
2880
2881 1998-03-13  P. E. Jareth Hein  <jareth@camelot-soft.com>
2882
2883         * glyphs-x.c (png_instantiate): Fix brainfart in error handling code.
2884
2885 1998-03-13  SL Baur  <steve@altair.xemacs.org>
2886
2887         * emacs.c (main_1): Guard call to snprintf.
2888
2889         * config.h.in: Add HAVE_SNPRINTF.
2890
2891 1998-03-13  Kirill M. Katsnelson  <kkm@kis.ru>
2892
2893         * event-stream.c (init_event_stream): Initialize mswindows event
2894         loop in stream mode if no other window systems available. Thanks
2895         to Darryl Okahata.
2896
2897 1998-03-04  Kirill M. Katsnelson  <kkm@kis.ru>
2898
2899         * alloc.c (garbage_collect_1): Removed #ifndef WINDOWSNT around
2900         mark_profiling_info().
2901
2902 1998-03-11  SL Baur  <steve@altair.xemacs.org>
2903
2904         * console-tty.c (Fset_console_tty_coding_system): Guard against
2905         terminal-coding-system being left unitialized by a locale.
2906         From Kazuyuki IENAGA <ienaga@jsys.co.jp>
2907
2908 1998-03-11  P. E. Jareth Hein  <jareth@camelot-soft.com>
2909
2910         * config.h.in: Added in new feature check HAVE_VSNPRINT to check
2911         for safe ways to deal with vsprintf and friends.
2912
2913         * glyphs-x.c (gif_instantiate): Changed gif support to call external
2914         library Giflib 3.1.  Altered GIF/JPEG/PNG formats to use new EImage
2915         format for dealing with images to better support color handling, and
2916         facilitate the change to a device-neutral implementation.  Added TIFF
2917         support.
2918
2919         * Makefile.in.in: Removed all gif related files
2920
2921         * emacs.c (main_1): Removed reference to init_gif_err
2922         * symsinit.h: ditto
2923
2924         * dgif_lib.c: Removed from the source distribution
2925         * gif_err.c: ditto
2926         * gif_lib.h: ditto
2927         * gifalloc.c: ditto
2928
2929 Mon Mar 09 13:00:55 1998  Andy Piper  <andyp@parallax.co.uk>
2930
2931         * file-coding.c: warning elimination
2932
2933         * ntplay.c: new file. basic implementation of sound support.
2934
2935         * redisplay-msw.c (mswindows_update_dc): cachel bug is gone so we
2936         don't need this code under cygwin.
2937
2938         * sheap.c: need large heap slop for byte compiling with three
2939         display types.
2940
2941         * sound.c: eliminate warnings. enable sound under mswindows.
2942
2943         * s/cygwin32.h: miscellaneous updates for sound support.
2944
2945 1998-03-09  SL Baur  <steve@altair.xemacs.org>
2946
2947         * config.h.in: Add BITMAPDIR.
2948
2949         * glyphs-x.c (locate_pixmap_file): Assume BITMAPDIR is a
2950         colon-separated path.
2951
2952         * emacs.c (main_1): Initialize dll support with the path the
2953         binary.
2954         (make_arg_list_1): Ditto.
2955
2956         * sysdll.h: Add legalese.
2957         * sysdll.c: Ditto.
2958
2959         * sysdll.c: sysdll.h needs to be included with double quotes not
2960         angle brackets.
2961         Use RTLD_GLOBAL as an open flag if it exists.
2962
2963 1998-03-09  Martin Buchholz  <Martin Buchholz <martin@xemacs.org>>
2964
2965         * eldap.c (Fldap_search_internal): call garbage_collect_1 instead
2966         of Fgarbage_collect.  The two are identical except the latter
2967         generates some `fresh' garbage :)
2968
2969 1998-03-09  SL Baur  <steve@altair.xemacs.org>
2970
2971         * keymap.c: Add symbols for mouse-4 and mouse-5.
2972         (define_key_check_and_coerce_keysym): Mouse-4, Mouse-5 keysym support.
2973         (syms_of_keymap): Ditto.
2974
2975 1998-01-26  Hrvoje Niksic  <hniksic@srce.hr>
2976
2977         * marker.c (print_marker): Print marker's lheader.uid.
2978         (Fbuffer_has_markers_at): New function, synched with FSFmacs 20.2.
2979         (Fbuffer_has_markers_at): Disabled by default.
2980
2981 1998-01-25  Hrvoje Niksic  <hniksic@srce.hr>
2982
2983         * sound.c (Fplay_sound_file): Place the result of continuable
2984         error back to FILE.
2985
2986 1998-03-09  SL Baur  <steve@altair.xemacs.org>
2987
2988         * emacs.c, config.h.in: New DLL support.
2989         * sysdll.h, sysdll.c: New files.
2990         * dll.c: renamed from dlopen.c, use interface defined in sysdll.c.
2991         From William Perry <wmperry@aventail.com>
2992
2993         * eldap.h: Fix copyright.
2994         * eldap.c: Ditto.
2995
2996 1998-03-08  SL Baur  <steve@altair.xemacs.org>
2997
2998         * Makefile.in.in: Add dependencies for process-unix.o.
2999
3000 1998-03-08  Kyle Jones  <kyle_jones@wonderworks.com>
3001
3002         * glyphs-x.c (write_lisp_string_to_temp_file):
3003           Don't explicitly initialize conversion_out_dynarr, because
3004           doing so may cause it to be put into read-only space
3005           and modifying it later would make XEmacs crash.
3006
3007 1998-03-07  Kyle Jones  <kyle_jones@wonderworks.com>
3008
3009         * events.h: Add do_backspace_mapping parameter to
3010           function prototype of character_to_event.
3011
3012         * events.c: Add fifth parameter to character_to_event to
3013           control the backspace mapping.  In character_to_event map most
3014           characters that match tty-erase-char to the backspace keysym,
3015           but only if do_backspace_mapping paramter is non-zero.
3016
3017           (Fcharacter_to_event): Tell character_to_event() to DO
3018           backspace mapping.
3019
3020         * event-stream.c:
3021           (maybe_read_quit_event): Tell character_to_event() to DO
3022           backspace mapping.
3023
3024           (maybe_kbd_translate): Tell character_to_event() to DO backspace
3025           mapping.
3026
3027           (lookup_command_event): Tell character_to_event() to DO backspace
3028           mapping.
3029
3030         * event-unixoid.c:
3031           (read_event_from_tty_or_stream_desc): Tell character_to_event()
3032           to DO backspace mapping.
3033
3034         * keymap.c:
3035           (get_keyelt): Tell character_to_event() to NOT DO backspace
3036           mapping.
3037
3038           (define_key_parser): Tell character_to_event() to NOT DO backspace
3039           mapping.
3040
3041           (Fsingle_key_description): Tell character_to_event() to DO
3042           backspace mapping.
3043
3044 1998-03-04  Kirill M. Katsnelson  <kkm@kis.ru>
3045
3046         * alloc.c (Fpurecopy): Do not mark symbols through
3047         Vpure_uninterned_symbol_table twice: hash (OBJ, nil) instead of
3048         (OBJ, OBJ).
3049
3050 1998-03-07  SL Baur  <steve@altair.xemacs.org>
3051
3052         * emacs.c (shut_down_emacs): Disable forced auto-save in a crash.
3053         It causes more problems than it solves.
3054
3055 1998-03-02  Greg Klanderman  <greg@alphatech.com>
3056
3057         * window.c (Fwindow_displayed_pixel_height) New function.
3058         (Fenlarge_window_pixels): New function.
3059         (Fshrink_window_pixels): New function.
3060         (window_displayed_pixel_height): New, helper for
3061         Fwindow_displayed_pixel_height.
3062         (change_window_height): Add `inpixels' argument.
3063         (syms_of_window): 3 new DEFSUBR's.
3064
3065 Thu Mar 05 12:01:35 1998  Andy Piper  <andyp@parallax.co.uk>
3066
3067         * redisplay-msw.c (mswindows_output_cursor): separate getting
3068         cachel index from retrieving cachel to work around apparent bug in
3069         gcc.
3070
3071 1998-03-06  Kyle Jones  <kyle_jones@wonderworks.com>
3072
3073         * events.c (character_to_event): The tty_erase_char test
3074         doesn't do anything because it's in the wrong place.
3075         Moved it to where it can take effect.
3076
3077         * dired.c (Fdirectory_files): Initialize GCPRO'ed variable.
3078
3079         * events.c (character_to_event): Never map '(control
3080           foo) to QKbackspace.  Only map ASCII 8 to QKbackspace;
3081           don't map any other key.
3082
3083 1998-03-05  Kyle Jones  <kyle_jones@wonderworks.com>
3084
3085         * src/redisplay-output.c (redisplay_move_cursor): Bail if
3086           cursor_in_echo_area is non-zero and we're fiddling
3087           with the cursor in a minibuffer window, since that is a
3088           special case that is handled elsewhere and this function
3089           need not handle it.  Return 1 so the caller will assume we
3090           succeeded.
3091
3092 Wed Mar 04 08:55:12 1998  Andy Piper  <andyp@parallax.co.uk>
3093
3094         * device.c (init_global_resources): compile in based on window
3095         system not just x.
3096
3097         * console.c (select_console_1): add mswindows console type.
3098
3099 1998-03-04  Kyle Jones  <kyle_jones@wonderworks.com>
3100
3101         * redisplay-output.c (redisplay_redraw_cursor): Redraw
3102           the cursor in the minibuffer window if cursor_in_echo_area
3103           is non-zero.
3104
3105 Wed Mar 04 08:55:12 1998  Andy Piper  <andyp@parallax.co.uk>
3106
3107         * emacs.c (main_1): predicate display_use to mswindows only if x
3108         is not already selected.
3109
3110         * event-msw.c: comment out non-code for HAVE_TOOLBAR case. don't
3111         compile debug_process_finalisation if x is compiled in.
3112
3113         * event-stream.c (init_event_stream): don't make X and mswindows
3114         mutually exclusive. Select msw event loop if started that way,
3115         X/tty event loop otherwise.
3116
3117         * frame.h: protect toolbar #defines from assuming ints are in
3118         toolbar_data. This happens if you have two display types compiled
3119         in and one supports toolbars and the other doesn't.
3120
3121         * s/cygwin32.h: warning elimination.
3122
3123 1998-03-03  SL Baur  <steve@altair.xemacs.org>
3124
3125         * editfns.c (Ftemp_directory): New function.
3126         From Glynn Clements <glynn@sensei.co.uk>
3127
3128         * editfns.c (Ftemp_directory): Use build_ext_string.
3129
3130 1998-03-02  Martin Buchholz  <Martin Buchholz <martin@xemacs.org>>
3131
3132         * symsinit.h: add prototype for syms_of_dlopen
3133
3134 1998-03-02  Kyle Jones  <kyle_jones@wonderworks.com>
3135
3136         * window.c (save_window_save): save value of
3137           default_toolbar_height slot.
3138
3139           (Fset_window_configuration): restore value of
3140           default_toolbar_height slot.
3141
3142 Fri Feb 20 21:22:34 1998  Darryl Okahata  <darrylo@sr.hp.com>
3143
3144         * "Fast" dired-in-C enhancements for Windows 95/NT:
3145
3146         * ntproc.c:
3147         * device-msw.c:
3148           Moved definition of `Vwin32_downcase_file_names' from ntproc.c
3149           to device-msw.c, and renamed it to
3150           `Vmswindows_downcase_file_names'.  It doesn't really belong
3151           here, but I didn't want to create a new file, just for this one
3152           variable.  This fixes a bug in `expand-file-name' that caused
3153           all returned filenames to be lowercased (this was supposed to be
3154           conditional upon Vmswindows_downcase_file_names, but wasn't, as
3155           it was never initialized due to obsolescence of ntproc.c).  This
3156           variable is also used by the dired-in-C enhancements.
3157
3158           Also moved and renamed `Vwin32_get_true_file_attributes' to
3159           `Vmswindows_get_true_file_attributes'.  This affects stat() in
3160           nt.c, and so it really does need to be initialized.
3161
3162           However, there's still one more variable in ntproc.c that still
3163           needs to be moved/renamed, `Vwin32_pipe_read_delay', but I
3164           didn't touch this, as this is a subprocess issue.
3165
3166         * dired-msw.c: New file for dired-in-C enhancements for
3167           Windows 96/NT.
3168
3169         * emacs.c: Initialization calls for dired-msw.c.
3170
3171         * nt.c (convert_time): make into public function (dired-in-C
3172           functions use it).
3173
3174 1998-02-28  Kirill M. Katsnelson  <kkm@kis.ru>
3175
3176         * sysdep.h: Prototypes for the above 2 functions
3177
3178         * sysdep.c (get_pty_max_bytes): Moved here from process.c
3179         (get_eof_char): Ditto
3180
3181         * symsinit.h: Prototypes for initialization functions called from
3182         emacs.c: process_type_create_mswindows, process_type_create_unix,
3183         vars_of_process_mswindows, vars_of_process_unix.
3184
3185         * procimpl.h: New file. Includes prototypes and other stuff shared
3186         by process.c and implementation files (process-unix.c,
3187         process-msw.c in future).
3188
3189         * process.h (PROCESS_LIVE_P): Changed to test against stream
3190         existence, to avoid dependency on fds.
3191
3192         * process.c: Only process implementation independent code is now
3193         in this file. Moved the rest into process-unix.c
3194         (Fopen_network_stream_internal): Added 5th parameter, protocol
3195         family. Defaults to 'tcp/ip when unspecified.
3196
3197         * process-unix.c: New file, implementation of UNIX
3198         processes. UNIX-specific code from the old process.c is here.
3199
3200         * Lstream.c (Lstream_was_blocked_p): New function. Replaces
3201         filedesc_stream_was_blocked_p.
3202         (filedesc_was_blocked_p): Implementation of the method for
3203         filedesc stream
3204         (filedesc_stream_set_pty_flushing): set pty_flushing flag
3205         (filedesc_stream_fd): New function, returns fd of the stream
3206
3207         * lstream.h (lstream_implementation): was_blocked_p is a new
3208         optional lstream method.
3209         Added prototypes for functions in lstream.c
3210
3211         * lisp.h: (USID): Typedef for Unique Stream IDentifier. Reuqired
3212         by the new code in many places.
3213
3214         * events.h (struct event_stream): Declaration of the two mandatory
3215         event stream methods, required by process support.
3216
3217         * event-unixoid.c (event_stream_unixoid_create_stream_pair):
3218         Implementation of the method shared by TTY and X
3219         (event_stream_unixoid_delete_stream_pair): Ditto
3220
3221         * event-tty.c (emacs_tty_next_event): get_process_from_usid()
3222         instead of get_process_from_fd()
3223         (emacs_tty_create_stream_pair): New events tream method
3224         (emacs_tty_delete_stream_pair): New events tream method
3225
3226         * event-stream.c (event_stream_create_stream_pair): New event
3227         stream method
3228         (event_stream_delete_stream_pair): Ditto
3229
3230         * event-msw.c (debug_process_finalization): Although if0'ed,
3231         removed obsolete code
3232
3233         * event-Xt.c (emacs_Xt_create_stream_pair): Implementation if the
3234         new event stream method
3235         (emacs_Xt_delete_stream_pair): Ditto
3236
3237         * emacs.c (main_1): Added calls to process_type_create*() and
3238         vars_of_process()
3239
3240         * callproc.c: (many places): removed DOS support
3241
3242 1998-03-02  SL Baur  <steve@altair.xemacs.org>
3243
3244         * process.c (Fprocess_status): Restore old behavior -- call
3245         Fget_process on a string argument.
3246
3247 Mon Mar 02 11:37:36 1998  Andy Piper  <andyp@parallax.co.uk>
3248
3249         * file-coding.h:
3250         * file-coding.c: more cleanup by only including iso2022 stuff in a
3251         mule build. (setup_eol_coding_systems) move (T) -> :T etc.
3252
3253         * event-stream.c: (Fopen_dribble_file) Qescape_quoted only exists in
3254         mule.
3255
3256         * md5.c: remove warning.
3257
3258         * unexcw.c: move .idata -> .rdata for cygwin b19.
3259
3260         * Makefile.in.in: add msw dependencies.
3261
3262         * sheap.c: up static heap parameters.
3263
3264         * s/cygwin32.h: add prototypes to eliminate warnings.
3265
3266 1998-03-02  SL Baur  <steve@altair.xemacs.org>
3267
3268         * Makefile.in.in (blddir): Import blddir.
3269         Add blddir to dump-time load-path.
3270
3271         * nas.c (play_sound_data): Add braces for clarity.
3272         (play_sound_file): Ditto.
3273
3274 1998-03-01  SL Baur  <steve@altair.xemacs.org>
3275
3276         * alloc.c: Boost static vector size for breathing room.  Double
3277         the size if we may be dynamically linking.
3278
3279         * dlopen.c (Fdl_open): Use RTLD_GLOBAL flag on dlopen if available.
3280
3281         * device-x.c (x_init_device): Hardcode `Emacs' as the filename
3282         containing localized menubars.
3283
3284         * config.h.in: Add HAVE_UNIX_PROCESSES for 20.6.
3285
3286         * alloc.c (init_alloc_once_early): Document movement of mmap
3287         enabling code to emacs.c.
3288
3289         * Makefile.in.in: Update FILE_CODING dependencies.
3290
3291 1998-03-01  Kyle Jones  <kyle_jones@wonderworks.com>
3292
3293         * file-coding.c (setup_eol_coding_systems): Don't try
3294           to copy the mnemonic property of the coding system
3295           unless it is a string.
3296
3297           (allocate_coding_system): Initialize coding system
3298           struct member 'mnemonic' to Qnil.  Leaving its value
3299           set to 0 causes a crash.
3300
3301 1998-03-01  SL Baur  <steve@altair.xemacs.org>
3302
3303         * file-coding.c (DEFINE_SUB_CODESYS): Undo previous patch.
3304
3305 1998-03-01  Kyle Jones  <kyle_jones@wonderworks.com>
3306
3307         * callint.c: Read coding system names for the 'z' and
3308           'Z' interactive specs if FILE_CODING or MULE is defined.
3309           Previously, coding system names were read only if MULE was
3310           defined.
3311
3312         * file-coding.h: Removed charset-based category types
3313           from enumerated coding_category_type if not building
3314           with MULE.
3315
3316         * file-coding.c (syms_of_mule_coding): Don't define
3317           symbols for charset-based coding systems unless
3318           building with MULE.
3319
3320 1998-02-28  SL Baur  <steve@altair.xemacs.org>
3321
3322         * alloc.c (garbage_collect_1): Guard call to selected_frame so it
3323         cannot be called during GC.
3324         - Update current count of staticpro'ed objects.
3325
3326 1998-02-28  Kyle Jones  <kyle_jones@wonderworks.com>
3327
3328         * menubar.c (Fmenu_find_real_submenu): Document the
3329           "use struct as array" hack.  Convert struct pointer to
3330           array to avoid compiler warnings.
3331
3332 1998-02-26  SL Baur  <steve@altair.xemacs.org>
3333
3334         * buffer.c (complex_vars_of_buffer): Fix DOC string for
3335         buffer-file-coding-system.
3336
3337 1998-02-26  Damon Lipparelli  <lipp@primus.com>
3338
3339         * symsinit.h: syms_of_ldap() is actually syms_of_eldap().
3340
3341         * eldap.c: removed duplicates.
3342
3343 1998-02-26  SL Baur  <steve@altair.xemacs.org>
3344
3345         * file-coding.c (setup_eol_coding_systems): Disable SUB_CODESYS
3346         feature -- it causes stack corruption in Mule.
3347
3348 1998-02-27  Kirill M. Katsnelson  <kkm@kis.ru>
3349
3350         * events.c (character_to_event): The code which guesses TTY
3351         backspace character is conditionalized on HAVE_TTY
3352
3353 1998-02-26  SL Baur  <steve@altair.xemacs.org>
3354
3355         * console.c (complex_vars_of_console): Guard tty_erase_char with
3356         HAVE_TTY.
3357         * conslots.h: Ditto.
3358
3359 1998-02-25  SL Baur  <steve@altair.xemacs.org>
3360
3361         * events.c (character_to_event): Correct operations on tty_erase_char.
3362         From Martin Buchholz <martin@xemacs.org>
3363
3364         * file-coding.c (setup_eol_coding_systems): Unix/Binary sub
3365         coding-system display should default to the empty string.
3366         - Use '(t)' for Mac/Text mode.
3367
3368 Tue Feb 17 12:50:37 1998  Andy Piper  <andyp@parallax.co.uk>
3369
3370         * Makefile.in.in: make sure clean removes msw executables. This
3371         prevents the build stalling after puresize has been adjusted. Add
3372         file-coding.o to list of objects.
3373
3374         * buffer.c:
3375         * buffer.h:
3376         * bufslots.h:
3377         * callproc.c:
3378         * console-tty.c:
3379         * emacs.c:
3380         * event-Xt.c:
3381         * event-stream.c:
3382         * glyphs-x.c:
3383         * lread.c:
3384         * md5.c:
3385         * mule-canna.c:
3386         * mule-ccl.c:
3387         * process.c:
3388         * redisplay-x.c:
3389         * redisplay.c: remove #ifdef MULE's from stuff that relates to
3390         file-coding. include file-coding.h rather than mule-coding.h
3391         where applicable.
3392
3393         * mule-coding.c: #if 0 out functionality until file-coding is
3394         split up.
3395
3396         * file-coding.h:
3397         * file-coding.c: new files. copies of mule-coding.h and
3398         mule-coding.c. The mule case is unchanged. The non-mule case
3399         removes coding relating to other charsets - iso2022, big5, sjis,
3400         ccl. (setup_eol_coding_systems) add the eol type to the subsidiary
3401         coding system mnemonics so that it shows on the modeline,
3402         currently (B) for unix style (T) for mac and dos styles.
3403
3404         * fileio.c: remove #ifdef MULE's from stuff that relates to
3405         file-coding. include file-coding.h rather than mule-coding.h where
3406         applicable. FSFMACS_SPEEDY_INSERT is gone since file coding is
3407         always on.
3408
3409         * sheap.c: (more_static_core) remove spurious \n's from error
3410         message.
3411
3412 1998-02-25  Kyle Jones  <kyle_jones@wonderworks.com>
3413
3414         * lisp-disunion.h: Added XUINT macro.
3415
3416         * lisp-union.h: Added XUINT macro.
3417
3418         * data.c (Flsh): Used XUINT instead of XINT to
3419           extract the value of the first argument to avoid sign
3420           extension of the result.
3421
3422 1998-02-25  SL Baur  <steve@altair.xemacs.org>
3423
3424         * s/decosf4-0.h: Add -D_BSD.
3425         From Tore Olsen <toreo@tihlde.hist.no>
3426
3427 1998-02-21  Greg Klanderman  <greg@alphatech.com>
3428
3429         * device-x.c (x_init_device): allow `x-emacs-application-class' to
3430         be nil prior to connecting to the X server.  When this is the
3431         case, the application class is chosen based on whether the user
3432         has any resources with application class `XEmacs' set in the
3433         resource database.
3434         (vars_of_device_x): make x-emacs-application-class nil by default
3435         and document new behavior in its doc string.
3436
3437 1998-02-23  Aki Vehtari  <Aki.Vehtari@hut.fi>
3438
3439         * menubar.c: Doc fix: suffix can be form.
3440
3441         * gui.c (gui_parse_item_keywords): Allow button descriptors
3442         at least 2 long.
3443         (gui_item_display_flush_left): Suffix can be form.
3444
3445         * gui-x.c (button_item_to_widget_value): Allow button descriptors
3446         at least 2 long.
3447         (button_item_to_widget_value): Suffix can be form.
3448
3449 1998-02-24  SL Baur  <steve@altair.xemacs.org>
3450
3451         * s/sol2.h: define HAVE_GETLOADAVG for late edition Solaris
3452         From Georg Nikodym <georgn@Canada.Sun.COM>
3453
3454 1998-02-24  Didier Verna  <didier@xemacs.org>
3455
3456         * redisplay.c (generate_fstring_runes): fixed the modeline
3457         scrolling lossage (the % constructs appearing in the
3458         modeline). Now that we can have negative positions and boundaries,
3459         max_pos == -1 can't mean 'no limit' anymore. Me, stupido!
3460         (add_string_to_fstring_db_runes): Ditto.
3461         (add_glyph_to_fstring_db_runes): Ditto.
3462
3463 1998-02-19  Jim Radford  <radford@robby.caltech.edu>
3464
3465         * sysdep.c: Don't clobber SIGIO event flags we don't care about.
3466         * device.h: removed old_sigio_flag, sigio_enabled from device
3467         Secretly (on Solaris) F_SETOWN calls I_SETSIG. We unknowingly
3468         clobbered the changes so restoring the owner would cause
3469         F_SETOWN's I_SETSIG to fail therby causing an annoying syslog
3470         message.  Changed FASYNC version to match (untested).
3471
3472 1998-02-22  SL Baur  <steve@altair.xemacs.org>
3473
3474         * emacs.c (main): Enable mmap for glibc-2.1 and Linux libc5.
3475         Enable mmap only for non-Mule for glibc-2.0.
3476
3477 1998-02-21  SL Baur  <steve@altair.xemacs.org>
3478
3479         * config.h.in: Define _NO_MALLOC_WARNING_ if using dlmalloc from
3480         Linux libc5.
3481
3482 1998-02-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3483
3484         * emacs.c: declare hooks only if !DOUG_LEA_MALLOC since the
3485         declaration conflicts with glibc's own.
3486
3487 1998-02-19  SL Baur  <steve@altair.xemacs.org>
3488
3489         * config.h.in: Remove HAVE_TERM, add USE_MINIMAL_TAGBITS and
3490         USE_INDEXED_LRECORD_IMPLEMENTATION.
3491
3492         * process.c (Fopen_network_stream_internal): Remove TERM support.
3493
3494         * sysproc.h: Remove TERM support.
3495
3496 1998-02-20  Kazuyuki IENAGA <ienaga@jsys.co.jp>
3497
3498         * input-method-xfs.c: add setlocale(LC_CTYPE, "") right after
3499         setlocale(LC_NUMERIC, "C").  Because, without this, the LC_CTYPE
3500         got a side effect of LC_NUMERIC then set to "C".
3501
3502 1998-02-19  SL Baur  <steve@altair.xemacs.org>
3503
3504         * emacs.c (main): Enable mmap'ing with XEmacs/Mule.
3505
3506         * redisplay.c (add_string_to_fstring_db_runes): Fix infloop
3507         problem with long modelines and glyphs.
3508
3509         * unexelf.c: The proper way to check for GNU libc is with __GLIBC__.
3510         Suggested by Andreas Jaeger <aj@arthur.rhein-neckar.de>
3511
3512 1998-02-18  SL Baur  <steve@altair.xemacs.org>
3513
3514         * Makefile.in.in: Remove all references to prefix-args.
3515
3516 1998-02-18  Kirill M. Katsnelson  <kkm@kis.ru>
3517
3518         * sysdep.c (mswindows_set_errno): New function
3519         (mswindows_set_last_errno): Ditto
3520         These convert Win32 error code to ANSI C errno.
3521
3522         * sysdep.h: Prototypes for the above 2 functions.
3523
3524         * menubar-msw.c (vars_of_menubar_mswindows): Fprovide
3525         ('mswindows-menubar) removed. See the entry of 1998-01-03
3526
3527         * process.c: FSFmacs proc_buffered_char static array
3528         #if0'ed in 2 places. It is never used.
3529
3530 1998-02-01  Kyle Jones  <kyle_jones@wonderworks.com>
3531
3532         * window.c (save_window_save): Save window-cached
3533           speciifer values.
3534           (saved_window_equal): Added comparisons of window-cached
3535           specifier values.
3536           (Fset-window-configuration): Restore window-cached
3537           specifier values.
3538
3539 1998-02-18  Didier Verna  <didier@xemacs.org>
3540
3541         * modeline.el (mouse-drag-modeline): added the horizontal
3542         scrolling functionality for the modeline. This could still be
3543         improved, for instance when the mouse goes out of the modeline.
3544
3545 1998-02-18  Didier Verna  <didier@xemacs.org>
3546
3547         * redisplay.c:
3548         (generate_formatted_string_db): new flag to distinguish a modeline
3549         string from a title or icon one, plus use a negative first pos to
3550         indicate the modeline hscroll amount.
3551         (add_string_to_fstring_db_runes): completely rewrote this function
3552         to handle the case of scrolled modelines.
3553         (add_glyph_to_fstring_db_runes): handle the case of scrolled
3554         modelines.
3555
3556         * window.c:
3557         (Fmodeline_hscroll): new function to return the modeline current
3558         horizontal scroll amount.
3559         (Fset_modeline_hscroll): new function to scroll the modeline
3560         horizontaly.
3561         Plus some updates related to this new functionality (windows
3562         configuration, notably).
3563
3564         * window.h (struct window): added the new field modeline_hscroll.
3565
3566 1998-02-18  SL Baur  <steve@altair.xemacs.org>
3567
3568         * m/alpha.h:
3569         * unexelf.c: Synched with Emacs 20.2.
3570         From Aki Vehtari <Aki.Vehtari@hut.fi>
3571
3572         * emacs.c (main): Don't call __sbrk().
3573         * gmalloc.c (__sbrk): Ditto.
3574         Suggested by Andreas Jaeger <aj@arthur.rhein-neckar.de>
3575
3576 1998-02-17  SL Baur  <steve@altair.xemacs.org>
3577
3578         * console-tty.c (Fset_console_tty_coding_system): New function.
3579         From Kazuyuki IENAGA <ienaga@jsys.co.jp>
3580
3581 1998-02-15  SL Baur  <steve@altair.xemacs.org>
3582
3583         * ralloc.c (init_ralloc): DOUG_LEA_MALLOC support.
3584         (r_alloc_reinit): Ditto.
3585         [All non-HAVE_MMAP code]: Synched with Emacs 20.2.
3586
3587         * emacs.c: Synch DOUG_LEA_MALLOC support from Emacs 20.2.
3588         (main): Ditto.
3589         Add LINUX_SBRK_BUG workaround, what is it?
3590         (Fdump_emacs): DOUG_LEA_MALLOC support from Emacs 20.2.
3591
3592         * alloc.c: Synch DOUG_LEA_MALLOC support from Emacs 20.2.
3593         (init_alloc_once_early): Ditto.
3594
3595         * config.h.in: Add DOUG_LEA_MALLOC symbol.
3596
3597         * unexfreebsd.c (run_time_remap): Change printf format string to
3598         match parameters given.
3599
3600 1998-02-14  SL Baur  <steve@altair.xemacs.org>
3601
3602         * s/sco5.h: Define LIB_GCC as -lgcc for gcc 2.8 and egcs.
3603         Suggested by Robert Lipe <robertl@dgii.com>
3604
3605 1998-02-14  Martin Buchholz  <martin@xemacs.org>
3606
3607         * event-Xt.c (x_reset_key_mapping):
3608         * device-x.c:
3609         (x-keysym-on-keyboard-p):
3610         (x-keysym-on-keyboard-sans-modifiers-p):
3611         Use x-keysym-on-keyboard-sans-modifiers-p instead of
3612         x-keysym-on-keyboard-p to detect backspace.
3613         Use symbols instead of strings (now deprecated) with x-keysym-*-p.
3614         Clean up symbols used with dead keys, checking Linux and solaris
3615         keysyms.
3616         Simplify x-win-*.el using above methods.
3617         Change documentation for x-keysym-*-p functions.
3618
3619 1998-02-13  SL Baur  <steve@altair.xemacs.org>
3620
3621         * unexelfsgi.c: Various changes.
3622         From Olivier Galibert <galibert@pobox.com>
3623
3624         * s/freebsd.h: Avoid redefining BSD.
3625         From Kazuyuki IENAGA <ienaga@jsys.co.jp>
3626
3627         * extents.c (extent_fragment_update): Break up a line to avoid a
3628         Digital UNIX 3.2g C compiler bug.
3629         From Tonny Madsen  <tma@nettest.dk>
3630
3631         * process.c (create_process): Restore save_environ hackery.
3632
3633 1998-02-10  SL Baur  <steve@altair.xemacs.org>
3634
3635         * emacsfns.h: Remove mocklisp declarations.
3636
3637         * redisplay-msw.c (mswindows_update_dc): Enable evil kludge for
3638         cygwin.
3639         From Andy Piper <andyp@parallax.co.uk>
3640
3641 1998-02-09  SL Baur  <steve@altair.xemacs.org>
3642
3643         * menubar-msw.c (vars_of_menubar_mswindows): Fix patch failure.
3644         Suggested by: kny@tekla.fi
3645
3646         * data.c (Fold_eq): PC-ize.
3647
3648         * chartab.c: PC-ize.
3649
3650         * window.c (toplevel): PC-ize.
3651         (syms_of_window): Ditto.
3652
3653         * search.c (Freplace_match): PC-ize.
3654
3655         * lread.c: PC-ize.
3656
3657         * buffer.c (Fbuffer_enable_undo): PC-ize.
3658         (Fbuffer_disable_undo): ditto.
3659
3660         * eval.c (return_from_signal): PC-ize.
3661
3662         * casetab.c: PC-ize.
3663
3664         * callproc.c (Fcall_process_internal): PC-ize.
3665
3666 1998-02-02  Kirill M. Katsnelson  <kkm@kis.ru>
3667
3668         * gui.h (struct gui_item): Menu item, submenu or GUI button
3669         properties are abstracted into this new structure.
3670         Added prototypes for the following functions
3671
3672         * gui.c (gui_item_init): New function
3673         (gui_item_add_keyval_pair): Ditto
3674         (gui_parse_item_keywords): Ditto
3675         (gui_item_active_p): Ditto
3676         (gui_item_included_p): Ditto
3677         (gui_item_display_flush_left): Ditto
3678         (gui_item_display_flush_right): Ditto. The above listen new
3679         functions manipulate on properties common to menu items and GUI
3680         buttons.
3681
3682         * menubar.c (current_frame_menubar): Moved from menubar-msw.c
3683         (menu_parse_submenu_keywords): New function
3684         (Fmenu_find_real_submenu): Ditto, lisp accessible. The last two
3685         functions operate on menu properties stored in struct gui_item,
3686         but are specific to menus only.
3687
3688         * menubar.h: Prototypes for the above functions.
3689
3690         * menubar-msw.c: Modified to utilize struct gui_item instead of
3691         plists, to reduce garbage. Suggested by Ben Wing.
3692         Unreachable menus are fixed.
3693
3694 1998-01-03  Kirill M. Katsnelson  <kkm@kis.ru>
3695
3696         * menubar-msw.c (allocate_menu_item_id): Added third parameter to
3697         hash, suffix. Menus tend to put non-localizable items into suffix
3698         with empty name.
3699         (update_frame_menubar_maybe): top_level_menu is now set here.
3700         (mswindows_popup_menu): Ditto. It was incorrect to set it from
3701         populate.
3702         (vars_of_menubar_mswindows): Fprovide ('mswindows-menubar) removed:
3703         (featurep (and 'mswindows 'menubars)) tests the same.
3704         (mswindows_update_frame_menubars): update_..._maybe () now called
3705         only if frame->menubar_changed is set. Is it right to patch
3706         menubar.c instead?
3707
3708 1998-02-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3709
3710         * objects-msw.c:
3711           Updated color database to X11R6. Also added support for
3712           "#RRRGGGBBB" and "#RRRRGGGGBBBB" in addition to "#RRGGBB".
3713
3714 1998-02-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
3715
3716         * console.h:
3717         * console-stream.c:
3718         * redisplay.c:
3719         * redisplay-msw.c:
3720         * redisplay-tty.c:
3721         * redisplay-x.c:
3722           Added the frame as a parameter to the text_width device
3723           method.
3724
3725         * redisplay-msw.c:
3726           Support for proportional fonts.
3727
3728 1998-02-07  Hrvoje Niksic  <hniksic@srce.hr>
3729
3730         * window.c (map_windows): Don't return the value of map_windows_1.
3731         (map_windows): If F is NULL, map through all the windows.
3732         (mark_windows_in_use): Use map_windows(); made it static.
3733         (mark_windows_in_use_closure): New function.
3734
3735 1998-02-01  Hrvoje Niksic  <hniksic@srce.hr>
3736
3737         * alloc.c (Fpurecopy): Check for non-`nil'-ness instead of
3738         checking for Vobarray.
3739
3740         * dlopen.c (Fdl_open): Indirect FUNCTION explicitly, for clarity.
3741
3742         * elhash.c: Removed broken hashtable_hash().
3743
3744 1998-01-28  Hrvoje Niksic  <hniksic@srce.hr>
3745
3746         * symbols.c (Fintern): Use Qt instead of the actual obarray.
3747         (init_symbols_once_early): Ditto.
3748
3749 1998-01-27  Hrvoje Niksic  <hniksic@srce.hr>
3750
3751         * lisp.h (DO_REALLOC): Name the variable `do_realloc_newsize'
3752         instead of `newsize', to avoid name collisions.
3753
3754 1998-01-26  Hrvoje Niksic  <hniksic@srce.hr>
3755
3756         * print.c (print_symbol): Be more wary about the contents of
3757         Vprint_gensym_alist.
3758
3759 1998-02-06  SL Baur  <steve@altair.xemacs.org>
3760
3761         * emacs.c (Frun_emacs_from_temacs): Disable largely meaning-free
3762         purity/impurity summary.  Compile with -DREPORT_PURE_USAGE to get
3763         it back.
3764
3765         * process.c (create_process): Unused variable elimination.
3766
3767         * lread.c (Fload_internal): Compiler warning suppression.
3768
3769         * alloc.c (report_pure_usage): Remove unused variable.
3770
3771 Wed Jan 28 13:41:22 1998  Andy Piper  <andyp@parallax.co.uk>
3772
3773         * Makefile.in.in: add support for sheap-adjust.h generation for
3774         static heap.
3775
3776 Wed Jan 28 13:41:22 1998  Andy Piper  <andyp@parallax.co.uk>
3777
3778         * Makefile.in.in: add sheap-adjust.h support, basically copied
3779         from puresize-adjust.h. predicate sheap.o on HEAP_IN_DATA. fix
3780         xemacs target slightly to not be a single shell command, this
3781         fixes an obscure bug in cygwin gmake.
3782
3783         * alloc.c (report_pure_usage): call sheap_adjust_h if HEAP_IN_DATA
3784         is defined.
3785
3786         * sysfile.h: add abstracted OPEN_BINARY, OPEN_TEXT etc defines. On
3787         Unix these are all 0 and have no effect. On systems defining
3788         O_BINARY these use it. WINDOWSNT is currently unaffected because
3789         there are individual #ifdefs in each source file, but with this
3790         change they could be removed.
3791
3792         * emacs.c:
3793         * doc.c:
3794         * lread.c:
3795         * process.c: generalize open() calls with OPEN_BINARY. Does
3796         nothing under Unix.
3797
3798         * emacs.c: predicate inclusion of windows.h on WINDOWSNT not
3799         _WIN32.
3800
3801         * process.c:
3802         * sysdep.c:
3803         * signal.c: predicate SIGIO stuff also on !BROKEN_SIGIO, this is
3804         required for building on cygwin32 b19 which has SIGIO that only
3805         works on sockets.
3806
3807         * fileio.c:
3808         * event-stream.c: generalize open() calls with OPEN_BINARY. Does
3809         nothing under Unix. Use open() instead of creat() to make this
3810         possible. use CREAT_MODE from sysfile.h
3811
3812         * config.h.in: add MULE_CODING, currently not used. add support
3813         for HAVE_A_OUT_H.
3814
3815         * elhash.c:
3816         * menubar-msw.c:
3817         * mule-ccl.c:
3818         * device-msw.c: warning elimination.
3819
3820         * event-msw.c: add undeclared Dde calls for cygwin.
3821
3822         * redisplay-msw.c: warning elimination under mule.
3823
3824         * gmalloc.c: make initalize() really do that. If HEAP_IN_DATA is
3825         defined catch free() & realloc() calls with addresses in the data
3826         space. __morecore calls more_static_core for temacs, when dumped
3827         switches to sbrk().
3828
3829         * console-msw.h: undef CONST after windows.h inclusion since this
3830         defines CONST. #ifdef out shellapi under cygwin.
3831
3832         * device-msw.c: include sysdep.h
3833
3834         * objects-msw.c: add dummy mswindows_font_spec_matches_charset and
3835         mswindows_find_charset_font so that we can build with mule.
3836
3837         * mem-limits: return -1 for get_lim_data() when HEAP_IN_DATA is
3838         defined.
3839
3840         * sheap.c: new file. defines sheap_adjust_h and more_static_core
3841         so that data space can be used by gmalloc before dumping when
3842         HEAP_IN_DATA is defined. beef up error message about what to do if
3843         sheap space runs out.
3844
3845         * sysdep.c: make start_of_data return something sensible for
3846         HEAP_IN_DATA.
3847
3848         * systime.h: don't use itimer stuff on cygwin b19.
3849
3850         * unexcw.c: new file. Full unexec() support for cygwin using the
3851         HEAP_IN_DATA setup provided by sheap.c and friends. No run-time
3852         remapping is performed. This could be generalized to support many
3853         platforms that use COFF. you need a.out.h from my website to build
3854         this. cygwin b19 will have this.
3855
3856         * s/cygwin32.h: fixed commentary. compile in unexcw.o for dumping
3857         support. removed irrelevent things. define BROKEN_SIGIO. remove
3858         include of windows.h. add correct process support defines, process
3859         support might work when non-blocking io is implemented in cygwin.
3860
3861 1998-02-02  P. E. Jareth Hein  <jareth@camelot-soft.com>
3862
3863         * glyphs.c: Removed ImageMagick support, re-instituted the previous
3864         support for JPEG, GIF and PNG with the new color system.
3865
3866 1998-02-05  Olivier Galibert  <galibert@pobox.com>
3867
3868         * unexelf.c: Fix alignment problems on Linux.
3869
3870 1998-02-01  Kyle Jones  <kyle_jones@wonderworks.com>
3871
3872         * redisplay.c (redisplay_window): After outputting
3873           the window, invalidate its the line start cache if the
3874           we're displaying the minibuffer window and the echo
3875           area is active.  The cache is only valid for the echo
3876           area buffer, and that buffer isn't associated with the
3877           minibuffer window anymore.
3878
3879 1998-01-31  SL Baur  <steve@altair.xemacs.org>
3880
3881         * alloc.c (disksave_object_finalization): Additional checking for
3882         sanity when zeroing out unused portions of string_chars_block's.
3883         (Fpurecopy): Spelling fixes in comment.
3884         (PURESIZE_SLOP): Set default slop to 0.
3885
3886 1998-01-31  Kyle Jones  <kyle_jones@wonderworks.com>
3887
3888         * chartab.c (make_char_table): Initialize mirror
3889           tables with Spunct in all the slots.  Syntax table
3890           initialization doesn't touch slots for nonexistent
3891           characters sets.  If character sets corresponding to
3892           those slots are created later Qnil values in the slots
3893           will cause crashes.
3894         (copy_char_table_entry): Return copy not original.
3895
3896 1998-01-28  Jonathon Harris  <jhar@tardis.ed.ac.uk>
3897
3898         * msw-proc.c:
3899         * event-msw.h:
3900         * event-msw.c:
3901         * console-msw.h:
3902         Deleted the first two and merged them into the last two files.
3903
3904         * device-msw.c:
3905         * event-msw.c:
3906         * frame-msw.c:
3907         Added file-based drag and drop support. The "System/Open" DDE command
3908         is also implemented as if it were a drag and drop operation.
3909
3910         * emacsfns.h:
3911         * event-stream.c:
3912         * events.c:
3913         * events.h:
3914         * frame.c:
3915         * keymap.c:
3916         Replaced all "#ifdef HAVE_OFFIX_DND" with
3917         "#if defined(HAVE_OFFIX_DND) || defined(HAVE_MS_WINDOWS)"
3918
3919         * device.h: Added DEVICE_MSWINDOWS_P and related macros.
3920
3921         * objects-msw.c:
3922         * select-msw.c:
3923         Eliminated warnings.
3924
3925         * redisplay-msw.c: Changed color of "dead" box between scrollbars
3926         to windows' "button" color for compatibility with other windows apps.
3927
3928 1998-01-20  Stephen Turnbull  <turnbull@sk.tsukuba.ac.jp>
3929
3930         * Makefile.in.in: move `rm puresize-adjust.h' from distclean
3931           to mostlyclean
3932
3933 1998-01-29  SL Baur  <steve@altair.xemacs.org>
3934
3935         * Makefile.in.in (dlopen.o): Add dependencies.
3936
3937         * s/sunos4-0.h: Conditionalize use of broken-sun.h for old Gccs.
3938         Suggested by Amir J Katz <amir@ndsoft.com>
3939
3940 1998-01-28  SL Baur  <steve@altair.xemacs.org>
3941
3942         * faces.c (init_device_faces): This function can call lisp.
3943
3944 1998-01-28  P. E. Jareth Hein  <jareth@camelot-soft.com>
3945
3946         * mule-coding.h:
3947         * mule-coding.c: (determine_real_coding_system): removed the
3948         static declaration to allow reuse.
3949
3950         * md5.c (Fmd5): Rewrote to fully support MULE, as well as streamline
3951         the code.
3952
3953         * mule-ccl.c (ccl_driver): Set initial values of variables to shut up
3954         the compiler and to give better error message if a quit happens before
3955         any ccl_code is generated.
3956
3957 1998-01-28  SL Baur  <steve@altair.xemacs.org>
3958
3959         * glyphs.c (allocate_glyph): This function can GC.
3960         Wrap GCPRO around unprotected function calls.
3961         (specifier_vars_of_glyphs): Comment change -- Can we GC here?
3962
3963 1998-01-27  SL Baur  <steve@altair.xemacs.org>
3964
3965         * lread.c (Fload_internal): Add extra GCPRO around call to
3966         Fassoc.
3967         Enable purespace usage counts always.
3968
3969         * m/powerpc.h: Isolate changes for mklinux from AIX.
3970
3971 1998-01-27  Hrvoje Niksic  <hniksic@srce.hr>
3972
3973         * symbols.c (init_symbols_once_early): Decreased default size of
3974         Vpure_uninterned_symbol_table to 50.
3975
3976 1998-01-27  SL Baur  <steve@altair.xemacs.org>
3977
3978         * redisplay-x.c (x_output_string): Correction for handling underlined
3979         fonts when XGetFontProperty fails.
3980         From Chris Felaco <felaco@iatcmail.ed.ray.com>
3981
3982 1998-01-27  Kyle Jones  <kyle_jones@wonderworks.com>
3983
3984         * alloc.c (Fpurecopy): Store symbols that aren't
3985           interned in Vobarray into Vpure_uninterned_symbol_table.
3986
3987         * symbols.c (init_symbols_once_early): Initialize
3988           Vpure_uninterned_symbol_table.
3989
3990         * emacsfns.h: Declare Vpure_uninterned_symbol_table.
3991
3992 1998-01-26  SL Baur  <steve@altair.xemacs.org>
3993
3994         * alloc.c (report_pure_usage): New macro PURESIZE_SLOP to allow
3995         for extra pure space.
3996
3997 1998-01-23  SL Baur  <steve@altair.xemacs.org>
3998
3999         * sound.c (Fplay_sound_file): Use NILP for comparison of
4000         Lisp_Object.
4001
4002 Wed Jan 21 10:49:47 1998  Andy Piper  <andyp@parallax.co.uk>
4003
4004         * unexcw.cc: new file for cygwin32 unexec() requires cygwin32
4005         b19. Predicated on HAVE_COFF_H.
4006
4007         * console.c:
4008         * device-msw.c:
4009         * event-msw.c:
4010         * frame-msw.c:
4011         * msw-proc.c:
4012         * objects-msw.c:
4013         Eliminate warnings.
4014