XEmacs 21.2-b3
[chise/xemacs-chise.git-] / src / ChangeLog
1 1998-10-15  SL Baur  <steve@altair.xemacs.org>
2
3         * XEmacs 21.2-beta3 is released.
4
5 1998-10-13  Raymond Toy  <toy@rtp.ericsson.se>
6
7         * runemacs.c (WinMain): If the basename is "rungnuclient.exe", run
8         gnuclient.  Otherwise, we run xemacs as we always did.  This gets
9         rid of the annoying DOS window when running gnuclient.
10
11 1998-10-13  Andy Piper  <andyp@parallax.co.uk>
12
13         * dragdrop.c (vars_of_dragdrop): rename HAVE_MSWINDOWS ->
14         HAVE_MS_WINDOWS typo.
15
16 1998-10-13  SL Baur  <steve@altair.xemacs.org>
17
18         * process-unix.c (unix_send_process): Set closed flag on writable
19         pipe after SIGPIPE is received and before we call deactivate_process.
20
21 1998-10-03  Gunnar Evermann  <ge204@eng.cam.ac.uk>
22
23         * window.c (Fset_window_start): respect narrowing when
24         checking wheter start is at the beginning of a line.
25         (Fset_window_buffer): Ditto
26         Fixes repeatable crash in VM.
27
28 1998-10-09  SL Baur  <steve@altair.xemacs.org>
29
30         * window.c (specifier_vars_of_window): Set default vertical
31         divider width to 1 on ttys.
32
33 1998-10-08  Martin Buchholz  <martin@xemacs.org>
34
35         * alloc.c:
36         * unexec.c:
37         * malloc.c:
38         Add <stddef.h> to get ptrdiff_t declaration
39
40 1998-10-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
41
42         * scrollbar-msw.c: Use the same vertical scrollbar drag hack as 
43           is used for Motif or Lucid scrollbars under X.
44
45 1998-10-08  Pierre Wendling  <pw@ebc.vbe.dec.com>
46
47         * m/alpha.h (UNEXEC): quoted to avoid bad expansion when running
48         `configure'
49
50 1998-10-06  Takeshi Hagiwara  <hagiwara@ie.niigata-u.ac.jp>
51
52         * frame-x.c (x_delete_frame): Fix an argument of XtDestroyWidget.
53
54 1998-10-05  Andy Piper  <andyp@parallax.co.uk>
55
56         * s/cygwin32.h: more cygwin b20 reorganisation.
57
58 1998-10-03  Gunnar Evermann  <ge204@eng.cam.ac.uk>
59
60         * window.c (Fset_window_start): Document me.
61         (Fset_window_buffer): Document me.
62         Fixes some sort of repeatable crash.
63
64 1998-10-01  Raymond Toy  <toy@rtp.ericsson.se>
65
66         * nas.c: Added necessary support functions to be able to handle
67         WAVE files in memory, just like the support for SND files in
68         memory.
69
70 1998-09-30  SL Baur  <steve@altair.xemacs.org>
71
72         * callproc.c (child_setup): Fix spelling typo.
73
74 1998-09-29  SL Baur  <steve@altair.xemacs.org>
75
76         * XEmacs 21.2-beta2 is released.
77
78 1998-09-27  P. E. Jareth Hein  <jareth@camelot.co.jp>
79
80         * regex.c (re_match_2_internal): Add in code to reset lowest_active_reg
81         to prevent memory corruption in the case of jumping out of a series of
82         nested match patterns. This is a rather brute force approach, though.
83
84 1998-09-02  Andy Piper  <andyp@parallax.co.uk>
85
86         * config.h.in: ditto.
87
88         * s/cygwin32.h: rearrange declarations to cope with cygwin
89         b20. Include cygwin32/version.h if it exists.
90
91 1998-09-20  Jonathan Harris  <jhar@tardis.ed.ac.uk>
92
93         * device-msw.c (mswindows_init_device): Call new
94           mswindows_enumerate_fonts() function in objects-msw.c instead
95           of font_enum_callback_1() to enumerate fonts.
96
97           font_enum_callback_1() and _2() moved to objects-msw.c. 
98
99         * faces.c (complex_vars_of_faces): Make the mswindows default 
100           face font fully specified and provide some fallbacks.
101
102         * objects-msw.c: font_enum_callback_1() and _2() moved here
103           from objects-msw.c. Obtain the enumerated font's character
104           sets by table lookup instead of using the locale-specific
105           string provided by Windows.
106
107           New public non-method mswindows_enumerate_fonts() that fills
108           in the supplied mswindows device's font list.
109
110           mswindows_initialize_font_instance: Use the supplied name
111           variable instead of f->name when signalling errors. Match font
112           weights and character sets using lookup tables which handle
113           spaces instead of by frobbing.
114
115 1998-09-20  Jonathan Harris  <jhar@tardis.ed.ac.uk>
116
117         * process-nt.c: Define an arbitrary limit, FRAGMENT_CODE_SIZE,
118           on the size of code fragments passed to run_in_other_process.
119
120           run_in_other_process(): Use FRAGMENT_CODE_SIZE to determine
121           the amount of memory to allocate in the other process.
122
123           Removed sigkill_code_end(), sigint_code_end() and
124           sig_enable_code_end() since they are now redundant.
125
126           send_signal() and enable_child_signals(): Don't try to work
127           out the end of the code fragments passed to 
128           run_in_other_process()
129
130 1998-09-10  Kazuyuki IENAGA  <ienaga@jsys.co.jp>
131
132         * src/s/freebsd.h: Added __ELF__ and compiler/liker flags for
133         FreeBSD-current.
134
135         * src/unexelf.c: Partially synched with FSF's 20.3.
136
137 1998-09-10  Hrvoje Niksic  <hniksic@srce.hr>
138
139         * insdel.c (signal_after_change): Map across indirect buffers
140         here, and not in the upper-level functions.
141         (signal_first_change): Don't check for Armageddon.
142         (signal_before_change): Map across indirect buffers here.
143         (prepare_to_modify_buffer): ...and here.
144
145 1998-09-09  Hrvoje Niksic  <hniksic@srce.hr>
146
147         * insdel.c (signal_after_change): Add return value.
148         (buffer_insert_string_1): Use it.
149         (buffer_delete_range): Ditto.
150         (buffer_replace_char): Ditto.
151         (cancel_multiple_change): Map the indirect buffers.
152
153 1998-09-06  Hrvoje Niksic  <hniksic@srce.hr>
154
155         * insdel.c (init_buffer_text): Remove INDIRECT_P parameter.
156         (uninit_buffer_text): Ditto.
157
158         * buffer.c (Fmake_indirect_buffer): Implement stricter
159         error-checking.
160
161 1998-09-04  Hrvoje Niksic  <hniksic@srce.hr>
162
163         * insdel.c (change_function_restore): Reverse order of
164         function-call and assignment.
165         (first_change_hook_restore): Ditto.
166
167         * extents.c (mark_extent_auxiliary): Mark them.
168         (Fset_extent_property): Set them.
169         (Fextent_property): Get them.
170         (Fextent_properties): Ditto.
171         (vars_of_extents): Set their default.
172
173         * extents.h (struct extent_auxiliary): Add before_change_functions
174         and after_change_functions.
175
176         * insdel.c (signal_before_change): Use it.
177         (signal_after_change): Ditto.
178
179         * extents.c (report_extent_modification): New function.
180
181         * insdel.c (signal_before_change): Don't check for Armageddon.
182         (signal_after_change): Ditto.
183
184 1998-09-11  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
185
186         * redisplay.c (redisplay_window): make sure a new starting point
187         is chosen if it somehow got moved from the beginning of the line
188         -- this can happen because Fwiden was called recently.
189
190         * window.c (Fset_window_start): set start_at_line_beg correctly
191         (Fset_window_buffer): Ditto
192
193 1998-09-06  Hrvoje Niksic  <hniksic@srce.hr>
194
195         * insdel.c (init_buffer_text): Remove INDIRECT_P parameter.
196         (uninit_buffer_text): Ditto.
197
198         * buffer.c (Fmake_indirect_buffer): Implement stricter
199         error-checking.
200
201 1998-05-14  Jan Vroonhof  <vroonhof@math.ethz.ch>
202
203         * emacs.c (main_1): Removed references to *vars_of_filelock.
204
205         * lisp.h: Added Fsystem_name.
206
207         * filelock.c: Replaced by version from FSF 20.2. Now implements
208         locking by using symlinks which is NFS safe. However keep the
209         GCPRO's in lock_file and the calls to callx_in_buffer like our old 
210         version (and of course use ansi C, acessor macros, etc).
211
212 1998-09-06  Jan Vroonhof  <vroonhof@math.ethz.ch>
213
214         * process-unix.c (unix_create_process): Reset SIGHUP handler to
215         SIG_DFL. We now try to conserve any inherted SIG_IGN settings
216         in init_signals_very_early. However these should not be passed 
217         on to children attached to the new pty.
218
219 1998-08-28  Andy Piper  <andyp@parallax.co.uk>
220
221         * glyphs-eimage.c (png_instantiate_unwind): clean up eimage after use.
222
223 1998-09-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
224
225         * fileio.c (file-name-directory, file_name_as_directory):
226           Don't call CORRECT_DIR_SEPS, even when #defined WINDOWSNT. 
227
228 1998-09-02  Andy Piper  <andyp@parallax.co.uk>
229
230         * emacs.c (main_1): init_ralloc() if initialised and we have REL_ALLOC
231
232         * ralloc.c: uncomment __morecore.
233
234 1998-09-92  Jonathan Harris  <jhar@tardis.ed.ac.uk>
235
236         * event-msw.c(winsock_writer): Supply a dummy 4th argument to
237           WriteFile() to fix a winsock 1.x bug on Win95.
238
239 1998-08-28  Hrvoje Niksic  <hniksic@srce.hr>
240
241         * event-Xt.c (emacs_Xt_mapping_action): Check for device being
242         deleted.
243         (x_event_to_emacs_event): Ditto.
244         (emacs_Xt_handle_focus_event): Ditto.
245         (emacs_Xt_handle_magic_event): Ditto.
246
247         * console-x.h (struct x_device): New flag being_deleted.
248         (DEVICE_X_BEING_DELETED): New macro.
249
250         * device-x.c (x_IO_error_handler): Throw to top-level instead of
251         returning.  Before doing that, set the being_deleted flag on the
252         device.
253
254 1998-08-27  Hrvoje Niksic  <hniksic@srce.hr>
255
256         * device-x.c (x-seppuku-on-epipe): Removed.
257
258 1998-08-26  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
259
260         * frame-x.c (x_delete_frame): Flush the X output buffer after
261         calling XtDestroyWidget to ensure that the windows are really
262         killed right now. 
263
264 1998-08-26  Hrvoje Niksic  <hniksic@srce.hr>
265
266         * menubar-x.c (my_run_hook): New unused function.
267         (pre_activate_callback): Use run_hook for Qactivate_menubar_hook,
268         since we ignore the results of the contained functions anyway.
269
270 1998-08-26  P. E. Jareth Hein  <jareth@camelot.co.jp>
271
272         * glyphs-eimage.c (gif_instantiate): Fix a crash in handling
273         interlaced GIF files that are smaller than 4 lines high...
274
275 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
276
277         * buffer.c (map_over_sharing_buffers): Deleted.
278
279         * insdel.c (MAP_INDIRECT_BUFFERS): Move to buffer.h.
280
281         * buffer.c (Fkill_buffer): Keep indirect_children updated while
282         killing them.
283
284 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
285
286         * insdel.c (buffer_insert_string_1): Advance the point bytind in
287         all the buffers.
288         (buffer_delete_range): Ditto.
289
290         * marker.c (init_buffer_markers): Set point-marker to the value of 
291         point in an indirect buffer.
292
293 1998-08-30  Hrvoje Niksic  <hniksic@srce.hr>
294
295         * undo.c (undo_prelude): Test last-undo-buffer against base
296         buffer.
297
298         * insdel.c (MAP_INDIRECT_BUFFERS): Use it.
299
300         * buffer.h (BUFFER_BASE_BUFFER): New macro.
301
302 1998-08-30  Hrvoje Niksic  <hniksic@srce.hr>
303
304         * insdel.c (init_buffer_text): Initialize it here.
305
306         * line-number.c: Address line_number_cache through buffer->text.
307
308         * buffer.c (mark_buffer): Mark line number cache.
309
310         * bufslots.h (line_number_cache): Move to struct buffer_text.
311
312         * insdel.c (buffer_insert_string_1): Propagate signals and changes
313         across the children buffers.
314         (buffer_delete_range): Ditto.
315         (buffer_replace_char): Ditto.
316         (gap_left): Ditto.
317         (gap_right): Ditto.
318
319         * insdel.c (MAP_INDIRECT_BUFFERS): New macro.
320
321         * buffer.c (Fmake_indirect_buffer): Uncomment.
322
323 1998-08-31  Hrvoje Niksic  <hniksic@srce.hr>
324
325         * macros.c (Fend_kbd_macro): Remove trailing period from error
326         message.
327         (Fexecute_kbd_macro): Ditto.
328
329 1998-08-21  Greg Klanderman  <greg@alphatech.com>
330
331         * dired.c (Fuser_name_completion): remove optional 2nd argument.
332         (Fuser_name_completion_1): new function to return uniqueness
333         indication in addition to the user name completion.
334         (user_name_completion): change type of `uniq' argument.
335
336 1998-08-19  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
337
338         * lread.c (vars_of_lread): Removed `source-directory' variable.
339
340 1998-08-22  Hrvoje Niksic  <hniksic@srce.hr>
341
342         * fileio.c (Ffile_readable_p): Apply the DOS/Windows logic to
343         Cygwin.
344
345 1998-08-19  SL Baur  <steve@altair.xemacs.org>
346
347         * dired.c (vars_of_dired): Fix misapplied patch.
348
349 1998-08-16  Martin Buchholz  <martin@xemacs.org>
350
351         * fns.c (Fremrassq, remrassq_no_quit):
352         A XCAR that should have been an XCDR turned Fremrassq into Fremassq
353
354 1998-07-17  Didier Verna  <verna@inf.enst.fr>
355
356         * redisplay-x.c (x_get_gc): returns a GC with a FillStipple fill
357         style as foreground GC for faces that have the `dim' property.
358         (x_output_string): when the `dim' face property is set,
359         ensure the gray pixmap has been created, and get a proper
360         foreground GC to draw the text.
361
362 1998-08-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
363
364         * event-msw.c (mswindows_wnd_proc): Workaround for a Win95 bug:
365           Manually track the state of the left and right Ctrl and Alt
366           modifiers.
367
368 1998-08-07 Matt Stupple <matts@tibco.com>
369
370         * ntproc.c: don't wait on char_consumed at thread entry. 
371         Additionally, to get the 'process' marked as finished, ensure
372         that the CHILD_ACTIVE macro returns false, so before exiting
373         close char_avail and set it to NULL, and close other handles
374         to reduce handle leak problems.
375
376 1998-08-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
377
378         * menubar-msw.c (displayable_menu_item): take account of menu
379           depth when deciding whether to try to display accelerators.
380
381 1998-08-04  Andy Piper  <andyp@parallax.co.uk>
382
383         * event-msw.c: use MsgWaitForMultipleObjects if there are no
384         subprocesses.
385
386         * glyphs-msw.c: fix a couple of potential handle leaks.
387
388 1998-08-04  P. E. Jareth Hein  <jareth@camelot.co.jp>
389
390         * dgif_lib.c gif_io.c gifrlib.h: New files to put GIF
391           *decoding ONLY* back into the core.
392         * glyphs-eimage.c: Change referenced header file for GIF
393           reading to point to the incore version.
394
395 1998-07-20  Martin Buchholz  <martin@xemacs.org>
396
397         * casefiddle.c (casify_object): 
398         Change algorithm from O(N**2) to O(N).
399         Code cleanup.
400         Doc string cleanup.
401
402 1998-07-22  Greg Klanderman  <greg@alphatech.com>
403
404         * dired.c (file_name_completion_unwind): don't leak the cons.
405
406 1998-07-20  Greg Klanderman  <greg@alphatech.com>
407
408         * dired.c (Fuser_name_completion): new function.
409         (Fuser_name_all_completions): new function.
410         (user_name_completion): new function.
411         (syms_of_dired): 2 new DEFSUBRs.
412         (vars_of_dired): initialize user name cache vars.
413
414 1998-07-29  P. E. Jareth Hein  <jareth@camelot.co.jp>
415
416         * glyphs-eimage.c (png_instantiate): Add proper handling for background
417         colors taken from the default face.  Also correct a thinko in
418         transparency (not alpha) handling.
419
420 1998-07-23  Martin Buchholz  <martin@xemacs.org>
421
422         * s/decosf4-0.h:  Use a perfectly ordinary link.  Nuke BSD crap.
423         * unexalpha.c: ANSI C-ize.  Clean compiler warnings.
424         * lread.c (Fload_internal):  Be very careful with printfs of
425         size_t's
426         * gui-x.c (menu_name_to_accelerator): tolower wants an `int'
427         argument.
428
429 1998-07-27  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
430
431         * callint.c (Fcall_interactively): GCPRO prompt string before
432         passing it to Fread_key_sequence
433
434 1998-07-27  SL Baur  <steve@altair.xemacs.org>
435
436         * keymap.c (vars_of_keymap): Initialize Vkey_translation_map and
437         Vvertical_divider_map.
438
439         * mule-canna.c (vars_of_mule_canna): Initialize every symbol to
440         Qnil or 0, none were initialized prior to this change.
441
442         Rename misnamed `V' prefixed integer variables:
443         Vcanna_empty_info, Vcanna_through_info, Vcanna_underline,
444         Vcanna_inhibit_hankakukana, Vcanna_henkan_length, Vcanna_henkan_revPos,
445         Vcanna_henkan_revLen, Vcanna_ichiran_length, Vcanna_ichiran_revPos,
446         Vcanna_ichiran_revLen.
447
448         Rename misnamed `V' prefixed integer variables and initialize
449         properly in the vars_of routine.
450         Vcanna_mode_AlphaMode, Vcanna_mode_EmptyMode, Vcanna_mode_KigoMode,
451         Vcanna_mode_YomiMode, Vcanna_mode_JishuMode, Vcanna_mode_TankouhoMode,
452         Vcanna_mode_IchiranMode, Vcanna_mode_YesNoMode, Vcanna_mode_OnOffMode,
453         Vcanna_mode_AdjustBunsetsuMode, Vcanna_mode_ChikujiYomiMode,
454         Vcanna_mode_ChikujiTanMode, Vcanna_mode_HenkanMode,
455         Vcanna_mode_HenkanNyuryokuMode, Vcanna_mode_ZenHiraHenkanMode,
456         Vcanna_mode_HanHiraHenkanMode, Vcanna_mode_ZenKataHenkanMode,
457         Vcanna_mode_HanKataHenkanMode, Vcanna_mode_HanKataHenkanMode,
458         Vcanna_mode_ZenAlphaHenkanMode, Vcanna_mode_HanAlphaHenkanMode,
459         Vcanna_mode_ZenHiraKakuteiMode, Vcanna_mode_HanHiraKakuteiMode,
460         Vcanna_mode_ZenKataKakuteiMode, Vcanna_mode_HanKataKakuteiMode,
461         Vcanna_mode_ZenAlphaKakuteiMode, Vcanna_mode_HanAlphaKakuteiMode,
462         Vcanna_mode_HexMode, Vcanna_mode_BushuMode, Vcanna_mode_ExtendMode,
463         Vcanna_mode_RussianMode, Vcanna_mode_GreekMode, Vcanna_mode_LineMode,
464         Vcanna_mode_ChangingServerMode, Vcanna_mode_HenkanMethodMode,
465         Vcanna_mode_DeleteDicMode, Vcanna_mode_TourokuMode,
466         Vcanna_mode_TourokuEmptyMode, Vcanna_mode_TourokuHinshiMode,
467         Vcanna_mode_TourokuDicMode, Vcanna_mode_QuotedInsertMode,
468         Vcanna_mode_BubunMuhenkanMode, Vcanna_mode_MountDicMode,
469         Vcanna_fn_SelfInsert, Vcanna_fn_FunctionalInsert,
470         Vcanna_fn_QuotedInsert, Vcanna_fn_JapaneseMode, Vcanna_fn_AlphaMode,
471         Vcanna_fn_HenkanNyuryokuMode, Vcanna_fn_Forward, Vcanna_fn_Backward,
472         Vcanna_fn_Next, Vcanna_fn_Prev, Vcanna_fn_BeginningOfLine,
473         Vcanna_fn_EndOfLine, Vcanna_fn_DeleteNext, Vcanna_fn_DeletePrevious,
474         Vcanna_fn_KillToEndOfLine, Vcanna_fn_Henkan, Vcanna_fn_Kakutei,
475         Vcanna_fn_Extend, Vcanna_fn_Shrink, Vcanna_fn_AdjustBunsetsu,
476         Vcanna_fn_Quit, Vcanna_fn_ConvertAsHex, Vcanna_fn_ConvertAsBushu,
477         Vcanna_fn_KouhoIchiran, Vcanna_fn_BubunMuhenkan, Vcanna_fn_Zenkaku,
478         Vcanna_fn_Hankaku, Vcanna_fn_ExtendMode, Vcanna_fn_ToUpper,
479         Vcanna_fn_Capitalize, Vcanna_fn_ToLower, Vcanna_fn_Hiragana,
480         Vcanna_fn_Katakana, Vcanna_fn_Romaji, Vcanna_fn_BaseHiragana,
481         Vcanna_fn_BaseKatakana, Vcanna_fn_BaseEisu, Vcanna_fn_BaseZenkaku,
482         Vcanna_fn_BaseHankaku, Vcanna_fn_BaseKana, Vcanna_fn_BaseKakutei,
483         Vcanna_fn_BaseHenkan, Vcanna_fn_BaseHiraKataToggle,
484         Vcanna_fn_BaseZenHanToggle, Vcanna_fn_BaseKanaEisuToggle,
485         Vcanna_fn_BaseKakuteiHenkanToggle, Vcanna_fn_BaseRotateForward,
486         Vcanna_fn_BaseRotateBackward, Vcanna_fn_Touroku, Vcanna_fn_HexMode,
487         Vcanna_fn_BushuMode, Vcanna_fn_KigouMode, Vcanna_fn_Mark,
488         Vcanna_fn_TemporalMode, Vcanna_key_Nfer, Vcanna_key_Xfer,
489         Vcanna_key_Up, Vcanna_key_Left, Vcanna_key_Right, Vcanna_key_Down,
490         Vcanna_key_Insert, Vcanna_key_Rollup, Vcanna_key_Rolldown,
491         Vcanna_key_Home, Vcanna_key_Help, Vcanna_key_KP_Key,
492         Vcanna_key_Shift_Nfer, Vcanna_key_Shift_Xfer, Vcanna_key_Shift_Up,
493         Vcanna_key_Shift_Left, Vcanna_key_Shift_Right, Vcanna_key_Shift_Down,
494         Vcanna_key_Cntrl_Nfer, Vcanna_key_Cntrl_Xfer, Vcanna_key_Cntrl_Up,
495         Vcanna_key_Cntrl_Left, Vcanna_key_Cntrl_Right, Vcanna_key_Cntrl_Down
496
497 1998-07-16  Jan Vroonhof  <vroonhof@math.ethz.ch>
498
499         * event-Xt.c (x_to_emacs_keysym): Return nil for modifier keysyms.
500         (x_event_to_emacs_event): Let x_to_emacs_keysym check for modifier 
501         keys thus no longer considering all keysyms on a key.
502
503 1998-07-19  SL Baur  <steve@altair.xemacs.org>
504
505         * XEmacs 21.2-beta1 is released.
506
507 1998-07-12  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
508
509         * eldap.c (Fldap_search_internal): When converting the list of
510         attributes to search Copy the final 0 from Lisp strings to C
511         strings.
512         Check base, not Vldap_default_base as a a string
513
514 1998-07-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
515
516         * nt.c: Remove Vstdio_str; already defined in console-stream.c.
517
518         * unexnt.c: Unconditionally define bss_start and bss_size, and
519           ensure that they don't go in the .bss section.
520
521 1998-07-17  Olivier Galibert  <galibert@pobox.com>
522
523         * glyphs-x.c (convert_EImage_to_XImage):  Fix previous patch (conv
524         byte order is dependant  of  the local  byte order).
525         From Takeshi Hagiwara <hagiwara@ie.niigata-u.ac.jp>
526
527 1998-07-18  SL Baur  <steve@altair.xemacs.org>
528
529         * glyphs-msw.c (mswindows_resource_normalize): Qresource ->
530         Qmswindows_resource.
531         From Jonathan Harris <jhar@tardis.ed.ac.uk>
532
533 1998-07-12  SL Baur  <steve@altair.xemacs.org>
534
535         * general.c (syms_of_general): Add defsymbol for Qresource.
536
537         * glyphs-msw.c (vars_of_glyphs_mswindows): Rename Qresource to
538         Qmswindows_resource.
539         (TopLevel): Rename 'resource image format to 'mswindows_resource.
540         (mswindows_resource_validate): Rename.
541         (mswindows_resource_normalize): Rename.
542         (mswindows_resource_possible_dest_types): Rename.
543         (mswindows_resource_instantiate): Rename.
544         (image_instantiator_format_create_glyphs_mswindows): Replace
545         `resource' with `mswindows.resource'.
546
547         * XEmacs 21.0-pre5 is released.
548
549 1998-07-10  SL Baur  <steve@altair.xemacs.org>
550
551         * mule-wnnfns.c (Fwnn_open): Correctly trap on misdefined Wnn
552         server type in environment.
553         Use alloca-ed strings instead of tiny fixed size ones.
554
555 1998-07-09  SL Baur  <steve@altair.xemacs.org>
556
557         * XEmacs 21.0-pre4 is released.
558
559 1998-07-01  James N. Potts  <jnpotts@plutonium.net>
560
561         * fileio.c: (expand_file_name): under win32: Don't treat names
562         as UNC names if a drive letter has been specified.  If a drive
563         has been specified, strip out extra directory-seperators that
564         reportedly cause problems under Win95.
565
566 1998-07-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
567
568         * windowsnt.h: Define DUMP_SEPARATE_SECTION when building with
569           MSVC >= 5.0. Put emacs init and zero-init data in a special
570           section of the executable when this is defined.
571
572         * unexnt.c, ntheap.h:
573           Removed unused find_section() and get_section_size().
574
575         * unexnt.c:
576           Fix up the executable's checksum after dumping otherwise the
577           profiler complains.
578           When DUMP_SEPARATE_SECTION is defined, don't need to dump
579           zero-init data separately from init data. Dump emacs data
580           into a special section of the executable.
581           When DUMP_SEPARATE_SECTION not defined, dump .bss up to
582           my_ebss instead of up to the end of bss.
583
584 1998-07-09  Jonathan Harris  <jhar@tardis.ed.ac.uk>
585
586         * filelock.c: Removed Vconfigure_lock_directory - already
587           defined in emacs.c.
588
589         * frame-msw.c: Removed Qinitially_unmapped and Qpopup - already
590           defined in frame.c and general.c respectively.
591
592         * glyphs-msw.c: Removed Qresource - already defined in
593           general.c.
594
595 1998-07-05  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
596
597         * eldap.c (Fldap_search_internal): Docstring fixes
598
599 1998-07-04  Jonathan Harris  <jhar@tardis.ed.ac.uk>
600
601         * nt.c (init_environment): Removed unused PRELOAD_WINSOCK,
602           EMACSDOC and TERM variables. Added EMACSDEBUGPATHS,
603           EMACSPACKAGEPATH and INFOPATH variables.
604           Removed unused get_emacs_configuration function.
605
606         * s/windowsnt.h: Don't define EMACS_CONFIGURATION here because
607           it is now defined at build-time by the makefile.
608
609 1998-07-01  James N. Potts  <jnpotts@plutonium.net>
610
611         * fileio.c: (expand_file_name): under win32: Don't treat names as
612         UNC names if a drive letter has been specified.  If a drive has
613         been specified, strip out extra directory-seperators that
614         reportedly cause problems under Win95.
615
616 1998-07-05  Andy Piper  <andyp@parallax.co.uk>
617
618         * faces.c (complex_vars_of_faces): for the gui-element face don't
619         fallback to the default face, instead provide reasonable default
620         fallbacks that were previously hardcoded elsewhere.
621
622 1998-07-06  Olivier Galibert  <galibert@pobox.com>
623
624         * glyphs-x.c (convert_EImage_to_XImage): Fix pixel writing problem
625         when the X server endianness is different than the client's one.
626
627 1998-06-29  Kyle Jones  <kyle_jones@wonderworks.com>
628
629         * eval.c (run_hook_with_args_in_buffer): Check
630           default (non-buffer-local) value of hook for
631           nil before treating it as a function.  Don't initialize 
632           the `globals' variable twice.
633
634 1998-06-24  Jonathan Harris  <jhar@tardis.ed.ac.uk>
635
636         * fileio.c: Don't do directory seperator canonicalisation in
637           substitute-in-file-name because we don't know that the
638           filename refers to a local file.
639
640 1998-06-24  Adrian Aichner  <aichner@ecf.teradyne.com>
641
642         * process-nt.c (nt_create_process): Try appending the standard
643           executable file extensions to the filename if none supplied.
644
645 1998-06-29  SL Baur  <steve@altair.xemacs.org>
646
647         * fileio.c (Fsubstitute_in_file_name): Enable double slash notation
648         for cygwin32.
649         From Keisuke Mori <ksk@ntts.com>
650
651 1998-06-24  Andy Piper  <andyp@parallax.co.uk>
652
653         * toolbar-msw.c (mswindows_output_toolbar): only enable masked
654         images if we have masks. This handles the xbm case (have masks)
655         and avoids overuse of resources in the xpm case (generally no masks).
656         Don't output small toolbars.
657
658 1998-06-29  Kyle Jones  <kyle_jones@wonderworks.com>
659
660         * eval.c (run_hook_with_args_in_buffer): Don't treat
661           the default value of a buffer local hook as a list of
662           hooks unless it is both a cons and the car of that cons 
663           is not Qlambda.
664
665 1998-06-29  SL Baur  <steve@altair.xemacs.org>
666
667         * extents.c: Email address for Ben Wing is ben@xemacs.org.
668         * process-unix.c: Ditto.
669         * mule-coding.h: Ditto.
670         * mule-coding.c: Ditto.
671         * mule-charset.c: Ditto.
672         * mule-charset.h: Ditto.
673         * file-coding.c: Ditto.
674         * file-coding.h: Ditto.
675
676 1998-06-22  Jonathan Harris  <jhar@tardis.ed.ac.uk>
677
678         * event-msw.c: Guard against recursion when freeing
679           FRAME_MSWINDOWS_TARGET_RECT struture in WM_SIZE processing.
680
681         * frame-msw.c: Don't set WS_VISIBLE attribute on first frame.
682           Call ShowWindow twice in init_frame_3 to get round runemacs
683           weirdness.
684
685 1998-06-27  Hrvoje Niksic  <hniksic@srce.hr>
686
687         * scrollbar.c (vertical_scrollbar_changed_in_window): Ditto.
688
689         * winslots.h: Rename.
690
691         * window.c (specifier_vars_of_window): Renamed
692         vertical-divider-draggable-p to vertical-divider-always-visible-p, 
693         as suggested by Ben Wing.
694         (specifier_vars_of_window): Fix docstrings.
695
696 1998-06-22  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
697
698         * unexaix.c: Line number information works correctly again.
699
700 1998-06-22  Olivier Galibert  <galibert@pobox.com>
701
702         * emacs.c (__sti__iflPNGFile_c___): Added. See comment. Cry.
703
704 1998-06-21  Martin Buchholz  <martin@xemacs.org>
705
706         * editfns.c (get_home_directory): ANSIfy.
707         XEmacs is compilable under C *and* C++.
708         It's XEmacs, not Xemacs!
709
710 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
711
712         * console-msw.h: added a list of fonts to device data.
713
714         * device-msw.c: enumerate list of available fonts in
715           mswindows_init_device. Free list in mswindows_delete_device.
716
717         * objects-msw.c: Added helper function match_font used by
718           mswindows_initialize_font_instance and mswindows_list_fonts.
719           Allow a charset to be specified in a font string, even if
720           previous fields havn't been specified.
721
722 1998-06-23  Greg Klanderman  <greg@alphatech.com>
723
724         * indent.c (column_at_point): column cache bugfix.
725         Set last_known_column_point to the buffer position for
726         which the column was requested, not buffer's point.
727
728         * redisplay.c (decode_mode_spec): for current-column, show 
729         window's point's column, not buffer's point's column.
730
731 1998-06-23  Andy Piper  <andyp@parallax.co.uk>
732
733         * menubar-msw.c (mswindows_handle_wm_command): use
734         enqueue_misc_user event rather than
735         mswindows_enqueue_msic_user_event to fix customize problems. Add some
736         checks that X does.
737
738         * console-msw.h: declare mswindows_enqueue_magic_event.
739
740         * event-msw.c (mswindows_enqueue_magic_event): make global.
741
742 1998-06-24  Hrvoje Niksic  <hniksic@srce.hr>
743
744         * line-number.c (LINE_NUMBER_FAR): Reverted to 16384.
745         (buffer_line_number): Use EMACS_INT_MAX instead of random LOTS.
746         (add_position_to_cache): Use EMACS_INT instead of int.
747
748 1998-06-21  Olivier Galibert  <galibert@pobox.com>
749
750         * lisp-disunion.h (XMARKBIT): Have XMARKBIT return something
751         suitable for an int used as a boolean (btw, C sucks.).
752
753 1998-06-18  Andy Piper  <andyp@parallax.co.uk>
754
755         * object-msw.c: remove warnings.
756
757         * device-msw.c: #define wrongly named cygwin structure elements.
758
759         * s/cygwin32.h: define DEMI_BOLD
760
761 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
762
763         * redisplay-msw.c: new function mswindows_apply_face_effects.
764           This is called by output_string and output_cursor to display
765           underline and strikeout on faces.
766
767 1998-06-19  Jonathan Harris  <jhar@tardis.ed.ac.uk>
768
769         * console-msw.h: added a list of fonts to device data.
770
771         * device-msw.c: enumerate list of available fonts in
772           mswindows_init_device. Free list in mswindows_delete_device.
773
774         * objects-msw.c: Added helper function match_font used by
775           mswindows_initialize_font_instance and mswindows_list_fonts.
776           Allow a charset to be specified in a font string, even if
777           previous fields havn't been specified.
778
779 1998-06-15  Jonathan Harris  <jhar@tardis.ed.ac.uk>
780
781         * objects-msw.c:
782           Removed compilation warnings from mswindows_string_to_color.
783           mswindows_list_fonts returns a more general bogus font.
784           New lisp-visible function mswindows-color-list.
785
786 1998-06-19  David Bush <david.bush@adn.alcatel.com>
787
788         * editfns.c (Fuser_login_name): Modify to user new function
789         user_login_name.
790         (user_login_name): C only function to avoid Lisp object overhead
791         Returns "unknown" instead of nil in Cygwin environment
792
793         * fileio.c (Fexpand_file_name): Treat "~" and "~user" as
794         equivalent for current user in Cygwin environment. Use new
795         function user_login_name to get username.
796
797         * lisp.h: Declare user_login_name
798
799 1998-06-18  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
800
801         * unexaix.c (make_hdr): Fixed bias computations so debugging info
802         works again.
803         Some other insignificant nitpicks.
804
805 1998-06-18  Andy Piper  <andyp@parallax.co.uk>
806
807         * toolbar-msw.c (mswindows_output_toolbar): specify ILC_MASK when
808         creating the image list and make sure he bk color is transparent.
809
810 1998-06-18  Jan Vroonhof  <vroonhof@math.ethz.ch>
811
812         * event-Xt.c (emacs_Xt_remove_timeout): Also remove timeout from
813         completed_timeouts. The timer could have expired.
814
815 1998-06-17  Andy Piper  <andyp@parallax.co.uk>
816
817         * console-msw.h: move XEMACS_RECT_WH inside frame
818         parameters. define macors to access it.
819
820         * frame-msw.c (mswindows_init_frame_1): use new target_rect
821         parameter to intialise desired sizing. (mswindows_init_frame_2):
822         enable and size the frame to something sensible when we get
823         here. (mswindows_set_frame_properites): use new
824         mswindows_size_frame_internal function and size frame if frame
825         parameters not just if init is finished - WM_SIZE happens too
826         early for some specs. (mswindows_size_frame_internal): new
827         function abstracted from mswindows_set_frame_properties. 
828         (Vmswindows_use_system_frame_size_defaults):
829         new variable controls whether to allow the system to pick frame
830         size defaults, defaults to nil.
831
832         * event-msw.c: in WM_SIZE use mswindows_size_frame_internal rather
833         than duplicated code.
834
835 1998-06-15  Colin Rafferty <colin@xemacs.org>
836
837         * Makefile.in.in: Made EXTW_LINK expand properly.
838
839 1998-06-12  Martin Buchholz  <martin@xemacs.org>
840
841         * redisplay.c (vars_of_redisplay): default value of
842         column-number-start-at-one should be NIL!
843
844 1998-06-11  Martin Buchholz  <martin@xemacs.org>
845
846         * casefiddle.c:
847         (upcase-initials "fooBar") ==> "FooBar" instead of "Foobar"
848
849 1998-06-05  Hrvoje Niksic  <hniksic@srce.hr>
850
851         * eldap.c (Fldap_search_internal): Use build_ext_string instead of 
852         build_string to avoid crashes under Mule.
853
854 1998-06-13  Andy Piper  <andyp@parallax.co.uk>
855
856         * ntplay.c (play_sound_data_1): don't delete the sound data until
857         the next sound is played and the previous one finished.
858
859 1998-06-10  Samuel Mikes  <smikes@alumni.hmc.edu>
860
861         * fileio.c (directory-sep-char): Escape backslashes.
862
863 1998-06-10  Hrvoje Niksic  <hniksic@srce.hr>
864
865         * event-stream.c: Fix docstring reference.
866
867 1998-06-12  Hrvoje Niksic  <hniksic@srce.hr>
868
869         * alloc.c (make_float): Remove useless initialization of `next'
870         field.
871         (make_pure_float): Ditto.
872
873         * lisp.h (struct Lisp_Float): Rename `next' to `__unused__next'.
874
875 1998-06-08  Kirill M. Katsnelson  <kkm@kis.ru>
876
877         * fileio.c (Fmake_directory_internal): Remove conditionals
878         on WINDOWSNT when calling mkdir.
879
880         * ntproc.c: Deleted the following unused functions:
881         register_child, reap_subprocess, sys_wait.
882
883         * nt.c (sys_rename): Ifzeroed this implementation.
884         Deleted the following unused functions:
885         sys_access, sys_chdir, sys_chmod, sys_creat, sys_link, sys_mkdir,
886         sys_mktemp, sys_rmdir, sys_unlink, sys_close, sys_dup, sys_dup2,
887         sys_read, sys_write.
888         Merger sys_fopen and sys_open with sysdep.c implementation.
889
890         * sysdep.c: Removed MS-DOS code.
891         (sys_rename): Deal with Microsoft rename weirdness.
892         (sys_open): Implemented for Windows.
893         (sys_fopen): Ditto.
894         (sys_mkdir): Ditto.
895
896 1998-06-08  Kirill M. Katsnelson  <kkm@kis.ru>
897
898         * buffer.c (complex_vars_of_buffer): Removed %t description from
899         the docstring.
900
901 1998-06-04  Rick Rankin  <Rick_Rankin-P15254@email.mot.com>
902
903         * scrollbar-msw.c: initialize the cbSize element of the
904         SCROLLINFO struct before calling SetScrollInfo. WinNT seems
905         to ignore the value of cbSize, but Win95 (and I presume Win98)
906         appear to want it set to sizeof(SCROLLINFO).
907
908 1998-06-04  Kirill M. Katsnelson  <kkm@kis.ru>
909
910         * event-stream.c: Defined Qcancel_mode_internal.
911         (syms_of_event_stream): defsymbol'ed it.
912
913         * events.h: Externed it.
914
915         * event-msw.c (mswindows_wnd_proc, WM_CANCELMODE): Added this handler.
916
917 1998-06-04  Oliver Graf <ograf@fga.de>
918
919         * frame-x.c (x_cde_destroy_callback): free the data
920         (cde-start-drag-internal) corrected root position, 21.1 needs this
921         hardcoded in Button events
922         (offix-start-drag-internal) corrected root position
923
924 1998-06-03  Kirill M. Katsnelson  <kkm@kis.ru>
925
926         * process-nt.c (signal_cannot_launch): Use signal_simple_error()
927         instead of error().
928
929 1998-06-03  Kirill M. Katsnelson  <kkm@kis.ru>
930
931         * dialog-msw.c (button_width): Removed `inline' from the function
932         declaration.
933
934 1998-06-03  Rick Rankin  <Rick_Rankin-P15254@email.mot.com>
935
936         * frame-msw.c: add WS_VISIBLE flag to the first frame created.
937         Note that adding this flag to subsequent frames causes problems.
938
939 1998-06-03  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
940
941         * glyphs-eimage.c (png_instantiate) move 'struct
942         png_memory_storage tbr' out of nested block to avoid dangling
943         reference
944
945 1998-06-02  Andy Piper  <andyp@parallax.co.uk>
946
947         * faces.h:
948         * faces.c: rename 3d-object -> gui-element. add toolbar face which
949         inherits from gui-element.
950
951         * glyphs-msw.c: use DIBitmaps for xbm bitmaps to be consistent
952         with existing code, generate masks correctly.
953
954 1998-06-03  P. E. Jareth Hein  <jareth@camelot-soft.com>
955
956         * glyphs-eimage.c: Changed included header for gifs to use
957         Gifreader instead of giflib.
958
959         * glyphs-x.c: removed the image-related functions that were
960         moved into glyphs-eimage.
961
962 1998-06-02  David Bush  <david.bush@adnb.alcatel.com>
963
964         * glyphs.c (bitmap_to_lisp_data) Define XFree to be free
965         if built without X Windows support.
966
967 1998-06-02  Hrvoje Niksic  <hniksic@srce.hr>
968
969         * fns.c (Fconcat): Synch docstring with new reality.
970
971 1998-06-03  SL Baur  <steve@altair.xemacs.org>
972
973         * frame.c: Remove reference to msdos.h (which is going away).
974         Suggested by Hrvoje Niksic and Kirill Katsnelson.
975
976 1998-06-02  P. E. Jareth Hein  <jareth@camelot-soft.com>
977
978         * glyphs-eimage.c (jpeg_instantiate): Fix handling of
979         grayscale images/
980
981
982 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
983
984         * events.h: Fixed commentary about misc-user scrollbar events.
985
986         * scrollbar-x.c (x_update_vertical_scrollbar_callback): Use frame
987         object as an event channel, instead of window object.
988         (x_update_horizontal_scrollbar_callback): Ditto.
989
990 1998-05-29  Andy Piper  <andyp@parallax.co.uk>
991
992         * ntplay.c (play_sound_data_1) new function. convert alloca data
993         to malloc if necessary.
994         (play_sound_file): if the file is not in our path then convert to
995         data and play.
996
997 1998-06-01  SL Baur  <steve@altair.xemacs.org>
998
999         * mule-mcpath.c (mc_chdir): Reverse parameters in call to memcpy.
1000         * msdos.c (Frecent_doskeys): Ditto.
1001
1002         * unexalpha.c (unexec): Reverse parameters in call to memcpy.
1003         Suggested by Reggie Perry <perry@zso.dec.com>
1004
1005         * buffer.h: Eliminate size in declaration.
1006
1007 1998-06-01  Olivier Galibert  <galibert@pobox.com>
1008
1009         * unexelfsgi.c (unexec): Cleanup n/nn and remove useless kludge.
1010
1011 1998-06-01  Kirill M. Katsnelson  <kkm@kis.ru>
1012
1013         * gui.c (gui_item_init): Changed the default value for config member
1014         from Qunbound to Qnil.
1015
1016 1998-06-01  Greg Klanderman  <greg@alphatech.com>
1017
1018         * indent.c (vmotion_pixels): Don't #define abs().
1019
1020 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
1021
1022         * s/windowsnt.h: Defined popen and pclose to be _popen and _pclose
1023         respectively.
1024
1025 1998-05-30  Andy Piper  <andyp@parallax.co.uk>
1026
1027         * glyphs.h: add xbm declarations.
1028
1029         * console.h: add xbm_instantiate_method device method.
1030
1031         * glyphs.c (check_valid_xbm_inline) (xbm_validate)
1032         (bitmap_to_lisp_data) (xbm_mask_file_munging) (xbm_normalize)
1033         (xbm_possible_dest_types): moved here from glyphs-x.c. use
1034         locate_pixmap_file device method and read_bitmap_data_from_file
1035         instead of XmuReadBitmapDataFromFile.
1036         (xbm_instatntiate): make a device method.
1037
1038         * glyphs-x.c: see glyphs.c changes. (read_bitmap_data_from_file)
1039         new function that just calls XmuReadBitmapDataFromFile.
1040         (x_xbm_instatntiate): device method from xbm_instantiate.
1041
1042         * glyphs-msw.c (read_bitmap_data) (NextInt)
1043         (read_bitmap_data_from_file): new functions copied from Xmu
1044         sources. 
1045         (xbm_create_bitmap_from_data) from Ben <ben@666.com> convert
1046         inline data to an mswindows bitmap.
1047         (init_image_instance_from_xbm_inline) (xbm_instantiate_1)
1048         (mswindows_xbm_instantiate): mswindows-ized versions of the X
1049         functions.
1050
1051 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
1052
1053         * window.c (specifier_vars_of_window): Renamed `has_modeline-p' to
1054         `modeline-visible-p'.
1055         Declared specifier lisp variables at the beginning oh the file
1056         as static.
1057
1058         * procimpl.h (struct process_methods): Changed semantics of
1059         create_process method so it accepts lisp strings instead of
1060         char pointers.
1061
1062         * process.c (Fstart_process_internal): Moved building of
1063         unix style argv from here to process-unix.c, ...
1064
1065         * process-unix.c (unix_create_process): ... right here.
1066
1067         * process-nt.c (nt_create_process): Changed this function to
1068         support new semantics, so avoided a GC problem.
1069
1070         * events.c (Fmake_event): Document misc-user events properties.
1071         (Fmake_event): Do not allow arbitrary objects for channel property
1072         of misc-user events.
1073         (Fmake_event): Change misc-user event validation: it is function
1074         which is required, not button.
1075
1076         * event-msw.c (mswindows_user_event_p): Recognize misc user events as
1077         user events.
1078         (mswindows_enqueue_misc_user_event): Added function.
1079         (mswindows_bump_queue): Removed function.
1080         (mswindows_enqueue_magic_event): Support NULL HWND parameter.
1081         (mswindows_wnd_proc, WM_CLOSE): Use mswindows_enqueue_misc_user_event().
1082         (mswindows_wnd_proc, WM_EXITSIZEMOVE): Ditto.
1083         (emacs_mswindows_handle_magic_event): Handle XM_BUMPQUEUE, by doing
1084         really nothing, which is my personal favorite thing.
1085
1086         * console-msw.h: Removed prototype for mswindows_bump_queue().
1087         Added prototype for mswindows_enqueue_misc_user_event().
1088
1089         * menubar-msw.c (mswindows_handle_wm_command): Use
1090         mswindows_enqueue_misc_user_event(). 
1091
1092         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
1093
1094         * dialog-msw.c (dialog_proc): Ditto.
1095
1096         * scrollbar-msw.c (mswindows_handle_scrollbar_event): Ditto.
1097          (mswindows_handle_scrollbar_event): Use frame, not window, for misc
1098         user events channel.
1099
1100 1998-05-29  Greg Klanderman  <greg@alphatech.com>
1101
1102         * window.c (Fwindow_displayed_text_pixel_height): was relying on
1103         incorrect semantics of vmotion_pixels which has been fixed.  don't 
1104         use it anymore as it can't easily be used.
1105
1106         * indent.c (vmotion_pixels): fix off by one bug moving up.  also
1107         the motion was reported incorrectly if you tried to go past end of 
1108         buffer.
1109
1110 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
1111
1112         * toolbar.h: Removed misleading commentary, as Martin suggested.
1113
1114 1998-05-30  Kirill M. Katsnelson  <kkm@kis.ru>
1115
1116         * lisp.h: Extern Qactivate_menubar_hook.
1117
1118         * menubar-msw.c (unsafe_handle_wm_initmenu_1): Pass correct value to
1119         run_hook ().
1120
1121 1998-05-29  Andy Piper  <andyp@parallax.co.uk>
1122
1123         * glyphs-msw.c: use BPLINE macro.
1124
1125         * select-msw.c (mswindows-selection-exists-p)
1126         (mswindows-delete-selection): doc string fixes.
1127
1128         * toolbar-msw.c (mswindows_output_toolbar): make disabled buttons
1129         unpressable. warning elimination.
1130
1131 1998-05-28  Martin Buchholz  <martin@xemacs.org>
1132
1133         * alloc.c (dbg_constants): 
1134         * dbxrc:
1135         * gdbinit:
1136         Remove toolbar_data debugging code, since that lrecord has
1137         also been removed. 
1138
1139 Wed May 27, 1998  Darryl Okahata  <darrylo@sr.hp.com>
1140
1141         * alloc.c: zap cached value of (user-home-directory), so that
1142           it's not undumped.
1143
1144         * buffer.c: From init_buffer(), separated out code that
1145           determined the initial directory for the *scratch* buffer, and
1146           put them into a function called "init_initial_directory()".
1147           The initial directory is now available as a global "char *"
1148           called initial_directory.
1149
1150         * buffer.h: Added extern entries for initial_directory[] and
1151           init_initial_directory().
1152
1153         * editfns.c: added new elisp function "user-home-directory",
1154         which basically returns getenv("HOME"), but attempts to use
1155         other values if $HOME isn't set.This may have to be tweaked in
1156         the future as, under Unix, "/" is used if $HOME isn't set (this
1157         probably should be set to the current directory).  To support
1158         this, a new C function, "get_home_directory()", now exists,
1159         which returns the "home directory", as a "char *" string.
1160
1161         * emacs.c: Rearrange NT initialization order so that
1162         environment/registry variables will be properly entered into
1163         Vprocess_enviroment.
1164
1165         * fileio.c: replaced egetenv("HOME") with calls to the new
1166           get_home_directory().
1167
1168         * lisp.h: Added function prototypes for uncache_home_directory() 
1169           and get_home_directory(), along with lisp prototypes for
1170           Fuser_home_directory() and friends.
1171
1172         * nt.c: replaced getenv("HOME") with calls to the new
1173           get_home_directory().
1174
1175         * sysfile.h: for WINDOWSNT, #include <direct.h>, to suppress
1176           warnings about getcwd(), etc. not having prototypes.
1177
1178 1998-05-28  Kirill M. Katsnelson  <kkm@kis.ru>
1179
1180         * process-nt.c (send_signal): Emulate SIGHUP.
1181         (validate_signal_number): Ditto.
1182
1183         * event-msw.c (mswindows_wnd_proc, WM_KEYDOWN): Unconditionally
1184         remove MOD_SHIFT from ASCII characters.
1185         (mswindows_wnd_proc, WM_KEYDOWN): Do not activate the menubar when 
1186         F10 is pressed.
1187
1188 1998-05-24  Oliver Graf <ograf@fga.de>
1189
1190         * frame-x.c (cde-start-drag-internal): added filename and multi-
1191         data transfers
1192         (x_cde_convert_callback) dito
1193
1194 1998-05-26  Oliver Graf <ograf@fga.de>
1195
1196         * frame-x.c: include event-mod.h also with CDE
1197         (x_cde_convert_callback) made the thing working
1198         (cde-start-drag-internal) also debugging
1199
1200 1998-05-25  Hans Guenter Weigand  <hgweigand@wiesbaden.netsurf.de>
1201
1202         * m/sparc.h:
1203         * getloadavg.c:
1204         * malloc.c:
1205         * unexec.c:
1206         * mem-limits.h:
1207           - add __OpenBSD__ where __NetBSD__ was found.
1208           - TODO: replace platform-specific conditional compilation by
1209             feature tests in configure.in.
1210
1211 1998-05-15  Greg Klanderman  <greg@alphatech.com>
1212
1213         * window.c (Fwindow_displayed_text_pixel_height): New function.
1214         (syms_of_window): DEFSUBR it.
1215
1216         * indent.c (Fvertical_motion_pixels): New function - request
1217         movement in pixels.
1218         (vmotion_pixels): helper.
1219         (syms_of_indent): DEFSUBR.
1220         * lisp.h: declaration for vmotion_pixels().
1221
1222         * indent.c (Fvertical_motion): Add optional third argument PIXELS, 
1223         to request returning motion in pixels.
1224         (Fvertical_motion_pixels): Remove, functionality merged into
1225         Fvertical_motion. 
1226         * window.c (window_scroll): call Fvertical_motion with 3 arguments.
1227         (Fmove_to_window_line): ditto.
1228         * lisp.h: Change declaration for Fvertical_motion.
1229
1230         * window.c: rename window-text-pixel-{height,width,edges} to
1231         window-text-area-pixel-*.
1232
1233 1998-05-26  Gunnar Evermann  <Gunnar.Evermann@nats.informatik.uni-hamburg.de>
1234
1235         * tooltalk.c (vars_of_tooltalk) added staticpro for
1236         Tooltalk_Message_plist_str and Tooltalk_Pattern_plist_str
1237
1238 1998-05-27  Andy Piper  <andyp@parallax.co.uk>
1239                 
1240         * faces.c: create a new 3d_object_face, make modeline and
1241         vertical_divider faces fallback to this rather than the default.
1242
1243 1998-05-21  Andy Piper  <andyp@parallax.co.uk>
1244
1245         * s/cygwin32.h: define charsets for cygwin.
1246
1247 1998-05-25  Andy Piper  <andyp@parallax.co.uk>
1248
1249         * toolbar-msw.c (mswindows_output_toolbar): fix up button sizes
1250         and coordinates. resize bitmaps if we have already settled on a
1251         different size.
1252
1253         * glyphs-msw.c (xpm_to_eimage): add ';' for mswindows compiler.
1254
1255 1998-05-25  Hrvoje Niksic  <hniksic@srce.hr>
1256
1257         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
1258
1259         * menubar-msw.c (mswindows_handle_wm_command): Ditto.
1260
1261         * gui.h: Ditto.
1262
1263         * gui-x.c (popup_selection_callback): Ditto.
1264
1265         * dialog-msw.c (dialog_proc): get_callback -> get_gui_callback.
1266
1267         * gui.c (get_callback): Renamed to get_gui_callback.
1268
1269 1998-05-17  Martin Buchholz  <martin@xemacs.org>
1270
1271         * glyphs.h: order rearrangement.
1272
1273         * device-tty.c (tty_asynch_device_change): Warning suppression.
1274         * device-x.c (x_device_system_metrics): Warning suppression.
1275         Make Doc strings consistent with coding standards.
1276
1277 1998-05-24  Martin Buchholz  <martin@xemacs.org>
1278
1279         * general.c: multiple definition of `Qicon'.  general.c seems
1280           like a good home for Qicon.
1281
1282 1998-05-20  Kirill M. Katsnelson  <kkm@kis.ru>
1283
1284         * This patch is to fix compilation warnings under Windows.
1285
1286         * s/windowsnt.h: Encapsulate getpid with sys_getpid.
1287         Added prototypes for FSF inherited functions, with which XEmacs is 
1288         sprinkled thoroughly.
1289         Removed some #if 0 code. Bracketed some more definitions, probably 
1290         related to Visual C versions prior to 4 (we do not support them).
1291
1292         * sysfloat.h (logb): Finally, get logb() prototyped.
1293
1294         * sysfile.h: Added Windows specific includes.
1295         Removed old Windows specific code bracketed with #if 0.
1296
1297         * sysdep.h: Added prototype for xrealpath().
1298
1299         * sysdep.c (sys_getpid): Added function, to support '95 negative pids.
1300
1301         * symsinit.h: Added prototypes for syms_of_dired_mswindows,
1302         vars_of_dired_mswindows and init_ntproc (Grrr).
1303
1304         * realpath.c: Added Windows specific include files.
1305         (xrealpath): Conditionalized declaration of some auto variables on 
1306         S_IFLNK, to avoid warnings.
1307
1308         * ntproc.c: Disabled some compiler warnings. This file is going to 
1309         die, so I have not cleaned it up much.
1310         (set_process_dir): Const parameter.
1311         (Fwin32_short_file_name): Down CHECK_* macros to one argument.
1312         (Fwin32_long_file_name): Ditto.
1313         (Fwin32_set_process_priority): Ditto. Why didn't I remove these
1314         three functions?
1315
1316         * nt.h: Added prototypes for set_process_dir and convert_time.
1317
1318         * nt.c: More include files.
1319         (getpwnam): Consted char* argument.
1320         (get_emacs_configuration): Const return value.
1321         (opendir): Const argument.
1322         (stat): Casted converstion long->short.
1323         (stat): Removed ad hoc and questionable support for non-MSC compile.
1324         (sys_pipe): Removed unused auto variable.
1325         (_sys_read_ahead): Removed calls to DebPrint.
1326         (sys_read): Ditto, in 2 places.
1327         (term_ntproc): Added unused int parameter to signal handler, to
1328         avoid a warning when compiling a call to signal().
1329         (msw_sigset): Properly return old signandler or NULL instead of void.
1330
1331         * floatfns.c (Flogb): Casted arguments to unary minus to signed.
1332
1333         * gmalloc.c (morecore): Ditto.
1334         (_free_internal): Ditto.
1335
1336         * lread.c (parse_integer): Ditto.
1337
1338         * dired-msw.c: Added several include files.
1339
1340         * cmdloop.c (Fcommand_loop_1): Added Microsoft C to the Big List
1341         of Compilers to Shut Up.
1342
1343         * callproc.c: Added #includes to suppress warnings under Windows.
1344         (init_callproc): Removed #if0'ed code and unused variables.
1345
1346 1998-05-25  Andy Piper  <andyp@parallax.co.uk>
1347
1348         * device-msw.c (mswindows_device_system_metrics): do planes in a
1349         way consistent with X.
1350
1351         * glyphs-msw.c (mswindows_initialize_image_instance_mask): don't
1352         use SetPixel, use DIBits functions.
1353         (xpm_to_eimage): frob colors more closely like xpm deos.
1354
1355         * toolbar-msw.c: only resize bitmaps when shrinking. Adjust look
1356         to be closer to X version.
1357
1358         * event-msw.c: use tooltip string directly.
1359
1360         * redisplay-msw.c: reinstate Kirill's bg pixmap change.
1361
1362         * objects-msw.c: frob rgb colors that only Kyle uses.
1363
1364         * dialog-msw.c (button_width): INLINE -> inline.
1365
1366 1998-05-23  SL Baur  <steve@altair.xemacs.org>
1367
1368         * getloadavg.c (getloadavg): Fix typo.
1369
1370 1998-05-23  Kirill M. Katsnelson  <kkm@kis.ru>
1371
1372         * objects-msw.c (mswindows_initialize_font_instance): Added support
1373         for font character sets.
1374         Replaced 'XXX' with '####' in comments throughout the file.
1375
1376 1998-05-23  Kirill M. Katsnelson  <kkm@kis.ru>
1377
1378         * emacs.c (main_1): Added calls to vars_of_dialog_mswindows() and
1379         console_type_create_dialog_mswindows(), to initialize Windows dialog
1380         support.
1381
1382         * symsinit.h: Prototyped the above functions.
1383
1384         * dialog-x.c (x_popup_dialog_box): Moved dialog descriptor consistency 
1385         checks to dialog.c...
1386
1387         * dialog.c (Fpopup_dialog_box): ...right here. Added more checks: a
1388         device must support dialog boxes, and the descriptor must supply at
1389         least one button.
1390
1391         * dialog-msw.c: New file, dialogs for Windows.
1392
1393 1998-05-21  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
1394
1395         * eldap.c (ldap_search_unwind): Return Qnil instead of nothing
1396         (Fldap_search_internal): Removed unused variable `err'
1397
1398         * eldap.h: Moved Lisp_LDAP declaration here instead of using a
1399         forward declaration
1400
1401 1998-05-17  Martin Buchholz  <martin@xemacs.org>
1402
1403         * eldap.h: eldap.[ch] should never be used unless HAVE_LDAP is
1404         defined.  Therefore there is no need to handle the case when
1405         HAVE_LDAP is undefined.  Similarily, there is no reason to have
1406         any code wrapped within `#ifdef emacs', since this code is only
1407         useful within an emacs.  This simplifies the code significantly.
1408
1409         * inline.c: Include eldap.h only if HAVE_LDAP.
1410         * inline.c: Don't bother including TT_C_H_PATH, since tooltalk.h
1411         already does that.
1412
1413 1998-05-21  Kirill M. Katsnelson  <kkm@kis.ru>
1414
1415         * unexnt.c (copy_executable_and_dump_data_section): Suppress
1416         printing dump stats when building without DEBUG_XEMACS.
1417         (dump_bss_and_heap): Ditto.
1418
1419 1998-05-21  Andy Piper  <andyp@parallax.co.uk>
1420
1421         * gnuclient.c: don't suppress window system if there is no display
1422         and we are running under mswindows. send 'mswindows device type if
1423         we are in this situation.
1424
1425 1998-05-20  Andy Piper  <andyp@parallax.co.uk>
1426
1427         * general.c:
1428         * lisp.h: Qbitmap, Qcursor, Qicon moved here from glyphs-msw.c.
1429
1430         * glyphs-msw.c: change cursor imgae type name to resource. Fix
1431         some nits.
1432
1433 1998-05-20  Kirill M. Katsnelson  <kkm@kis.ru>
1434
1435         * EmacsFrame.c (Xt_StringToScrollBarPlacement):  Added support for
1436         {top,bottom}-{left,right} values in addition to
1437         {top,bottom}_{left,right}. 
1438
1439 1998-05-18  Hrvoje Niksic  <hniksic@srce.hr>
1440
1441         * fileio.c (Fmake_temp_name): Remove unreached code.
1442
1443         * process-nt.c (validate_signal_number): Use
1444         signal_simple_error().
1445
1446 1998-05-19  Martin Buchholz  <martin@xemacs.org>
1447
1448         * unexhp9k800.c: 
1449         * sound.c (vars_of_sound): 
1450         * sysdep.c (reset_sigio_on_device): 
1451         * window.c (window_bottom_gutter_height): 
1452         unexhp9k800.c:258: warning: implicit declaration of function
1453         `calculate_checksum'
1454         sound.c:604: warning: implicit declaration of function `vars_of_hpplay'
1455         sysdep.c:1012: warning: unused variable `owner'
1456         window.c:993: warning: `window_right_toolbar_width' defined but not used
1457
1458 1998-05-19  Andy Piper  <andyp@parallax.co.uk>
1459
1460         * glyphs-msw.c (mswindows_create_resized_mask)
1461         (mswindows_create_resized_bitmap): new funnctions split out from
1462         mswindows_resize_dibitmap_instance.
1463
1464         * glyphs-msw.h: declare new resize functions.
1465
1466         * toolbar-msw.c (mswindows_output_toolbar): use new bitmap resize
1467         functions so that the original bitmaps are preserved.
1468
1469         * sheap.c: fixup static heap exhausted error to avoid FAQs.
1470
1471         * redisplay-msw.c (mswindows_output_blank): fixup brush from bg
1472         color if we are trying to output 0 depth bg pixmap.
1473
1474         * scrollbar-msw.c: warning elimination.
1475
1476 1998-05-18  Martin Buchholz  <martin@xemacs.org>
1477
1478         * frame-x.c (x_update_frame_external_traits): Start preprocessor
1479         directives in column 1.
1480
1481         * search.c (skip_chars): Avoid using xzero with arrays, since some 
1482         compilers get confused by the construct &array.
1483
1484 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
1485
1486         * objects-msw.h:
1487         * objects-msw.c: Changed the charset value for a new font from
1488         "don't care" to "ansi".
1489
1490         * glyphs-msw.c (convert_EImage_to_DIBitmap): Warnings fix.
1491
1492 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
1493
1494         * event-msw.c (mswindows_wnd_proc, WM_KEYDOWN): Do not clear shift
1495         modifier on control chars.
1496         Use IsCharAlpha() instead of isaplha().
1497
1498 1998-05-19  Kazuyuki IENAGA <ienaga@jsys.co.jp>
1499
1500         * s/freebsd.h: FreeBSD 2.2.6 now supports setlocale(LC_ALL, "").
1501
1502 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
1503
1504         * objects-msw.c (mswindows_initialize_font_instance): Use ANSI
1505         charset when creating font. 
1506         (mswindows_initialize_color_instance): Do not create brush along
1507         with a color.
1508         (mswindows_finalize_color_instance): Do not delete it then.
1509
1510         * objects-msw.h (struct mswindows_color_instance_data): Removed
1511         brush slot, and corresponding accessor macro.
1512
1513 1998-05-18  Kirill M. Katsnelson  <kkm@kis.ru>
1514
1515         * toolbar.c: Removed toolbar_data lrecord implementation.
1516         (mark_frame_toolbar_buttons_dirty): Replase usage of toolbar_data
1517         with toolbar_buttons (via FRAME_TOOLBAR_BUTTONS).
1518         (compute_frame_toolbar_buttons): Ditto.
1519         (CHECK_TOOLBAR): Ditto.
1520         (set_frame_toolbar): Removed allocation of toolbar_data lrecord.
1521         (update_frame_toolbars): Do not check for changed buffer
1522         here. Toolbar information is provided by cached specs in
1523         windows. The check for buffer is eliminated becuase toolbars are
1524         marked changed in set_frame_selected_window() in frame.c
1525         Added check for changed toolbars geometry.
1526         (compute_frame_toolbars_data): Removed unused second parameter;
1527         Adjusted callers of this static function throughout the file.
1528         (init_frame_toolbars): Initialize current_toolbar_size.
1529         (update_frame_toolbars): Use DEVICE_SUPPORTS_TOOLBARS_P instead of 
1530         what is its current expansion, for clarity.
1531         (init_frame_toolbars): Ditto.
1532         (init_device_toolbars): Ditto.
1533         (init_global_toolbars): Ditto.
1534
1535         * toolbar.h: Removed definition of toolbar_data lrecord.
1536         Added accessor macros FRAME_TOOLBAR_BUTTONS and
1537         FRAME_CURRENT_TOOLBAR_SIZE.
1538         Added macro DEVICE_SUPPORTS_TOOLBARS_P.
1539
1540         * toolbar-x.c (x_output_toolbar): The same change as in
1541         toolbar-msw.c
1542         (x_output_toolbar): Ditto.
1543         (x_redraw_exposed_toolbar): Ditto.
1544
1545         * toolbar-msw.c (mswindows_output_toolbar): Retrieve current
1546         buttons from toolbar_buttons using FRAME_TOOLBAR_BUTTONS macro.
1547         (mswindows_output_toolbar): Ditto.
1548         (mswindows_output_toolbar): Ditto.
1549
1550         * frame.c (mark_frame): Removed marking of arrays, according to
1551         frameslots.h change.
1552         (nuke_all_frame_slots): Ditto.
1553         (set_frame_selected_window): Mark toolbars changed when
1554         last_nonminibuf_window changes.
1555
1556         * frame.h (struct frame): Moved some slots to frameslots.h.
1557         Added current_toolbar_size array.
1558         Changed references from toolbar_data to toolbar_buttons in macros
1559         FRAME_RAW_THEORETICAL_TOOLBAR_VISIBLE,
1560         FRAME_RAW_THEORETICAL_TOOLBAR_SIZE and
1561         FRAME_RAW_THEORETICAL_TOOLBAR_BORDER_WIDTH.
1562
1563         * frameslots.h: Added macro MARKED_SLOT_ARRAY a la winslots.h
1564         Moved arrays of lisp objects here from frame.h: toolbar_size,
1565         toolbar_visible_p, toolbar_border_width.
1566         Removed toolbar_data slot and added toolbar_buttons.
1567
1568 1998-05-17  Kirill M. Katsnelson  <kkm@kis.ru>
1569
1570         * symsinit.h: Externed syms_of_process_nt()
1571
1572         * emacs.c (main_1): Call syms_of_process_nt()
1573
1574         * process-nt.c: Quote process arguments by a call to Lisp function 
1575         `nt-quote-process-args'.
1576         (syms_of_process_nt): New function.
1577         (nt_send_process): Flush data stream after each write, to avoid
1578         leaving buffered data.
1579         (nt_send_process): When blocked on process output, wait for
1580         process to slurp more for progressively increasing time intervals.
1581
1582 1998-05-17  Martin Buchholz  <martin@xemacs.org>
1583
1584         * window.c (have_undivided_common_edge): Make file-local function
1585         static.
1586         (map_windows): Return 0 if all map functions successful.
1587         Fix typos.
1588
1589         * winslots.h: Use unlikely names for local variables in macros to
1590         avoid shadowing warnings.
1591
1592 1998-05-17  Andy Piper  <andyp@parallax.co.uk>
1593
1594         * toolbar-msw.c (mswindows_output_toolbar): hash on toolbar width
1595         so that we re-output if the toolbar size has changed.
1596
1597 1998-05-17  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1598
1599         * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new unexaix.c. 
1600
1601         * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
1602
1603         * unexaix.c: Massive cleanup and support of AIX 4.2 (and hopefully
1604         greater).
1605
1606 1998-05-16  Kirill M. Katsnelson  <kkm@kis.ru>
1607
1608         * glyphs-msw.c: Defined OEMRESOURCE before including windows.h to
1609         get bitmap manifest constants defined.
1610
1611         * console-msw.h: Include system files in angle brackets, not in
1612         quotes.
1613
1614         * window.c (specifier_vars_of_window): Fixed a typo in
1615         `vertical-divider-line-width' docstirng.
1616
1617 1998-05-16  Olivier Galibert  <galibert@pobox.com>
1618
1619         * line-number.c (delete_invalidate_line_number_cache): Use an
1620         EMACS_INT.
1621         (buffer_line_number): Remove dangerous, plain wrong when using
1622         64bits emacs ints, cast.
1623
1624         * insdel.c (buffer_delete_range): Use an EMACS_INT.
1625
1626         * cmds.c (Fforward_line): Use EMACS_INTs.
1627
1628         * search.c (bi_scan_buffer): Change to use EMACS_INTs.
1629         (scan_buffer): Ditto.
1630         (bi_find_next_newline_no_quit): Remove useless cast.
1631         (find_next_newline_no_quit): Ditto.
1632         (find_next_newline): Ditto.
1633         (find_before_next_newline): Use an EMACS_INT.
1634
1635         * lisp.h: Change scan_buffer to pass EMACS_INTs.
1636
1637 1998-05-16  Hrvoje Niksic  <hniksic@srce.hr>
1638
1639         * menubar-msw.c (mswindows_handle_wm_command): Ditto.
1640
1641         * toolbar-msw.c (mswindows_handle_toolbar_wm_command): Ditto.
1642
1643         * gui-x.c (popup_selection_callback): Use it.
1644
1645         * gui.h (get_callback): Declare it.
1646
1647         * gui.c (get_callback): New function.
1648
1649 1998-05-15  SL Baur  <steve@altair.xemacs.org>
1650
1651         * window.c (have_undivided_common_edge): Guard scrollbar specific
1652         stuff.
1653         (window_needs_vertical_divider_1): Ditto.
1654
1655 1998-05-16  Hrvoje Niksic  <hniksic@srce.hr>
1656
1657         * emacs.c (decode_path): Eliminate compiler warning.
1658         (Fdecode_path): Renamed to Fsplit_path.
1659         (Fsplit_string_by_char): New function.
1660
1661 1998-05-14  Damon Lipparelli  <lipp@primus.com>
1662
1663         * winslots.h: close comment
1664
1665 1998-05-16  Kirill M. Katsnelson  <kkm@kis.ru>
1666
1667         * callproc.c: Removed declared and unused variable Qbuffer_file_type.
1668
1669         * bufslots.h: Removed buffer_file_type slot.
1670
1671         * buffer.c (complex_vars_of_buffer): Removed buffer_file_type from 
1672         buffer local flags.
1673         (complex_vars_of_buffer): Removed buffer-file-type variable and
1674         its default reference.
1675
1676 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
1677
1678         * faces.c (complex_vars_of_faces): Defined
1679         Vvertical_divider_face.
1680         (vars_of_faces): Staticpro it.
1681
1682         * faces.h: Externed Vvertical_divider_face.
1683
1684         * redisplay-x.c (x_output_vertical_divider): Use
1685         Vvertical_divider_face to draw the divider instead of modeline
1686         face.
1687
1688         * redisplay-msw.c (mswindows_output_vertical_divider): Draw
1689         divider face using Vvertical_divider_face background.
1690         Fix drawing spacing gaps around the divider.
1691
1692 1998-05-14  Didier Verna  <verna@inf.enst.fr>
1693
1694         * redisplay-x.c (x_output_vertical_divider): removed hard-wired
1695         values for the vertical divider line width and spacing. Use the
1696         cached values from the window structure instead.
1697         (x_divider_width): ditto.
1698
1699         * window.c (specifier_vars_of_window): new specifiers:
1700         vertical-divier -line-width and -spacing. 
1701         (vertical_divider_global_width_changed): formerly known as
1702         vertical_divider_shadow_thickness_changed. 
1703
1704         * winslots.h: new slots: vertical_specifier _line_width and
1705         _spacing. Plus corrected a comment typo.
1706
1707 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
1708
1709         * window.h: Declared window_divider_width().
1710
1711         * console-stream.c (stream_divider_width): Removed method.
1712         (console_type_create_stream): And declaration for it.
1713
1714         * redisplay.c (pixel_to_glyph_translation): Use
1715         window_divider_width() instead of divider_width redisplay method. 
1716         (pixel_to_glyph_translation): Fix top divider edge calculation
1717         when scrollbar is on top.
1718
1719         * window.c (window_divider_width): New function, an outphaser for
1720         divider_width redisplay method.
1721         (window_right_gutter_width): Use it.
1722         (specifier_vars_of_window): For vertical-divider-{spacing,line-width}
1723         specifiers, set fallback values differently on TTYs, and document
1724         the behavior of these on TTYs in the docstrings.
1725         
1726         * scrollbar.c (update_scrollbar_instance): Use
1727         window_divider_width() instead of divider_width redisplay method.
1728
1729         * console.h (struct console_methods): Removed divider_width_method.
1730
1731         * redisplay-tty.c (tty_divider_width): Removed device method.
1732         (console_type_create_redisplay_tty): Removed definition for it.
1733         (tty_output_vertical_divider): Respect the value returned by
1734         window_divider_width thus divider line width specification.
1735
1736         * redisplay-msw.c (mswindows_divider_width): Removed device method.
1737         (console_type_create_redisplay_mswindows): Removed definition for it.
1738         (mswinodws_output_vertical_divider): Respect the value returned by
1739         window_divider_width thus divider line width specification.
1740
1741 1998-05-15  Andy Piper  <andyp@parallax.co.uk>
1742
1743         * toolbar-msw.c: guess toolbar frame size a bit more accurately.
1744
1745 1998-05-15  Andy Piper  <andyp@parallax.co.uk>
1746
1747         * glyphs-msw.c: resource loading implementation.
1748         (cursor_normalize): new function.
1749         (cursor_validate): ditto.
1750         (cursor_instantiate): ditto.
1751         (cursor_name_to_resource): ditto.
1752         (cursor_possible_dest_types): ditto.
1753         (check_valid_symbol): ditto.
1754         (check_valid_string_or_int): ditto.
1755
1756 1998-05-14  Martin Buchholz  <martin@xemacs.org>
1757
1758         * sysdep.c (tty_init_sys_modes_on_device): Treat VSUSP just like
1759         VINTR and VQUIT.
1760
1761         * process-unix.c (process_signal_char): Use VSUSP instead of
1762         non-standard VSWTCH.  Always prefer VSUSP to VSWTCH.
1763
1764 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
1765
1766         * specifier.c (specifier_instance): Change locale precedence of
1767         instantiation so window locale has higher priority than buffer
1768         locale.
1769         (Fspecifier_instance): Reflect this in docstring.
1770         (Fadd_spec_list_to_specifier): Ditto.
1771         (Fadd_spec_to_specifier): Ditto.
1772         (Fremove_specifier): Ditto.
1773
1774 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
1775
1776         ** Dialog separation into a device method from Andy Piper
1777
1778         * emacs.c (main_1): Call console_type_create_dialog_x().
1779
1780         * dialog-x.c (x_popup_dialog_box): Old Fpopup_dialog_box converted 
1781         into this device method.
1782         (console_type_create_dialog_x): New function.
1783
1784         * dialog.c (Fpopup_dialog_box): New function.
1785         (syms_of_dialog): Defsubr it.
1786
1787         * console.h (struct console_methods): Declared
1788         popup_dialog_box_method(). 
1789
1790         * symsinit.h: Defined console_type_create_dialog_{x,mswindows}
1791
1792 1998-05-14  Oliver Graf <ograf@fga.de>
1793
1794         * dragdrop.c (vars_of_dragdrop): dragdrop-protocols created
1795         * frame-x.c (x_cde_transfer_callback): checked for merge errors
1796
1797 1998-05-13  Oliver Graf <ograf@fga.de>
1798
1799         * dragdrop.c (vars_of_dragdrop): provide dragdrop-api
1800
1801 1998-05-15  Kirill M. Katsnelson  <kkm@kis.ru>
1802
1803         * console.h (device_metrics): Removed dbcs, input-method-editor
1804         and right-to-left metrics.
1805
1806         * device.c (Fdevice_system_metric): Ditto.
1807         (Fdevice_system_metrics): Ditto.
1808         (syms_of_device): Ditto.
1809         (Fdevice_system_metric): Swapped DEVICE and METRIC parameters back
1810         again.
1811
1812 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
1813
1814         * line-number.h (mark_line_number_cache): Remove unused
1815         declaration.
1816
1817         * line-number.c (LINE_NUMBER_FAR): Increase to 32768.
1818         (get_nearest_line_number): Simplify.
1819         (add_position_to_cache): Make the old marker point nowhere.
1820
1821 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
1822
1823         ** Renamed window-divider-map => vertical-divider-map
1824         and event-over-divider-p => event-over-vertical-divider-p,
1825         in the following files/functions:
1826         * events.h: 
1827         * events.c (Fevent_over_divider_p): 
1828         * keymap.c (get_relevant_keymaps): 
1829         (vars_of_keymap): 
1830
1831         * redisplay.h (OVER_V_DIVIDER): Renamed so from OVER_DIVIDER.
1832
1833         * redisplay.c (pixel_to_glyph_translation): Use OVER_V_DIVIDER.
1834
1835 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
1836
1837         * window.c (vertical_divider_changed_in_window): Renamed so.
1838         (specifier_vars_of_window): Defined Vvertical_divider_draggable_p.
1839         (window_needs_vertical_divider_1): Decide whether we need it based
1840         on the value of the above specifier. If separators are unwanted,
1841         put them only if there's no scrollbar between this window and its
1842         right neighbor.
1843         (have_undivided_common_edge): New function, helper for the above.
1844         (window_needs_vertical_divider): Return either a cached value,
1845         or clauclate and cache one.
1846         (invalidate_vertical_divider_cache_in_window): Implemented.
1847         (map_windows): Changed return type to int, return the value from
1848         MAPFUN.
1849
1850         * window.h: Prototype invalidate_vertical_divider_cache_in_window.
1851         (struct window): Added need_vertical_divider_p and
1852         need_vertical_divider_valid_p. 
1853
1854         * winslots.h: Added vertical_divider_draggable_p slot.
1855
1856         * scrollbar.c (vertical_scrollbar_changed_in_window): Implemented.
1857         (specifier_vars_of_scrollbar): Used it in all vertical specifiers.
1858
1859         * frame.c (invalidate_vertical_divider_cache_in_frame): New function.
1860
1861         * frame.h (MARK_FRAME_WINDOWS_STRUCTURE_CHANGED): Call
1862         invalidate_vertical_divider_cache_in_frame().
1863         Prototype it.
1864
1865 1998-05-14  Andy Piper  <andyp@parallax.co.uk>
1866
1867         * toolbar-msw.c: provide correct parameters to TB_SETROWS.
1868
1869         * glyphs-msw.c (mswindows_initialize_image_instance_mask): size
1870         masks correctly and don't select 0.
1871
1872 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
1873
1874         * winslots.h: New file, declaration of some struct window and
1875         struct saved_window members.
1876
1877         * window.h (struct window): Include it, with required preprocessor
1878         magic.
1879
1880         * window.c (mark_window): Ditto.
1881         (allocate_window): Ditto.
1882         (struct saved_window): Ditto.
1883         (mark_window_config): Ditto.
1884         (saved_window_equal): Ditto.
1885         (Fset_window_configuration): Ditto.
1886
1887 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
1888
1889         * redisplay-msw.c (mswindows_output_vertical_divider): Syntax fix.
1890
1891 1998-05-12  Didier Verna  <verna@inf.enst.fr>
1892
1893         * redisplay-x.c (x_output_vertical_divider): draw shadows around
1894         the divider line. The shadow thickness is currently
1895         hard-wired. This will probably be turned into a specifier soon.
1896
1897 1998-05-12  Didier Verna  <verna@inf.enst.fr>
1898
1899         * console.h (struct console_methods): the divider_width console
1900         method now requires a struct window * argument.
1901
1902         * redisplay-x.c (x_divider_width): ditto. Plus remove
1903         X_DIVIDER_WIDTH, X_DIVIDER_SHADOW_THICKNESS.
1904         (x_output_vertical_divider): give a depressed look when the shadow
1905         thickness is negative.
1906
1907         * console-stream.c (stream_divider_width): pass a struct window *
1908         argument. 
1909
1910         * redisplay-tty.c (tty_divider_width): ditto.
1911
1912         * window.c (window_right_gutter_width): totdi.
1913
1914         * redisplay.c (generate_modeline): ittod.
1915
1916         * scrollbar.c (update_scrollbar_instance): ttido.
1917         
1918         * redisplay-msw.c (mswindows_divider_width): ottid. 
1919         WARNING: this enables to compile, but the feature is not functional.
1920
1921         * window.h (struct window): new field
1922         vertical_divider_shadow_thickness. 
1923
1924         * window.c (specifier_vars_of_window): new specifier
1925         vertical-divider-shadow-thickness.
1926         (vertical_divider_shadow_thickness_changed): new function to
1927         inform redisplay that the window has changed.
1928         (mark_window): handle new field vertical_divider_shadow_thickness
1929         from struct window.
1930         (allocate_window): ditto.
1931         (saved_window_equal): toddi.
1932         (Fset_window_configuration): totid.
1933         (save_window_save): ttdio.
1934         (struct saved_window): new field vertical_divider_shadow_thickness.
1935
1936 1998-05-14  Kirill M. Katsnelson  <kkm@kis.ru>
1937
1938         * device-msw.c (mswindows_device_system_metrics): Support a deluge
1939         of metrics.
1940
1941 1998-05-12  Oliver Graf <ograf@fga.de>
1942
1943         * frame-x.c (x_cde_transfer_callback): fixed for the new protocol
1944         * event-Xt.c (x_event_to_emacs_event): C++ compability
1945
1946 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
1947
1948         * emacs.c (Fdecode_path): Default SEPCHAR to value of
1949         path-separator.
1950
1951 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
1952
1953         * emacs.c (vars_of_emacs): Do it here; change the meaning of
1954         Vpath_separator.
1955
1956         * fileio.c (vars_of_fileio): Don't define Vpath_separator here.
1957
1958 1998-05-14  Hrvoje Niksic  <hniksic@srce.hr>
1959
1960         * emacs.c (decode_path_1): New function.
1961         (decode_path): Use it.
1962         (Fdecode_path): Renamed from Fdecode_path_internal; use
1963         decode_path_1.
1964
1965 1998-05-12  Hrvoje Niksic  <hniksic@srce.hr>
1966
1967         * macros.c (Fzap_last_kbd_macro_event): New function.
1968         (Fend_kbd_macro): Remove REMOVE_LAST kludge.
1969
1970 1998-05-10  Andy Piper  <andyp@parallax.co.uk>
1971
1972         * redisplay-msw.c (mswindows_output_dibitmap_region): make sure
1973         multiple bitmaps are output vertically as well as horizontally.  
1974         * (mswindows_output_dibitmap): don't cope with bitmap boundaries
1975         crossing lines this is handled by
1976         mswindows_output_dibitmap_region.
1977
1978 1998-05-12  Martin Buchholz  <martin@xemacs.org>
1979
1980         * inline.c: Include eldap.h
1981
1982         * menubar-x.c (x_update_frame_menubar_internal): 
1983         Remove: unused variable `container'
1984
1985 1998-05-11  Martin Buchholz  <martin@xemacs.org>
1986
1987         * s/aix4.h: Allow AIX 4.3 XEmacs to compile cleanly.
1988         Unfortunately, the resulting temacs still cannot dump.
1989
1990         * symbols.c (symbol_is_constant): 
1991         (verify_ok_for_buffer_local): 
1992         -Wswitch Warning suppression - add default case to switches.
1993
1994         * redisplay.c (decode_mode_spec): Remove unused variables,
1995         Replace Fcoding_system_property (codesys, Qmnemonic) with
1996         XCODING_SYSTEM_MNEMONIC (codesys);
1997         Fcoding_system_property is for users.
1998
1999         * buffer.c:
2000         * fileio.c:
2001         * lread.c:
2002         * xselect.c:
2003         Change empty docstrings into no doc strings at all.
2004         Fix bogus FSF-format docstrings.
2005
2006         * extents.c:
2007         Standardize docstrings.
2008
2009         * floatfns.c:
2010         Explain problems with matherr.
2011
2012         * glyphs.c:  make DEFUNs etags-readable, i.e. single-line
2013
2014         * syssignal.h:
2015         if BROKEN_SIGIO, then SIGIO wants to be undefined.
2016         if SIGIO and not SIGPOLL, SIGPOLL wants to be SIGIO.\
2017         Fix the weird resultant interaction (causes windows problems)
2018
2019         * gdbinit:
2020         * dbxrc:
2021         Take new EMACSBOOTSTRAPLOADPATH into account.
2022         Update documentation strings
2023
2024         * Makefile.in.in:
2025         - Adjust for luser's CDPATH being set to something weird.
2026         - Take into account bash 2.02's tendency to print the cwd when
2027           using CDPATH.  Always use `cd ./foo' instead of `cd foo'.
2028         - fix the run-temacs target to use $(DUMPENV)
2029         - fix the run-puremacs target to use $(DUMPENV)
2030         - fix the `depend' target to properly $(RM) the right files
2031         - Generate a better TAGS file for XEmacs' lisp code using
2032           hand-crafted regexps.
2033         - Use standard coding conventions for modules/Makefile.in
2034
2035 1998-05-12  Didier Verna  <verna@inf.enst.fr>
2036
2037         * redisplay.c: removed the scrolling modeline code that didn't
2038         make it for 21.0. To be continued ... 
2039
2040 1998-05-13  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
2041
2042         * emacs.c (Fdecode_path_internal): Removed bogus handling of nil
2043         and empty string inputs.
2044
2045 1998-05-12  Hrvoje Niksic  <hniksic@srce.hr>
2046
2047         * redisplay-x.c (x_output_vertical_divider): Fixed typo.
2048
2049 1998-05-10  Oliver Graf <ograf@fga.de>
2050
2051         * event-stream.c (enqueue_misc_user_event_pos): created
2052         * lisp.h (enqueue_misc_user_event_pos): prototype added
2053         * frame-x.c (x_cde_transfer_callback): debug code plus API changes
2054         * emacs.c: call vars_of_dragdrop
2055         * dragdrop.c (vars_of_dragdrop): provide dragdrop
2056
2057 1998-05-11  Oliver Graf <ograf@fga.de>
2058
2059         * frame-x.c (x_cde_transfer_callback): return at correct pos
2060         * event-Xt.c (x_event_to_emacs_event): changed format of drop
2061         object for MIME (see comment in dragdrop.c)
2062         * dragdrop.c: API change documented in comment
2063         removed provide of dragdrop [is provided by dragdrop.el]
2064
2065 1998-05-12  Kirill M. Katsnelson  <kkm@kis.ru>
2066
2067         * window.c (window_needs_vertical_divider): Enable vertical
2068         dividers for every non-rightmost window.
2069         (window_left_gutter_width): Left gutter consists of mythical
2070         toolbar and a virtual scrollbar.
2071         (window_right_gutter_width): The right one may have a divider
2072         also.
2073
2074         * scrollbar.c (update_scrollbar_instance): Position vertical
2075         scrollbar left to divider if the latter present.
2076
2077         * redisplay.h: Declared OVER_DIVIER constant.
2078
2079         * redisplay.c (pixel_to_glyph_translation): Handle OVER_DIVIDER
2080         case.
2081
2082         * redisplay-x.c (x_output_vertical_divider): Output divider along
2083         the right side of the window, down to window bottom. Swapped
2084         foreground and background colors so it is visible by default.
2085
2086         * redisplay-tty.c (tty_output_vertical_divider): Uncondiionally
2087         stick the divider to the right window side.
2088
2089         * redisplay-msw.c (mswindows_redisplay_deadbox_maybe): Fixed
2090         deadbox painting.
2091         (mswindows_divider_width): Ask system for user preferred value.
2092         (mswindows_output_vertical_divider): Always output the divider on
2093         the right side of a window, down to bottom.
2094
2095         * keymap.c (get_relevant_keymaps): Route mouse button events which 
2096         happened over a window divider through window-divider-map.
2097         (Fkey_binding): Documented that in the docstring.
2098         Defined the variable Vwindow_divider_map.
2099
2100         * events.c (Fevent_over_divider_p): Added this function.
2101
2102         * events.h: EXFUNed it.
2103
2104 1998-05-12  Kirill M. Katsnelson  <kkm@kis.ru>
2105
2106         * toolbar.c (update_frame_toolbars): Re-layout frame windows if
2107         toolbar geometry is suspected to change.
2108
2109 1998-05-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
2110
2111         * src/device-msw.c
2112         * src/event-msw.c
2113         Condition dnd and dde code on HAVE_DRAGNDROP.
2114
2115 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
2116
2117         * events.c (format_event_object): Print space as SPC etc.
2118
2119 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
2120
2121         * print.c (print_internal): In the default case, abort() if
2122         ERROR_CHECK_TYPECHECK.
2123
2124         * fileio.c (Fmake_temp_name): Doc fix.
2125
2126 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
2127
2128         * xgccache.c (describe_gc_cache): Define only if DEBUG_XEMACS.
2129
2130         * undo.c (Fprimitive_undo): Fixed typo.
2131
2132 1998-05-11  Hrvoje Niksic  <hniksic@srce.hr>
2133
2134         * fns.c (concat): Signal error on integer argument.
2135
2136 1998-05-10  Kirill M. Katsnelson  <kkm@kis.ru>
2137
2138         * console.h (device_metrics): Prefixed each constatnt with DM_
2139
2140         * device.c: (Fdevice_system_metric): Renamed so from plural form
2141         (metrics); Changed parameters order and added DEFAULT parameter;
2142         Unabbreviated some metric constants; Fixed and untabified doc string.
2143         (Fdevice_system_metrics): Added. Returns a plist of all provided
2144         metrics. 
2145
2146         * device-msw.c (mswindows_device_system_metrics): Renamed
2147         device_metrics enum constants.
2148         Return Qunbound instead of Qnil.
2149
2150         * device-tty.c (tty_device_system_metrics): Ditto.
2151
2152         * device-x.c (x_device_system_metrics): Ditto.
2153
2154 1998-05-10  Andy Piper  <andyp@parallax.co.uk>
2155
2156         * redisplay-msw.c: implement background pixmaps (really!). Make
2157         sure bg color is transparent if we have bg pmaps.
2158         * (mswindows_output_string) (mswindows_clear_region): output bg
2159         pmap if required.
2160         * (mswindows_output_dibitmap_region): new function.
2161         * (mswindows_output_dibitmap): output offset pixmaps, blt masks in
2162         the bg color rather than transparently.
2163
2164         * toolbar-msw.c: use masks if they exist.
2165
2166         * glyphs-msw.c: set up masks correctly.
2167
2168         * event-msw.c: typedef SOCKET if cygwin and not msg select().
2169
2170 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
2171
2172         * regex.c (re_match_2_internal): Check for quit.
2173
2174 1998-05-10  Hrvoje Niksic  <hniksic@srce.hr>
2175
2176         * frame.c (Ffocus_frame): New function.
2177