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