1 2001-02-23 Martin Buchholz <martin@xemacs.org>
3 * XEmacs 21.2.45 "Thelxepeia" is released.
5 2001-02-21 Martin Buchholz <martin@xemacs.org>
7 * lisp-union.h (XSETINT):
10 Reverse previous change of 2001-02-06.
12 2001-02-20 Matt Tucker <tuck@whistlingfish.net>
14 Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
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.
25 2001-02-18 Wim Dumon <wim@easics.be>
27 * insdel.c (prepare_to_modify_buffer): Also check for
28 supersession when clash-detection is enabled.
30 2001-02-17 Matt Tucker <tuck@whistlingfish.net>
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):
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
52 * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
53 Properly deal with BUFFERP (syntax_cache.object)
55 2001-02-17 Martin Buchholz <martin@xemacs.org>
57 * alloc.c (Fgarbage_collect):
58 * alloc.c (make_bit_vector_from_byte_vector):
59 -Wsign-compare-correctness.
61 2001-02-16 Martin Buchholz <martin@xemacs.org>
63 * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
67 2001-02-15 Martin Buchholz <martin@xemacs.org>
69 * mule-canna.c (canna-func-delete_previous):
70 Rename to canna-func-delete-previous.
72 2001-02-14 Martin Buchholz <martin@xemacs.org>
74 * mule-ccl.c (ccl_driver): Warning suppression. Use countof.
76 2001-02-13 Matt Tucker <tuck@whistlingfish.net>
78 * font-lock.c (find_context): Fix C++ compile errors introduced by
81 2001-02-13 Martin Buchholz <martin@xemacs.org>
83 * s/aix4.h: Later versions of IBM C compiler need a bug workaround
84 pragma, but earlier ones barf on the same pragma.
86 2001-02-06 Mike Sperber <mike@xemacs.org>
88 * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
89 `configure-mule-lisp-directory'.
91 2001-02-12 Martin Buchholz <martin@xemacs.org>
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.
96 * emacs.c: Move dump-id.h into dumper.h.
97 * dumper.h: Move dump-id.h into dumper.h.
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.
103 2001-02-07 Matt Tucker <tuck@whistlingfish.net>
105 Port FSF 20.7 syntax table improvements.
109 Fixups for new syntax table stuff.
110 * dired.c: Include syntax.c.
111 (Fdirectory_files): Initialize regex_match_object and
113 * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
114 and Fget_char_property.
116 Use ported FSF 20.7 syntax table improvements.
121 2001-02-09 Martin Buchholz <martin@xemacs.org>
123 * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
124 Unixware's enum boolean from sys/types.h.
126 2001-02-10 Martin Buchholz <martin@xemacs.org>
128 Fix support for building with latest Purify.
129 * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
130 (PURIFY_FLAGS): Likewise.
132 2001-02-09 Martin Buchholz <martin@xemacs.org>
134 * fileio.c (lisp_string_set_file_times): New.
135 * fileio.c (Fcopy_file): Use it.
137 (copy-file filename non-ascii-filename t t)
138 ==> No such file or directory, non-ascii-filename
140 2001-02-10 Martin Buchholz <martin@xemacs.org>
142 * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
143 USHRT_MAX seems clearer than ~0 anyways.
145 2001-02-09 Martin Buchholz <martin@xemacs.org>
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.
163 2001-02-09 Martin Buchholz <martin@xemacs.org>
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.
174 2001-02-09 Martin Buchholz <martin@xemacs.org>
176 * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
178 2001-02-08 Martin Buchholz <martin@xemacs.org>
180 * s/irix6-0.h: Use the standard system memmove, not bcopy.
182 2001-02-08 Martin Buchholz <martin@xemacs.org>
184 * XEmacs 21.2.44 "Thalia" is released.
186 2001-02-06 Martin Buchholz <martin@xemacs.org>
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.
192 2001-02-07 Martin Buchholz <martin@xemacs.org>
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.
203 2001-02-06 Martin Buchholz <martin@xemacs.org>
205 * elhash.c (make_general_lisp_hash_table):
206 Use simpler and more efficient calloc to clear entries.
208 2001-02-07 Martin Buchholz <martin@xemacs.org>
210 * window.c (window_scroll): Work around an AIX C compiler bug.
211 Fixes 'scroll-up' does nothing problem with xlC.
213 2001-02-05 Martin Buchholz <martin@xemacs.org>
215 * .gdbinit: Remove obsolete comment.
217 2001-01-31 Mike Alexander <mta@arbortext.com>
219 * select.c (Fown_selection_internal): Set owned_p for device
222 2001-02-01 Martin Buchholz <martin@xemacs.org>
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.
231 2001-02-02 Martin Buchholz <martin@xemacs.org>
233 * lisp-disunion.h: Fix up comments.
235 2001-01-31 Martin Buchholz <martin@xemacs.org>
237 * keymap.c (define_key_check_and_coerce_keysym):
239 Support mouse-6 and mouse-7 bindings in the obvious way.
241 2001-02-01 Martin Buchholz <martin@xemacs.org>
243 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
245 2001-01-30 Martin Buchholz <martin@xemacs.org>
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.
260 2001-01-29 Andy Piper <andy@xemacs.org>
262 * glyphs-widget.c (check_valid_int_or_function): allow symbols
263 since they can be eval'ed
265 2001-01-29 Martin Buchholz <martin@xemacs.org>
267 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
268 Oops, XEmacs redefines `class'. Use `typename' instead.
270 2001-01-28 Martin Buchholz <martin@xemacs.org>
272 * dumper.c: Fix C++ compile errors.
274 2001-01-29 Martin Buchholz <martin@xemacs.org>
276 * tparam.c: Use correct prototypes.
278 2001-01-28 Martin Buchholz <martin@xemacs.org>
280 * sysproc.h: #include util.h for NetBSD's openpty.
282 2001-01-27 Martin Buchholz <martin@xemacs.org>
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.
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.
310 * mule-canna.c: A million DEFVAR_INTs here...
311 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
324 s/int/Fixnum/g in DEFVAR_INT declarations.
326 2001-01-26 Martin Buchholz <martin@xemacs.org>
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
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.
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):
358 * dumper.c (pdump_load_finish):
359 Use aligned reading and writing.
361 * dumper.c (pdump_free): Make static.
362 * dumper.c (pdump_hFile): Likewise.
363 * dumper.c (pdump_hMap): Likewise.
365 2001-01-26 Martin Buchholz <martin@xemacs.org>
367 * XEmacs 21.2.43 "Terspichore" is released.
369 2001-01-25 Martin Buchholz <martin@xemacs.org>
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.
385 2001-01-25 Martin Buchholz <martin@xemacs.org>
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.
399 2001-01-24 Martin Buchholz <martin@xemacs.org>
401 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
403 2001-01-23 Andy Piper <andy@xemacs.org>
405 * select.c (Fown_selection_internal): pass owned_p
407 * select-msw.c (mswindows_own_selection): New Signature.
409 * console.h (struct console_methods): add owned_p to
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.
417 2001-01-23 Martin Buchholz <martin@xemacs.org>
419 * specifier.h (specifier_data_offset): Remove pointless parens.
420 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
422 2001-01-24 Martin Buchholz <martin@xemacs.org>
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.
437 2001-01-23 Martin Buchholz <martin@xemacs.org>
439 * lstream.h (struct lstream): Use max_align_t for trailing data.
440 * specifier.h (struct Lisp_Specifier): Likewise.
442 2001-01-22 Martin Buchholz <martin@xemacs.org>
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.
453 2001-01-22 Martin Buchholz <martin@xemacs.org>
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.
460 2001-01-22 Martin Buchholz <martin@xemacs.org>
462 * lisp.h (ALIGNOF): A better definition for C++.
464 2001-01-20 Martin Buchholz <martin@xemacs.org>
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)
473 2001-01-20 Martin Buchholz <martin@xemacs.org>
475 * XEmacs 21.2.42 "Poseidon" is released.
477 2001-01-20 Martin Buchholz <martin@xemacs.org>
479 * console-x.h: typo fix du jour. Remove #if 0'ed code.
481 2001-01-19 Martin Buchholz <martin@xemacs.org>
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
507 2001-01-18 Martin Buchholz <martin@xemacs.org>
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.
515 2001-01-18 Norbert Koch <nk@LF.net>
517 * gui.h: Fix and add prototypes to fix build problems.
519 2001-01-18 Martin Buchholz <martin@xemacs.org>
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'.
525 2001-01-17 Andy Piper <andy@xemacs.org>
527 * glyphs.c (print_image_instance): comment to make martin happy.
529 * glyphs-x.c (x_redisplay_widget): update faces after a frame
532 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
534 (mswindows_tab_control_redisplay): warning suppression.
536 * glyphs-widget.c (widget_update): re-write to cope with updated
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.
545 * gui.c (widget_gui_parse_item_keywords): new function. Do things
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.
551 * gui.h: declare widget_gui_parse_item_keywords.
553 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
554 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
556 2001-01-17 Martin Buchholz <martin@xemacs.org>
558 * XEmacs 21.2.41 "Polyhymnia" is released.
560 2001-01-16 Didier Verna <didier@xemacs.org>
562 * glyphs.c (image_instantiate): don't use fallbacks when
563 instantiating a face's background pixmap by inheritance.
565 2001-01-14 Mike Sperber <mike@xemacs.org>
567 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
568 Conditionalize accordingly.
570 2001-01-16 Martin Buchholz <martin@xemacs.org>
572 * dumper.c (pdump_file_get): Fix a compiler warning.
574 2001-01-15 Martin Buchholz <martin@xemacs.org>
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.
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.
594 2001-01-14 Martin Buchholz <martin@xemacs.org>
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.
602 * miscplay.c (sndcnv8U_2mono):
603 Avoid two uses of `++' in the same expression.
604 Suppresses a GCC warning.
606 2001-01-13 Martin Buchholz <martin@xemacs.org>
608 Make sure future compilers don't miscompile alloc.c.
610 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
611 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
613 2001-01-12 Martin Buchholz <martin@xemacs.org>
615 * dumper.c: A little post-pdump-rename comment fixup.
617 2001-01-09 Jerry James <james@eecs.ku.edu>
619 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
621 2001-01-13 Martin Buchholz <martin@xemacs.org>
623 * *.[ch]: Globally rename symbols using the following `pdump-rename'
627 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
630 replace_symbol pdump_wire_lists pdump_weak_object_chains
631 replace_symbol pdump_wire_list dump_add_weak_object_chain
633 replace_symbol pdump_wires pdump_root_objects
634 replace_symbol pdump_wire dump_add_root_object
636 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
637 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
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
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
649 replace_symbol nb_structdump nb_root_struct_ptrs
650 replace_symbol nb_opaquedump nb_opaques
652 replace_symbol align_table pdump_align_table
653 replace_symbol dump_header pdump_header
655 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
656 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
659 2001-01-12 Martin Buchholz <martin@xemacs.org>
661 * s/aix4.h: Keep the C for AIX compiler from overaggressively
662 optimizing bytecount_to_charcount().
664 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
667 (HAVE_DLFCN_H): Removed.
668 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
670 2001-01-06 Martin Buchholz <martin@xemacs.org>
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):
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
698 Remove (most of the) custom code for dumping staticpros - dump it
699 like any other dynarr.
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.
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.
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.
718 2001-01-09 Martin Buchholz <martin@xemacs.org>
720 * make-src-depend (PrintPatternDeps):
721 Use `sort' to make output independent of perl version.
723 2001-01-08 Martin Buchholz <martin@xemacs.org>
726 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
727 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
729 2001-01-03 Didier Verna <didier@xemacs.org>
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.
735 2001-01-08 Martin Buchholz <martin@xemacs.org>
737 * XEmacs 21.2.40 is released.
739 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
741 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
743 2001-01-06 Martin Buchholz <martin@xemacs.org>
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.
751 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
753 * redisplay-x.c (x_bevel_area):
754 redisplay.h (struct rune):
755 Typo fixes in comments.
757 2001-01-05 Andy Piper <andy@xemacs.org>
759 * glyphs-x.c (x_redisplay_widget): use size changed for offset
762 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
764 2001-01-05 Martin Buchholz <martin@xemacs.org>
766 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
768 * mule-ccl.c (stack_idx_of_map_multiple):
769 Non const global data must not be initialized!
770 Found by MIYASHITA Hisashi.
772 2001-01-02 Andy Piper <andy@xemacs.org>
774 * frame.c (change_frame_size): make sure frame size is always
777 * glyphs.c (image_instance_layout): minor code reuse.
779 * window.c (Fcurrent_window_configuration): revert previous
782 2001-01-02 Martin Buchholz <martin@xemacs.org>
785 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
787 2000-12-31 Andy Piper <andy@xemacs.org>
789 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
790 when widget gets unmapped.
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.
796 2000-12-31 Andy Piper <andy@xemacs.org>
798 * window.c (allocate_window): use
799 make_image_instance_cache_hash_table.
800 (make_dummy_parent): ditto.
801 (Fset_window_configuration): ditto.
803 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
805 * glyphs.c (process_image_string_instantiator): use
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
814 (instantiator_eq_hash): ditto.
815 (make_image_instance_cache_hash_table): create a suitable hash
816 table for storing image instances.
818 * elhash.h (hash_table_weakness): new internal weakness type
819 HASH_TABLE_KEY_CAR_VALUE_WEAK.
820 declare new functions.
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.
830 2000-12-31 Martin Buchholz <martin@xemacs.org>
832 * XEmacs 21.2.39 is released.
834 2000-12-29 Andy Piper <andy@xemacs.org>
836 * menubar.c (menubar_visible_p_changed): signal the frame changed.
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
842 2000-12-28 Andy Piper <andy@xemacs.org>
844 * lastfile.c (my_ebss): make a char array so we can pad the
845 bss. Fixes cygwin unexec.
847 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
849 2000-12-26 Andy Piper <andy@xemacs.org>
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
856 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
857 we don't normalize to zero width or height.
859 2000-12-24 Andy Piper <andy@xemacs.org>
861 * Makefile.in.in (ldflags): add -mwindows when appropriate.
863 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
865 * s/sco5.h: SCO 5 has pty support.
867 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
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
873 * input-method-xfs.c: removed.
875 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
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.
886 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
895 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
903 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
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.
909 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
923 2000-12-09 Dan Holmsand <dan@eyebee.com>
925 * nt.c (mswindows_fstat): Report file permissions, volume serial
926 number, etc. Code adapted from FSF Emacs 20.7.
928 2000-12-09 Dan Holmsand <dan@eyebee.com>
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.
934 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
936 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
938 2000-12-12 Martin Buchholz <martin@xemacs.org>
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.
949 2000-12-01 Jerry James <james@eecs.ukans.edu>
951 * Makefile.in.in: Use the loop variable to install headers.
953 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
955 * window.c (Fsplit_window): Don't invalidate face cache.
957 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
959 * minibuf.c (Fall_completions): Undo the previous change
960 which removed checking elements start with space.
962 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
964 * mule-canna.c: Didier suppression.
966 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
968 * mule-canna.c: rename static unsigned char buf[] to key_buffer
969 (warning suppression). Add English comment translations.
971 2000-12-05 Martin Buchholz <martin@xemacs.org>
973 * unexelfsgi.c (unexec): Better test for mmap failure.
975 2000-12-05 Martin Buchholz <martin@xemacs.org>
977 * XEmacs 21.2.38 is released.
979 2000-12-05 Martin Buchholz <martin@xemacs.org>
981 * redisplay.c (bar-cursor): Make a user variable.
983 * symsinit.h: Add init_postgresql_from_environment.
985 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
987 * regex.c: Convert to clean C.
989 2000-12-05 Dan Holmsand <dan@eyebee.com>
992 Don't #include sysfile.h. Revert to duplicating PATH_MAX
994 (sys_readlink): renamed to system_readlink to avoid conflict with
995 the other sys_readlink.
997 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
999 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
1001 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
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.
1009 2000-08-31 Dan Holmsand <dan@eyebee.com>
1011 * buffer.c: Make find-file-compare-truenames default to true on
1014 * realpath.c (win32_abs_start):
1016 (win32_readlink): New functions.
1017 (xrealpath): Return really real filenames on windows.
1019 * fileio.c (Ffile_truename): Make file-truename work on windows.
1021 2000-11-29 Didier Verna <didier@xemacs.org>
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.
1028 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
1030 * search.c (string_match_1): Don't set last_thing_searched
1033 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
1075 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
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.
1094 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
1096 * lisp.h (basic char/int typedefs): comment improvement.
1098 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
1100 * emacs.c (main_1): unconditional pdump unstomping; don't save and
1101 unstomp inhibit_site_lisp. Improve comments.
1103 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
1105 * mule-charset.c (Fcharset_property): improve type checking, comments.
1107 2000-11-28 Andy Piper <andy@xemacs.org>
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.
1114 * gutter.h: declare display_boxes_in_gutter_p.
1116 * gutter.c (display_boxes_in_gutter_p): new function for
1119 2000-11-22 Andy Piper <andy@xemacs.org>
1121 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
1124 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
1134 * menubar-x.c (command_builder_find_menu_accelerator):
1135 Initialize before use.
1137 2000-11-23 Andy Piper <andy@xemacs.org>
1139 * unexcw.c (unexec): make the resulting executable executable.
1141 2000-11-21 Martin Buchholz <martin@xemacs.org>
1143 * doc.c (get_doc_string):
1144 Use size_t, not int, for result of XSTRING_LENGTH.
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.
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.
1158 2000-11-22 Martin Buchholz <martin@xemacs.org>
1161 * print.c (long_to_string):
1162 Return a useful value: the pointer at end of data written.
1165 Use `static const char * const' for constant strings.
1166 (union printf_arg): Delete `i', `ui' members.
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.
1174 2000-11-20 Didier Verna <didier@xemacs.org>
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
1180 2000-11-20 Andy Piper <andy@xemacs.org>
1182 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
1183 messing with a debug environment.
1185 2000-11-20 Martin Buchholz <martin@xemacs.org>
1187 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
1189 2000-11-20 Martin Buchholz <martin@xemacs.org>
1191 * casetab.c (Fcase_table_p): Fix compile error and crash.
1193 2000-11-18 Philip Aston <philipa@mail.com>
1195 * s/cygwin32.h: Cygwin has SVR4-like pty support.
1197 2000-11-18 Martin Buchholz <martin@xemacs.org>
1199 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
1200 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
1202 2000-11-17 Martin Buchholz <martin@xemacs.org>
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
1211 So this is an unexelfsgi.c from a different line of development.
1213 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
1215 * regex.c (RE_TR_ASCII): New function.
1216 (RE_TRANSLATE): Call it.
1218 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
1220 * buffer.h (TRT_TABLE_OF): Remove assert.
1221 (IN_TRT_TABLE_DOMAIN): Removed.
1223 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
1225 * free-hook.c (log_gcpro):
1226 (show_gcprohist): Add support for GCPRO5.
1228 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
1230 * emacs.c (main_1): Improve -sd error message when --pdump=no.
1232 2000-11-16 Olivier Galibert <galibert@xemacs.org>
1234 * symeval.h: Declare flush_all_buffer_local_cache.
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.
1240 * lrecord.h: Remove unused XD_LO_RESET_NIL.
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
1249 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
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
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.
1272 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
1279 Do UNGCPRO before return.
1281 2000-11-14 Martin Buchholz <martin@xemacs.org>
1283 * XEmacs 21.2.37 is released.
1285 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
1287 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
1288 Add comments about discarded return value.
1290 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
1293 * event-stream.c: Fix comments. Remove some #if 0'ed part.
1295 2000-10-27 Andy Piper <andy@xemacs.org>
1297 * gutter.c (Fset_default_gutter_position): default left and right
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
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.
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.
1319 * specifier.c (set_specifier_caching): include recompute flag.
1320 (recompute_one_cached_specifier_in_window): always recompute if
1322 (recompute_one_cached_specifier_in_frame): ditto.
1324 * specifier.h (struct specifier_caching): add recompute flag.
1326 2000-10-24 Andy Piper <andy@xemacs.org>
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
1332 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
1340 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
1342 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
1344 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
1350 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
1356 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1358 * console.c (Fset_input_method): Trigger redisplay on tty.
1360 2000-11-07 Martin Buchholz <martin@xemacs.org>
1362 * process.c (Fprocess_status): Revert to previous behavior:
1363 (process-status "nosuchprocess") ==> nil
1365 2000-11-06 Martin Buchholz <martin@xemacs.org>
1367 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
1368 Work around another GCC 2.95.2 optimizer bug.
1370 2000-11-02 Martin Buchholz <martin@xemacs.org>
1372 * process.c (Fget_process): Use LIST_LOOP_2.
1373 (kill_buffer_processes): Use LIST_LOOP_2.
1375 * minibuf.c (Fall_completions):
1376 Delete old non-functional code for FSF fourth argument.
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.
1383 * doc.c (Fsubstitute_command_keys):
1384 Remove buffer overflow crash. Small code cleanups.
1386 * casetab.c (check_case_table): Simpler code.
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.
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):
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):
1409 * event-stream.c (Fread_key_sequence):
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):
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):
1443 * data.c (Fsubr_interactive):
1444 * data.c (Fchar_to_int):
1445 * data.c (Fint_to_char):
1448 * data.c (Fnumber_to_string):
1449 * data.c (Fstring_to_number):
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):
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):
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):
1478 * eval.c (Fcommand_execute):
1479 * eval.c (Fautoload):
1480 * eval.c (Fbacktrace):
1481 * eval.c (Fbacktrace_frame):
1483 * events.c (Fcopy_event):
1484 * events.c (Fcharacter_to_event):
1485 * events.c (Fevent_button):
1486 * events.c (Fevent_process):
1488 * extents.c (Fnext_extent_change):
1489 * extents.c (Fextent_property):
1491 * faces.c (Fmake_face):
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):
1549 * fns.c (Fsubstring):
1551 * fns.c (Fold_assoc):
1552 * fns.c (assoc_no_quit):
1554 * fns.c (Fold_assq):
1555 * fns.c (assq_no_quit):
1557 * fns.c (Fold_rassoc):
1559 * fns.c (Fold_rassq):
1560 * fns.c (rassq_no_quit):
1561 * fns.c (Fremassoc):
1562 * fns.c (remassoc_no_quit):
1564 * fns.c (remassq_no_quit):
1565 * fns.c (Fremrassoc):
1566 * fns.c (Fremrassq):
1567 * fns.c (remrassq_no_quit):
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):
1578 * fns.c (Fold_equal):
1580 * fns.c (Fbase64_encode_region):
1581 * fns.c (Fbase64_encode_string):
1582 * fns.c (Fbase64_decode_region):
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):
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):
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):
1613 * menubar.c (Fpopup_menu):
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):
1627 * objects.c (Fmake_color_instance):
1628 * objects.c (Fmake_font_instance):
1629 * print.c (Fwrite_char):
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):
1673 * rangetab.c (Fget_range_table):
1674 * rangetab.c (Fput_range_table):
1675 * rangetab.c (Fremove_range_table):
1676 * rangetab.c (Fclear_range_table):
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):
1691 * symbols.c (Fintern):
1692 * symbols.c (Fintern_soft):
1693 * symbols.c (Funintern):
1694 * symbols.c (Fapropos_internal):
1695 * symbols.c (Fset_default):
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):
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):
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.
1747 2000-11-01 Martin Buchholz <martin@xemacs.org>
1749 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
1751 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
1753 2000-10-31 Martin Buchholz <martin@xemacs.org>
1755 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
1757 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
1759 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
1762 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
1770 2000-10-31 Martin Buchholz <martin@xemacs.org>
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.
1786 2000-10-27 Martin Buchholz <martin@xemacs.org>
1789 * fns.c (list_sort):
1790 * fns.c (Ffillarray):
1791 * fns.c (bytecode_nconc2):
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.
1798 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
1799 Work around MIPSpro compiler bug.
1801 * process-unix.c (unix_kill_child_process): Add snarky comment.
1802 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
1804 * config.h.in: Oops, _getpt ==> _getpty
1806 2000-10-26 Martin Buchholz <martin@xemacs.org>
1810 Use void*, not char*, as return type of alloca().
1812 * alloc.c (free_marker): Side effect inside assert expression!
1814 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
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.
1821 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
1823 * faces.c (get_extent_fragment_face_cache_index):
1824 Fix cachel.merged_faces memory leak.
1826 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
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
1836 2000-10-18 Daiki Ueno <ueno@unixuser.org>
1838 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
1839 (DECLARE_LRECORD): Undo the last change.
1840 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
1842 2000-10-17 Daiki Ueno <ueno@unixuser.org>
1844 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
1845 the implementation to lrecord_implementations_table.
1847 2000-10-14 Daiki Ueno <ueno@unixuser.org>
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.
1857 2000-10-17 Martin Buchholz <martin@xemacs.org>
1859 * miscplay.c (sndcnv8S_2mono):
1860 (sndcnv2monounsigned):
1861 (sndcnvULaw_2linear):
1863 Remove implementation-defined behavior.
1865 2000-10-12 Martin Buchholz <martin@xemacs.org>
1867 * input-method-xlib.c: Warning suppression.
1869 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
1871 * mule-ccl.c: Sync up with Emacs 21.0.90.
1872 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
1874 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
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,
1888 (Fregister_code_conversion_map): New function.
1889 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
1891 * mule-ccl.h: Sync up with Emacs 21.0.90.
1892 (Fregister_ccl_program): export it.
1894 * redisplay-msw.c (separate_textual_runs):
1895 If ccl program is not valid, don't do ccl conversion.
1897 * redisplay-x.c (separate_textual_runs): Ditto.
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.
1907 2000-10-11 Martin Buchholz <martin@xemacs.org>
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!
1913 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
1915 * sound.c (Fplay_sound): Type correctness.
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.
1924 * process-unix.c (try_to_initialize_subtty): Type correctness.
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.
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.
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.
1954 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
1955 Warning suppression.
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.
1960 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
1962 * lisp.h: Make Extbyte a char, not unsigned char, so that external
1963 APIs can be used on Extbytes without casts. Risky!
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.
1974 * gui-x.c (button_item_to_widget_value): Type correctness.
1976 * glyphs.c (bitmap_to_lisp_data): Type correctness.
1978 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
1979 (xbm_instantiate_1): Type correctness.
1980 (BUILD_GLYPH_INST): Type correctness.
1982 * fileio.c (Fsubstitute_in_file_name): Type correctness.
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 *.
2002 * doc.c (unparesseuxify_doc_string): Type correctness.
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.
2009 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
2010 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
2011 (HAVE_XFREE386): Removed.
2013 * buffer.h (DEC_CHARPTR): `const' correctness.
2014 (bufbyte_strcmp): New.
2015 (bufbyte_memcmp): New.
2017 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
2019 * buffer.h (XCHAR_OR_CHAR_INT):
2020 Always use inline function.
2021 Remove redundant type checking assert() - XINT will abort quite nicely.
2023 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
2025 * search.c (Freplace_match): Set newtext to an empty string.
2027 2000-10-10 Martin Buchholz <martin@xemacs.org>
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
2034 Use stropts.h, not sys/stropts.h.
2035 Use strtio.h, not sys/strtio.h.
2037 2000-10-04 Martin Buchholz <martin@xemacs.org>
2039 * XEmacs 21.2.36 is released.
2041 2000-09-21 Andy Piper <andy@xemacs.org>
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.
2051 2000-08-31 Daiki Ueno <ueno@unixuser.org>
2053 * lread.c (locate_file): Check the path element is non-nil.
2055 2000-10-02 Martin Buchholz <martin@xemacs.org>
2057 * lisp.h: Warning suppression for SCO compilers.
2059 * redisplay-tty.c (reset_tty_modes): Fix crash.
2060 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
2062 2000-09-27 Martin Buchholz <martin@xemacs.org>
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):
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
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().
2111 * editfns.c (Fformat_time_string):
2112 Be a little more paranoid with the return value of ctime.
2114 * fileio.c (check_executable):
2116 Use symbolic constants X_OK, W_OK.
2118 * console-x.c (split_up_display_spec): Fix a warning.
2120 2000-10-02 Martin Buchholz <martin@xemacs.org>
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.
2126 2000-09-30 Martin Buchholz <martin@xemacs.org>
2128 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
2130 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
2132 * config.h.in (HAVE_STRCASECMP): Remove.
2134 2000-09-29 Martin Buchholz <martin@xemacs.org>
2136 * redisplay-output.c (redisplay_output_pixmap):
2137 Cleaner and possibly more 64-bit correct code.
2139 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
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
2146 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
2148 * Makefile.in.in (versionclean): Use EXE_TARGET and
2149 DUMP_TARGET instead of literal program names.
2151 2000-09-20 Martin Buchholz <martin@xemacs.org>
2153 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
2155 2000-09-19 Martin Buchholz <martin@xemacs.org>
2157 * *: Spelling mega-patch
2159 2000-09-19 Martin Buchholz <martin@xemacs.org>
2161 * fns.c (bad_bad_turtle):
2162 Delete "Eek!" comment, since we fixed the bug to which it refers.
2164 2000-09-16 Martin Buchholz <martin@xemacs.org>
2166 * alloca.c: Replace REGISTER with register.
2168 2000-09-16 Daiki Ueno <ueno@unixuser.org>
2170 * file-coding.c (ucs_to_char): Use countof.
2172 2000-09-16 Martin Buchholz <martin@xemacs.org>
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.
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.
2184 2000-09-16 Martin Buchholz <martin@xemacs.org>
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.
2194 2000-09-15 Martin Buchholz <martin@xemacs.org>
2196 * symeval.h (DEFERROR_STANDARD):
2199 (DEFSYMBOL_NO_DUMP):
2200 (DEFSYMBOL_MULTIWORD_PREDICATE):
2201 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
2203 The construct &##name is not sensible C.
2204 Fixes compilation errors with Unixware native compiler.
2206 2000-09-14 Martin Buchholz <martin@xemacs.org>
2208 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
2209 (next_frame_internal): Removed. We now just have next_frame.
2211 Write a simpler and cleaner one-pass algorithm.
2212 Remove called_from_delete_device arg and #ifdefed-out code.
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().
2220 * window.c (Fnext_window):
2222 Since next_frame() is guaranteed to return a frame, remove check
2223 for nil inserted in previous patch.
2226 Make code look more like Fnext_window.
2228 Respect the `console' arg when iterating through windows.
2229 Fixes bug: (get-buffer-window buffer t device) not respecting
2231 This function needs more work, as others have pointed out.
2233 * frame.h: Rename prev_frame to previous_frame.
2234 device_matches_console_spec no longer takes a `frame' arg.
2239 Use EMACS_BLOCK_SIGNAL instead of sigblock.
2240 From "Golubev I. N." <gin@mo.msk.ru>.
2242 * make-src-depend: Fix typo.
2244 2000-09-13 Martin Buchholz <martin@xemacs.org>
2246 * window.c (Fnext_window):
2247 next_frame() might return nil, not a frame.
2249 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
2251 * frame.c (next_frame_internal):
2252 We've passed a frame if we've passed its device.
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)
2257 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
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.
2263 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
2265 * event-msw.c (mswindows_key_to_emacs_keysym):
2266 Add "pause" key, fix "menu" key.
2268 2000-09-09 Martin Buchholz <martin@xemacs.org>
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.
2274 2000-09-04 Martin Buchholz <martin@xemacs.org>
2276 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
2279 2000-09-01 Martin Buchholz <martin@xemacs.org>
2281 * make-src-depend: Make the generated Makefiles smaller.
2283 * s/hpux.h (SETUP_SLAVE_PTY):
2284 Provide a %d in the format string for the errno argument.
2286 * editfns.c (Ftemp_directory):
2288 Avoid buffer overrun on very long file name.
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 *).
2294 * unexhp9k800.c: Warning fixes. Fiddly changes.
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.
2301 * sysdep.c (get_pty_max_bytes):
2302 Support pty input lines longer than 512 bytes on HP-UX 10.20.
2304 2000-08-31 Martin Buchholz <martin@xemacs.org>
2306 * tooltalk.c: Add #include <syssignal.h>
2308 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
2310 * s/hpux.h: Don't use undefined function sigunblock().
2312 2000-08-31 Martin Buchholz <martin@xemacs.org>
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.
2319 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
2321 * syntax.c (regex_emacs_buffer_p): New variable.
2322 * syntax.h (regex_emacs_buffer_p): extern.
2323 * search.c (looking_at_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.
2330 2000-08-23 Andy Piper <andy@xemacs.org>
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.
2336 2000-08-23 Andy Piper <andy@xemacs.org>
2338 * gui-msw.c (mswindows_handle_gui_wm_command): set
2340 * gui-x.c (popup_selection_callback): ditto.
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.
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.
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.
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.
2363 * redisplay.c (redisplay_frame): reset the frame cache if the
2366 * window.c (Fset_window_configuration): potentially re-enable
2368 (window_unmap_subwindows): need to finalize instances here since
2369 it is only used in mark_window_as_deleted.
2371 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
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.
2378 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
2380 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
2381 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
2383 2000-08-21 Andy Piper <andy@xemacs.org>
2385 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
2386 window if it is not already displayed.
2388 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
2389 it is not already displayed.
2391 * window.c (Fset_window_configuration): don't reset the frame
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.
2400 2000-08-21 Martin Buchholz <martin@xemacs.org>
2402 * data.c (indirect_function):
2403 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
2405 * eval.c (function_argcount):
2406 Use original function when signaling errors.
2408 2000-08-18 Andy Piper <andy@xemacs.org>
2410 * frame.c (delete_frame_internal): use new
2411 free_frame_subwindow_instances name.
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.
2419 * glyphs-widget.c (tab_control_update): Correct comment.
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
2427 (allocate_window): ditto.
2428 (make_dummy_parent): ditto.
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.
2438 * gui.c (gui_item_list_find_selected): new function.
2440 * gui.h (gui_item_list_find_selected): declare.
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.
2446 * glyphs-x.h: add lwlib-utils.h
2448 * buffer.c (Frecord_buffer): undo previous change.
2450 2000-08-09 Vin Shelton <acs@xemacs.org>
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
2459 2000-08-07 Ben Wing <ben@xemacs.org>
2461 * getloadavg.c: remove duplicate (and windows-breaking)
2462 includes of fcntl.h and sys/file.h.
2464 * nt.c: remove duplicate getloadavg() definition.
2466 * sysdll.h (Qdll_filename_encoding): add missing stand-in
2469 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
2471 * eval.c (function_argcount): If function needs to be autoloaded
2472 actually use the loaded definition.
2475 2000-08-05 Ben Wing <ben@xemacs.org>
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.
2481 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
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.
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.
2494 * m\*.h: removed useless VIRT_ADDR_VARIES.
2496 * m\powerpc.h: removed stray NO_ARG_ARRAY.
2498 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
2500 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
2501 color if the image is a mono pixmap.
2503 2000-07-30 Ben Wing <ben@xemacs.org>
2505 * Makefile.in.in (release):
2508 * buffer.c (directory_is_current_directory):
2509 * dired-msw.c (mswindows_get_files):
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
2518 * callproc.c (egetenv): GC docs.
2521 * console-msw.h (struct mswindows_dialog_id):
2522 * lrecord.h (lrecord_type):
2523 New object for use with MSW dialogs.
2525 * console.h (struct console_methods):
2526 New enable/disable frame methods, for proper modal dialogs.
2528 * device-msw.c (msprinter_default_printer): Fix to follow
2529 proper Mule conventions.
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.
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.
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.
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.
2569 * eval.c (signal_call_debugger):
2570 when noninteractive, output stack traces on the console instead
2571 of in a (never-seen) buffer.
2573 * eval.c (signal_type_error):
2574 * eval.c (invalid_argument_2):
2576 new funs for use w/structured errors.
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):
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.
2590 document next-event more clearly.
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):
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):
2625 implement new enable/disable frame methods.
2628 * frame-x.c (x_enable_frame):
2629 * frame-x.c (console_type_create_frame_x):
2630 implement new enable/disable frame methods.
2633 * frame.c (Fdisable_frame):
2634 * frame.c (syms_of_frame):
2635 * frame.h (struct frame):
2636 implement new enable/disable frame methods/functions.
2641 * glyphs-msw.c (mswindows_widget_instantiate):
2642 comment that initial-focus should be implemented.
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):
2664 support (unimplemented) keyword initial-focus.
2665 reindent long macros.
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):
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):
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.
2685 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
2687 * glyphs.h (struct Lisp_Image_Instance):
2688 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
2689 add initial-focus flag.
2692 * gui.c (syms_of_gui):
2693 * gui.c (vars_of_gui):
2694 clean up menu-no-selection-hook.
2697 support delete-dialog-box-hook.
2699 * lread.c (Fload_internal):
2700 * lread.c (locate_file_in_directory_mapper):
2704 * lrecord.h (struct toolbar_button):
2705 * lrecord.h (syms_of_toolbar):
2706 document how to create a new object.
2708 * menubar-msw.c (mswindows_char_is_accelerator):
2709 may be called on frames w/o menus.
2711 * menubar.c (vars_of_menubar):
2712 clean up :filter docs.
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):
2727 delete quote-handling. call new lisp code that does it better.
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):
2738 * process.c (Fstart_process_internal):
2739 (2). need to canonicalize process path even if absolute.
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):
2746 * select.c (syms_of_select):
2748 support dibv5, fix bugs. (from Mike Alexander)
2750 * select.c (Fget_selection_internal):
2751 * select.c (select_convert_out):
2754 * sysdep.c (xemacs_stat):
2759 but keep original stat() here because we provide encapsulation
2763 * sysfile.h (fstat):
2764 remove stat garbage.
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)
2773 use default object printer for toolbar-button.
2776 make sure we don't encapsulate.
2778 * window.c (vars_of_window):
2779 emphasize that temp-buffer-show-hook is obsolete.
2781 2000-08-05 Martin Buchholz <martin@xemacs.org>
2783 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
2784 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
2786 * events.c (Fevent_timestamp_lessp):
2787 Not 64-bit clean. Use EMACS_INT, not int.
2789 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
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.
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.
2808 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
2810 * glyphs.h (check_valid_item_list): Renamed from
2811 check_valid_item_list_1.
2813 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
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.
2821 * select.c (select_coerce): New.
2822 * select.h (select_coerce): Declare.
2823 New function to coerce one type of data into another.
2825 2000-08-03 Martin Buchholz <martin@xemacs.org>
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.
2832 2000-08-01 Martin Buchholz <martin@xemacs.org>
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.
2838 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
2840 * window.c (Fwindow_pixel_edges): Subtract frame border and
2843 2000-07-31 Andy Piper <andy@xemacs.org>
2845 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
2846 will acknowledge the change.
2848 * glyphs.h: declare tab_control_order_only_changed.
2850 * glyphs-x.c (x_tab_control_redisplay): use
2851 tab_control_order_only_changed.
2853 * glyphs-widget.c (tab_control_order_only_changed): new function.
2855 * glyphs-msw.c (mswindows_tab_control_redisplay): use
2856 tab_control_order_only_changed.
2858 * gui.c (gui_item_equal_sans_selected): new function.
2859 (gui_item_equal): use it.
2861 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
2862 :properties in favor of :items..
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.
2875 * print.c (debug_print_no_newline): only write to debugger if in
2878 * elhash.c (Fmake_hash_table): update doc string.
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.
2884 2000-07-31 Martin Buchholz <martin@xemacs.org>
2887 Make existence of s&m files optional.
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.
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().
2901 2000-07-30 Martin Buchholz <martin@xemacs.org>
2903 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
2905 2000-07-25 Andy Piper <andy@xemacs.org>
2907 * syswindows.h: add tchar.h for native builds.
2909 * frame.c (syms_of_frame): remove set-glyph-image.
2911 * general-slots.h: add Qset_glyph_image.
2913 * glyphs-widget.c (layout_update): add domain arg to
2915 (syms_of_glyphs_widget): remove set-glyph-image.
2917 2000-07-23 Ben Wing <ben@xemacs.org>
2919 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
2922 2000-07-22 Andy Piper <andy@xemacs.org>
2924 * symsinit.h: add syms_of_win32().
2926 * gui-msw.c (syms_of_gui_mswindows): remove
2927 Fmswindows_shell_execute.
2928 (Fmswindows_shell_execute): moved to win32.c.
2930 * emacs.c (main_1): add syms_of_win32 ().
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.
2937 * device-msw.c (Fmswindows_printer_list): clean up args to
2939 Don't include tchar under cygwin or mingw.
2940 (msprinter_default_printer): make cygwin-friendly.
2942 2000-07-21 Andy Piper <andy@xemacs.org>
2944 * glyphs-widget.c (image_instantiator_tree_view): use tab
2945 control's update function.
2946 (layout_property): new function. Retrieve items.
2948 * glyphs-msw.c (mswindows_tree_view_redisplay): new
2949 function. Re-populate the tree view from the pending items.
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.
2957 * redisplay.h: change redisplay_output_layout signature.
2959 * redisplay-msw.c (mswindows_output_display_block): use domain
2962 * redisplay-x.c (x_output_display_block): use domain arg.
2964 2000-07-10 Andy Piper <andy@xemacs.org>
2966 * window.c (Fset_window_configuration): add comment.
2968 * redisplay-output.c (compare_runes):
2969 (redisplay_output_subwindow): redisplay rather than update subwindow.
2970 (redisplay_output_layout): ditto.
2972 * redisplay-msw.c (mswindows_frame_output_end):
2973 (mswindows_frame_output_end): make defer window pos optional.
2975 * lisp.h: add Flast.
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
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.
2988 (find_instantiator_differences): new function.
2989 (Fset_instantiator_property): new convenience function.
2990 (check_image_instance_structure): strictly check for vector
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
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.
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
3031 (console_type_create_glyphs_x): update -> redisplay.
3032 (image_instantiator_format_create_glyphs_x): ditto.
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
3040 (widget_update): renamed from widget_set_property. Call cascaded
3042 (redisplay_widget): renamed from update_widget.
3043 (widget_layout): image_instance_layout now takes position as well
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
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
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.
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.
3097 * glyphs-eimage.c (jpeg_normalize):
3100 (tiff_normalize): add dest_mask so that it can be proprogated by
3105 (hash_table_weakness_validate):
3106 (decode_hash_table_weakness):
3107 (Fhash_table_weakness):
3109 (syms_of_elhash): use Ben's naming scheme for hashtable types..
3111 * console.h (struct console_methods): move update_* to
3114 2000-07-20 Ben Wing <ben@xemacs.org>
3116 * *.[ch] (XSETOBJ): remove unused middle argument.
3117 lisp-disunion.h: correct wrap_object() to one argument.
3119 2000-07-15 Ben Wing <ben@xemacs.org>
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.
3126 * s/windowsnt.h: [5].
3128 2000-07-15 Ben Wing <ben@xemacs.org>
3130 * Makefile.in.in (x_objs):
3131 * Makefile.in.in (sheap_objs):
3132 * Makefile.in.in (objs):
3133 added win32.o, cosmetic cleanups.
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.
3139 * alloc.c (syms_of_alloc):
3140 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
3143 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
3145 * buffer.c (Fget_file_buffer):
3146 Fixed GCPRO problem.
3148 * buffer.c (get_truename_buffer):
3149 Fixed comment about GC checking.
3151 * buffer.c (syms_of_buffer):
3152 Undeclared those dedicated frame funs.
3156 Define convenience macros for internal/external conversions.
3157 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
3158 and Qenvironment_variable_encoding for cleaner code.
3161 Remove dedicated-frame; in lisp.
3163 * bytecode.c (funcall_compiled_function):
3166 * bytecode.c (syms_of_bytecode):
3170 * console-msw.c (mswindows_show_console): Rewrote.
3172 * console-msw.c (Fmswindows_debugging_output): New.
3173 Sends to OutputDebugString (special MSWin debugger interface).
3175 * console-msw.c (Fmswindows_message_box):
3176 Fixed stupid bugs so it works when called from kill-emacs.
3178 * console-msw.c (syms_of_console_mswindows):
3179 Declare Fmswindows_debugging_output.
3182 New MSWin prototypes.
3184 * console-msw.h (struct mswindows_frame):
3185 New entry last-click-mods for improved button-modifier support.
3187 * console-msw.h (FRAME_MSWINDOWS_POPUP):
3188 New struct entry `popup' with corresponding accessor.
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];
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.
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.
3207 * console.h (struct console_methods):
3208 New method make_dialog_box_internal supersedes older
3209 popup_dialog_box method.
3212 Define many new errors, part of new structured errors.
3214 * data.c (init_errors_once_early):
3215 * data.c (syms_of_data):
3218 * device-msw.c (mswindows_init_device):
3219 [[[5]]]: Cleanup to support NT 3.51.
3221 * device-msw.c (decode_devmode): Cleanup.
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.
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):
3238 * device.h (wrap_device): New.
3239 First of its kind; meant to replace XSETDEVICE.
3241 * dialog-msw.c: Many file-dialog symbols.
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.
3247 * dialog-msw.c (dialog_proc):
3248 Support hitting ESC in dialogs.
3250 * dialog-msw.c (struct):
3251 Common dialog box errors.
3253 * dialog-msw.c (handle_file_dialog_box): New.
3254 Add file dialog code.
3256 * dialog-msw.c (handle_question_dialog_box):
3257 Redo existing code to support new question dialog syntax.
3259 * dialog-msw.c (console_type_create_dialog_mswindows):
3260 We support new dialog console method.
3262 * dialog-msw.c (syms_of_dialog_mswindows):
3263 * dialog-msw.c (vars_of_dialog_mswindows):
3264 New file dialog symbols, vars.
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.
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.
3281 * eldap.c (Fldap_open):
3282 * eldap.c (Fldap_search_basic):
3283 * eldap.c (Fldap_add):
3284 * eldap.c (Fldap_modify):
3289 * emacs.c (make_arg_list_1):
3290 * emacs.c (make_arg_list):
3291 Mule-ize call to dll_init().
3295 * emacs.c (make_argc_argv):
3296 * emacs.c (free_argc_argv):
3297 * emacs.c (init_cmdargs):
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.
3314 * eval.c (condition_case_3):
3316 * eval.c (function_argcount):
3317 * eval.c (funcall_lambda):
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.
3331 * event-Xt.c (x_event_to_emacs_event):
3332 Buttons are now modifiers too.
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.
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.
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.
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.
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.
3361 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
3364 * events.c (Fmake_event):
3365 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
3369 * events.c (format_event_object): fix gcc warnings.
3371 * events.c (Fevent_timestamp): Document new primitives.
3373 * events.c (TIMESTAMP_HALFSPACE): New.
3375 * events.c (Fevent_timestamp_lessp): New. New primitive for
3376 comparing timestamps correctly (half-space algorithm).
3378 * events.c (Fevent_modifier_bits): Doc fix.
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.
3385 Update long comment for button modifiers, timestamps.
3387 * events.h (struct event_stream):
3388 New current_event_timestamp method.
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):
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'.
3408 * extents.c (get_text_property_bytind):
3409 extent_at_bytind has another arg.
3412 * extents.c (syms_of_extents): New primitive.
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].
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):
3425 * fileio.c (syms_of_fileio): [2].
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):
3434 * fns.c (concat): Fix gcc warning.
3437 * fns.c (Fold_member):
3439 * fns.c (Fold_memq):
3440 * fns.c (memq_no_quit):
3442 * fns.c (Fold_assoc):
3444 * fns.c (Fold_assq):
3445 * fns.c (assq_no_quit):
3447 * fns.c (Fold_rassoc):
3449 * fns.c (Fold_rassq):
3450 * fns.c (rassq_no_quit):
3452 * fns.c (Fold_delete):
3454 * fns.c (Fold_delq):
3455 * fns.c (delq_no_quit):
3456 * fns.c (Fremassoc):
3458 * fns.c (remassq_no_quit):
3459 * fns.c (Fremrassoc):
3460 * fns.c (Fremrassq):
3461 * fns.c (remrassq_no_quit):
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.
3470 * frame-tty.c (tty_raise_frame_no_select): [1].
3473 * frame-x.c (x_set_frame_text_value):
3474 * frame-x.c (x_set_frame_properties):
3475 * frame-x.c (x_create_widgets):
3479 * frame.c (Fmouse_pixel_position): Minor doc fixes.
3481 * frame.h (wrap_frame): New.
3482 Macro like wrap_device.
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.
3490 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
3491 * glyphs-msw.c (mswindows_resource_instantiate): [5].
3493 * glyphs-msw.c (mswindows_native_layout_instantiate):
3494 Add DS_CONTROL so keyboard traversal will work.
3497 * glyphs-widget.c (syms_of_glyphs_widget):
3498 Move some symbols to general-slots.h.
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):
3512 * glyphs.c (syms_of_glyphs):
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.
3528 Muleize, prototype changes matching gui-x.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):
3539 menu-no-selection-hook moved here (used by MSWin).
3540 Move some symbols to general-slots.h.
3544 * insdel.c (get_buffer_pos_char):
3545 * insdel.c (get_buffer_range_char):
3548 * keymap.c (keymap_lookup_directly):
3549 * keymap.c (keymap_store):
3550 * keymap.c (ensure_meta_prefix_char_keymapp):
3551 * keymap.c (describe_map):
3553 Support new button modifiers.
3555 * lisp-disunion.h (wrap_object):
3556 * lisp-disunion.h (XSETOBJ):
3557 Rename make_obj to wrap_object.
3560 * lisp-union.h (make_int):
3561 * lisp-union.h (make_char):
3562 Support wrap_object.
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
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.
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):
3606 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
3607 Mule-ize whole file.
3609 * menubar.c (Fnormalize_menu_item_name): Add optimization.
3611 * mule-charset.c (Fmake_charset):
3612 * mule-wnnfns.c (Fwnn_set_param):
3615 * ntproc.c (create_child):
3616 * ntproc.c (Fwin32_set_current_locale):
3617 Add comments portending doom.
3620 * objects-msw.c (old_font_enum_callback_2):
3621 * objects-msw.c (font_enum_callback_1):
3622 * objects-msw.c (mswindows_enumerate_fonts):
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.
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.
3656 * process-nt.c (send_signal):
3657 * process-nt.c (nt_create_process):
3658 Use newer Unicode macros.
3660 * process-unix.c (unix_create_process):
3661 * process-unix.c (unix_canonicalize_host_name):
3662 * process-unix.c (unix_open_network_stream):
3668 * search.c (syms_of_search):
3671 * select-msw.c (mswindows_destroy_selection):
3674 * select-x.c (symbol_to_x_atom):
3677 * select.c (syms_of_select):
3680 * sound.c (Fplay_sound_file):
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):
3704 * specifier.c (syms_of_specifier):
3705 Move some symbols to general-slots.h.
3709 * symbols.c (Fmapatoms):
3710 * symbols.c (Fapropos_internal):
3713 * symbols.c (set_default_buffer_slot_variable):
3714 * symbols.c (set_default_console_slot_variable):
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):
3723 * symeval.h (DEFSYMBOL):
3724 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
3726 * symbols.c (syms_of_symbols):
3730 * symsinit.h (init_win32): New.
3731 Also new is syms_of_dialog_mswindows.
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.
3742 * tooltalk.c (Fadd_tooltalk_message_arg):
3743 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
3744 * tooltalk.c (Fadd_tooltalk_pattern_arg):
3747 * tooltalk.c (syms_of_tooltalk):
3751 * unexnt.c (unexec):
3752 Fix up headers, declaration of unexec() to be more standard.
3754 2000-07-20 Martin Buchholz <martin@xemacs.org>
3756 * offix.h: Revert change to guard macros - they're used in offix.c!
3758 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
3760 * lisp.h: Defsubred Fdelete.
3762 * console-msw.h: (msprinter_default_printer): Added.
3764 * console-msw.c (msprinter_canonicalize_console_connection):
3765 (msprinter_canonicalize_device_connection): Added.
3767 * device-msw.c (msprinter_default_printer):
3768 (Fmswingows_get_default_printer):
3769 (signal_enum_priner_error):
3770 (Fmswingows_printer_list): Added.
3772 2000-07-19 Martin Buchholz <martin@xemacs.org>
3774 * XEmacs 21.2.35 is released.
3776 2000-07-19 Martin Buchholz <martin@xemacs.org>
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.
3782 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
3784 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
3785 XEmacs frame (fix for doubling chars in dialog boxes).
3787 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
3789 * select.c (select_convert_in, select_convert_out):
3790 Don't call intern() every time.
3792 * select.c (Qselect_convert_in, Qselect_convert_out): New.
3793 * select.c (vars_of_select): Initialise them.
3795 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
3797 * select.c (selection-coercible-types): New.
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.
3804 * select.c (select_convert_out): Use selection-coercible-types
3805 to find types that we can attempt to perform coercions on.
3807 2000-07-18 Martin Buchholz <martin@xemacs.org>
3811 Add coding: cookie to identify encoding.
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().
3817 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
3819 * select.c (syms_of_select): Add missing DEFSUBR.
3821 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
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.
3827 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
3829 * gpmevent.c (tty_selection_exists_p):
3830 * gpmevent.c (tty_own_selection):
3831 Updated parameter lists.
3833 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
3835 * select.h (selection-alist): Removed declaration.
3837 * select.h (get_local_selection):
3838 * select.c (get_local_selection):
3841 * select.h (convert_selection): Removed declaration.
3842 * select.c (convert_selection): Removed.
3843 This function belongs in Lisp.
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.
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.
3855 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
3856 X-specific lisp code.
3858 * select.h: Declare some of the lisp-visible functions for
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).
3866 * select.c (available-selection-types): Fixed stupidity where
3867 INTEGER and ATOM got added twice. Also add STRING when we see an
3870 * select.c (get-selection-internal): Removed symbol stripping. No
3871 longer causes conversion when data comes from the internal cache.
3873 * select.c (syms_of_select): Added new functions.
3875 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
3876 error checking - previously this called abort!
3878 * select-x.c (x_own_selection): Changed comment.
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.
3883 * select-x.c (x_get_foreign_selection): Use select_convert_in.
3885 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
3886 rather than messing with selection-alist.
3888 * select-msw.c (mswindows_get_foreign_selection):
3889 Use TO_INTERNAL_FORMAT rather than hacking.
3891 2000-07-14 Martin Buchholz <martin@xemacs.org>
3893 * process-unix.c (unix_open_multicast_group):
3894 (unix_open_multicast_group): Remove useless casts.
3896 2000-07-13 Martin Buchholz <martin@xemacs.org>
3898 * sound.c (Fplay_sound): Fix `unused variable' warning.
3900 * emacs.c (main): Use correct type for _environ on SCO5.
3902 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
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.
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.
3914 * event-msw.c (mswindows_wnd_proc): Call it.
3916 * lisp.h, general.c (Qappend): New symbol representing a
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 &
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):
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
3939 * select.h, select.c (Qreplace_all, Qreplace_existing): New
3940 symbols representing `how-to-add' modes.
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):
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
3964 * select-x.c (x_own_selection):
3966 * specifier.c: Remove definition of Qappend (now in general.c)
3967 * specifier.c (syms_of_specifier): Remove Qappend.
3969 2000-07-12 Martin Buchholz <martin@xemacs.org>
3971 * config.h.in: Add socklen_t.
3973 * s/decosf4-0.h: No special compiler flags needed or desired.
3974 In particular, undefine _BSD for DEC OSF 4.0.
3976 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
3978 * redisplay-msw.c (msprinter_frame_output_end): Added.
3979 (console_type_create_redisplay_mswindows): Referred the above.
3981 * frame.c (setup_frame_without_minibuffer): Do not create a
3982 default minibuffer frame on a printer device.
3984 * frame-msw.c (apply_dc_geometry): Added.
3985 (msprinter_start_page):
3986 (msprinter_init_frame_3):
3987 (msprinter_eject_page): Use it.
3989 * console-msw.h (struct msprinter_frame): Added pix_left and top,
3990 and removed residual duplex and orientation properties.
3992 2000-07-11 Martin Buchholz <martin@xemacs.org>
3994 * eval.c (function_argcount): Work around a DEC CC compiler bug.
3996 * unexalpha.c: Remove system prototypes from C sources!
3998 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
4000 * eval.c: Remove references to M-x edit-options in DEFUNs for
4001 `defvar' and `defconst'.
4003 2000-07-09 Martin Buchholz <martin@xemacs.org>
4005 * config.h.in: Remove SMART_INCLUDE hackery.
4008 * config.h.in: Don't use SMART_INCLUDE.
4010 * postgresql.h: Include libpq-fe.h here. Fix typo.
4011 * inline.c: Simply #include "postgresql.h"
4013 - Don't use SMART_INCLUDE
4014 - Use simply "const".
4015 - Use standard doc string conventions.
4016 - Use correct type for result of PQstatus.
4018 2000-07-09 Martin Buchholz <martin@xemacs.org>
4020 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
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.
4030 2000-07-09 Martin Buchholz <martin@xemacs.org>
4032 * general.c: Remove duplicate definition for Qfunction.
4034 2000-07-08 Ben Wing <ben@xemacs.org>
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.
4045 * vm-limit.c (check_memory_limits):
4046 avoid infinite loop printing warning messages.
4048 2000-07-05 Craig Lanning <lanning@scra.org>
4050 * Makefile.in.in: Add support for including the Windows resources
4051 when building with the cygwin and mingw targets.
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.
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.
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
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.
4079 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
4081 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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();
4090 * console.h (struct console_methods): Indentation nitpicking.
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):
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):
4111 (Fmsprinter_settings_copy):
4112 (Fmsprinter_settings_despecialize):
4116 (hash_devmode): Added functions
4117 (syms_of_device_mswindows): Init devmode lrecord class.
4119 * device.h: Added an exfun for find-device.
4121 * event-msw.c (mswindows_wnd_proc): Do not update the cached
4122 geometry; although, recreate the device compatible DC.
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).
4132 * lisp.h: Added symbols.
4134 * general.c (syms_of_general): Declared them.
4136 * hash.c (string_hash): Added.
4138 * lrecord.h (lrecord_type): Added devmode lrecord type.
4140 2000-07-02 Mike Sperber <mike@xemacs.org>
4142 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
4145 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
4147 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4150 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
4152 * data.c (Fstring_to_number): Don't recognize floating point if
4155 2000-06-22 Martin Buchholz <martin@xemacs.org>
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.
4163 2000-06-18 Martin Buchholz <martin@xemacs.org>
4165 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
4166 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
4168 2000-06-17 Martin Buchholz <martin@xemacs.org>
4170 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
4171 conflicts with gcc's fixincluded version of FOO.h.
4173 * glyphs.h (image_instance_geometry): Remove trailing `,'
4175 2000-06-08 Mike Alexander <mta@arbortext.com>
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
4182 (ntpipe_shove_closer): Don't delete the pipe until we're done with
4185 2000-06-12 Ben Wing <ben@xemacs.org>
4187 * s\mingw32.h (sigset):
4188 * s\windowsnt.h (sigset):
4189 rename msw_ to mswindows_ for consistency with general convention.
4191 2000-06-12 Ben Wing <ben@xemacs.org>
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):
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):
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):
4217 * ntproc.c (find_child_console):
4218 * ntproc.c (sys_kill):
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):
4226 rename msw_ to mswindows_ for consistency with general convention.
4230 include nt.h, not syswindows.h.
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.
4238 include syswindows.h. move some sysdep.h stuff here.
4241 include syswindows.h, not <windows.h>.
4249 * sysdep.c (sys_fstat):
4250 * sysdep.c (sys_stat):
4251 call mswindows versions when appropriate.
4254 move mswin decls to nt.h.
4257 add long comment describing appropriate use of the various windows
4260 2000-06-11 Ben Wing <ben@xemacs.org>
4262 * device-x.c: Correct doc string for sixth arg of x-get-resource.
4264 2000-06-10 Ben Wing <ben@xemacs.org>
4266 * Makefile.in.in (release):
4267 Correction to make sure xemacs.exe always dumped when correct.
4271 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
4273 * buffer.c (set_buffer_internal):
4274 [[[[2]]]]: Remove HAVE_FEP code.
4276 * buffer.c (init_initial_directory):
4280 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
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
4295 __MINGW32__ -> MINGW.
4296 Fix windows.h includes.
4297 Remove bogus HAVE_NTGUI.
4303 mswindows_message_outputted added for use in allowing startup
4304 errors on the console to be seen.
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):
4319 * console-stream.c (stream_init_console):
4320 Fix text/binary problems.
4323 * device-msw.c (mswindows_finish_init_device):
4324 * device-msw.c (mswindows_delete_device):
4327 * device.c (handle_asynch_device_change):
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.
4342 * dired.c (file_name_completion):
4343 * dired.c (Ffile_attributes):
4344 * dired.c (syms_of_dired):
4348 * dumper.c (pdump_file_unmap):
4349 * dumper.c (pdump_load):
4353 * editfns.c (Ftemp_directory):
4354 * editfns.c (user_login_name):
4355 * editfns.c (Fuser_real_login_name):
4356 * editfns.c (get_home_directory):
4359 * elhash.c (finish_marking_weak_hash_tables):
4360 [[[[5]]]]: Fix GCC warnings.
4363 * emacs.c (mswindows_handle_hardware_exceptions):
4364 * emacs.c (make_arg_list_1):
4366 * emacs.c (Fkill_emacs):
4367 * emacs.c (Fdump_emacs):
4369 Fix problems with nested crashes, add long comment.
4371 * event-Xt.c (init_event_Xt_late):
4375 * event-msw.c (mswindows_dde_callback):
4376 * event-msw.c (mswindows_handle_sticky_modifiers):
4377 * event-msw.c (mswindows_wnd_proc):
4381 * events.c (character_to_event):
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):
4399 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
4401 Expand getdefdir defn.
4402 Fix bogus rename() comment.
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.
4412 * frame.c (vars_of_frame):
4416 * getloadavg.c (getloadavg):
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.)
4426 * glyphs-msw.c (mswindows_resource_instantiate):
4429 * glyphs-x.c (x_native_layout_instantiate):
4432 * gui-msw.c (Fmswindows_shell_execute):
4441 * lread.c (locate_file_in_directory_mapper):
4448 * mem-limits.h (get_lim_data):
4460 * nt.c (rva_to_section):
4461 * nt.c (mswindows_executable_type):
4463 Fix closedir() defn.
4466 [[[[8]]]]: *_OK defs moved to sysfile.h.
4475 * print.c (std_handle_out_external):
4479 * process-nt.c (nt_create_process):
4481 try to fix process quoting somewhat.
4483 * process-unix.c (unix_create_process):
4487 * process.c (vars_of_process):
4494 * realpath.c (xrealpath):
4497 * redisplay-tty.c (init_tty_for_redisplay):
4507 * sheap.c (more_static_core):
4508 * sheap.c (report_sheap_usage):
4512 * signal.c (alarm_signal):
4519 * strftime.c (zone_name):
4522 * symsinit.h (init_sunpro):
4526 commctrl.h not in Cygwin b20.1.
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):
4548 * sysdir.h (DIRENTRY_NONEMPTY):
4551 * sysdll.c (dll_init):
4557 added text/binary defs.
4563 * sysproc.h (EDESTADDRREQ):
4564 * sysproc.h (poll_fds_for_input):
4581 Always define WIN32_LEAN_AND_MEAN.
4583 * unexcw.c (unexec):
4587 * unexec.c (copy_text_and_data):
4588 * unexec.c (adjust_lnnoptrs):
4592 * unexnt.c (_start):
4595 2000-06-07 Ben Wing <ben@xemacs.org>
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.)
4601 * s\msdos.h: Removed.
4603 * s\windows95.h: Removed.
4605 2000-06-10 Ben Wing <ben@xemacs.org>
4609 Don't use extern with fun defs.
4613 Remove nt\inc include.
4614 Remove getdisk, getdefdir. (The former is unused, the latter
4615 expanded in fileio.h.)
4618 * s\windowsnt.h (WIN32_NATIVE):
4619 * s\windowsnt.h (HAVE_STRCASECMP):
4621 Add long comment about preprocessor changes.
4622 Remove getdisk, getdefdir. (The former is unused, the latter
4623 expanded in fileio.h.)
4625 2000-06-10 Ben Wing <ben@xemacs.org>
4634 Remove bogus/unused NO_SOCK_SIGIO.
4636 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
4638 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
4641 2000-06-04 Mike Sperber <mike@xemacs.org>
4643 * casetab.c (set_case_table): For `set-standard-case-table',
4644 actually deposit the new case tables where the rest of XEmacs can
4647 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
4649 * data.c (Faset): Don't cast XCHAR() to unsigned char.
4651 2000-06-05 Ben Wing <ben@xemacs.org>
4653 * callproc.c (child_setup): Don't do close_load_descs() under
4654 MS Windows. Put in a comment explaining why.
4656 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
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.
4662 2000-06-01 Andreas Jaeger <aj@suse.de>
4664 * s/s390.h: Support for S390, based on a patch by Martin
4665 Schwidefsky <schwidefsky@de.ibm.com>.
4667 2000-05-30 Andy Piper <andy@xemacs.org>
4669 * window.c (allocate_window):
4670 (make_dummy_parent):
4671 (Fset_window_configuration): use new hashtable type.
4673 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
4674 (struct image_instantiator_methods):
4675 (struct Lisp_Image_Instance): make instance geometry signed.
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.
4688 * glyphs-widget.c (widget_query_geometry):
4690 (button_query_geometry):
4691 (tree_view_query_geometry):
4692 (tab_control_query_geometry):
4693 (layout_query_geometry):
4695 (native_layout_layout): make instance geometry signed.
4697 2000-05-29 Olivier Galibert <galibert@pobox.com>
4699 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
4702 * general.c (syms_of_general): Add Qfull_assoc symbol.
4704 * data.c (finish_marking_weak_lists): Mark full-assoc lists
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.
4710 2000-05-30 Andy Piper <andy@xemacs.org>
4712 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
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.
4722 2000-05-28 Martin Buchholz <martin@xemacs.org>
4724 * XEmacs 21.2.34 is released.
4726 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
4728 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
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
4735 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
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.
4741 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4743 * unexelf.c (unexec): Search for ".data" section.
4744 Initialize new_data2_offset from old_data_index.
4745 Remove redundant check for ElfW.
4747 2000-05-23 Andy Piper <andy@xemacs.org>
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.
4753 2000-05-22 Andy Piper <andy@xemacs.org>
4755 * redisplay-output.c (compare_runes): check for non-images
4757 * glyphs.c (set_glyph_dirty_p): ditto.
4758 (update_glyph_cachel_data): ditto.
4760 * glyphs-widget.c (layout_post_instantiate): ditto.
4761 (layout_post_instantiate): ditto.
4763 * event-msw.c (mswindows_wnd_proc): warning removal.
4765 2000-05-12 Craig Lanning <CraigL@DyCon.com>
4767 * s\mingw32.h: Added #undef for CLASH_DETECTION.
4769 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
4771 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
4773 * nt.c (rva_to_section): mingw32 needs rva_to_section.
4774 (mswindows_executable_type): mingw32 now has enough headers for
4777 2000-05-20 Andy Piper <andy@xemacs.org>
4779 * console-msw.c (mswindows_output_last_error): ; -> ,
4781 2000-05-12 Andy Piper <andy@xemacs.org>
4783 * console-msw.c (FROB): compare ints with ints.
4785 2000-05-11 Andy Piper <andy@xemacs.org>
4787 * glyphs-x.c (x_finalize_image_instance): make minimal build
4790 2000-05-20 Ben Wing <ben@xemacs.org>
4793 * event-Xt.c (vars_of_event_Xt):
4794 move modifier-keys-are-sticky to event-stream.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.
4811 * event-stream.c (vars_of_event_stream):
4812 move modifier-keys-are-sticky here.
4818 implement map-range-table.
4821 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
4823 * redisplay-tty.c (reset_tty_modes):
4824 (tty_redisplay_shutdown): Adjust argument type to
4825 tty_frame_output_end.
4827 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
4829 * eval.c (Fbacktrace): Don't output a line with only right
4832 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
4834 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
4835 (Fpq_reset_poll): Ditto.
4837 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
4839 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
4841 2000-05-16 Ben Wing <ben@xemacs.org>
4844 * buffer.c (dfc_convert_to/from_internal_format):
4845 * buffer.c (reinit_vars_of_buffer):
4846 Fix conversion functions to allow reentrancy.
4849 * console-msw.c (mswindows_output_last_error):
4850 New fun, generally useful -- output a human-readable
4851 version of GetLastError() on the console.
4854 * console-msw.h (struct mswindows_frame):
4855 Changes for DeferWindowPos. Declare mswindows_output_last_error().
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.
4865 * console.h (struct console_methods):
4866 Split begin/end methods into window and frame.
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.
4876 * frame-msw.c (mswindows_init_frame_1):
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.
4886 * glyphs.c (make_image_instance_1):
4889 * gutter.c (Fredisplay_gutter_area):
4890 Use new begin/end methods.
4892 * lisp.h (Dynarr_new2):
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.
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.
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.
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.
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.
4924 * window.h (WINDOW_XFRAME):
4925 WINDOW_XFOO macros -- get locale and decode struct pointer.
4928 2000-05-12 Ben Wing <ben@xemacs.org>
4931 * emacs.c (ensure_no_quitting_from_now_on):
4932 * emacs.c (fatal_error_signal):
4933 * emacs.c (mswindows_handle_hardware_exceptions):
4935 * emacs.c (Fkill_emacs):
4936 * emacs.c (shut_down_emacs):
4937 * emacs.c (assert_failed):
4938 various improvements in fatal error handling.
4941 move preparing_for_armageddon to emacs.c.
4944 declare fatal_error_in_progress.
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.
4954 * scrollbar.c (Fscrollbar_page_up):
4955 * scrollbar.c (Fscrollbar_page_down):
4956 fix missing else. reindent.
4958 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
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.
4969 include window.h for error check functions.
4971 2000-05-11 Ben Wing <ben@xemacs.org>
4973 * cmdloop.c (Freally_early_error_handler):
4974 Display message box under windows; otherwise, message will disappear
4975 before it can be viewed.
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
4986 * general.c (syms_of_general):
4987 Some new symbols used in `mswindows-message-box'.
4990 * glyphs.c (Fset_image_instance_property):
4991 put warning in this fun.
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.
5003 Extern message-box stuff.
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.)
5012 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
5014 * glyphs.c (image_instantiate): Suppress gcc warnings.
5015 (Fmake_image_instance): Fix doc string.
5016 * specifier.c (Fmake_specifier): Ditto.
5018 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
5024 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
5026 * fns.c (Ffeaturep): Update e-mail address in doc-string.
5027 Document (featurep '(and xemacs 21.02)).
5029 2000-05-09 Ben Wing <ben@xemacs.org>
5031 * buffer.c (complex_vars_of_buffer):
5032 update modeline-format doc.
5035 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
5038 timeline of all released versions of Emacs, for use in creating
5039 authorship comments and in synching up.
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.
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
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
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.)
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.
5095 * gutter.c (Fgutter_specifier_p):
5096 * gutter.c (Fgutter_size_specifier_p):
5097 * gutter.c (Fgutter_visible_specifier_p):
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.
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.
5110 * specifier.c (Fmake_specifier):
5111 major overhaul of this doc string.
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):
5125 * specifier.h (DOMAIN_FRAME):
5126 * specifier.h (DOMAIN_LIVE_P):
5127 * specifier.h (DOMAIN_XDEVICE):
5129 add comments about problems with these macros.
5130 prototype for decode_domain.
5133 * toolbar.c (Ftoolbar_specifier_p):
5134 move doc string to `make-toolbar-specifier'.
5136 * window.c (window_unmap_subwindows_cache_mapper):
5137 *************************************************************
5138 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
5140 *************************************************************
5142 2000-05-09 Andy Piper <andy@xemacs.org>
5144 * glyphs.h: declare reset_frame_subwindow_instance_cache.
5146 * window.c (Fset_window_configuration): reset the frame subwindow
5147 cache and re-initialize the window subwindow caches.
5149 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
5151 2000-05-09 Ben Wing <ben@xemacs.org>
5153 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
5156 2000-04-26 Mike Woolley <mike@bulsara.com>
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.
5163 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
5165 * callproc.c (Fold_call_process_internal): GCPRO path
5167 2000-05-08 Jan Vroonhof <jan@xemacs.org>
5169 Patch by Bill Perry.
5171 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
5172 back data instead of #ifdef.
5173 (Fscrollbar_page_down): ditto.
5175 2000-05-07 Ben Wing <ben@xemacs.org>
5178 Kludge for defining Qmswindows_tstr.
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
5191 Removed ifdef'd out bogus code.
5192 Fixed some prototypes.
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.
5202 * ntheap.h (round_to_next):
5203 Moved the memory-mapped-file structures, macros and prototypes
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.
5211 * ntproc.c (sys_spawnve):
5212 Account for win32_ -> mswindows_.
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.
5228 * process.c (Fprocess_send_region):
5229 Takes an optional fourth argument, BUFFER, which should fix some
5230 problems with call-process.
5233 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
5236 Move ICC_BAR_CLASSES to syscommctrl.h.
5237 Add preliminary macros for MSWindows/Mule. More to come.
5240 * unexnt.c (unexec):
5241 open_output_file moved to nt.c.
5244 2000-05-05 Andy Piper <andy@xemacs.org>
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.
5250 2000-05-04 Andy Piper <andy@xemacs.org>
5252 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
5253 (x_finalize_image_instance): ungcpro on deletion.
5255 * glyphs.c (image_instantiator_format_create): give pointers a
5256 query geometry method so that the geometry is at least set.
5258 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
5259 initialize layouts if using widgets.
5261 2000-05-03 Andy Piper <andy@xemacs.org>
5263 * nt.c: remove bogus reference to sysmmsystem.h
5265 * gui-x.c (popup_selection_callback): fix no selection abort.
5267 2000-05-02 Andy Piper <andy@xemacs.org>
5269 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
5270 (mswindows_widget_instantiate): ditto.
5272 * glyphs-widget.c (initialize_widget_image_instance): initialize
5274 (widget_instantiate): cope with children and items in the same
5277 * glyphs.c (mark_image_instance): cope with children as a first
5279 (image_instance_equal): ditto.
5280 (image_instance_hash): ditto.
5281 (image_instance_changed): ditto.
5283 2000-04-30 Andy Piper <andy@xemacs.org>
5285 * glyphs.c (subwindow_query_geometry): new function. Return some
5287 (subwindow_instantiate): don't assign dimensions if none have been
5289 (image_instantiator_format_create): add subwindow_query_geometry.
5290 (print_image_instance): cope with layouts as widgets.
5292 2000-04-29 Andy Piper <andy@xemacs.org>
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.
5302 * glyphs-msw.c (mswindows_finalize_image_instance): make double
5304 (mswindows_finalize_image_instance): use the device
5305 not the domain as the domain may have died already.
5307 * glyphs-x.c (x_finalize_image_instance): ditto.
5308 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
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.
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
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.
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
5351 * redisplay.c (redisplay_frame): remove subwindow_cachel
5354 * frame.h (struct frame): remove subwindow_cachels.
5355 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
5357 * frameslots.h: add subwindow_instance_cache.
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.
5365 2000-04-27 Andy Piper <andy@xemacs.org>
5367 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
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
5374 (widget_instantiate): don't do layout stuff here.
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.
5381 * glyphs.h (struct image_instantiator_methods): return a value
5384 2000-04-26 Andy Piper <andy@xemacs.org>
5386 * glyphs.c (allocate_image_instance): make initial width and
5387 height unspecified. Set initialized to 0.
5389 * syscommctrl.h new file. Encapsulates commctrl.h.
5391 * syswindows.h new file. Encapsulates windows.h.
5393 * ntplay.c: use new syswindows.h and syscommctrl.h header.
5395 * console-msw.h: ditto.
5397 * redisplay-tty.c (tty_output_display_block): remove layout references.
5399 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
5400 window handle rather than just the frame.
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.
5414 * redisplay-x.c (x_output_display_block): recode for layouts as
5417 * redisplay-output.c (redisplay_output_layout): recode for layouts
5419 (compare_runes): remove layout references.
5421 * redisplay-msw.c (mswindows_output_display_block): recode for
5424 * glyphs-widget.c (image_instantiator_layout): remove
5425 layout_possible_dest_types.
5426 (layout_possible_dest_types): deleted.
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.
5433 2000-04-25 Andy Piper <andy@xemacs.org>
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
5447 * glyphs.h (struct image_instantiator_methods): add
5448 post_instantiate method.
5450 * glyphs.c (instantiate_image_instantiator): add post_instantiate
5453 2000-04-23 Andy Piper <andy@xemacs.org>
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.
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
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.
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
5509 2000-04-21 Andy Piper <andy@xemacs.org>
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.
5516 * window.c (mark_window_as_deleted): reset the subwindow_instance_
5519 * glyphs.h (struct Lisp_Image_Instance): device->domain.
5520 (IMAGE_INSTANCE_DOMAIN): new accessor.
5521 (XIMAGE_INSTANCE_DOMAIN): ditto.
5523 * glyphs-x.c (x_finalize_image_instance): device->domain.
5525 * glyphs-msw.c (init_image_instance_geometry): device->domain.
5526 (mswindows_finalize_image_instance): ditto.
5528 * glyphs-eimage.c (jpeg_instantiate): device->domain.
5529 (gif_instantiate): ditto.
5530 (png_instantiate): ditto.
5531 (tiff_instantiate): ditto.
5533 * glyphs.c (instantiate_image_instantiator): use domain rather
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.
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.
5558 * specifier.c (Fvalid_specifier_domain_p): add image instances as
5559 a valid specifier domain.
5561 2000-04-19 Andy Piper <andy@xemacs.org>
5563 * glyphs-widget.c (syms_of_glyphs_widget): remove
5564 widget-callback-current-channel.
5565 (vars_of_glyphs_widget): ditto.
5568 * gui.c (get_gui_callback): revert to previous behaviour.
5570 2000-04-18 Andy Piper <andy@xemacs.org>
5572 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
5573 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
5574 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
5576 * glyphs.c (image_instance_equal): add margin_width.
5577 (image_instance_hash): ditto.
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.
5585 * glyphs.c (update_widget_instances): make a normal function.
5586 (syms_of_glyphs): remove Qupdate_widget_instances.
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.
5594 2000-05-01 Martin Buchholz <martin@xemacs.org>
5596 * XEmacs 21.2.33 is released.
5598 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
5600 * make-src-depend: Allow dots in header file name.
5602 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
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
5610 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
5612 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
5613 when string length is zero.
5614 (find_charsets_in_emchar_string): Ditto.
5616 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
5618 * lisp.h: extern Qdialog and Qmenubar.
5620 * gui-x.c: added events.h.
5621 also fixed typo which made the file uncompilable.
5623 * general.c: Added Qmenubar and Qdialog
5625 2000-04-28 Ben Wing <ben@xemacs.org>
5627 * frame-msw.c (mswindows_init_frame_1):
5628 * frame-msw.c (mswindows_mark_frame):
5629 * event-msw.c (mswindows_enqueue_dispatch_event):
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.
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.
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.
5647 * glyphs-widget.c (VALID_GUI_KEYWORDS):
5650 * glyphs.c (print_image_instance):
5651 prettify, e.g. now prints widget type.
5654 certain funs have new image instance parameter.
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.
5670 * gui.h (struct Lisp_Gui_Item):
5671 recognize callback-ex in a number of places.
5673 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5674 new parameter in button_item_to_widget_value.
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.
5687 * event-Xt.c (enqueue_Xt_dispatch_event):
5688 this fun gets exported.
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.
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.
5705 * fns.c (Freplace_list):
5706 fix small typo in doc string.
5709 declare enqueue_Xt_dispatch_event.
5711 2000-04-28 Ben Wing <ben@xemacs.org>
5714 * buffer.c (Frecord_buffer):
5715 * buffer.c (syms_of_buffer):
5716 delete record-buffer-hook.
5719 * fns.c (Freplace_list):
5720 * fns.c (syms_of_fns):
5721 new primitive replace-list.
5724 slot for old buffer-alist.
5730 * redisplay.c (redisplay_frame):
5731 * redisplay.c (syms_of_redisplay):
5732 * redisplay.c (vars_of_redisplay):
5733 new hook buffer-list-changed-hook.
5736 2000-04-27 Ben Wing <ben@xemacs.org>
5738 * extents.h: extern in_modeline_generation.
5740 * redisplay.c (generate_formatted_string_db): set
5741 in_modeline_generation.
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.
5748 2000-04-26 Ben Wing <ben@xemacs.org>
5750 * emacs.c (vars_of_emacs): document quick-build "error-checking"
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.
5756 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
5758 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
5760 * redisplay.h (struct display_line): Add a new variable,
5763 * redisplay.c (create_text_block): Set dl->line_continuation if
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.
5771 2000-04-20 Martin Buchholz <martin@xemacs.org>
5773 * filelock.c (fill_in_lock_file_name):
5775 Check for IS_ANY_SEP instead of '/'.
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.
5783 2000-04-19 Martin Buchholz <martin@xemacs.org>
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.
5789 * md5.c: Unconditionally include ANSI header <limits.h>
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.
5795 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5797 * filelock.c (current_lock_owner): Remove unused variable o, p.
5799 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
5801 * callint.c: Remove multiply defined symbol Qlet
5802 (syms_of_callint): ditto.
5804 2000-04-14 Andy Piper <andy@xemacs.org>
5806 * general.c (syms_of_general): add last-command, this-command, let
5809 * lisp.h: declare various symbols.
5811 * glyphs.h: declare Qwidget_callback_current_channel;
5813 * glyphs-widget.c (syms_of_glyphs_widget): add
5814 Qgui_callback_current_channel.
5815 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
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
5821 * gui-x.c (popup_selection_callback): ditto.
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
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.
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
5837 (emacs_Xt_event_add_widget_actions): new function. add focus
5838 functions as actions.
5839 (init_event_Xt_late): use it.
5841 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
5843 * event-stream.c (Fdispatch_event): Doc fix.
5845 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
5847 * postgresql.c: Remove all references to PQsetenv*.
5849 * postgresql.h: Remove references to PGsetenvHandler object.
5850 * lrecord.h (lrecord_type): Ditto.
5852 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
5854 * glyphs-msw.h (struct mswindows_image_instance_data): Added
5855 real_heigh and real_width members, and accessor macros for these.
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
5863 (mswindows_create_resized_bitmap): Ditto.
5864 (mswindows_create_resized_mask): Ditto.
5866 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
5867 and bitmap to their surface size.
5869 2000-04-11 Jan Vroonhof <jan@xemacs.org>
5871 * process-unix.c (unix_send_process): Guard against process MIA
5872 after Faccept_process_output.
5874 2000-04-11 Ben Wing <ben@xemacs.org>
5876 * eval.c (unbind_to_hairy): fix brokenness introduced by
5877 nanosecond speed improvements.
5879 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
5881 * sunplay.c (init_device): To play sounds correctly, the device
5882 apparently needs to be initialized at least once by XEmacs. Make
5885 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
5887 * redisplay.c (add_margin_runes): Add text image glyph
5890 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5892 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
5893 gcc is newer than 2.5.
5895 2000-04-06 Colin Rafferty <colin@xemacs.org>
5897 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
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.
5906 2000-04-06 Andy Piper <andy@xemacs.org>
5908 * gmalloc.c (malloc): undo previous change.
5913 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
5915 * line-number.c (buffer_line_number): Revert to former version.
5917 2000-04-06 Andy Piper <andy@xemacs.org>
5919 * gmalloc.c (malloc): add error checking.
5924 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
5925 button_item_to_widget_value arg.
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.
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.
5937 * gui-x.h: change signature of button_item_to_widget_value.
5939 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
5940 button_item_to_widget_value arg.
5942 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5944 * buffer.h (struct buffer): auto_save_modified should be long.
5946 2000-04-05 Andy Piper <andy@xemacs.org>
5948 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
5950 (button_query_geometry): give a little more room so that athena
5953 2000-04-05 Andy Piper <andy@xemacs.org>
5955 * faces.c (complex_vars_of_faces): The widget face should inherit
5956 the font of the gui-element face.
5958 2000-04-04 Andy Piper <andy@xemacs.org>
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.
5965 2000-04-02 Andy Piper <andy@xemacs.org>
5967 * frame.c (change_frame_size_1): The introduction of gutters means
5968 that we need to allow 0 as a potential frame dimension.
5970 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
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.
5977 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
5979 (redisplay_output_layout): Call ensure_face_cachel_complete for
5983 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
5985 * redisplay.c (add_glyph_rune): Adding text image as text runes.
5987 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
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
5995 2000-02-02 Mike Alexander <mta@arbortext.com>
5997 Note: Some of these were committed by accident as part of other
6000 * regex.c (regex_compile): Avoid compiler warnings.
6002 * ntproc.c (sys_spawnve): Avoid compiler warnings.
6004 * nt.h: Declare term_ntproc correctly.
6006 * nt.c: Remove incorrect declaration of get_home_directory which
6007 is declared correctly in lisp.h.
6009 * keymap.c (get_keyelt): Avoid compiler warnings.
6010 (raw_lookup_key_mapper): Avoid compiler warnings.
6012 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
6014 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
6016 * filemode.c (mode_string): Avoid compiler warnings.
6018 * file-coding.c (Fcoding_system_aliasee): Add return statement to
6021 * events-mod.h: Undef some things that winuser.h defines differently.
6023 * data.c (Faset): Avoid compiler warnings.
6025 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
6027 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
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.
6033 * linuxplay.c: Use nativesound.h
6034 (play_sound_data): Return error code. Be less verbose on error.
6036 * sunplay.c: Use nativesound.h
6037 (play_sound_data): Return error code. Be less verbose on error.
6039 * ntplay.c: Use nativesound.h
6040 (play_sound_data): Return fake error code
6042 * sgiplay.c: Use nativesound.h
6043 (play_sound_data): Return error code
6045 * hpplay.c: Use nativesound.h, partially implement
6046 new error code. Break compilation until finished.
6047 (play_sound_data): error code.
6049 * nativesound.h (play_sound_file):
6050 (play_sound_data): Prototype in new header.
6052 2000-03-31 Andy Piper <andy@xemacs.org>
6054 * glyphs-widget.c: (button_query_geometry): new function. Adjust
6055 for toggle and radio buttons.
6056 (image_instantiator_buttons): use it.
6058 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
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.
6064 2000-03-31 Andy Piper <andy@xemacs.org>
6066 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
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
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.
6078 2000-03-30 Andy Piper <andy@xemacs.org>
6080 * glyphs-widget.c (image_instantiator_layout): allow standard
6081 widget keywords in layouts.
6083 * gutter.c (output_gutter): cope with nil gutter contents.
6085 * frame.c (Fset_frame_properties): add gutter docs.
6087 2000-03-29 Andy Piper <andy@xemacs.org>
6089 * toolbar-msw.c (TBSTYLE_FLAT): add.
6090 (mswindows_output_toolbar): minor fiddling.
6092 2000-03-29 Andy Piper <andy@xemacs.org>
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.
6101 2000-03-28 Mike Alexander <mta@arbortext.com>
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
6107 2000-03-28 Andy Piper <andy@xemacs.org>
6109 * gui.c (get_gui_callback): treat Quit specially.
6111 2000-03-27 Andy Piper <andy@xemacs.org>
6113 * glyphs.c (image_instantiate): be careful to check in the same
6116 2000-03-27 Didier Verna <didier@xemacs.org>
6118 * config.h.in: define the proper SMART_INCLUDE macro.
6119 handle renaming of `foo_h_path' to `foo_h_file'.
6121 * database.c: ditto.
6125 * linuxplay.c: ditto.
6127 * terminfo.c: ditto.
6129 * tooltalk.h: ditto.
6131 2000-03-27 Andy Piper <andy@xemacs.org>
6133 * glyphs-msw.c (mswindows_update_widget): make sure the widget
6134 gets updated whenever the face might have changed.
6136 2000-03-26 Mike Alexander <mta@arbortext.com>
6138 * dumper.c (pdump_resource_free): Fix the comment.
6140 2000-03-21 Olivier Galibert <galibert@pobox.com>
6142 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
6144 2000-03-22 Mike Alexander <mta@arbortext.com>
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.
6150 2000-03-25 Mike Alexander <mta@arbortext.com>
6152 * gui.c (copy_gui_item_tree): Return a value in all cases
6154 2000-03-21 Didier Verna <didier@xemacs.org>
6156 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
6158 (SMART_INCLUDE): new macro.
6159 (POSTGRES_INCLUDE): new macro to include postgresql headers from
6160 the proper location.
6162 * postgresql.c: use it.
6166 2000-03-24 Andy Piper <andy@xemacs.org>
6168 * gutter.c (redraw_exposed_gutters): must be "in display" when we
6171 2000-03-24 Andy Piper <andy@xemacs.org>
6173 * redisplay-output.c (compare_runes): use image_instance_changed
6174 to detect changes. Do not depend on glyphs_changed, only depend on
6176 (redisplay_output_layout): add debug messages.
6177 (compare_runes): ditto.
6179 * glyphs.h: declare new functions.
6180 (struct Lisp_Image_Instance): remove percent and associated
6183 * gui.h: declare new copying functions.
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.
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.
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.
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.
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
6215 (image_instantiate): add error checking.
6217 * gutter.c (syms_of_gutter): use -hook.
6219 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
6221 * console-tty.c (Fset_console_tty_input_coding_system): Use
6223 (Fset_console_tty_output_coding_system): Use Qterminal.
6224 (tty_init_console): Use Qkeyboard and Qterminal.
6226 2000-03-21 Ben Wing <ben@xemacs.org>
6228 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
6229 From Mike Alexander <mta@arbortext.com>.
6231 2000-03-21 Ben Wing <ben@xemacs.org>
6233 * event-msw.c (mswindows_need_event): Horrible kludge to fix
6234 process brokenness. Proper implementation to come.
6236 Rename call-process-internal to old-call-process-internal.
6237 New impl. in process.el.
6239 2000-03-21 Martin Buchholz <martin@xemacs.org>
6241 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
6243 2000-03-20 Andy Piper <andy@xemacs.org>
6245 * glyphs.c (full_list_hash): make hashes of the same elements in
6246 different orders return different values.
6248 2000-03-20 Martin Buchholz <martin@xemacs.org>
6250 * XEmacs 21.2.32 is released.
6252 2000-03-20 Martin Buchholz <martin@xemacs.org>
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*
6259 * eldap.c (Fldap_open):
6260 (Fldap_search_basic):
6263 Make C++-compilable.
6264 Make sure GCPRO'ed variables are initialized.
6265 Use temp variables to avoid repeated calls to Flength.
6267 2000-03-16 Martin Buchholz <martin@xemacs.org>
6270 Make sure PATH_MAX is always defined.
6271 Include limits.h for PATH_MAX.
6272 Deprecate use of MAXPATHLEN.
6274 2000-03-10 Martin Buchholz <martin@xemacs.org>
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
6284 Random stylistic fiddling.
6287 2000-03-20 Andy Piper <andy@xemacs.org>
6289 * glyphs.c (image_instantiate): allow text glyphs to be
6290 instantiated in the minibuffer window.
6292 2000-03-19 Andy Piper <andy@xemacs.org>
6294 * glyphs.c (image_instance_hash): be careful about which items we
6297 * glyphs-widget.c (tab_control_set_property): record into pending
6298 items rather than the actual items.
6300 * glyphs-x.c (x_update_widget): use pending items to update with.
6302 * glyphs-msw.c (mswindows_tab_control_update): use pending items
6305 * glyphs.c (mark_image_instance): mark pending items.
6307 * window.c (Fset_window_configuration): record the buffer.
6308 (Fselect_window): totally revert previous change which breaks many
6311 2000-03-18 Andy Piper <andy@xemacs.org>
6313 * glyphs-msw.c (mswindows_tab_control_update): force selected
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
6322 * gui.c (parse_gui_item_tree_list): add probably unnecessary
6324 (parse_gui_item_tree_children): ditto.
6325 (parse_gui_item_tree_item): ditto.
6327 * glyphs.c (Fupdate_widget_instances): return something.
6329 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
6331 * window.c (Fselect_window): Undo 2000-03-17 change.
6333 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
6335 * postgresql.c (Fpq_setenv): Remove this turkey when linking
6336 against v7.0 libraries. Insta-coredump city until the postgres
6339 2000-03-17 Andy Piper <andy@xemacs.org>
6341 * faces.c (complex_vars_of_faces): don't give the widget face an
6342 inherited background pixmap.
6344 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
6347 * event-stream.c (Fdispatch_non_command_events): return something.
6349 * gutter.c (output_gutter): use widget face.
6350 (clear_gutter): ditto.
6352 * NEWS: adjust again.
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.
6359 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
6361 2000-03-16 Olivier Galibert <galibert@pobox.com>
6363 * emacs.c (Frunning_temacs_p): Revert previous patch.
6364 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
6366 2000-03-16 Andy Piper <andy@xemacs.org>
6368 * glyphs-x.c (x_tab_control_update): if no widget values then
6371 * NEWS: update for new features.
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.
6378 * events.h (struct event_stream): add force_event_pending.
6380 * specifier.c (recompute_one_cached_specifier_in_window): add
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.
6387 * redisplay-output.c (compare_runes): reorganize so that we catch
6388 glyph changes when we want them. Set optimize_output when this
6390 (redisplay_output_layout): remove frame_really_changed, use
6391 optimize_output instead.
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.
6398 * gutter.c: (specifier_vars_of_gutter): use new spec changed
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.
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.
6411 * gui-x.c (popup_selection_callback): send an eval event to call
6412 Fupdate_widget_instances.
6414 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
6415 to call Fupdate_widget_instances.
6417 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
6418 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
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.
6427 * frame-msw.c (mswindows_size_frame_internal): remove unused
6430 * faces.h (struct face_cachel): fix comment.
6432 * event-stream.c (Fdispatch_non_command_events): new
6433 function. Process non-command events, forcing an event cycle
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
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.
6457 2000-03-15 Olivier Galibert <galibert@pobox.com>
6463 * emacs.c: Moved dump file searching to dumper.c.
6464 (Frunning_temacs_p): Fixed.
6466 * alloc.c: Moved everything pdump-related to dumper.c. Removed
6467 last_lrecord_type_index_assigned.
6469 2000-02-20 Olivier Galibert <galibert@pobox.com>
6471 * symsinit.h: Added reinit parameter to init_console_stream
6474 * lisp.h: Added file parameter to pdump_load declaration.
6476 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
6477 support. Added dump file searching.
6479 * config.h.in: Added EMACS_PROGNAME.
6481 * console-stream.c (init_console_stream): Fix reinitialisation
6482 when running from temacs.
6484 * alloc.c (pdump): Add id support.
6485 (pdump_load): Add file parameter and signature/id support.
6487 * Makefile.in.in: Add full pdump support.
6489 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
6491 * postgresql.c: Update documentation to reflect latest code
6493 (print_result): Show tuple counts in printed representation when
6495 (Fpq_put_nbytes): MULE-ize.
6496 (Fpq_get_line_async): Ditto.
6498 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
6500 * postgresql.c (Fpq_lo_import): Fix return value.
6501 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
6503 2000-03-13 Ben Wing <ben@xemacs.org>
6505 * alloc.c (pdump_load):
6506 Fix compile warning under mswin.
6508 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
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.
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.
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.
6542 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
6544 * postgresql.c (vars_of_postgresql): Mule-ize.
6545 (Fpq_conn_defaults): Ditto.
6547 2000-03-12 Ben Wing <ben@xemacs.org>
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):
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):
6568 a) Added functions to manipulate the console window for use with
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.
6579 * event-Xt.c (x_event_to_emacs_event):
6580 * event-Xt.c (describe_event_window):
6581 * events-mod.h (XEMACS_MOD_CONTROL):
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):
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):
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.
6624 * console.c (complex_vars_of_console):
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.
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.
6643 * dialog.c (Fpopup_dialog_box):
6644 Documented the support for accelerators that was just mentioned.
6646 editfns.c (get_home_directory): Changed behavior under Windows
6647 when HOME not defined; former behavior was irretrievably broken.
6652 * minibuf.c (clear_echo_area_internal):
6653 * minibuf.c (echo_area_append):
6655 * print.c (std_handle_out_external):
6656 * print.c (std_handle_out_va):
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,
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
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.
6694 b) Added support for dynamic display size changes under Windows.
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):
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.
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.
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.)
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.
6740 * filemode.c (mode_string):
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.
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.
6759 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
6761 * gui-msw.c (mswindows_handle_gui_wm_command):
6762 Fixed compile warnings.
6765 * gui-x.c (strdup_and_add_accel):
6766 * gui-x.c (button_item_to_widget_value):
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.
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.
6787 * line-number.c (buffer_line_number):
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.
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.
6821 Much needed GCPROing.
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):
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.
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):
6851 a) Cleaned up a bunch of documentation and improved it.
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.
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.
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
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.)
6913 * regex.c (regex_compile): Fixed a compile warning.
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
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.
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.
6951 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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>.
6957 2000-03-11 Andy Piper <andy@xemacs.org>
6959 * window.c (make_dummy_parent): initialize subwindow instance
6961 (Fset_window_configuration): zero extent_modiff.
6963 2000-03-10 Andy Piper <andy@xemacs.org>
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
6974 * gutter.h: declare update_frame_gutter_geometry.
6976 * redisplay.h: declare redisplay_frame.
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.
6985 2000-03-11 Andy Piper <andy@xemacs.org>
6987 * alloc.c (pdump_dump_data): remove i & count shadows.
6989 2000-02-27 Mike Alexander <mta@arbortext.com>
6991 * sysdep.h: Declare pdump_read_file
6993 * sysdep.c (pdump_read_file): New function
6995 * alloc.c (pdump_load): Call pdump_read_file to get the portable
6998 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
7000 * lrecord.h: add `lrecord_type_pgsetenv'.
7002 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
7004 * symsinit.h: declare (vars|syms)_of* functions.
7005 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
7007 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
7009 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
7011 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
7014 * emacs.c (main_1): Call postgres initialization code.
7016 * postgresql.h: New file. PostgreSQL RDBMS support.
7017 * postgresql.c: New file.
7019 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
7021 * redisplay-output.c (redisplay_output_display_block): Disable
7024 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
7035 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7037 * emacs.c (main_1): Always call syms_of_gui.
7038 * inline.c: include gui.h
7040 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
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.
7051 2000-03-08 Andy Piper <andy@xemacs.org>
7053 * buffer.c (Frename_buffer): record new buffer name the right way.
7055 2000-03-08 Andy Piper <andy@xemacs.org>
7057 * glyphs.c (update_subwindow): increase hash depth so that widget
7058 items get picked up properly.
7060 * redisplay-output.c (compare_runes): increase hash depth so that
7061 widget items get picked up properly.
7063 2000-03-08 Andy Piper <andy@xemacs.org>
7065 * gutter.c (output_gutter): add some debug.
7067 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
7068 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
7069 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
7071 * redisplay-output.c (compare_runes): use display_hash to
7072 determine if glyphs really are not the same.
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.
7079 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
7081 * redisplay.h: Fix comment style.
7083 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
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.
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.
7093 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
7095 2000-03-07 Didier Verna <didier@xemacs.org>
7097 * dired.c: #include `regex.h' after `sysfile.h'.
7099 2000-03-06 Martin Buchholz <martin@xemacs.org>
7101 * sound.c (init_nas_sound): Fix compiler warning.
7103 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
7105 (MARK_STRUCT_AS_FREE):
7106 (MARK_STRUCT_AS_NOT_FREE):
7107 Make `gcc -fstrict-aliasing' work properly.
7109 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
7111 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
7112 (mswindows_delete_device): Call CoUnnitialize().
7114 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
7116 2000-02-25 <CraigL@DyCon.com>
7118 * process-nt.c: MinGW now has <shellapi.h>, but still needs
7121 * sysdep.c: This extern declaration for environ prevents MinGW
7122 from finding the variable in CRTDLL.DLL.
7124 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
7128 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
7130 (MMRESULT): Removed, now defined in cygwin's windows headers.
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.
7137 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
7139 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
7140 * syntax.c (syntax_match): Use it.
7142 * cmds.c: Import auto-fill-chars from FSF Emacs.
7143 (Vauto_fill_chars): New variables.
7144 (internal_self_insert): Check Vauto_fill_chars.
7146 Declare auto-fill-chars as a Lisp variable and initialize it.
7148 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
7150 * fileio.c (Fmake_symbolic_link):
7152 Run handlers even if local machine doesn't have symlinks.
7154 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
7156 * event-msw.c (mswindows_drain_windows_queue):
7157 Don't generate paint magic events for non-XEmacs frames.
7159 2000-03-05 Andy Piper <andy@xemacs.org>
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.
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.
7169 2000-03-05 Martin Buchholz <martin@xemacs.org>
7171 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
7173 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
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
7185 2000-03-04 Andy Piper <andy@xemacs.org>
7187 * window.h (struct window): add gutter_extent_modiff.
7189 * window.c (allocate_window): zero out gutter_extent_modiff.
7191 * redisplay.h: declare sync_display_line_structs.
7193 * redisplay.c (add_glyph_rune): add a better comment.
7195 * redisplay-output.c (sync_display_line_structs): made non-static.
7196 (compare_runes): remove unneccesary glyph cachel access.
7198 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
7200 * gutter.c (output_gutter): don't output the gutter if extent
7201 changes only involve extents in buffers. use 4 sets of display
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.
7210 * frame.h (struct frame): add 4 sets of gutter display lines.
7212 * extents.c: (extent_changed_for_redisplay): signal changes to
7213 extents in strings in the gutter as well as extents in buffers.
7215 2000-03-02 Andy Piper <andy@xemacs.org>
7217 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
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
7223 (change_frame_size_1): mark gutters changed.
7225 * device.c (Fset_device_class): mark gutters changed.
7227 2000-03-01 Andy Piper <andy@xemacs.org>
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.
7240 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
7241 (update_scrollbar_instance): ditto.
7243 * redisplay.c (generate_modeline): don't take gutters into account.
7244 (generate_modeline): ditto.
7245 (redisplay_frame): small gutter display optimization.
7247 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
7249 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
7250 gutters into account.
7252 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
7253 for window position and type.
7255 * gutter.c (get_gutter_coords): fix for frame gutters.
7256 (update_frame_gutters): update frame geometry if the gutters have
7258 (init_frame_gutters): record current gutter geometries.
7260 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
7262 (mswindows_widget_instantiate): ditto.
7264 * frame.h (struct frame): add current_gutter_bounds.
7266 * frame.c (change_frame_size_1): position window and minibuffer
7267 appropriately taking into account the frame gutters.
7269 * frame-x.c: (x_initialize_frame_size): take into account the
7272 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
7274 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
7276 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
7278 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
7280 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7282 * file-coding.c (reset_decoding_stream): Clear previous
7283 detection state when autodetect.
7285 2000-02-29 Didier Verna <didier@xemacs.org>
7287 * extents.c (set_extent_glyph_1): don't require extents to be
7290 2000-02-27 Andy Piper <andy@xemacs.org>
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.
7298 2000-02-26 Andy Piper <andy@xemacs.org>
7300 * specifier.c (Fmake_specifier): add gutter references.
7302 * gutter.h (RAW_WINDOW_GUTTER): new macro.
7304 * lisp.h: declare Fvalid_plist_p.
7306 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
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
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
7324 (reinit_specifier_type_create_gutter): ditto.
7325 (specifier_vars_of_gutter): use new specifier type for gutter
7327 (init_frame_gutters): construct real_gutter correctly.
7328 (Fgutter_specifier_p): beef up documentation.
7329 (Fgutter_size_specifier_p): ditto.
7331 * winslots.h: add real_gutter slots.
7333 2000-02-25 Andy Piper <andy@xemacs.org>
7335 * device-msw.c: Be kind to older cygwin versions. From Raymond
7336 Toy <toy@rtp.ericsson.se>.
7338 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
7339 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
7341 2000-02-25 Martin Buchholz <martin@xemacs.org>
7343 * elhash.c (MARK_OBJ): Practice macro hygiene.
7345 2000-02-24 Martin Buchholz <martin@xemacs.org>
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'
7355 2000-02-25 Andy Piper <andy@xemacs.org>
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
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.
7380 2000-02-25 Andy Piper <andy@xemacs.org>
7382 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
7385 2000-02-24 Martin Buchholz <martin@xemacs.org>
7387 * alloc.c (staticpro):
7393 (compact_string_chars):
7395 Convert: if (foo) abort(); ==> assert (! foo);
7397 * eldap.c (Fldap_search_basic):
7401 Fix compiler warnings, and possible crashes if (random) return
7402 value were to be used.
7404 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7406 * device-msw.c: Workaround ResetDC failure.
7408 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
7411 * redisplay-msw.c (get_frame_dc): Added start_page_p.
7412 (mswindows_text_width): Do not start printer page.
7414 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
7416 * glyphs-msw.c: Added image methods to msprinter console and
7417 msprinter-specific image instantiation.
7419 2000-02-20 Mike Alexander <mta@arbortext.com>
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
7425 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7428 * redisplay-msw.c (get_frame_dc):
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!
7442 2000-02-23 Andy Piper <andy@xemacs.org>
7444 * glyphs.c: add dynamic width and height elements.
7445 (image_instance_equal): ditto.
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.
7452 * glyphs.h (struct Lisp_Image_Instance): add width and height for
7453 dynamic determination. Add appropriate macros.
7455 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
7457 (WINDOW_GUTTER_SIZE): ditto.
7458 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
7460 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
7462 (get_frame_dc): ditto.
7464 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
7467 2000-02-23 Martin Buchholz <martin@xemacs.org>
7469 * XEmacs 21.2.31 is released.
7471 2000-02-22 Ben Wing <ben@xemacs.org>
7473 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
7475 2000-02-22 Andy Piper <andy@xemacs.org>
7477 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
7479 2000-02-21 Mike Sperber <mike@xemacs.org>
7483 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
7486 2000-02-21 Mike Sperber <mike@xemacs.org>
7488 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
7490 2000-02-21 Martin Buchholz <martin@xemacs.org>
7492 * XEmacs 21.2.30 is released.
7494 2000-02-20 Martin Buchholz <martin@xemacs.org>
7496 Performance hacking.
7498 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
7499 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
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.
7544 2000-02-21 Andy Piper <andy@xemacs.org>
7546 * gui-msw.c (Fmswindows_shell_execute): fix file location
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.
7553 * glyphs-widget.c (tab_control_query_geometry): don't count the
7554 first item when calculating geometry.
7556 * glyphs.c (map_subwindow): remove redundant code.
7557 (update_frame_subwindows): be more circumspect about when to
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.
7566 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
7568 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
7570 (build_syscolor_string): Use mswindows_color_to_string to try to
7572 (mswindows_device_system_metrics): Reverse the foreground and
7573 background colors so that they match the documentation.
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.
7579 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
7581 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
7583 2000-02-18 Olivier Galibert <galibert@pobox.com>
7585 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
7586 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
7588 * symbols.c (init_symbols_once_early): Removed obsolete
7589 DATA_SEG_BITS related kludge.
7590 (defvar_magic): Ditto.
7592 * malloc.c: Removed obsolete DATA_SEG_BITS
7594 * mem-limits.h: Ditto.
7596 * Makefile.in.in: Removed obsolete HAVE_SHM
7599 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
7601 * device-msw.c (mswindows_delete_device): Free DDE string
7604 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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):
7615 * menubar-msw.c (displayable_menu_item):
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):
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.
7632 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
7633 mswindows_clear_toolbar were swapped!
7635 * objects-msw.c:(colormap_t):
7637 * emacs.c (struct standard_args): Fixed const jumble.
7639 * glyphs-widget.c (update_widget): Fixed comparison notation.
7641 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
7643 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
7644 __declspec(noreturn) syntax.
7646 2000-02-19 Martin Buchholz <martin@xemacs.org>
7648 * eldap.c (Fldap_open):
7649 (Fldap_search_basic):
7652 Use new coding system conversion macros.
7654 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7656 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
7658 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
7660 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
7661 (Fldap_add, Fldap_modify, Fldap_delete): New functions
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
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
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
7678 2000-02-17 Martin Buchholz <martin@xemacs.org>
7680 * realpath.c: Determine PATH_MAX maximally portably.
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.
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.
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.
7697 2000-02-18 Martin Buchholz <martin@xemacs.org>
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.
7712 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
7714 * event-msw.c (mswindows_drain_windows_queue):
7715 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
7716 away redundant repaint events.
7718 2000-02-17 Andy Piper <andy@xemacs.org>
7720 * redisplay.h: declare mark_redisplay_structs.
7722 * redisplay.c (redisplay_window):
7723 (redisplay_frame): don't check subwindows_state_changed.
7724 (mark_redisplay): mark gutters here.
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.
7731 * gutter.c (mark_gutters): new function.
7733 * glyphs-x.c (x_update_widget): Always resize to get round a
7736 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
7737 breaking absolutely everything.
7739 * gutter.h: declare mark_gutters.
7741 2000-02-16 Martin Buchholz <martin@xemacs.org>
7743 * XEmacs 21.2.29 is released.
7745 2000-02-15 Olivier Galibert <galibert@pobox.com>
7747 * fns.c (size_bit_vector): Fix computation of the size.
7749 2000-02-15 Martin Buchholz <martin@xemacs.org>
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
7757 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
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.
7766 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
7768 * objects-msw.c (mswindows_create_font_variant): Return the new
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.
7774 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7776 * gui.c (gui_item_accelerator): Return the first underlined
7777 character in item name.
7779 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7781 * lisp.h: Added Qprinter.
7783 * general.c (syms_of_general): Initialized it.
7785 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
7787 (get_frame_compdc): Made inline.
7789 * console.h (struct console_methods): Added eject_page method.
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
7796 * defice.h: Added DEVICE_DISPLAY_P and friends.
7798 * device.c (Fdevice_printer_p): Used these.
7800 * frame.c (allocate_frame_core): Initialize page number.
7801 (Fprint_job_page_number):
7802 (Fprint_job_eject_page): Implemented.
7804 * frame-msw.c (msprinter_eject_page): Added method.
7805 (msprinter_start_page): Added.
7807 * window.c (Fwindow_truncated_p): Fixed docstring.
7808 (Fwindow_last_line_visible_height): Implemented.
7810 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
7812 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
7814 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
7816 * syntax.c (scan_words): Always advance at least one character.
7818 2000-02-13 Andy Piper <andy@xemacs.org>
7820 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
7821 to make sure the glyph is in the cachels.
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.
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.
7838 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
7839 should no longer be needed.
7841 * glyphs-x.c (x_update_widget): sanitize asserts.
7842 (x_finalize_image_instance): sanitize assignment to widgets.
7844 * glyphs-widget.c (widget_instantiate): don't need to clear the
7847 2000-02-13 Martin Buchholz <martin@xemacs.org>
7849 * sysdep.c (getcwd): Use standard prototype.
7850 * sysdep.h (getcwd): Use standard prototype.
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
7859 2000-02-12 Martin Buchholz <martin@xemacs.org>
7861 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
7863 * s/sol2.h: Remove feature macro initialization.
7865 * alloc.c (alloc_lcrecord): Add more type checking assertions.
7866 (vector_hash): New. Code from internal_hash.
7868 Fix up allocation subsystem comments.
7870 * config.h.in: Add __EXTENSIONS__ for Solaris.
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().
7877 * elhash.c (hash_table_hash): Implement it, finally.
7878 * elhash.c: Use hashcode_t.
7880 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
7881 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
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.
7891 2000-02-10 Martin Buchholz <martin@xemacs.org>
7893 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
7894 Include strings.h to avoid warnings for bzero and strcasecmp.
7896 2000-02-10 Olivier Galibert <galibert@pobox.com>
7898 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
7899 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
7901 * fns.c (size_bit_vector): New. Declare bit vectors as a
7904 2000-02-10 Olivier Galibert <galibert@pobox.com>
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.
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.
7922 * lisp.h: Declare dumpopaque and noninteractive1.
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
7930 2000-02-10 Andy Piper <andy@xemacs.org>
7932 * glyphs.c (image_instance_layout): if the size changes, mark it
7935 * redisplay-output.c (redisplay_output_layout): Update the
7937 (redisplay_output_subwindow): ditto.
7939 * glyphs.c (update_subwindow): make sure we reset flags for
7940 layouts as well as everything else.
7942 * glyphs-widget.c (layout_layout): don't need to set the instances
7945 2000-02-09 Martin Buchholz <martin@xemacs.org>
7947 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
7948 not HAVE_DLOPEN, which is a lower-level thing.
7950 * .cvsignore: Ignore gmon.out
7952 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
7954 * .cvsignore: Ignore portable dumper xemacs.dmp file
7956 2000-02-09 Andy Piper <andy@xemacs.org>
7958 * redisplay-output.c (redisplay_output_layout): be more clever
7959 about when we output based on the changed flags.
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.
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.
7977 * glyphs-x.c (x_finalize_image_instance): try and detect gc
7979 (x_update_subwindow): only resize subwindows here.
7980 (x_update_widget): new function. Update all changed properties of
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
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.
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.
8002 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
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
8008 (mswindows_tab_control_update): new function. Update the items in
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
8015 (mswindows_progress_gauge_set_property): ditto.
8016 (console_type_create_glyphs_mswindows): declare new methods.
8017 (image_instantiator_format_create_glyphs_mswindows): ditto.
8019 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
8020 (msprinter_set_frame_properties): ditto.
8022 * console.h (struct console_methods): Add update_widget_method.
8024 2000-02-09 Andy Piper <andy@xemacs.org>
8026 * gui-msw.c (Fmswindows_shell_execute): Make
8027 mswindows-shell-execute industrial strength.
8029 2000-02-08 Martin Buchholz <martin@xemacs.org>
8031 * lrecord.h: Make macro argument `props' match member function `plist'.
8035 * fns.c (Fobject_plist):
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.
8046 * extents.c: Reorder code to remove declarations.
8048 * frame.h (store_in_alist): Remove useless declaration.
8050 2000-02-07 Martin Buchholz <martin@xemacs.org>
8052 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
8053 * config.h.in: Add HAVE_XCONVERTCASE.
8055 2000-02-07 Andy Piper <andy@xemacs.org>
8057 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
8058 it breaks many things.
8060 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
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.
8066 2000-02-07 Martin Buchholz <martin@xemacs.org>
8068 * XEmacs 21.2.28 is released.
8070 2000-02-06 Martin Buchholz <martin@xemacs.org>
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.
8077 2000-02-02 Martin Buchholz <martin@xemacs.org>
8079 * menubar.c (vars_of_menubar): A small code simplification.
8081 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
8088 Use consistent style for specifying X resources.
8090 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
8091 This makes (dontusethis-set-symbol-value-handler) actually usable.
8093 * lrecord.h (lrecord_decription_type):
8094 * alloc.c (pdump_register_sub):
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.
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
8111 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
8113 2000-01-30 Martin Buchholz <martin@xemacs.org>
8115 * redisplay.c (init_redisplay): Fix small memory leak.
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.
8124 * print.c: Allow debug_print() to print readably by modifying
8125 debug_print_readably. Use consistent variable names.
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>
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.
8135 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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'.
8141 * systime.h: Do not prototype environ on windows nt and cygwin,
8142 this conflicts with system header.
8144 * syssignal.h: Use correct define for WINDOWSNT
8146 * sysdep.h: Do not prototype environ on windows nt, this conflicts
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.
8154 (end_of_data): Do not compile in if using PDUMP.
8156 * symsinit.h: Prototyped vars_of_nt().
8158 * ntproc.c (windows9x_p): Added, instead of os_subtype.
8159 (find_child_console): Use it.
8162 * ntheap.h: Do not extern os_subtype.
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.
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.
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
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.
8184 * alloc.c (Fmemory_limit): Conditionalized out.
8185 (pdump): Use OPEN_BINARY for the portable dump file.
8186 (pdump_load): Ditto.
8188 2000-02-02 Mike Alexander <mta@arbortext.com>
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.
8194 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8196 * frame.c (change_frame_size_1): Take f->internal_border_width
8197 into consideration when calculating the width of the frame.
8199 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8201 * window.c (frame_min_height):
8202 (frame_size_valid_p):
8203 (frame_pixsize_valid_p): Added.
8204 (check_frame_size): Generalized.
8206 * window.h: Prototyped the above.
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.
8213 * device-msw.c (msprinter_init_device): Do not get printer font
8214 list; Added DEVMODE functions.
8216 * frame-msw.c: Added lots of printer code.
8218 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
8221 * console-msw.h: Added more msprinter device private slots.
8223 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8225 * event-msw.c (key_needs_default_processing_p): Added.
8226 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
8228 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8230 * glyphs.c (image_instance_layout): Mark image instance as clean
8232 (glyph_dirty_p): Removed redundant function.
8233 (invalidate_glyph_geometry_maybe): Added.
8234 (update_glyph_cachel_data): Call it.
8236 * glyphs.h: Prototyped it.
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.
8242 2000-01-30 Martin Buchholz <martin@xemacs.org>
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.
8249 * symbols.c (maybe_call_magic_handler): Remove one magic number.
8251 2000-01-28 Andy Piper <andy@xemacs.org>
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.
8261 * window.h: change Fset_window_buffer signature.
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.
8268 2000-01-23 Daniel Pittman <daniel@danann.net>
8270 * config.h.in: Added template for `HAVE_ATHENA_3D'
8272 2000-01-29 Andy Piper <andy@xemacs.org>
8274 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
8276 * gutter.c (output_gutter): Don't output if the window isn't live.
8278 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8280 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
8281 of 01/12/00: Moved SetFocus back here where it belongs.
8283 2000-01-23 Andy Piper <andy@xemacs.org>
8285 * s/cygwin32.h: declare printer things.
8287 2000-01-26 Andy Piper <andy@xemacs.org>
8289 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
8292 2000-01-24 Andy Piper <andy@xemacs.org>
8294 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
8295 (mswindows_button_instantiate): Make sure glyph is a pixmap.
8297 * glyphs-widget.c (widget_instantiate): Avoid shadows.
8299 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
8301 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
8303 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
8304 (mswindows_output_display_block): Avoid local shadows.
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.
8310 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
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.
8319 * device-msw.c (build_syscolor_string): Avoid shadows.
8321 2000-01-23 Andy Piper <andy@xemacs.org>
8323 * glyphs-widget.c (widget_instantiate): reverse the items for
8324 layouts so that children are in the expected order.
8326 2000-01-28 Martin Buchholz <martin@xemacs.org>
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.
8335 * regex.c (regex_compile): Remove accidental use of trigraphs.
8337 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8339 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
8342 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8344 * event-msw.c (mswindows_drain_windows_queue): Added the
8346 (mswindows_need_event): Commented the call to
8347 mswindows_drain_windows_queue().
8348 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
8351 * console-msw.h: Moved a few function prototypes here from
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.
8358 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
8360 * sysdep.c (init_system_name):
8361 process-unix.c (unix_canonicalized_host_name):
8362 Don't call freeaddrinfo() if getaddrinfo() fails.
8364 * process-unix.c (unix_open_unix_network_stream):
8365 Moved the code to get a port # into address loop.
8367 2000-01-27 Martin Buchholz <martin@xemacs.org>
8369 * buffer.c (reinit_vars_of_buffer):
8370 The right place to initialize conversion_in_dynarr and
8371 conversion_out_dynarr.
8373 * alloc.c (pdump): Use the real open() till sys_open() is functional.
8375 * process-unix.c (unix_canonicalize_host_name): Muleize.
8376 (unix_open_network_stream): Muleize.
8378 * buffer.h: Fix up prototypes for ralloc.c functions.
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().
8388 2000-01-27 Daniel Pittman <daniel@danann.net>
8390 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
8391 libs when built with flat Athena.
8393 2000-01-27 Martin Buchholz <martin@xemacs.org>
8395 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
8396 Use coding standards for function prototypes.
8398 2000-01-25 Martin Buchholz <martin@xemacs.org>
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):
8493 * emacs.c (Fdump_emacs):
8494 * emacs.c (split_string_by_emchar_1):
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
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().
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.
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.
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.
8552 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
8554 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
8555 an unsigned char *. Update all callers.
8557 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8559 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
8561 2000-01-25 Martin Buchholz <martin@xemacs.org>
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.
8567 * mule-charset.c (make_charset): Make sure entire object is
8568 initialized, to avoid Purify warnings.
8570 * alloc.c (resize_string): Fix unlikely crash with big strings.
8572 2000-01-24 Martin Buchholz <martin@xemacs.org>
8574 * realpath.c (xrealpath):
8577 2000-01-25 Martin Buchholz <martin@xemacs.org>
8579 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
8581 1999-12-28 Max Matveev <max@melbourne.sgi.com>
8583 * unexelfsgi.c (unexec): Change the way we decide which segment
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.
8596 2000-01-25 Martin Buchholz <martin@xemacs.org>
8598 * eval.c (Feval): Wrong number of arguments should use original
8599 function, not the indirect_function version of it.
8601 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8603 * glyphs-x.c (x_button_instantiate): Don't add image if
8605 (x_locate_pixmap_file): Call Fexpand_file_name when file name
8608 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
8610 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
8612 (DEFVAR_INT_MAGIC): Ditto.
8613 (DEFVAR_BOOL_MAGIC): Ditto.
8614 * glyphs.h: Reindent backslash.
8616 2000-01-24 Martin Buchholz <martin@xemacs.org>
8618 * glyphs-widget.c (layout_query_geometry):
8619 (layout_layout): Use correct types for gheight, gwidth.
8621 2000-01-24 Martin Buchholz <martin@xemacs.org>
8623 * EmacsManager.c (QueryGeometry): Purified.
8625 2000-01-23 Martin Buchholz <martin@xemacs.org>
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.
8633 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8640 * sysdep.c: Removed redundant #include <windows.h>
8642 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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.
8649 * device-msw.c (msprinter_device_system_metrics): Implemented.
8650 (mswindows_device_system_metrics): Added 'device-dpi property.
8652 * device.c: (Fdevice_printer_p): Added.
8653 Added 'offset-workspace device metric.
8655 * console.h (device_metrics): Declared DM_offset_workspace.
8657 2000-01-23 Martin Buchholz <martin@xemacs.org>
8659 * fileio.c (Ffile_truename): Remove pointless and confusing
8660 initialization of elen.
8662 * glyphs-widget.c: Compiler warning fixes.
8664 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
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.
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.
8686 2000-01-23 Andy Piper <andy@xemacs.org>
8688 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
8691 * glyphs.c (mark_image_instance): take into account changed
8692 image_instance format.
8693 (image_instance_equal): ditto.
8694 (image_instance_hash): ditto.
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
8701 (layout_layout): layout a layout dynamically.
8702 (image_instantiator_widget): New function - splitting up
8703 image_instantiator_format_create_glyphs_widget for netwinder
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
8717 2000-01-22 Martin Buchholz <martin@xemacs.org>
8719 * process.c (Fset_process_coding_system):
8720 * device-x.c (Fx_keysym_hash_table):
8723 * lstream.c (Lstream_write): Return documented value, not 0.
8725 * fileio.c (directory_file_name):
8726 (Fsubstitute_in_file_name):
8727 (Fsubstitute_insert_file_contents_internal):
8728 (Fwrite_region_internal):
8733 Remove vestigial APOLLO-conditional code.
8735 2000-01-21 Martin Buchholz <martin@xemacs.org>
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.
8756 * opaque.c (make_opaque): Switch parameter order.
8757 * opaque.h (make_opaque): Switch parameter order.
8759 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
8761 * config.h.in (type_checking_assert): Added.
8762 (bufpos_checking_assert): Added.
8764 2000-01-21 Martin Buchholz <martin@xemacs.org>
8766 * alloc.c: Harmless pdump changes.
8768 - spell alignment correctly.
8769 * sysdep.c: Use countof()
8771 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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.
8780 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
8781 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
8782 (XDEVIMPF_FRAMELESS_OK): Added.
8783 (CONSOLE_INHERITS_METHOD): Added.
8785 * console-msw.c (mswindows_canonicalize_console_connection):
8787 (mswindows_canonicalize_device_connection): Added.
8789 * console-msw.h (struct msprinter_device): Added this struct and
8791 (mswindows_device): Made fontlist a lisp object.
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.
8798 * device-msw.c (mswindows_init_device): Call InitCommonControls
8800 (mswindows_delete_device): Removed fontlist deallocation.
8801 (mswindows_mark_device): Added.
8803 * events.c (event_equal): Added abort() at unreached code.
8804 (event_hash): Ditto.
8806 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
8807 fallback tags of Windows devices.
8809 * general.c (syms_of_general): Initialized Qmsprinter.
8811 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
8812 of fallback tags of Windows devices.
8814 * lisp.h: Declared Qmsprinter.
8816 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
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.
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.
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.
8836 2000-01-21 Olivier Galibert <galibert@pobox.com>
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.
8844 2000-01-19 Olivier Galibert <galibert@pobox.com>
8846 * alloc.c: Use a lrecord_header * in the backtrace instead of a
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
8858 2000-01-20 Martin Buchholz <martin@xemacs.org>
8860 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
8862 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
8864 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
8866 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
8868 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8870 * faces.h (FACE_STRIKETHRU_P): Added.
8872 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
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.
8879 * objects-msw.h (struct mswindows_font_instance_data): Added
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
8886 (mswindows_print_font_instance): Print at least something.
8887 (mswindows_create_font_variant): Implemented.
8888 (mswindows_get_hfont): Implemented.
8890 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
8892 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
8893 prototyping problem with msvc.
8895 * emacs.c (main_1): added syms_of_gui_mswindows() call
8897 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
8898 syms_of_gui_mswindows() function
8900 * symsinit.h: added the prototype for syms_of_gui_mswindows()
8902 2000-01-18 Martin Buchholz <martin@xemacs.org>
8904 * XEmacs 21.2.27 is released.
8906 2000-01-18 Martin Buchholz <martin@xemacs.org>
8908 * glyphs-eimage.c (struct tiff_error_struct):
8910 (tiff_warning_func):
8911 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
8916 * unexec.c: Remove vestigial Lucid C code.
8921 Remove declarations of errno and strerror().
8923 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
8925 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
8927 2000-01-16 Martin Buchholz <martin@xemacs.org>
8929 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
8932 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
8937 Change enum eol_type to eol_type_t.
8939 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
8941 * gui.c (get_gui_callback): Check cons before accessing car.
8943 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
8945 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
8946 (XSETSPECIFIER_TYPE): Ditto.
8948 2000-01-17 Didier Verna <didier@xemacs.org>
8950 * redisplay.c (generate_fstring_runes): compute string size in
8951 characters, not bytes.
8953 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
8955 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
8957 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
8959 * print.c (print_error_message): Call print_prepare().
8961 2000-01-14 Martin Buchholz <martin@xemacs.org>
8963 * .dbxrc: Renamed from dbxrc.
8965 * events.c (event_to_character):
8966 Use `assert (foo)' instead of `if (!foo) abort()'
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.
8974 2000-01-14 Andy Piper <andy@xemacs.org>
8976 * glyphs-widget.c (widget_query_geometry): Make sure that we
8977 calculate default dimensions correctly.
8979 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8981 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
8983 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
8984 pdump_wire'd variable.
8986 * emacs.c: (main_1): Conditionalized calls to
8987 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
8989 2000-01-13 Martin Buchholz <martin@xemacs.org>
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.
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.
9001 2000-01-13 Andy Piper <andy@xemacs.org>
9003 * glyphs-x.c (update_widget_face): Make sure we update the widget
9004 background as well as foreground.
9006 2000-01-13 Andy Piper <andy@xemacs.org>
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.
9015 * glyphs-widget.c (check_valid_tab_orientation): new function.
9016 (initialize_widget_image_instance): zero orientation and
9018 (widget_instantiate): pick up orientation.
9019 (tab_control_query_geometry): return appropriate values for
9022 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
9023 appropriate creation flags for left, right and bottom tabs.
9025 * s/cygwin32.h: add tab definitions.
9027 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
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
9033 (mswindows_button_instantiate): Removed button BS_NOTIFY
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.
9054 2000-01-12 Didier Verna <didier@xemacs.org>
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.
9063 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
9064 glyphs'extents in the modeline.
9066 1999-01-11 Mike Woolley <mike@bulsara.com>
9068 * ntheap.c: Reduced the reserved heap space from 1Gb down to
9069 256Mb, as a workaround for the non-starting problem many people
9072 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
9074 * console-tty.c (Fset_console_tty_output_coding_system):
9075 Force redrawing tty frame.
9077 2000-01-10 Didier Verna <didier@xemacs.org>
9079 * redisplay.c (generate_fstring_runes): fix size computation bug.
9081 2000-01-09 William M. Perry <wmperry@aventail.com>
9083 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
9085 2000-01-09 Andy Piper <andy@xemacs.org>
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.
9092 * glyphs-x.c (x_update_subwindow): remove unused args.
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.
9101 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
9103 * insdel.c (signal_after_change): Remove extraneous unbind_to().