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