Mercurial > hg > xemacs-beta
view src/ChangeLog @ 1116:3bcd77d0bf93
[xemacs-hg @ 2002-11-22 12:57:09 by ben]
file-truename and other crash
fileio.c: Fix crashes due to incorrectly ported code from
FSF.
realpath.c: Don't return EIO when a filename is incorrect,
since the I/O error gets passed all the way up. Clean up this
file and avoid using macros as a poor-man's dispatch mechanism --
it just makes it impossible to follow the code.
author | ben |
---|---|
date | Fri, 22 Nov 2002 12:57:11 +0000 |
parents | 184461bc8de4 |
children | 37bdd24225ef |
line wrap: on
line source
2002-11-22 Ben Wing <ben@xemacs.org> * fileio.c: Fix crashes due to incorrectly ported code from FSF. * realpath.c: Don't return EIO when a filename is incorrect, since the I/O error gets passed all the way up. Clean up this file and avoid using macros as a poor-man's dispatch mechanism -- it just makes it impossible to follow the code. 2002-11-17 Ben Wing <ben@xemacs.org> * s/cygwin32.h: * s/cygwin32.h (TEXT_START): -fvtable-thunks is obsolete in GCC 3 and generates warnings. * s/mingw32.h: * s/windowsnt.h: Comment fixes. 2002-11-17 Ben Wing <ben@xemacs.org> * emodules.h: Fix warnings from redefining symbols. * eval.c: * eval.c (call_with_condition_handler): * eval.c (run_post_gc_hook): * eval.c (Ffuncall): Fix C++ errors -- no automatic casting between function pointers and void *, function declarations inside of functions not allowed. * event-Xt.c (emacs_Xt_enqueue_focus_event): Warning fixes. * fileio.c (Ffile_truename): Warning fixes. Use LOCAL_TO_WIN32_FILE_FORMAT rather than duplicating it. * glyphs-x.c: * glyphs-x.c (x_map_subwindow): Fix style. * intl-auto-encap-win32.c: * intl-auto-encap-win32.h: * intl-encap-win32.c: * intl-encap-win32.c (qxeRegConnectRegistry): * syswindows.h (RegConnectRegistry): DdeCreateStringHandle needs to be manual due to new Cygwin bug. * intl-win32.c: * intl-win32.c (wcscmp): * intl-win32.c (wcslen): wcslen/wcscmp don't seem to exist under G++ 3, Cygwin. * lisp.h: * lisp-union.h: * lisp-disunion.h: * process-unix.c (unix_send_process): Ugh, C needs volatile and C++ must not have volatile. Remove previous volatile hacks, which don't seem to be working any more. * sheap.c (STATIC_HEAP_SLOP): Try to get a working Cygwin build with old unexec. * sheap.c (more_static_core): No NL's in literals allowed. * symbols.c (Fset): Fix C++ errors. * syswindows.h: * syswindows.h (struct): * syswindows.h (tagNMDATETIMEFORMATW): * syswindows.h (tagNMTTDISPIFNOA): * syswindows.h (tagNMTTDISPINFOW): Fix Cygwin complaints now that some missing structs have been added. 2002-10-14 Jerry James <james@xemacs.org> * alloc.c: Unconditionally use LISP_FLOAT_TYPE code. * bytecode.c: Ditto. * data.c: Ditto. * ecrt0.c: Ditto. * emacs.c: Ditto. * event-stream.c: Ditto. * floatfns.c: Ditto. * lisp.h: Ditto. * lread.c: Ditto. * print.c: Ditto. * config.h.in: Remove LISP_FLOAT_TYPE entry. * s/windowsnt.h: Remove LISP_FLOAT_TYPE definition. 2002-10-10 Stephen J. Turnbull <stephen@xemacs.org> * emacs.c (shut_down_emacs): Improve crash message. 2002-10-17 Raymond Toy <toy@rtp.ericsson.se> * nas.c: Update for NAS 1.6 and later, from Jon Trulson. Was using the NAS private array SoundFileInfo that no longer exists in NAS 1.6 and later. Preserve backward compatibility with NAS 1.5a and earlier. This is broken for some versions between 1.5a and 1.5f. 2002-10-20 Stephen Turnbull <steve@tleepslib1> * ExternalClient.c (externalClientRealize): Suppress "unused" warning. 2002-10-19 Stephen Turnbull <stephen@xemacs.org> * extw-Xt.c (isMine): Suppress signed-unsigned compare warning. 2002-10-19 Stephen Turnbull <stephen@xemacs.org> * mule-canna.c (Fcanna_touroku_string): (Fcanna_change_mode): (Fcanna_do_function): Fix "unused variable" warnings. 2002-10-18 Stephen Turnbull <stephen@xemacs.org> * event-Xt.c (enqueue_focus_event): Prototype it. 2002-10-24 Andy Piper <andy@xemacs.org> * glyphs-widget.c (layout_query_geometry): add in fiddle factor. Include border text in width layout calculation. (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10. 2002-10-24 John Paul Wallington <jpw@shootybangbang.com> * fns.c (Frequire): Add optional `noerror' argument. 2002-10-24 Andy Piper <andy@xemacs.org> * glyphs-widget.c (layout_query_geometry): only resize dynamically if static sizes haven't been set. 2002-09-21 Stephen J. Turnbull <stephen@xemacs.org> * extents.c (Fset_extent_property): Document `syntax-table' property. 2002-08-20 Ben Sigelman <bhsigelm@cs.brown.edu> * event-Xt.c (drain_X_queue): loop over while(XEventsQueued()) instead of while(XtAppPending()&XtIMXEvent). Upon a gdm logout, the xemacs process did not exit, but looped infinitely here. This fixes that problem. 2002-10-04 Stephen J. Turnbull <stephen@xemacs.org> * regex.c (re_match_2_internal): Declare num_nonshy_regs in enclosing scope. 2002-09-09 Stephen J. Turnbull <stephen@xemacs.org> * search.c (clear_unused_search_regs): New static function. (search_buffer): (simple_search): (boyer_moore): Use it. Fixes "stale match data" bug reported by Martin Stjernholm. Minor clarifications in comments. * regex.c (re_match_2_internal): Ensure no stale submatches. 2002-09-26 Golubev I. N. <gin@mo.msk.ru> * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed widget. 2002-09-22 Mike Sperber <mike@xemacs.org> * specifier.c (specifier_add_spec): Don't do anything if NILP (inst_list)---otherwise, assertions in the rest of the specifier code get violated. 2002-09-20 Mike Sperber <mike@xemacs.org> (This partially gets back my patch from 2002-07-20 without the bug.) * process-unix.c (child_setup): Remove Ben's comment noting confusion over the file descriptors >= 3: close_process_descs() doesn't close all. Fix fd range to go up to MAXDESC-1 instead of 64. (unix_create_process): Call begin_dont_check_for_quit to inhibit unwanted interaction (and thus breaking of X event synchronicity) in the child. 2002-08-08 Jerry James <james@xemacs.org> * Makefile.in.in: ldap.o and postgresql.o have moved. * alloc.c (unstaticpro_nodump_1): New function. * alloc.c (unstaticpro_nodump): Ditto. * depend: Regenerate. * eldap.c: Move to modules/ldap. * eldap.h: Ditto. * emacs.c (main_1): Call LDAP and PostgreSQL initialization functions only if they are not modules. * emodules.c: Define EMODULES_DO_NOT_REDEFINE to skip changes to core functions and macros made in emodules.h. * emodules.c (unloading_module): New variable to flag when a module unload is in progress. * emodules.c (emodules_list): New member unload, to hold a function for doing module cleanup at unload time. * emodules.c (Fload_module): Note that users should not call this function directly. * emodules.c (Funload_module): Ditto. Compile it. Call the module's unload function if it has one. * emodules.c (emodules_load): Stop working around formerly broken build_string() declaration. Update load-history for module unloading. * emodules.c (syms_of_module): Add new symbols. * emodules.c (vars_of_module): Add unloading-module. Make Vmodule_extensions use the new format. * emodules.h: Block paths from module code into the dump_add* functions. * emodules.h (EMODULES_VERSION): New version. * fileio.c: Add Qfile_name_nondirectory for use in emodules.c. * inline.c: eldap.h and postgresql.h have moved. * lisp.h: Add unstaticpro_nodump, unloading_module, Qmodule, and Qfile_name_sans_extension declarations. * lisp.h (Dynarr_delete_object): New macro. * lrecord.h (UNDEF_LRECORD_IMPLEMENTATION): New macro. * lrecord.h (UNDEF_EXTERNAL_LRECORD_IMPLEMENTATION): New macro. * postgresql.c: Move to modules/postgresql. * postgresql.h: Ditto. * symbols.c (reject_constant_symbols): Allow it if we are unloading a module. * symbols.c (Fset): Allow unbinding constant value forward symbols if we are unloading a module. * symbols.c (defsubr): Update the load history for modules. * symbols.c (defsubr_macro): Ditto. * symbols.c (defvar_magic): Ditto. 2002-08-29 Jerry James <james@xemacs.org> * eldap.c: Put #endif tokens in a comment. * eldap.c (Fldap_status): * eldap.c (syms_of_eldap): * eldap.h: Change to Fldap_live_p to match Lisp name. 2002-08-19 Andy Piper <andy@xemacs.org> * fileio.c (Ffile_truename): on cygwin using win32 normalize to win32 format. * realpath.c (xrealpath): normalize drive spec also so that dir sep chars are not mixed on cygwin. 2002-09-01 Mike Alexander <mta@arbortext.com> * event-msw.c (winsock_closer): Use closesocket, not CloseHandle to close a socket. 2002-08-31 Seiichi Ikiuo <ikiuo@polyphony.co.jp> * file-coding.h (detection_result): fix DET_LOWEST. * mule-coding.c (big5_detector): Add member 'seen_euc_char'. (big5_detect): It was made not to become the trouble of EUC. (iso2022_detector): Add member 'longest_even_high_byte'. (iso2022_detect): Fix checking for even/odd_high_byte_group. The judgment of EUC is changed. * unicode.c: Add DETECTOR_CATEGORY utf_8_bom. (utf_8_detector): Add member byteno, first_byte and second_byte. (utf_8_detect): The judgment of UTF-8-BOM is added. 2002-08-30 Steve Youngs <youngs@xemacs.org> * XEmacs 21.5.9 "brussels sprouts" is released. 2002-08-29 Jerry James <james@xemacs.org> * lisp.h: structrures -> structures. 2002-08-21 Jerry James <james@xemacs.org> * getloadavg.c: Substitute syssignal.h for signal.h. * malloc.c: Ditto. * unexhp9k3.c: Ditto. * syssignal.h: Put NSIG setting code for SVR4 here. * s/usg5-4.h: Don't include signal.h. Remove NSIG setting code, since signal.h has not yet been included. 2002-08-16 Steve Youngs <youngs@xemacs.org> * config.h.in (XEMACS_EXTRA_NAME): New. * emacs.c (vars_of_emacs): Use it. 2002-08-22 Stephen J. Turnbull <stephen@xemacs.org> * eval.c (do_autoload): GCPRO both arguments and a local Lisp_Object. * callint.c (Fcall_interactively): * eval.c (function_argcount): (Fmacroexpand_internal): (Fcommand_execute): (Feval): (Ffuncall): * keymap.c (get_keymap): * lisp.h (do_autoload): Add comment that do_autoload GCPROs both arguments. 2002-08-20 Stephen J. Turnbull <stephen@xemacs.org> * extents.c (SOE_DEBUG): Warn not to use this until debugging functions are rewritten. 2001-08-13 Dmitry Astapov <adept@umc.com.ua> * event-Xt.c (maybe_define_x_key_as_self_inserting_character): Don't bogusly reinitialize ascii_character property. 2002-08-13 David Bush <David.Bush@intel.com> * device-msw.c: Correct initialization list for devmode_description Add dumpable flag to msprinter-settings for USE_KKCC * dialog-msw.c: Add dumpable flag to mswindows-dialog-id for USE_KKCC * event-msw.c (mswindows_enqueue_misc_user_event): With USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_enqueue_magic_event): With USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_enqueue_process_event): With USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_enqueue_mouse_button_event): Reorder event setup so event type is set first to support USE_KKCC. For USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_enqueue_keypress_event): With USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_dequeue_dispatch_event): With USE_KKCC use accessor to get and mutator macros to set event parameters * event-msw.c (mswindows_cancel_dispatch_event): With USE_KKCC use accessor macros to get event parameters * event-msw.c (mswindows_wm_timer_callback): With USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_dde_callback): With USE_KKCC use mutator macros to set event parameters * event-msw.c (mswindows_wnd_proc): With USE_KKCC use mutator macros to set event parameters * event-msw.c (emacs_mswindows_remove_timeout): With USE_KKCC use mutator macros to set event parameters * event-msw.c (emacs_mswindows_format_magic_event): With USE_KKCC use accessor macro to access magic event type * event-msw.c (emacs_mswindows_compare_magic_event): With USE_KKCC use accessor macro to access magic event type * event-msw.c (emacs_mswindows_hash_magic_event): With USE_KKCC use accessor macro to access magic event type * event-msw.c (emacs_mswindows_handle_magic_event): With USE_KKCC use accessor macro to access magic event type and event data * event-msw.c (emacs_mswindows_quit_p): With USE_KKCC use event accessor and mutator macros to get/set event parameters * gui-msw.c (mswindows_handle_gui_wm_command): For USE_KKCC use mutator macros to set event parameters. Make the event data type match the event type. * menubar-msw.c (mswindows_popup_menu): With USE_KKCC use accessor macros to extract button position 2002-08-12 David Bush <David.Bush@intel.com> * events.c: Use DEFINE_BASIC_LRECORD_IMPLEMENTATION instead of DEFINE_LRECORD_IMPLEMENTATION for the new event data objects to cause the objects to be flagged as basic. 2002-08-08 Jerry James <james@xemacs.org> * s/linux.h: Turn ORDINARY_LINK on for Linux. 2002-08-02 Marcus Crestani <crestani@informatik.uni-tuebingen.de> Additions for USE_KKCC: * tooltalk.c: Add dumpable-flag to tooltalk_message and tooltalk_pattern. * ui-gtk.c: Add dumpable-flag to emacs_ffi and emacs_gtk_object. Add description for emacs_gtk_boxed. 2002-08-12 Mike Sperber <mike@xemacs.org> * event-Xt.c (x_to_emacs_keysym): (enqueue_focus_event): Properly initialize event type for USE_KKCC (due to suggestions from David Bush <David.Bush@intel.com>). 2002-08-06 Jerry James <james@xemacs.org> * window.c (Fsplit_window): Count only half of the divider width against the left window when splitting horizontally. 2002-07-29 Jerry James <james@xemacs.org> * lread.c (locate_file): Any nonnegative return value indicates success if MODE is nonnegative. 2002-08-03 Brian A Palmer <bpalmer@rescomp.Stanford.EDU> * fns.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required argument. 2002-08-03 Steve Youngs <youngs@xemacs.org> * objects-gtk.c: Fix '--with-mule' '--with-gtk' builds. From Vaclav Barta <vbar@comp.cz>. 2002-08-02 Marcus Crestani <crestani@informatik.uni-tuebingen.de> * postgresql.c: Add dumpable-flag to pgconn and pgresult for USE_KKCC. 2002-07-31 Didier Verna <didier@xemacs.org> * file-coding.c (make_coding_system_1): Add missing call to `xfree (newname)'. * fix memory leak introduced by 2002-04-14 Ben Wing <ben@xemacs.org>: alloc.c (Fmake_byte_code): don't xnew_array of size 0. (sweep_compiled_functions): define ADDITIONAL_FREE_compiled_function to free the args field when needed. 2002-07-31 David Bush <David.Bush@intel.com> * eldap.c: Add the dumpable-flag to the USE_KKCC version of DEFINE_LRECORD_IMPLEMENTATION for "ldap" 2002-08-01 Mike Sperber <mike@xemacs.org> * event-stream.c: * event-Xt.c: * events.h: * events.c: * alloc.c: Fix various kkcc-related nits that show up in MULE and union-type builds. 2002-07-31 David Bush <David.Bush@intel.com> * events.c (event_equal): Correct comparison in MS Windows conditional code to use event structure defined for -use-kkcc. 2002-07-29 Sean MacLennan <seanm@seanm.ca> * glyphs-x.c (x_locate_pixmap_file): Test path not to be 0, before using it. 2002-07-29 Jonathan Harris <jonathan@xemacs.org> * s/win32-native.h: Define HAVE_WCHAR_H for native Win32 build. 2002-07-17 Marcus Crestani <crestani@informatik.uni-tuebingen.de> Markus Kaltenbach <makalten@informatik.uni-tuebingen.de> Mike Sperber <mike@xemacs.org> configure flag to turn these changes on: --use-kkcc First we added a dumpable flag to lrecord_implementation. It shows, if the object is dumpable and should be processed by the dumper. * lrecord.h (struct lrecord_implementation): added dumpable flag (MAKE_LRECORD_IMPLEMENTATION): fitted the different makro definitions to the new lrecord_implementation and their calls. Then we changed mark_object, that it no longer needs a mark method for those types that have pdump descritions. * alloc.c: (mark_object): If the object has a description, the new mark algorithm is called, and the object is marked according to its description. Otherwise it uses the mark method like before. These procedures mark objects according to their descriptions. They are modeled on the corresponding pdumper procedures. (mark_with_description): (get_indirect_count): (structure_size): (mark_struct_contents): These procedures still call mark_object, this is needed while there are Lisp_Objects without descriptions left. We added pdump descriptions for many Lisp_Objects: * extents.c: extent_auxiliary_description * database.c: database_description * gui.c: gui_item_description * scrollbar.c: scrollbar_instance_description * toolbar.c: toolbar_button_description * event-stream.c: command_builder_description * mule-charset.c: charset_description * device-msw.c: devmode_description * dialog-msw.c: mswindows_dialog_id_description * eldap.c: ldap_description * postgresql.c: pgconn_description pgresult_description * tooltalk.c: tooltalk_message_description tooltalk_pattern_description * ui-gtk.c: emacs_ffi_description emacs_gtk_object_description * events.c: * events.h: * event-stream.c: * event-Xt.c: * event-gtk.c: * event-tty.c: To write a pdump description for Lisp_Event, we converted every struct in the union event to a Lisp_Object. So we created nine new Lisp_Objects: Lisp_Key_Data, Lisp_Button_Data, Lisp_Motion_Data, Lisp_Process_Data, Lisp_Timeout_Data, Lisp_Eval_Data, Lisp_Misc_User_Data, Lisp_Magic_Data, Lisp_Magic_Eval_Data. We also wrote makro selectors and mutators for the fields of the new designed Lisp_Event and added everywhere these new abstractions. We implemented XD_UNION support in (mark_with_description), so we can describe exspecially console/device specific data with XD_UNION. To describe with XD_UNION, we added a field to these objects, which holds the variant type of the object. This field is initialized in the appendant constructor. The variant is an integer, it has also to be described in an description, if XD_UNION is used. XD_UNION is used in following descriptions: * console.c: console_description (get_console_variant): returns the variant (create_console): added variant initialization * console.h (console_variant): the different console types * console-impl.h (struct console): added enum console_variant contype * device.c: device_description (Fmake_device): added variant initialization * device-impl.h (struct device): added enum console_variant devtype * objects.c: image_instance_description font_instance_description (Fmake_color_instance): added variant initialization (Fmake_font_instance): added variant initialization * objects-impl.h (struct Lisp_Color_Instance): added color_instance_type * objects-impl.h (struct Lisp_Font_Instance): added font_instance_type * process.c: process_description (make_process_internal): added variant initialization * process.h (process_variant): the different process types 2002-07-27 Steve Youngs <youngs@xemacs.org> * XEmacs 21.5.8 "broccoli" is released. 2002-07-25 Steve Youngs <youngs@xemacs.org> * process-unix.c (child_setup): (unix_create_process): Revert Mike's patch of 2002-07-20. 2002-07-20 Mike Sperber <mike@xemacs.org> * eval.c (run_post_gc_hook): Use more correct flags when running post-gc-hook. 2002-07-20 Mike Sperber <mike@xemacs.org> * process-unix.c (child_setup): Don't try to close file descriptors for chid process once again---it's already being done in close_process_descs. (unix_create_process): Call begin_dont_check_for_quit to inhibit unwanted interaction (and thus breaking of X event synchronicity) in the child. 2002-07-15 Jerry James <james@xemacs.org> * lisp.h: Make Qdll_error visible globally. * symbols.c (check_sane_subr): Revert 2002-06-26 change. Check only if !initialized. * symbols.c (check_module_subr): Add parameter. Duplicate check_sane_subr checks, but signal an error instead of asserting. * symbols.c (defsubr): Use check_module_subr parameter. * symbols.c (defsubr_macro): Ditto. 2002-07-09 Mike Sperber <mike@xemacs.org> * config.h.in: Add USE_KKCC variable to enable upcoming new GC algorithms. 2002-07-14 Mike Alexander <mta@arbortext.com> * event-msw.c (mswindows_need_event): Don't wait for a new message if the queue is not empty. Suggested by Paul Moore. 2002-07-08 Stephen J. Turnbull <stephen@xemacs.org> * lisp.h: Declare Fcdr_safe to be callable from C. 2002-07-08 Hrvoje Niksic <hniksic@xemacs.org> * eval.c (Ffunctionp): Return nil for autoloaded macros and keymaps. 2002-07-08 Daiki Ueno <daiki@xemacs.org> * glyphs-x.c (x_unmap_subwindow): Deal with the substantial windows. (x_map_subwindow): Likewise. 2002-07-08 Mike Sperber <mike@xemacs.org> * text.h: Only include wchar.h if we have it; define wcslen prototype if we don't. * config.h.in: Add stub for HAVE_WCHAR_H. * sysdep.c (wcslen): Added definition for systems which don't have it. 2002-07-08 Mike Sperber <mike@xemacs.org> * process.c (Fstart_process_internal): Do error checking before we fork off the child, so the child can't muck with the state of the parent. 2002-07-08 Mike Sperber <mike@xemacs.org> * ralloc.c (init_ralloc): Allocate properly for pdump. * emacs.c (main_1): Revert init_ralloc patch in favor of an easier-to-understand solution. 2002-07-05 David Bush <David.Bush@intel.com> * console-msw-impl.h (struct Lisp_Devmode): Lisp_Devmode is typedef'ed in console-msw.h, don't do it again with the structure definition 2002-06-26 Jerry James <james@xemacs.org> * symbols.c (check_sane_subr): Let the symbol be bound if it is an autoload cookie. 2002-06-24 Andy Piper <andy@xemacs.org> * toolbar-x.c (console_type_create_toolbar_x): declare x_clear_frame_toolbars. * toolbar-gtk.c (console_type_create_toolbar_gtk): ditto. * toolbar-common.h (common_clear_frame_toolbars): ditto. * toolbar-common.c (COMMON_OUTPUT_BUTTONS_LOOP): output button if whole toolbar was cleared. * toolbar-msw.c (mswindows_clear_frame_toolbars): new function. Split out from mswindows_output_frame_toolbars. (mswindows_output_frame_toolbars): move clear pieces to mswindows_output_frame_toolbars. * toolbar-common.c (common_clear_frame_toolbars): new function. Split out from gtk_output_frame_toolbars. (common_output_frame_toolbars): move clear pieces to gtk_clear_frame_toolbars. * console-impl.h (struct console_methods): add clear_frame_toolbars_method. * redisplay.c (redisplay_frame): call update_frame_toolbars_geometry and re-order update_frame_toolbars. * toolbar.h: declare update_frame_toolbars_geometry. * toolbar.c (update_frame_toolbars_geometry): new function. Split out from update_frame_toolbars. Call clear_frame_toolbars. (update_frame_toolbars): only output, do not change geometry. * redisplay.c: add frame_layout_changed. * redisplay.h: add frame_layout_changed. (CLASS_RESET_CHANGED_FLAGS): set it. (GLOBAL_RESET_CHANGED_FLAGS): ditto. (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it. (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto. * device-impl.h (struct device): add frame_layout_changed. (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new. * frame-impl.h (struct frame): add frame_layout_changed. (MARK_FRAME_LAYOUT_CHANGED): new. 2002-07-02 Paul Moore <gustav@morpheus.demon.co.uk> * console-msw.h: * device-msw.c: * device-msw.c (mswindows_init_dde): * device-msw.c (mswindows_delete_device): Initialise extra DDE strings for remote execution, and change DDE initialisation to send ADVISE and REQUEST notifications. * emacs.c (main_1): Add symbols of event_mswindows. * event-msw.c: * event-msw.c (mswindows_dde_callback): * event-msw.c (reinit_vars_of_event_mswindows): * event-msw.c (vars_of_event_mswindows): * event-msw.c (syms_of_event_mswindows): Add DDE support for remote execution. 2002-06-12 Andy Piper <andy@xemacs.org> * glyphs.c (query_string_geometry): check the string. * glyphs-widget.c (widget_logical_unit_height): cope with nil widget names. 2002-06-12 Andy Piper <andy@xemacs.org> * frame-msw.c (msprinter_init_frame_3): calculate the frame size for printing on accurately. 2002-06-09 Rick Rankin <rick_rankin@yahoo.com> * event-msw.c (mswindows_wnd_proc): Add a handler for the WM_ACTIVATE message. Make sure that the frame is visible if the window is visible. This seemss to fix the problem where XEmacs appears to freeze after switching desktops with certain virtual window managers. (debug_output_mswin_message): Added code to output message parameters for WM_WINDOWPOSCHANGED, WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages. 2002-07-05 Jonathan Harris <jonathan@xemacs.org> * emacs.c (main_1): Conditionalise calls to syms_of_dired_mswindows() and vars_of_dired_mswindows() on WIN32_NATIVE instead of redundant HAVE_MSW_C_DIRED 2002-07-03 Mike Sperber <mike@xemacs.org> * emacs.c (main_1): We need to call init_ralloc twice for PDUMP, otherwice ralloc won't do anything for us. 2002-07-01 Mike Sperber <mike@xemacs.org> * process-unix.c (unix_send_process): Mark coding_outstream as non-open upon SIGPIPE. * event-stream.c (execute_internal_event): Reinstate code to deactivate a dead network connection that got lost during the stdout/stderr separation. * event-stream.c (Fnext_event): Reorder switch cases to something that makes sense. 2002-06-27 Olivier Galibert <galibert@pobox.com> * input-method-motif.c: Fix the #includes. 2002-07-02 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.7 "broccoflower" is released. 2002-07-02 Stephen J. Turnbull <stephen@xemacs.org> * frame-impl.h (struct frame): Make comment refer to new file. 2002-06-27 Mike Sperber <mike@xemacs.org> * eval.c (Ffuncall): Run `post-gc-hook' if GC just happened. * alloc.c (garbage_collect_1): Delay running `post-gc-hook' until later. * data.c (prune_weak_boxes): Rewrite for better readability. 2002-06-23 Martin Köbele <martin@mkoebele.de> Jens Müller <jmueller@informatik.uni-tuebingen.de> Mike Sperber <mike@xemacs.org> * lrecord.h (lrecord_type): add lrecord_type_ephemeron to lrecord_type enumeration. * lisp.h (XEPHEMERON): (XEPHEMERON_REF): (XEPHEMERON_NEXT): (XEPHEMERON_FINALIZER): (XSET_EPHEMERON_NEXT): (XSET_EPHEMERON_VALUE): (XSET_EPHEMERON_KEY): (wrap_ephemeron): (EPHEMERONP): (CHECK_EPHEMERON): (CONCHECK_EPHEMERON): (struct ephemeron): Add representation of ephemerons. * alloc.c (garbage_collect_1): (finish_marking_ephemerons): (prune_ephemerons): Call. * data.c: (finish_marking_ephemerons): (prune_ephemerons): (mark_ephemeron): (print_ephemeron): (ephemeron_equal) (ephemeron_hash):: (make_ephemeron): (Fmake_ephemeron): (Fephemeronp): (Fephemeron_ref): (syms_of_data): (vars_of_data): Add implementation of ephemerons 2002-06-28 Steve Youngs <youngs@xemacs.org> * inline.c: Include device-impl.h, extents-impl.h, frame-impl.h, and objects-impl.h to pick up some error_check_* functions. Remove console.h, extents.h, frame.h and objects.h because the *-impl.h files include them. 2002-06-17 Jerry James <james@xemacs.org> * sysdll.c: Remove RTLD_GLOBAL initialization. * sysdll.c (dll_open): Do not use RTLD_GLOBAL. 2002-06-24 Mike Sperber <mike@xemacs.org> * search.c (skip_chars): Fix a crash if NILP(lim). 2002-06-23 Stephen J. Turnbull <stephen@xemacs.org> * unicode.c: More comment and string fiddling. 2002-06-23 Stephen J. Turnbull <stephen@xemacs.org> * unicode.c: Improve top-level comments and many docstrings. (Fparse_unicode_translation_table): Use right function name in error. (unicode_to_ichar): Renamed from unicode_to_char. (Funicode_to_char): (decode_unicode_char): Use new name. (add_charsets_to_precedence_list): Change the dynarr argument instead of the global precedence list. (Funicode_precedence_list): New function. (Fset_language_unicode_precedence_list, Flanguage_unicode_precedence_list, Fset_default_unicode_precedence_list, Fdefault_unicode_precedence_list): Docstrings refer to docstring of Funicode_precedence_list. (set_unicode_conversion): Assert attempts to change Basic Latin (Unicode BMP, row 00). (Fset_unicode_conversion): Signal error on changes to Basic Latin. 2002-06-23 Malcolm Purvis <malcolmpurvis@optushome.com.au> * dialog-gtk.c: * gpmevent.c: * gtk-glue.c: * gtk-xemacs.c: * menubar-gtk.c: Add required #include files to unbreak the build. * event-gtk.c (reinit_vars_of_event_gtk): Reinitialise new stream fields to unbreak the build. 2002-06-22 Stephen J. Turnbull <stephen@xemacs.org> * ExternalShell.c (hack_event_masks_1): Fix signed-unsigned warning. * eldap.c: #include process.h for report_process_error. * editfns.c: #include commands.h for zmacs_region_* declarations. 2002-06-22 Mike Sperber <mike@xemacs.org> * faces.c (face_property_matching_instance): Only set cdr of matchspec if it's actually a cons. * console.h: Define opaque console_methods to unbreak the build. * objects.c (initialize_charset_font_caches): (invalidate_charset_font_caches): Only define if we're MULE. (font_instantiate): Unbreak for non-MULE. 2002-06-20 Ben Wing <ben@xemacs.org> * s/cygwin32.h: Allow pdump to work under Cygwin (mmap is broken, so need to undefine HAVE_MMAP). * s/win32-common.h: * s/win32-common.h (NO_MATHERR): * s/windowsnt.h: Support for fastcall. Add WIN32_ANY for identifying all Win32 variants (Cygwin, native, MinGW). Both of these are properly used in another ws. 2002-06-20 Ben Wing <ben@xemacs.org> * alloc.c: * alloc.c (disksave_object_finalization): * alloc.c (garbage_collect_1): * balloon-x.c: * balloon-x.c (alloc_color): * balloon-x.c (init): * buffer.c: * buffer.c (Fkill_buffer): * bytecode.c: * callint.c: * cm.c: * cmdloop.c: * cmdloop.c (Frecursive_edit): * cmdloop.c (Fcommand_loop_1): * cmds.c: * console-gtk.c: * console-gtk.h: * console-msw.c: * console-msw.h: * console-msw.h (struct): * console-msw.h (wrap_mswindows_dialog_id): * console-stream.c: * console-stream.h: * console-stream.h (stream_canonicalize_device_connection): * console-tty.c: * console-tty.h: * console-x.c: * console-x.h: * console-x.h (Xt_SET_VALUE): * console.c: * console.c (Fcdfw_console): * console.h: * console.h (CDFW_CONSOLE): * device-gtk.c: * device-gtk.c (gtk_delete_device): * device-gtk.c (Fgtk_display_visual_class): * device-gtk.c (syms_of_device_gtk): * device-gtk.c (vars_of_device_gtk): * device-msw.c: * device-tty.c: * device-x.c: * device-x.c (x_init_device): * device-x.c (x_delete_device): * device-x.c (x_get_resource_prefix): * device-x.c (Fdefault_x_device): * device-x.c (vars_of_device_x): * device.c: * device.c (allocate_device): * device.c (device_console): * device.c (init_global_resources): * device.c (init_device_resources): * device.c (Fdefault_device): * device.c (Fmake_device): * device.c (delete_device_internal): * device.c (call_critical_lisp_code): * device.c (syms_of_device): * device.c (vars_of_device): * device.h: * devslots.h: * dialog-gtk.c: * dialog-msw.c: * dialog-x.c: * dialog.c: * dialog.c (Fmake_dialog_box_internal): * dired-msw.c: * editfns.c: * emacs.c: * event-Xt.c: * event-Xt.c (change_frame_visibility): * event-gtk.c: * event-gtk.c (change_frame_visibility): * event-gtk.c (gtk_event_to_emacs_event): * event-msw.c: * event-stream.c: * event-tty.c: * event-unixoid.c: * events.c: * extents.c: * extents.h: * extents.h (glyph_layout): * faces.c: * faces.c (face_property_matching_instance): * faces.c (init_global_faces): * faces.c (init_device_faces): * faces.c (complex_vars_of_faces): * fileio.c: * fns.c: * frame-gtk.c: * frame-gtk.c (INTERNAL_BORDER_WIDTH): * frame-msw.c: * frame-tty.c: * frame-x.c: * frame.c: * frame.c (decode_frame_or_selected): * frame.h: * frame.h (FW_FRAME): * frame.h (Value): Removed. * frame.h (0): Removed. * glyphs-eimage.c: * glyphs-gtk.c: * glyphs-gtk.c (gtk_locate_pixmap_file): * glyphs-msw.c: * glyphs-widget.c: * glyphs-x.c: * glyphs-x.c (x_locate_pixmap_file): * glyphs.c: * glyphs.c (decode_device_ii_format): * glyphs.c (Fimage_instance_instantiator): * glyphs.c (syms_of_glyphs): * glyphs.h: * gui-gtk.c: * gui-msw.c: * gui-x.c: * gui-x.c (popup_selection_callback): * gui.c: * gutter.c: * input-method-xlib.c: * intl-encap-win32.c: * intl-win32.c: * intl-win32.c (getacp): * intl-win32.c (mswindows_get_registry_charset): * intl-win32.c (syms_of_intl_win32): * intl-win32.c (vars_of_intl_win32): * keymap.c: * lisp.h: * macros.c: * menubar-gtk.c: * menubar-msw.c: * menubar-x.c: * menubar.c: * menubar.h: * minibuf.c: * mule-charset.c: * mule-charset.c (Fset_charset_ccl_program): * nt.c: * objects-gtk.c: * objects-gtk.c (gtk_initialize_font_instance): * objects-gtk.c (gtk_print_font_instance): * objects-gtk.c (gtk_font_instance_truename): * objects-gtk.c (gtk_font_spec_matches_charset): * objects-gtk.c (console_type_create_objects_gtk): * objects-gtk.c (gtk_find_charset_font): * objects-gtk.h: * objects-msw.c: * objects-msw.c (charset_map): * objects-msw.c (font_enum_callback_2): * objects-msw.c (sort_font_list_function): * objects-msw.c (mswindows_enumerate_fonts): * objects-msw.c (parse_font_spec): * objects-msw.c (create_hfont_from_font_spec): * objects-msw.c (initialize_font_instance): * objects-msw.c (mswindows_list_fonts): * objects-msw.c (mswindows_font_instance_truename): * objects-msw.c (mswindows_font_spec_matches_charset_stage_1): * objects-msw.c (mswindows_font_spec_matches_charset_stage_2): * objects-msw.c (mswindows_font_spec_matches_charset): * objects-msw.c (mswindows_find_charset_font): * objects-msw.h: * objects-msw.h (mswindows_color_to_string): * objects-tty.c: * objects-tty.c (tty_font_spec_matches_charset): * objects-tty.c (tty_find_charset_font): * objects-tty.h: * objects-x.c: * objects-x.c (x_initialize_font_instance): * objects-x.c (x_print_font_instance): * objects-x.c (x_font_instance_truename): * objects-x.c (x_font_spec_matches_charset): * objects-x.c (x_find_charset_font): * objects-x.c (console_type_create_objects_x): * objects-x.h: * objects.c: * objects.c (mark_font_instance): * objects.c (Fmake_font_instance): * objects.c (font_validate_matchspec): * objects.c (initialize_charset_font_caches): * objects.c (font_instantiate): * objects.c (reinit_vars_of_objects): * objects.h: * postgresql.c: * print.c: * process.h: * redisplay-gtk.c: * redisplay-msw.c: * redisplay-output.c: * redisplay-tty.c: * redisplay-x.c: * redisplay.c: * redisplay.c (text_cursor_visible_p_changed): * redisplay.h: * scrollbar-gtk.c: * scrollbar-msw.c: * scrollbar-x.c: * scrollbar.c: * select-gtk.c: * select-msw.c: * select-x.c: * select.c: * signal.c: * sound.c: * specifier.c: * specifier.c (print_specifier): * specifier.c (setup_device_initial_specifier_tags): * specifier.c (Fspecifier_matching_instance): * symbols.c: * syntax.c (signal_syntax_table_extent_changed): * sysdep.c: * syssignal.h: * syswindows.h: * toolbar-common.c: * toolbar-gtk.c: * toolbar-msw.c: * toolbar-msw.c (mswindows_clear_toolbar): * toolbar-msw.c (mswindows_free_frame_toolbars): * toolbar-x.c: * toolbar.c: * unicode.c: * window.c: * window.c (decode_window): * window.h: * window.h (WINDOW_XFRAME): * window.h (XWINDOW_FRAME): * window.h (CHECK_LIVE_WINDOW): * window.h (window_divider_width): The following are the major changes made: (1) Separation of various header files into an external and an internal version, similar to the existing separation of process.h and procimpl.h. Eventually this should be done for all Lisp objects. The external version has the same name as currently; the internal adds -impl. The external file has XFOO() macros for objects, but the structure is opaque and defined only in the internal file. It's now reasonable to move all prototypes in lisp.h into the appropriate external file, and this should be done. Currently, separation has been done on extents.h, objects*.h, console.h, device.h, frame.h, and window.h. For c/d/f/w, the most basic properties are available in the external header file, with the macros resolving to functions. In the internal header file, the macros are redefined to directly access the structure. Also, the global MARK_FOO_CHANGED macros have been made into functions so that they can be accessed without needing to include lots of -impl headers -- they are used in almost exclusively in non-time-critical functions, and take up enough time that the function overhead will be negligible. Similarly, the function overhead from making the basic properties mentioned above into functions is negligible, and code that does heavy accessing of c/d/f/w structures inevitably ends up needing the internal header files, anyway. (2) More face changes. -- Major rewrite of objects-msw.c. Now handles wildcard specs properly, rather than "truenaming" (or even worse, signalling an error, which previously happened with some of the fallbacks if you tried to use them in make-font-instance!). -- Split charset matching of fonts into two stages -- one to find a font specifically designed for a particular charset (by examining its registry), the second to find a Unicode font that can support the charset. This needs to proceed as two complete, separate instantiations in order to work properly (otherwise many of the fonts in the HELLO page look wrong). This should also make it easy to support iso10646 (Unicode) fonts under X. -- All default values for fonts are now completely specified in the fallbacks. Stuff from mule-x-init.el has all been moved here, merged with the existing specs, and totally rethought so you get sensible results. (HELLO now looks much better!). -- Generalize the "default X/GTK device" stuff into a per-device-type "default device". -- Add mswindows-{set-}charset-registry. In time, charset<->code-page conversion functions will be removed. -- Wrap protective code around calls to compute device specifier tags, and do this computation before calling the face initialization code because the latter may need these tags to be correctly updated. (3) Other changes. * EmacsFrame.c: * EmacsFrame.c (EmacsFrameSetValues): * glyphs-msw.c: * eval.c: * gui-x.c: * intl-encap-win32.c: * search.c (Fstore_match_data): * search.c: * signal.c: * toolbar-msw.c: * unicode.c: Warning fixes. * config.h.in: #undefs meant to be frobbed by configure *MUST* go inside of #ifndef WIN32_NO_CONFIGURE, and everything else *MUST* go outside! * eval.c (Fbacktrace): Let detailed backtraces be detailed. * specifier.c: Don't override user's print-string-length/print-length settings. * glyphs.c: New function image-instance-instantiator. * config.h.in: * sysdep.c (set_descriptor_non_blocking): * sysdep.c (SIG_PARAM_TYPE): * sysdep.c (struct save_signal): * sysdep.c (save_signal_handlers): * sysdep.c (retry_open): * sysdep.c (qxe_open): Changes for fastcall. * sysdep.c (qxe_rename): * nt.c (mswindows_rename): Fix up a previous botched patch that tried to add support for both EEXIST and EACCES. IF THE BOTCHED PATCH WENT INTO 21.4, THIS FIXUP NEEDS TO GO IN, TOO. * search.c (skip_chars): Fix *evil* crash due to incorrect synching of syntax-cache code with 21.1. THIS SHOULD GO INTO 21.4. 2002-06-07 William M. Perry <wmperry@gnu.org> * frame-x.c (init_x_prop_symbols): Don't attempt to expose the toolbar pixels from the EmacsFrame widget, they no longer exist. (x_frame_properties): Ditto. (x_internal_frame_property_p): Don't check them for internal-ness either. * EmacsFrame.c: Removed references to the resources for toolbar colors. These are now controlled completely by the 'toolbar' face. * EmacsFrameP.h: Removed obsolete toolbar pixel slots. 2002-06-05 Ben Wing <ben@xemacs.org> * README.integral-types: Removed. * README.global-renaming: Added. Stuff specific to the integral types rename was moved to the Internals Manual. The general scripts, suitable for any type of global search-and-replace, were moved to README.global-renaming. (In the internals manual, they need to be munged by replacing @ with @@, and this precludes just cutting and pasting from the source file, which is what people are naturally going to do.) 2002-06-05 Ben Wing <ben@xemacs.org> * abbrev.c (abbrev_match_mapper): * abbrev.c (abbrev_oblookup): * abbrev.c (obarray_has_blank_p): * abbrev.c (abbrev_count_case): * alloc.c (make_uninit_string): * alloc.c (resize_string): * alloc.c (set_string_char): * alloc.c (Fmake_string): * alloc.c (Fstring): * alloc.c (init_string_ascii_begin): * alloc.c (make_string): * alloc.c (build_intstring): * alloc.c (build_string): * alloc.c (build_msg_intstring): * alloc.c (build_msg_string): * alloc.c (make_string_nocopy): * alloc.c (debug_string_purity_print): * alloc.c (garbage_collect_1): * buffer.c: * buffer.c (Fgenerate_new_buffer_name): * buffer.c (directory_is_current_directory): * buffer.c (get_initial_directory): * buffer.c (init_initial_directory): * buffer.h: * buffer.h (struct buffer_text): * buffer.h (VALIDATE_BYTEBPOS_BACKWARD): * buffer.h (VALIDATE_BYTEBPOS_FORWARD): * buffer.h (BYTE_BUF_FETCH_CHAR): * buffer.h (BYTE_BUF_FETCH_CHAR_RAW): * buffer.h (BYTE_BUF_ITEXT_COPY_ICHAR): * buffer.h (BUFFER_TEXT_LOOP): * buffer.h (BUFFER_ALLOC): * bytecode.c (invalid_byte_code): * bytecode.c (READ_INSTRUCTION_CHAR): * bytecode.c (optimize_byte_code): * bytecode.c (compiled_function_instructions): * callint.c (callint_prompt): * callint.c (PROMPT): * casefiddle.c (casify_object): * casefiddle.c (casify_region_internal): * casetab.c (compute_up_or_eqv_mapper): * casetab.c (convert_old_style_syntax_string): * casetab.c (complex_vars_of_casetab): * charset.h: * charset.h (ichar_charset): * charset.h (BREAKUP_ICHAR): * charset.h (struct Lisp_Charset): * charset.h (CHARSET_LEADING_BYTE): * charset.h (struct charset_lookup): * charset.h (ICHAR_FIELD1_MASK): * charset.h (ichar_field1): * charset.h (MIN_ICHAR_FIELD2_OFFICIAL): * charset.h (MIN_ICHAR_FIELD1_OFFICIAL): * charset.h (MIN_ICHAR_FIELD2_PRIVATE): * charset.h (MIN_ICHAR_FIELD1_PRIVATE): * charset.h (MIN_CHAR_OFFICIAL_TYPE9N): * charset.h (BREAKUP_ICHAR_1_UNSAFE): * chartab.c (get_non_ascii_char_table_value): * chartab.c (put_char_table): * chartab.c (map_over_charset_ascii_1): * chartab.c (map_over_charset_row): * chartab.c (map_over_other_charset): * chartab.c (map_char_table): * chartab.c (chartab_instantiate): * chartab.c (check_category_char): * chartab.c (Fcheck_category_at): * chartab.c (Fchar_in_category_p): * chartab.c (word_boundary_p): * chartab.h: * chartab.h (struct chartab_range): * cmds.c: * cmds.c (Fself_insert_command): * cmds.c (internal_self_insert): * console-gtk.h: * console-msw.c (GetConsoleHwnd): * console-msw.c (mswindows_output_console_string): * console-msw.c (Fmswindows_debugging_output): * console-msw.c (write_string_to_mswindows_debugging_output): * console-msw.c (DSTRING): * console-msw.c (DSYMNAME): * console-msw.h: * console-stream.c (stream_text_width): * console-tty.c (tty_init_console): * console-x.c (split_up_display_spec): * console-x.c (x_semi_canonicalize_console_connection): * console-x.h: * console.h (struct console_methods): * console.h (struct console): * data.c (Fsubr_interactive): * data.c (Faref): * device-msw.c (msprinter_default_printer): * device-msw.c (sync_printer_with_devmode): * device-x.c (sanity_check_geometry_resource): * device-x.c (signal_if_x_error): * device-x.c (x_IO_error_handler): * device-x.c (Fx_get_resource_prefix): * dialog-msw.c (button_width): * dialog-msw.c (handle_question_dialog_box): * dired-msw.c (struct): * dired-msw.c (mswindows_get_files): * dired-msw.c (mswindows_format_file): * dired-msw.c (Fmswindows_insert_directory): * dired.c (Fdirectory_files): * dired.c (file_name_completion_stat): * dired.c (file_name_completion): * dired.c (struct user_name): * dired.c (user_name_completion): * dired.c (make_directory_hash_table): * dired.c (Ffile_attributes): * doc.c (unparesseuxify_doc_string): * doc.c (get_doc_string): * doc.c (weird_doc): * doc.c (Fsnarf_documentation): * doc.c (Fsubstitute_command_keys): * doprnt.c (union printf_arg): * doprnt.c (doprnt_2): * doprnt.c (parse_off_posnum): * doprnt.c (parse_doprnt_spec): * doprnt.c (get_doprnt_args): * doprnt.c (emacs_doprnt_1): * doprnt.c (emacs_doprnt_va): * doprnt.c (emacs_doprnt): * doprnt.c (emacs_vsprintf_string_lisp): * doprnt.c (emacs_sprintf_string_lisp): * doprnt.c (emacs_vsprintf_malloc_lisp): * doprnt.c (emacs_sprintf_malloc_lisp): * doprnt.c (emacs_vsprintf_string): * doprnt.c (emacs_sprintf_string): * doprnt.c (emacs_vsprintf_malloc): * doprnt.c (emacs_sprintf_malloc): * doprnt.c (emacs_vsprintf): * doprnt.c (emacs_sprintf): * editfns.c: * editfns.c (init_editfns): * editfns.c (Fchar_to_string): * editfns.c (Fstring_to_char): * editfns.c (Ftemp_directory): * editfns.c (Fuser_login_name): * editfns.c (user_login_name): * editfns.c (Fuser_full_name): * editfns.c (get_home_directory): * editfns.c (Fuser_home_directory): * editfns.c (Fcurrent_time_string): * editfns.c (Fcurrent_time_zone): * editfns.c (Finsert_char): * editfns.c (Fcompare_buffer_substrings): * editfns.c (Fsubst_char_in_region): * editfns.c (Ftranslate_region): * editfns.c (Fchar_equal): * eldap.c (Fldap_open): * emodules.c (emodules_load): * emodules.c (emodules_doc_subr): * emodules.c (emodules_doc_sym): * eval.c (print_subr): * eval.c (build_error_data): * eval.c (signal_error): * eval.c (maybe_signal_error): * eval.c (signal_continuable_error): * eval.c (maybe_signal_continuable_error): * eval.c (signal_error_2): * eval.c (maybe_signal_error_2): * eval.c (signal_continuable_error_2): * eval.c (maybe_signal_continuable_error_2): * eval.c (signal_ferror): * eval.c (maybe_signal_ferror): * eval.c (signal_continuable_ferror): * eval.c (maybe_signal_continuable_ferror): * eval.c (signal_ferror_with_frob): * eval.c (maybe_signal_ferror_with_frob): * eval.c (signal_continuable_ferror_with_frob): * eval.c (maybe_signal_continuable_ferror_with_frob): * eval.c (syntax_error): * eval.c (syntax_error_2): * eval.c (maybe_syntax_error): * eval.c (sferror): * eval.c (sferror_2): * eval.c (maybe_sferror): * eval.c (invalid_argument): * eval.c (invalid_argument_2): * eval.c (maybe_invalid_argument): * eval.c (invalid_constant): * eval.c (invalid_constant_2): * eval.c (maybe_invalid_constant): * eval.c (invalid_operation): * eval.c (invalid_operation_2): * eval.c (maybe_invalid_operation): * eval.c (invalid_change): * eval.c (invalid_change_2): * eval.c (maybe_invalid_change): * eval.c (invalid_state): * eval.c (invalid_state_2): * eval.c (maybe_invalid_state): * eval.c (wtaerror): * eval.c (stack_overflow): * eval.c (out_of_memory): * eval.c (printing_unreadable_object): * eval.c (struct call_trapping_problems): * eval.c (call_trapping_problems): * eval.c (va_call_trapping_problems): * eval.c (calln_trapping_problems): * eval.c (call0_trapping_problems): * eval.c (call1_trapping_problems): * eval.c (call2_trapping_problems): * eval.c (call3_trapping_problems): * eval.c (call4_trapping_problems): * eval.c (call5_trapping_problems): * eval.c (eval_in_buffer_trapping_problems): * eval.c (run_hook_trapping_problems): * eval.c (safe_run_hook_trapping_problems): * eval.c (run_hook_with_args_in_buffer_trapping_problems): * eval.c (run_hook_with_args_trapping_problems): * eval.c (va_run_hook_with_args_trapping_problems): * eval.c (va_run_hook_with_args_in_buffer_trapping_problems): * eval.c (warn_when_safe): * event-Xt.c (x_keysym_to_character): * event-Xt.c (x_to_emacs_keysym): * event-Xt.c (x_event_to_emacs_event): * event-Xt.c (check_for_tty_quit_char): * event-gtk.c (gtk_to_emacs_keysym): * event-gtk.c (dragndrop_data_received): * event-gtk.c (check_for_tty_quit_char): * event-msw.c (mswindows_dde_callback): * event-msw.c (mswindows_wnd_proc): * event-stream.c (allocate_command_builder): * event-stream.c (echo_key_event): * event-stream.c (maybe_kbd_translate): * event-stream.c (command_builder_find_leaf_no_mule_processing): * event-stream.c (command_builder_find_leaf): * event-stream.c (lookup_command_event): * event-stream.c (dribble_out_event): * event-unixoid.c (read_event_from_tty_or_stream_desc): * event-unixoid.c (event_stream_unixoid_create_io_streams): * events.c (character_to_event): * events.c (event_to_character): * events.c (Fevent_to_character): * events.c (nth_of_key_sequence_as_event): * events.h: * events.h (struct key_data): * events.h (struct command_builder): * file-coding.c (setup_eol_coding_systems): * file-coding.c (make_coding_system_1): * file-coding.c (no_conversion_convert): * file-coding.c (convert_eol_convert): * file-coding.c (look_for_coding_system_magic_cookie): * file-coding.h: * fileio.c: * fileio.c (report_file_type_error): * fileio.c (report_error_with_errno): * fileio.c (report_file_error): * fileio.c (lisp_strerror): * fileio.c (Ffile_name_directory): * fileio.c (Ffile_name_nondirectory): * fileio.c (file_name_as_directory): * fileio.c (Ffile_name_as_directory): * fileio.c (directory_file_name): * fileio.c (Fdirectory_file_name): * fileio.c (Fmake_temp_name): * fileio.c (if): * fileio.c (Ffile_truename): * fileio.c (Fsubstitute_in_file_name): * fileio.c (Ffile_name_absolute_p): * fileio.c (check_writable): * fileio.c (Ffile_writable_p): * fileio.c (Ffile_symlink_p): * fileio.c (a_write): * filelock.c (struct): * filelock.c (MAKE_LOCK_NAME): * filelock.c (fill_in_lock_file_name): * filelock.c (lock_file_1): * filelock.c (current_lock_owner): * filelock.c (lock_if_free): * filelock.c (lock_file): * filelock.c (unlock_file): * filelock.c (Ffile_locked_p): * fns.c: * fns.c (Fstring_lessp): * fns.c (concat): * fns.c (split_string_by_ichar_1): * fns.c (split_external_path): * fns.c (split_env_path): * fns.c (Fsplit_string_by_char): * fns.c (Fsplit_path): * fns.c (Ffillarray): * fns.c (mapcar1): * fns.c (ADVANCE_INPUT): * fns.c (base64_encode_1): * fns.c (STORE_BYTE): * fns.c (base64_decode_1): * fns.c (Fbase64_encode_region): * fns.c (Fbase64_encode_string): * fns.c (Fbase64_decode_region): * fns.c (Fbase64_decode_string): * fns.c (vars_of_fns): * font-lock.c (struct context_cache): * font-lock.c (find_context): * frame-gtk.c (gtk_set_frame_text_value): * frame-gtk.c (gtk_set_title_from_ibyte): * frame-gtk.c (gtk_set_icon_name_from_ibyte): * frame-gtk.c (console_type_create_frame_gtk): * frame-msw.c (mswindows_set_title_from_ibyte): * frame-msw.c (console_type_create_frame_mswindows): * frame-x.c (color_to_string): * frame-x.c (x_set_frame_text_value): * frame-x.c (x_set_title_from_ibyte): * frame-x.c (x_set_icon_name_from_ibyte): * frame-x.c (x_cde_transfer_callback): * frame-x.c (Fx_window_id): * frame-x.c (console_type_create_frame_x): * frame.c: * frame.c (allocate_frame_core): * frame.c (Fmake_frame): * frame.c (generate_title_string): * frame.c (update_frame_title): * frame.c (init_frame): * glyphs-eimage.c (my_jpeg_output_message): * glyphs-eimage.c (gif_instantiate): * glyphs-msw.c (struct color_symbol): * glyphs-msw.c (xpm_to_eimage): * glyphs-msw.c (struct): * glyphs-msw.c (resource_name_to_resource): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (charset_of_text): * glyphs-msw.c (mswindows_widget_instantiate): * glyphs-x.c (x_locate_pixmap_file): * glyphs-x.c (x_xface_instantiate): * glyphs-x.c (safe_XLoadFont): * glyphs-x.c (font_instantiate): * glyphs.c (print_image_instance): * glyphs.c (signal_image_error): * glyphs.c (signal_image_error_2): * glyphs.c (signal_double_image_error): * glyphs.c (signal_double_image_error_2): * glyphs.c (query_string_geometry): * glyphs.c (query_string_font): * glyphs.c (display_table_entry): * glyphs.h: * gpmevent.c (tty_get_foreign_selection): * gui-x.c (menu_separator_style_and_to_external): * gui-x.c (add_accel_and_to_external): * gui-x.c (button_item_to_widget_value): * gui-x.h: * gui.c (separator_string_p): * gui.c (gui_name_accelerator): * gui.h: * hpplay.c (player_error_internal): * indent.c (column_at_point): * indent.c (string_column_at_point): * indent.c (byte_spaces_at_point): * indent.c (Fmove_to_column): * insdel.c (gap_left): * insdel.c (gap_right): * insdel.c (make_gap): * insdel.c (fixup_internal_substring): * insdel.c (buffer_insert_string_1): * insdel.c (buffer_insert_raw_string_1): * insdel.c (buffer_insert_c_string_1): * insdel.c (buffer_insert_emacs_char_1): * insdel.c (buffer_insert_c_char_1): * insdel.c (buffer_delete_range): * insdel.c (buffer_replace_char): * insdel.h: * intl-win32.c (convert_multibyte_to_internal_malloc): * keymap.c (make_key_description): * keymap.c (keymap_lookup_directly): * keymap.c (keymap_store): * keymap.c (define_key_check_and_coerce_keysym): * keymap.c (Fdefine_key): * keymap.c (Flookup_key): * keymap.c (map_keymap_sort_predicate): * keymap.c (Fkey_description): * keymap.c (Ftext_char_description): * keymap.c (describe_map): * keymap.c (vars_of_keymap): * line-number.c (insert_invalidate_line_number_cache): * line-number.h: * lisp-disunion.h: * lisp-union.h: * lisp.h: * lisp.h (struct): * lisp.h (struct Lisp_String): * lisp.h (XCHAR): * lisp.h (DECLARE_INLINE_HEADER): * lread.c: * lread.c (readchar): * lread.c (unreadchar): * lread.c (Fload_internal): * lread.c (locate_file_map_suffixes): * lread.c (locate_file_in_directory_mapper): * lread.c (locate_file_construct_suffixed_files_mapper): * lread.c (readevalloop): * lread.c (read0): * lread.c (read_escape): * lread.c (read_atom_0): * lread.c (read_atom): * lread.c (parse_integer): * lread.c (read_bit_vector): * lread.c (read_structure): * lread.c (reader_nextchar): * lread.c (read1): * lread.c (isfloat_string): * lread.c (sequence_reader): * lread.c (read_list_conser): * lread.c (read_list): * lread.c (read_vector): * lread.c (read_compiled_function): * lrecord.h: * lstream.c: * lstream.c (Lstream_really_write): * lstream.c (Lstream_read_1): * lstream.c (struct filedesc_stream): * lstream.c (filedesc_writer): * lstream.c (filedesc_stream_set_pty_flushing): * lstream.c (lisp_string_reader): * lstream.c (lisp_string_rewinder): * lstream.c (lisp_buffer_reader): * lstream.c (lisp_buffer_writer): * lstream.h: * lstream.h (Lstream_get_ichar): * md5.c (Fmd5): * menubar-msw.c: * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar-msw.c (displayable_menu_item): * menubar-msw.c (populate_menu_add_item): * menubar-msw.c (mswindows_char_is_accelerator): * menubar-x.c (menu_item_descriptor_to_widget_value_1): * menubar.c (Fnormalize_menu_item_name): * minibuf.c (scmp_1): * minibuf.c (regexp_ignore_completion_p): * minibuf.c (Fall_completions): * minibuf.c (echo_area_append): * minibuf.c (echo_area_message): * minibuf.c (message_internal): * minibuf.c (message_append_internal): * minibuf.c (message_1): * minibuf.c (message_append_1): * mule-ccl.c: * mule-ccl.c (CCL_WRITE_CHAR): * mule-ccl.c (CCL_WRITE_STRING): * mule-ccl.c (CCL_MAKE_CHAR): * mule-charset.c (make_charset): * mule-charset.c (Fmake_charset): * mule-coding.c (shift_jis_convert): * mule-coding.c (Fdecode_shift_jis_char): * mule-coding.c (Fencode_shift_jis_char): * mule-coding.c (big5_convert): * mule-coding.c (decode_big5_char): * mule-coding.c (Fdecode_big5_char): * mule-coding.c (Fencode_big5_char): * mule-coding.c (charset_by_attributes_or_create_one): * mule-coding.c (iso2022_decode): * mule-coding.c (iso2022_encode): * mule-wnnfns.c (Fwnn_dict_list): * mule-wnnfns.c (Fwnn_fuzokugo_get): * mule-wnnfns.c (m2w): * ndir.h: * nt.c: * nt.c (getpwnam): * nt.c (parse_root): * nt.c (get_long_basename): * nt.c (mswindows_get_long_filename): * nt.c (is_unc_volume): * nt.c (nt_get_resource): * nt.c (init_mswindows_environment): * nt.c (volume_info_data): * nt.c (lookup_volume_info): * nt.c (add_volume_info): * nt.c (get_cached_volume_information): * nt.c (get_volume_info): * nt.c (is_exec): * nt.c (mswindows_opendir): * nt.c (mswindows_readdir): * nt.c (open_unc_volume): * nt.c (read_unc_volume): * nt.c (unc_volume_file_attributes): * nt.c (mswindows_access): * nt.c (mswindows_link): * nt.c (mswindows_rename): * nt.c (mswindows_unlink): * nt.c (mswindows_fstat): * nt.c (mswindows_stat): * nt.c (mswindows_getdcwd): * nt.c (open_input_file): * nt.c (open_output_file): * nt.c (mswindows_executable_type): * nt.c (Fmswindows_short_file_name): * nt.c (Fmswindows_long_file_name): * nt.c (init_nt): * objects-gtk.c (gtk_parse_nearest_color): * objects-gtk.c (gtk_font_spec_matches_charset): * objects-gtk.c (gtk_find_charset_font): * objects-gtk.h: * objects-msw.c (hexval): * objects-msw.c (mswindows_string_to_color): * objects-msw.c (match_font): * objects-msw.c (font_enum_callback_2): * objects-msw.c (create_hfont_from_font_spec): * objects-msw.c (initialize_font_instance): * objects-msw.c (mswindows_list_fonts): * objects-msw.c (mswindows_font_instance_truename): * objects-msw.c (mswindows_font_spec_matches_charset_stage_1): * objects-msw.c (mswindows_font_spec_matches_charset): * objects-tty.c (tty_initialize_font_instance): * objects-tty.c (tty_font_spec_matches_charset): * objects-tty.c (tty_find_charset_font): * objects-x.c (x_font_instance_properties): * objects-x.c (x_font_spec_matches_charset): * objects-x.c (x_find_charset_font): * objects.c (font_spec_matches_charset): * objects.h: * postgresql.c (init_postgresql_from_environment): * print.c: * print.c (write_string_to_stdio_stream): * print.c (std_handle_out_va): * print.c (stderr_out): * print.c (stdout_out): * print.c (debug_out): * print.c (fatal): * print.c (output_string): * print.c (write_string_1): * print.c (write_string): * print.c (write_c_string): * print.c (write_fmt_string): * print.c (write_fmt_string_lisp): * print.c (stderr_out_lisp): * print.c (Fwrite_char): * print.c (float_to_string): * print.c (print_string): * print.c (print_internal): * print.c (print_symbol): * print.c (Falternate_debugging_output): * print.c (write_string_to_alternate_debugging_output): * print.c (Fexternal_debugging_output): * process-nt.c (mswindows_compare_env): * process-nt.c (nt_create_process): * process-nt.c (nt_send_process): * process-unix.c: * process-unix.c (allocate_pty): * process-unix.c (relocate_fd): * process-unix.c (child_setup): * process-unix.c (unix_create_process): * process-unix.c (unix_send_process): * process-unix.c (unix_process_send_eof): * process-unix.c (unix_kill_child_process): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): * process.c (read_process_output): * process.c (send_process): * process.c (status_message): * process.c (decode_signal): * process.c (getenv_internal): * process.c (putenv_internal): * process.c (Fgetenv): * process.c (egetenv): * process.c (eputenv): * process.c (init_xemacs_process): * procimpl.h: * realpath.c: * realpath.c (mswindows_readlink_and_correct_case): * realpath.c (cygwin_readlink_and_correct_case): * realpath.c (mswindows_abs_start): * realpath.c (qxe_realpath): * redisplay-gtk.c: * redisplay-gtk.c (separate_textual_runs): * redisplay-gtk.c (gtk_text_width): * redisplay-gtk.c (gtk_output_display_block): * redisplay-gtk.c (gtk_output_string): * redisplay-msw.c (separate_textual_runs): * redisplay-msw.c (mswindows_output_cursor): * redisplay-msw.c (mswindows_output_string): * redisplay-msw.c (mswindows_output_display_block): * redisplay-msw.c (mswindows_text_width): * redisplay-output.c (redisplay_output_layout): * redisplay-tty.c: * redisplay-tty.c (tty_text_width): * redisplay-tty.c (tty_output_display_block): * redisplay-tty.c (tty_output_ibyte_string): * redisplay-tty.c (tty_output_ichar_dynarr): * redisplay-tty.c (substitute_in_dynamic_color_string): * redisplay-tty.c (set_foreground_to): * redisplay-tty.c (set_background_to): * redisplay-x.c: * redisplay-x.c (separate_textual_runs): * redisplay-x.c (x_text_width): * redisplay-x.c (x_output_display_block): * redisplay-x.c (x_output_string): * redisplay.c: * redisplay.c (position_redisplay_data_type): * redisplay.c (struct prop_block): * redisplay.c (redisplay_text_width_ichar_string): * redisplay.c (redisplay_text_width_string): * redisplay.c (redisplay_frame_text_width_string): * redisplay.c (add_ichar_rune_1): * redisplay.c (add_ichar_rune): * redisplay.c (add_ibyte_string_runes): * redisplay.c (ADD_NEXT_OCTAL_RUNE_CHAR): * redisplay.c (add_octal_runes): * redisplay.c (add_control_char_runes): * redisplay.c (add_disp_table_entry_runes_1): * redisplay.c (add_propagation_runes): * redisplay.c (add_glyph_rune): * redisplay.c (create_text_block): * redisplay.c (create_overlay_glyph_block): * redisplay.c (generate_formatted_string_db): * redisplay.c (add_string_to_fstring_db_runes): * redisplay.c (generate_fstring_runes): * redisplay.c (create_string_text_block): * redisplay.c (decode_mode_spec): * redisplay.c (init_redisplay): * redisplay.h: * redisplay.h (struct rune): * regex.c: * regex.c (RE_TRANSLATE_1): * regex.c (itext_ichar): * regex.c (INC_IBYTEPTR): * regex.c (PATFETCH_RAW): * regex.c (PATUNFETCH): * regex.c (regex_compile): * regex.c (compile_range): * regex.c (compile_extended_range): * regex.c (re_compile_fastmap): * regex.c (re_search_2): * regex.c (re_match_2_internal): * search.c: * search.c (TRANSLATE): * search.c (fixup_search_regs_for_string): * search.c (fast_string_match): * search.c (byte_scan_buffer): * search.c (scan_buffer): * search.c (byte_find_next_ichar_in_string): * search.c (skip_chars): * search.c (trivial_regexp_p): * search.c (search_buffer): * search.c (simple_search): * search.c (boyer_moore): * search.c (wordify): * search.c (Freplace_match): * search.c (Fregexp_quote): * select-common.h (lisp_data_to_selection_data): * select-gtk.c (atom_to_symbol): * select-x.c (x_atom_to_symbol): * select-x.c (hack_motif_clipboard_selection): * select-x.c (Fx_store_cutbuffer_internal): * sound.h (sound_perror): * symbols.c (intern_int): * symbols.c (intern): * symbols.c (intern_converting_underscores_to_dashes): * symbols.c (oblookup): * symbols.c (hash_string): * symbols.c (init_symbols_once_early): * symbols.c (defsymbol_massage_name_1): * symbols.c (defsymbol_nodump): * symbols.c (defsymbol): * symbols.c (defvar_magic): * syntax.c (struct lisp_parse_state): * syntax.c (syntax_match): * syntax.c (WORD_BOUNDARY_P): * syntax.c (scan_words): * syntax.c (find_start_of_comment): * syntax.c (Fforward_comment): * syntax.c (scan_lists): * syntax.c (Fbackward_prefix_chars): * syntax.c (scan_sexps_forward): * syntax.c (complex_vars_of_syntax): * syntax.h: * sysdep.c: * sysdep.c (sys_subshell): * sysdep.c (get_eof_char): * sysdep.c (init_system_name): * sysdep.c (qxe_open): * sysdep.c (qxe_interruptible_open): * sysdep.c (qxe_fopen): * sysdep.c (qxe_chdir): * sysdep.c (qxe_mkdir): * sysdep.c (qxe_opendir): * sysdep.c (qxe_readdir): * sysdep.c (qxe_rmdir): * sysdep.c (qxe_allocating_getcwd): * sysdep.c (qxe_access): * sysdep.c (qxe_eaccess): * sysdep.c (qxe_lstat): * sysdep.c (qxe_readlink): * sysdep.c (qxe_stat): * sysdep.c (qxe_chmod): * sysdep.c (qxe_link): * sysdep.c (qxe_rename): * sysdep.c (qxe_symlink): * sysdep.c (qxe_unlink): * sysdep.c (qxe_execve): * sysdep.c (qxe_getpwnam): * sysdep.c (qxe_ctime): * sysdep.h: * sysdir.h: * sysdir.h (qxe_allocating_getcwd): * sysfile.h: * sysfile.h (DECLARE_INLINE_HEADER): * sysproc.h: * syspwd.h: * systime.h: * syswindows.h: * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR): * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): * syswindows.h (WIN32_TO_LOCAL_FILE_FORMAT): * syswindows.h (LOCAL_FILE_FORMAT_MAYBE_URL_TO_TSTR): * syswindows.h (file_data): * syswindows.h (DECLARE_INLINE_HEADER): * termcap.c (tgetent): * tests.c (Ftest_data_format_conversion): * text.c: * text.c (qxesprintf): * text.c (qxestrcasecmp): * text.c (ascii_strcasecmp): * text.c (qxestrcasecmp_c): * text.c (qxestrcasecmp_i18n): * text.c (qxestrncasecmp): * text.c (ascii_strncasecmp): * text.c (qxestrncasecmp_c): * text.c (qxestrncasecmp_i18n): * text.c (qxememcmp): * text.c (qxememcmp4): * text.c (qxememcasecmp): * text.c (qxememcasecmp4): * text.c (qxetextcmp): * text.c (qxetextcmp_matching): * text.c (qxetextcasecmp): * text.c (qxetextcasecmp_matching): * text.c (lisp_strcasecmp): * text.c (convert_ibyte_string_into_ichar_dynarr): * text.c (convert_ibyte_string_into_ichar_string): * text.c (convert_ichar_string_into_ibyte_dynarr): * text.c (convert_ichar_string_into_malloced_string): * text.c (COPY_TEXT_BETWEEN_FORMATS): * text.c (copy_text_between_formats): * text.c (copy_buffer_text_out): * text.c (find_charsets_in_ibyte_string): * text.c (find_charsets_in_ichar_string): * text.c (ibyte_string_displayed_columns): * text.c (ichar_string_displayed_columns): * text.c (ibyte_string_nonascii_chars): * text.c (eistr_casefiddle_1): * text.c (eito_malloc_1): * text.c (eicmp_1): * text.c (eicpyout_malloc_fmt): * text.c (skip_ascii): * text.c (bytecount_to_charcount_fun): * text.c (charcount_to_bytecount_fun): * text.c (struct): * text.c (dfc_convert_to_external_format): * text.c (dfc_convert_to_internal_format): * text.c (non_ascii_set_itext_ichar): * text.c (non_ascii_itext_ichar): * text.c (non_ascii_valid_ichar_p): * text.c (non_ascii_itext_copy_ichar): * text.c (Lstream_get_ichar_1): * text.c (Lstream_fput_ichar): * text.c (Lstream_funget_ichar): * text.c (Fmake_char): * text.c (Fchar_charset): * text.c (Fchar_octet): * text.c (Fsplit_char): * text.c (lookup_composite_char): * text.c (composite_char_string): * text.c (Fcomposite_char_string): * text.c (reinit_vars_of_text): * text.h: * text.h (MAX_ICHAR_LEN): * text.h (ibyte_first_byte_p): * text.h (ibyte_leading_byte_p): * text.h (ichar_multibyte_p): * text.h (ichar_ascii_p): * text.h (ichar_16_bit_fixed_p): * text.h (ichar_to_raw): * text.h (valid_ibyteptr_p): * text.h (assert_valid_ibyteptr): * text.h (INC_IBYTEPTR): * text.h (INC_IBYTEPTR_FMT): * text.h (DEC_IBYTEPTR): * text.h (DEC_IBYTEPTR_FMT): * text.h (VALIDATE_IBYTEPTR_BACKWARD): * text.h (VALIDATE_IBYTEPTR_FORWARD): * text.h (validate_ibyte_string_backward): * text.h (itext_ichar_len): * text.h (INC_BYTECOUNT): * text.h (simple_itext_ichar): * text.h (itext_ichar): * text.h (valid_ichar_p): * text.h (CHAR_INTP): * text.h (ASSERT_VALID_BYTE_STRING_INDEX_UNSAFE): * text.h (LISP_STRING_TO_ALLOCA): * text.h (alloca_ibytes): * text.h (struct): * text.h (EI_ALLOC): * text.h (eicpy_lstr_off): * text.h (eicpy_raw_fmt): * text.h (eicpy_rawz_fmt): * text.h (eicpy_ch): * text.h (eireset): * text.h (eito_alloca): * text.h (DECLARE_INLINE_HEADER): * text.h (eigetch): * text.h (eicat_c): * text.h (eicat_raw): * text.h (eicat_rawz): * text.h (eicat_ch): * text.h (eisub_1): * text.h (eisub_ch): * text.h (EI_CASECHANGE): * text.h (DFC_LISP_STRING_USE_CONVERTED_DATA): * text.h (GET_STRERROR): * toolbar-common.c (common_output_toolbar_button): * tooltalk.c (check_status): * tooltalk.c (tt_message_arg_bval_vector): * ui-gtk.c (lisp_to_gtk_type): * unexnt.c (unexec): * unexnt.c (get_bss_info_from_map_file): * unicode.c: * unicode.c (sledgehammer_check_from_table): * unicode.c (sledgehammer_check_to_table): * unicode.c (set_unicode_conversion): * unicode.c (ichar_to_unicode): * unicode.c (unicode_to_char): * unicode.c (Fchar_to_unicode): * unicode.c (Funicode_to_char): * unicode.c (decode_unicode_char): * unicode.c (encode_unicode_char): * unicode.c (unicode_convert): * win32.c (urlify_filename): * win32.c (tstr_to_local_file_format): * win32.c (mswindows_canonicalize_filename): * win32.c (mswindows_lisp_error_1): * win32.c (Fmswindows_cygwin_to_win32_path): Text/char naming rationalization. [a] distinguish between "charptr" when it refers to operations on the pointer itself and when it refers to operations on text; and [b] use consistent naming for everything referring to internal format, i.e. Itext == text in internal format Ibyte == a byte in such text Ichar == a char as represented in internal character format thus e.g. set_charptr_emchar -> set_itext_ichar The pre and post tags on either side of this change are: pre-internal-format-textual-renaming post-internal-format-textual-renaming See the Internals Manual for details of exactly how this was done, how to handle the change in your workspace, etc. 2002-06-04 Andy Piper <andy@xemacs.org> * glyphs-widget.c (widget_logical_unit_height): don't try and determine geometry of nil strings. 2002-06-03 Andy Piper <andy@xemacs.org> * frame.c (frame_conversion_internal): add conversion appropriate for setting frame dimensions in pixels. * console.h (struct console_methods): add device-specific widget layout functions. * emacs.c (main_1): initialize glyph vars. * event-Xt.c (handle_focus_event_1): call handle_focus_event_2 (handle_focus_event_2): new function. Allow focus to be set to a particular window and widget. (enqueue_focus_event): new function. Create a synthetic focus event. (emacs_Xt_handle_magic_event): call handle_focus_event_2. * frame.c (Fset_frame_pixel_height): new function. Allow pixel-based sizing. Does the right thing on character-oriented displays. (Fset_frame_pixel_width): ditto. (Fset_frame_pixel_size): ditto. (syms_of_frame): declare. * general-slots.h: add :vertically-justify and :horizontally-justify. * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix. (mswindows_widget_border_width): new function. (mswindows_combo_box_instantiate): set border widths. (console_type_create_glyphs_mswindows): declare. * glyphs-widget.c: (check_valid_justification): allow vertical and horizontal justification. (widget_border_width): new function. Call device methods. (widget_instance_border_width): ditto. (logical_unit_height): new function. Determine the height of a logical-unit. Logical units are intended to provide grid-like layout for subcontrols in a layout. If the layout is :vertically-justify top then subcontrols will be positioned on logical-unit boundaries, thus allowing adjacent subcontrols to line up. (widget_logical_unit_height): ditto for widgets. (redisplay_widget): misc cleanup. (widget_spacing): new function. Call device specific methods. Intended to be the default gap between adjacent widgets. (widget_query_geometry): use new spacing functions to determine appropriate geometry. (initialize_widget_image_instance): initialize horizontal and vertical justification. (widget_instantiate): use logica-units where appropriate for sizing large widgets. (button_query_geometry): use widget_instance_border_width. (tree_view_query_geometry): ditto. (tab_control_query_geometry): ditto. (edit_field_query_geometry): new function. (layout_update): pick up :justify, :horizontally-justify and :vertically-justify none of which worked previously. :justify is used as a fallback for both horizontal and vertical justification. (layout_query_geometry): use logical units to size appropriately. (layout_layout): ditto. (Fwidget_logical_to_character_width): new function. Allow users to convert from logical units to characters so that frame sizes can be set appropriately. (Fwidget_logical_to_character_height): ditto. (syms_of_glyphs_widget): declare. (image_instantiator_edit_fields): add edit_field_query_geometry. (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and :horizontally-justify. (specifier_vars_of_glyphs_widget): new function. Declare Vwidget_border_width which is not yet used. * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events. (x_widget_border_width): new function. (x_widget_instantiate): create a sensible name for widgets. (console_type_create_glyphs_x): declare x_widget_border_width. * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro. (struct Lisp_Image_Instance): add :vertically-justify and :horizontally-justify. (LAYOUT_JUSTIFY_TOP): new. (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new. (ROUND_UP): new macro. Round argument up to next integral interval. * redisplay-output.c (redisplay_output_layout): misc formatting. * symsinit.h: declare specifier_vars_of_glyphs_widget. 2002-05-16 Mathias Grimmberger <mgri@zaphod.sax.de> * sysdep.c (sys_rename): Make sys_rename work for the case where Windows rename sets errno to EACCES if target file exists. 2002-05-21 Jonathan Harris <jonathan@xemacs.org> * device-msw.c (mswindows_handle_page_setup_dialog_box): Fix detection of metric units to work on Win95 2002-05-25 Andy Piper <andy@xemacs.org> * select-x.c (vars_of_select_x): Fix docstring of x-selection-strict-motif-ownership 2002-05-07 Nix <nix@esperi.demon.co.uk> Supersedes 2002-04-17 patch. * process.h (PROCESS_LIVE_P): Use the process status as evidence of health, not the state of the input stream. (PROCESS_READABLE_P): Say if the process is readable from. (It may be dead nonetheless.) (CHECK_READABLE_PROCESS): Test for that condition. * process.c (create_process): Use PROCESS_READABLE_P. (read_process_output, set_process_filter): Likewise. * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS. (Fset_process_input_coding_system, Fprocess_coding_system): Likewise. This code is #if 0'd, this is not the time to add new functions: * process.c (Fprocess_readable_p): Report readability status. * process.c (Qprocess_readable_p): New, associated symbol... * process.c (syms_of_process): ... initialize it. 2002-05-06 Andy Piper <andy@xemacs.org> * process.h (PROCESS_LIVE_P): revert previous change because of tty problems. 2002-04-27 Andy Piper <andy@xemacs.org> * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code. 2002-04-26 Andy Piper <andy@xemacs.org> * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus behavior. * config.h.in: pull in 21.5.x change to stop alloca warnings under cygwin. 2002-06-02 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> * process.c (remove_process): Don't invalidate the process marker after the process has died to make point synchronization in `call-process-internal' possible. 2002-06-01 Ben Wing <ben@xemacs.org> * buffer.c (init_initial_directory): Fix bug noted by someone. * console-tty.h: * device.h (struct device): * emacs.c: * filelock.c: * nt.c: * process-nt.c: * process-unix.c: * process.c: * redisplay-tty.c: * sysdep.c: * sysproc.h: * win32.c: Redo problem with syssignal.h/sysproc.h dependence noted by Didier -- rather than require one included before the other (error-prone), just include syssignal.h from sysproc.h where it's needed. * inline.c: Include sysfile.h due to inline funs in that header. * extents.c (Fset_extent_parent): Fix bug noted by Andrew Cohen <cohen@andy.bu.edu>. * process-unix.c (unix_open_network_stream): * process-unix.c (unix_open_multicast_group): Fix other bug noted by Andrew Cohen <cohen@andy.bu.edu>. * process.c (syms_of_process): Add process-has-separate-stderr-p, used by call-process-internal. 2002-05-28 Martin Köbele <mkoebele@mkoebele.de>, Jens Müller <jmueller@informatik.uni-tuebingen.de> * lrecord.h (lrecord_type): Add lrecord_type_weak_box to lrecord_type enumeration. * alloc.c (garbage_collect_1): Call prune_weak_boxes(). * lisp.h (struct weak_box): * data.c: (prune_weak_boxes): (mark_weak_box): (print_weak_box): (weak_box_equal): (weak_box_hash): (make_weak_box): (Fmake_weak_box): (Fweak_box_ref): (Fweak_boxp): (syms_of_data): (vars_of_data): Add implementation of weak boxes. 2002-05-29 Ben Wing <ben@xemacs.org> * event-msw.c: Oops, paren in wrong place. Oops, manifest constant needed earlier than defined. 2002-05-29 Didier Verna <didier@xemacs.org> * process-unix.c (unix_canonicalize_host_name): change gai_error to gai_err to avoid shadow declaration. * process-unix.c (unix_open_network_stream): ditto. 2002-05-28 Didier Verna <didier@xemacs.org> * emacs.c: comment the inclusion order of syssignal.h and sysproc.h. * filelock.c: ditto. * nt.c: ditto. * sysproc.h: ditto. * process-nt.c: ditto. * process-unix.c: include syssignal.h before sysproc.h. * process.c: ditto. * sysdep.c: ditto. * win32.c: ditto. 2002-05-28 Ben Wing <ben@xemacs.org> ================================================================ ALLOW SEPARATION OF STDOUT AND STDERR IN PROCESSES ================================================================ Standard output and standard error can be processed separately in a process. Each can have its own buffer, its own mark in that buffer, and its filter function. You can specify a separate buffer for stderr in `start-process' to get things started, or use the new primitives: set-process-stderr-buffer process-stderr-buffer process-stderr-mark set-process-stderr-filter process-stderr-filter Also, process-send-region takes a 4th optional arg, a buffer. Currently always uses a pipe() under Unix to read the error output. (#### Would a PTY be better?) * sysdep.h: * sysproc.h: * unexfreebsd.c (unexec): * unexsunos4.c (unexec): * nt.c (init_user_info): * emacs.c: * emacs.c (main_1): * callproc.c: * symsinit.h: * sysdep.c: * sysdep.c (wait_for_termination): * Makefile.in.in (objs): * process-unix.c (child_setup): Delete callproc.c. Move child_setup() to process-unix.c. wait_for_termination() now only needed on a few really old systems. * console-msw.h: * event-Xt.c (emacs_Xt_select_process): * event-Xt.c (emacs_Xt_unselect_process): * event-Xt.c (emacs_Xt_create_io_streams): * event-Xt.c (emacs_Xt_delete_io_streams): * event-Xt.c (debug_process_finalization): * event-Xt.c (reinit_vars_of_event_Xt): * event-msw.c (get_process_stderr_waitable): * event-msw.c (emacs_mswindows_select_process): * event-msw.c (emacs_mswindows_unselect_process): * event-msw.c (emacs_mswindows_create_io_streams): * event-msw.c (emacs_mswindows_delete_io_streams): * event-msw.c (debug_process_finalization): * event-msw.c (reinit_vars_of_event_mswindows): * event-msw.c (vars_of_event_mswindows): * event-msw.c (lstream_type_create_mswindows_selectable): * event-stream.c (event_stream_select_process): * event-stream.c (event_stream_unselect_process): * event-stream.c (event_stream_create_io_streams): * event-stream.c (event_stream_delete_io_streams): * event-stream.c (Faccept_process_output): * event-tty.c (emacs_tty_select_process): * event-tty.c (emacs_tty_unselect_process): * event-tty.c (emacs_tty_create_io_streams): * event-tty.c (emacs_tty_delete_io_streams): * event-tty.c (reinit_vars_of_event_tty): * event-unixoid.c: * event-unixoid.c (get_process_infd): * event-unixoid.c (get_process_errfd): * event-unixoid.c (event_stream_unixoid_select_process): * event-unixoid.c (event_stream_unixoid_unselect_process): * event-unixoid.c (event_stream_unixoid_create_io_streams): * event-unixoid.c (event_stream_unixoid_delete_io_streams): * events.h: * events.h (struct event_stream): * process-nt.c: * process-nt.c (struct nt_process_data): * process-nt.c (nt_create_process): * process-nt.c (get_internet_address): * process-nt.c (nt_open_network_stream): * process-unix.c: * process-unix.c (struct unix_process_data): * process-unix.c (UNIX_DATA): * process-unix.c (close_process_descs_mapfun): * process-unix.c (close_process_descs): * process-unix.c (connect_to_file_descriptor): * process-unix.c (process_signal_char): * process-unix.c (unix_alloc_process_data): * process-unix.c (unix_init_process_io_handles): * process-unix.c (unix_create_process): * process-unix.c (io_failure): Removed. * process-unix.c (unix_tooltalk_connection_p): * process-unix.c (unix_set_window_size): * process-unix.c (unix_reap_exited_processes): * process-unix.c (unix_deactivate_process): * process-unix.c (unix_kill_child_process): * process.c: * process.c (mark_process): * process.c (get_process_streams): * process.c (get_process_from_usid): * process.c (get_process_selected_p): * process.c (set_process_selected_p): * process.c (make_process_internal): * process.c (init_process_io_handles): * process.c (create_process): * process.c (Fstart_process_internal): * process.c (Fopen_multicast_group_internal): * process.c (process_setup_for_insertion): * process.c (read_process_output): * process.c (Fset_process_stderr_buffer): * process.c (Fprocess_stderr_mark): * process.c (set_process_filter): * process.c (Fset_process_filter): * process.c (Fset_process_stderr_filter): * process.c (Fprocess_stderr_filter): * process.c (exec_sentinel_unwind): * process.c (exec_sentinel): * process.c (status_notify): * process.c (Fprocess_send_eof): * process.c (deactivate_process): * process.c (syms_of_process): * process.c (vars_of_process): * process.h: * procimpl.h: * procimpl.h (struct process_methods): * procimpl.h (struct Lisp_Process): * procimpl.h (DATA_ERRSTREAM): Rewrite the process methods to handle a separate channel for error input. Create Lstreams for reading in the error channel. Many process methods need change. In general the changes are fairly clear as they involve duplicating what's used for reading the normal stdout and changing for stderr -- although tedious, as such changes are required throughout the entire process code. Rewrote the code that reads process output to do two loops, one for stdout and one for stderr. * gpmevent.c (get_process_infd): * gpmevent.c (Fgpm_enable): * tooltalk.c: * tooltalk.c (init_tooltalk): set_process_filter takes an argument for stderr. ================================================================ NEW ERROR-TRAPPING MECHANISM ================================================================ Totally rewrite error trapping code to be unified and support more features. Basic function is call_trapping_problems(), which lets you specify, by means of flags, what sorts of problems you want trapped. these can include -- quit -- errors -- throws past the function -- creation of "display objects" (e.g. buffers) -- deletion of already-existing "display objects" (e.g. buffers) -- modification of already-existing buffers -- entering the debugger -- gc -- errors->warnings (ala suspended errors) etc. All other error funs rewritten in terms of this one. Various older mechanisms removed or rewritten. * window.c (mark_window_as_deleted): * window.c (Fdelete_window): * window.c (Fset_window_configuration): * insdel.c (prepare_to_modify_buffer): * insdel.c (buffer_insert_string_1): * console.c (create_console): * buffer.c (finish_init_buffer): * device.c (allocate_device): * device.c (Fmake_device): * frame.c: * frame.c (Fmake_frame): * frame.c (allocate_frame_core): * frame.c (setup_normal_frame): * frame.c (delete_frame_internal): * window.c (Fsplit_window): * device.c (delete_device_internal): * console.c (delete_console_internal): * buffer.c (Fkill_buffer): When creating a display object, added call to note_object_created(), for use with trapping_problems mechanism. When deleting, call check_allowed_operation() and note_object deleted(). The trapping-problems code records the objects created since the call-trapping-problems began. Those objects can be deleted, but none others (i.e. previously existing ones). * bytecode.c (execute_rare_opcode): * cmdloop.c: * cmdloop.c (initial_command_loop): * cmdloop.c (Frecursive_edit): * cmdloop.c (call_command_loop): internal_catch takes another arg. * eval.c: Add long comments describing the "five lists" used to maintain state (backtrace, gcpro, specbind, etc.) in the Lisp engine. * backtrace.h: * eval.c (current_warning_level): * eval.c (call_debugger): * eval.c (signal_call_debugger): * eval.c (Fwhen): * eval.c (Fcatch): * eval.c (internal_catch): * eval.c (unwind_to_catch): * eval.c (throw_or_bomb_out): * eval.c (condition_bind_unwind): * eval.c (condition_case_1): * eval.c (Fcall_with_condition_handler): * eval.c (call_with_condition_handler): * eval.c (Fsignal): * eval.c (check_catchlist_sanity): * eval.c (check_specbind_stack_sanity): * eval.c (signal_quit): * eval.c (Feval): * eval.c (run_hook_list_with_args): * eval.c (run_hook): * eval.c (get_inhibit_flags): * eval.c (check_allowed_operation): * eval.c (note_object_created): * eval.c (note_object_deleted): * eval.c (struct call_trapping_problems): * eval.c (flagged_a_squirmer): * eval.c (call_trapping_problems_2): * eval.c (call_trapping_problems_1): * eval.c (call_trapping_problems): * eval.c (struct va_call_trapping_problems): * eval.c (va_call_trapping_problems_1): * eval.c (va_call_trapping_problems): * eval.c (call_with_suspended_errors): * eval.c (struct calln_trapping_problems): * eval.c (calln_trapping_problems_1): * eval.c (calln_trapping_problems): * eval.c (call1_trapping_problems): * eval.c (call2_trapping_problems): * eval.c (call3_trapping_problems): * eval.c (call4_trapping_problems): * eval.c (call5_trapping_problems): * eval.c (eval_in_buffer_trapping_problems_1): * eval.c (eval_in_buffer_trapping_problems): * eval.c (run_hook_trapping_problems): * eval.c (safe_run_hook_trapping_problems_1): * eval.c (safe_run_hook_trapping_problems): * eval.c (struct run_hook_with_args_in_buffer_trapping_problems): * eval.c (run_hook_with_args_in_buffer_trapping_problems_1): * eval.c (run_hook_with_args_in_buffer_trapping_problems): * eval.c (va_run_hook_with_args_trapping_problems): * eval.c (va_run_hook_with_args_in_buffer_trapping_problems): * eval.c (reinit_vars_of_eval): * eval.c (vars_of_eval): Implement trapping-problems mechanism, eliminate old mechanisms or redo in terms of new one. * frame.c (enter_redisplay_critical_section): * frame.c (exit_redisplay_critical_section): * gutter.c (redraw_exposed_gutters): * gutter.c (Fset_default_gutter_position): * gutter.c (Fredisplay_gutter_area): Flush out the concept of "critical display section", defined by the in_display() var. Use an internal_bind() to get it reset, rather than just doing it at end, because there may be a non-local exit. * event-msw.c (struct mswindows_protect_modal_loop): * event-msw.c (mswindows_protect_modal_loop_1): * event-msw.c (mswindows_protect_modal_loop): * event-msw.c (mswindows_unmodalize_signal_maybe): * event-msw.c (mswindows_pump_outstanding_events): * event-msw.c (mswindows_need_event): * event-msw.c (mswindows_dde_callback): * event-msw.c (mswindows_wnd_proc): * event-msw.c: * event-msw.c (vars_of_event_mswindows): * event-msw.c (struct ntpipe_slurp_stream_shared_data): * event-msw.c (struct ntpipe_shove_stream): * event-stream.c (pre_command_hook): * event-stream.c (post_command_hook): * event-stream.c (vars_of_event_stream): * event-stream.c (run_pre_idle_hook): * console-msw.h: * device.c (call_critical_lisp_code): Rewrite. * dialog-msw.c (dialog_proc): * frame.c (adjust_frame_size): * frame.h: * intl.c (init_intl): * toolbar.c (Fset_default_toolbar_position): * toolbar.c (update_toolbar_button): * menubar-msw.c (unsafe_handle_wm_initmenu_1): * menubar-msw.c (mswindows_handle_wm_initmenupopup): * menubar-msw.c (mswindows_handle_wm_initmenu): * redisplay.c: * redisplay.c (call_redisplay_end_triggers): * redisplay.c (redisplay_frame): * redisplay.c (redisplay_no_pre_idle_hook): * redisplay.c (eval_within_redisplay): * redisplay.c (Fredisplay_echo_area): * alloc.c (garbage_collect_1): * menubar-x.c: * menubar-x.c (menu_item_descriptor_to_widget_value_1): * menubar-x.c (struct menu_item_descriptor_to_widget_value): * menubar-x.c (protected_menu_item_descriptor_to_widget_value_1): * menubar-x.c (protected_menu_item_descriptor_to_widget_value): * menubar-x.c (pre_activate_callback): Make use of new trapping-errors stuff and rewrite code based on old mechanisms. * glyphs-widget.c (widget_query_geometry): * glyphs-widget.c (layout_query_geometry): * redisplay.h: Protect calling Lisp in redisplay. * insdel.c (signal_first_change): * insdel.c (signal_before_change): * insdel.c (signal_after_change): Protect hooks against deleting existing buffers. * frame-msw.c (mswindows_init_frame_1): Use EQ, not EQUAL in hash tables whose keys are just numbers. Otherwise we run into stickiness in redisplay because internal_equal() can QUIT. ================================================================ SIGNAL, C-G CHANGES ================================================================ Here we change the way that C-g interacts with event reading. The idea is that a C-g occurring while we're reading a user event should be read as C-g, but elsewhere should be a QUIT. The former code did all sorts of bizarreness -- requiring that no QUIT occurs anywhere in event-reading code (impossible to enforce given the stuff called or Lisp code invoked), and having some weird system involving enqueue/dequeue of a C-g and interaction with Vquit_flag -- and it didn't work. Now, we simply enclose all code where we want C-g read as an event with {begin/end}_dont_check_for_quit(). This completely turns off the mechanism that checks (and may remove or alter) C-g in the read-ahead queues, so we just get the C-g normal. Signal.c documents this very carefully. * cmdloop.c (Fcommand_loop_1): Correct use of dont_check_for_quit to new scheme, remove old out-of-date comments. * event-stream.c (maybe_echo_keys): * event-stream.c (enqueue_command_event_1): * event-stream.c (next_event_internal): * event-stream.c (Fnext_event): * event-stream.c (Fnext_command_event): * event-stream.c (Fdispatch_non_command_events): * event-stream.c (Fdiscard_input): * event-stream.c (Fsleep_for): * event-stream.c (Fsit_for): * event-stream.c (wait_delaying_user_input): * event-stream.c (execute_internal_event): * event-stream.c (lookup_command_event): * event-stream.c (Fread_key_sequence): * event-stream.c: * event-stream.c (event_stream_next_event): Fix C-g handling to actually work. * device-x.c (get_device_from_display): * device-x.c (x_error_handler): * device-x.c (x_IO_error_handler): Disable quit checking when err out. * signal.c: * signal.c (handle_async_timeout_signal): * signal.c (check_what_happened): * signal.c (begin_dont_check_for_quit): * signal.c (check_quit): Cleanup. Add large descriptive comment. * process-unix.c (unix_open_network_stream): * process-unix.c (unix_open_multicast_group): * process-nt.c (nt_open_network_stream): * sysdep.c (retry_read_1): * sysdep.c (retry_write_1): Use QUIT instead of REALLY_QUIT. It's not necessary to use REALLY_QUIT and just confuses the issue. * lisp.h (INTERNAL_QUITP): Comment quit handlers. ================================================================ CONS CHANGES ================================================================ free_cons() now takes a Lisp_Object not the result of XCONS(). car and cdr have been renamed so that they don't get used directly; go through XCAR(), XCDR() instead. * alloc.c (Fcons): * alloc.c (free_cons): * alloc.c (free_list): * alloc.c (free_alist): * dired.c (file_name_completion_unwind): * dired.c (user_name_completion_unwind): * editfns.c (save_excursion_save): * editfns.c (save_excursion_restore): * editfns.c (save_restriction_restore): * emodules.c (module_load_unwind): * fns.c: * fns.c (delq_no_quit_and_free_cons): * fns.c (merge_pred_function): * fns.c (tweaked_internal_equal): * glyphs-msw.c (extract_xpm_color_names): * glyphs-x.c (extract_xpm_color_names): * glyphs.c (image_instantiate_cache_result): * glyphs.c (image_instance_changed): * keymap.c (traverse_keymaps): * minibuf.c (read_minibuffer_internal_unwind): * search.c (free_created_dynarrs): * eval.c (specbind_unwind_local): * lread.c (various): * lisp.h (struct Lisp_Cons): * lisp.h (cons_car): Correct free_cons calling convention: now takes Lisp_Object, not Lisp_Cons * chartab.c (word_boundary_p): Eliminate direct use of ->car, ->cdr, should be black box. * callint.c (quotify_args): Rewrote using EXTERNAL_LIST_LOOP to avoid use of Lisp_Cons. ================================================================ USE INTERNAL-BIND-* ================================================================ * eval.c (restore_lisp_object): * eval.c (restore_int): Cleanups of these funs. * alloc.c (begin_gc_forbidden): * fileio.c: * fileio.c (close_file_unwind): * fileio.c (Fdo_auto_save): * undo.c: * undo.c (Fprimitive_undo): * specifier.c: * specifier.c (unlock_ghost_specifiers_protected): * specifier.c (set_specifier_caching): * text.c (dfc_convert_to_external_format): * text.c (dfc_convert_to_internal_format): * profile.c (struct get_profiling_info_closure): * profile.c (Fget_profiling_info): * lread.c: * lread.c (load_unwind): * lread.c (Fload_internal): * lread.c (read0): * lread.c (read1): * lread.c (read_list_conser): * lread.c (read_vector): * lread.c (read_compiled_function): * redisplay.c (Fredraw_frame): * redisplay.c (Fredisplay_frame): * redisplay.c (Fredraw_device): * redisplay.c (Note): New. * redisplay.c (Fredisplay_device): * redisplay.c (redisplay_without_hooks): * menubar-x.c (pre_activate_callback): * macros.c (Fexecute_kbd_macro): Rewrote to use internal_bind_int() and internal_bind_lisp_object() in place of whatever varied and cumbersome mechanisms were formerly there. ================================================================ SPECBIND SANITY ================================================================ * backtrace.h: - Improved comments * backtrace.h (SPECBIND): * backtrace.h (SPECBIND_FAST_UNSAFE): * backtrace.h (UNBIND_TO_GCPRO): * backtrace.h (UNBIND_TO): * backtrace.h (UNBIND_TO_GCPRO_VARIABLES_ONLY): * bytecode.c (execute_optimized_program): * eval.c (grow_specpdl): * eval.c (specbind): * eval.c (specbind_magic): * eval.c (record_unwind_protect): * eval.c (unbind_to_1): * eval.c (unbind_to_hairy): Add new mechanism check_specbind_stack_sanity() for sanity checking code each time the catchlist or specbind stack change. Removed older prototype of same mechanism. ================================================================ MISC ================================================================ * lisp.h: * insdel.c: * window.c: * device.c: * console.c: * buffer.c: Fleshed out authorship. * device-msw.c (mswindows_handle_page_setup_dialog_box): Correct bad Unicode-ization. * print.c (debug_print_no_newline): * print.c (debug_backtrace): Be more careful when not initialized or in fatal error handling. * search.c (looking_at_1): * search.c (string_match_1): * search.c (search_buffer): * search.c (Fstore_match_data): Eliminate running_asynch_code, an FSF holdover. * alloc.c (vars_of_alloc): * alloc.c: Added comments about gc-cons-threshold. * dialog-x.c: * dialog-x.c (dbox_descriptor_to_widget_value): Use begin_gc_forbidden() around code to build up a widget value tree, like in menubar-x.c. * gui.c (gui_item_id_hash): Use Qunbound not Qnil as the default for gethash. * lisp-disunion.h: * lisp-union.h: Added warnings on use of VOID_TO_LISP(). * lisp.h: Use ERROR_CHECK_STRUCTURES to turn on ERROR_CHECK_TRAPPING_PROBLEMS and ERROR_CHECK_TYPECHECK * lisp.h (assert_with_message): Add assert_with_message. * lisp.h (GCPRO1_ARRAY): * lisp.h (NGCPRO1_ARRAY): * lisp.h (NNGCPRO1_ARRAY): Add macros for gcproing entire arrays. (You could do this before but it required manual twiddling the gcpro structure.) * lisp.h: Add prototypes for new functions defined elsewhere. 2002-05-23 Ben Wing <ben@xemacs.org> * Makefile.in.in (objs): * Makefile.in.in (Emacs.ad.h): * Makefile.in.in (alloca.o): Removed. * Makefile.in.in (allocax.o): New. Add alloca.o. Ensure that alloca.s doesn't compile into alloca.o, but allocax.o (not that it's currently used or anything.) * EmacsFrame.c (Xt_StringToScrollBarPlacement): * abbrev.c (abbrev_oblookup): * alloc.c: * alloc.c (allocate_lisp_storage): * alloc.c (recompute_funcall_allocation_flag): * alloc.c (recompute_need_to_garbage_collect): * alloc.c (common_init_alloc_once_early): * alloca.c: * alloca.c (hdr): * alloca.c (xemacs_c_alloca): * callint.c (Fcall_interactively): * callproc.c (Fold_call_process_internal): * config.h.in: * config.h.in (XEMACS_WANTS_C_ALLOCA): * device-msw.c (msprinter_default_printer): * device-msw.c (Fmswindows_printer_list): * device-x.c (x_init_device): * dired.c (Fdirectory_files): * dired.c (file_name_completion_stat): * doc.c (get_doc_string): * editfns.c (Fformat_time_string): * emacs.c (main_1): * emodules.c (emodules_load): * eval.c (Ffuncall): * event-Xt.c (x_to_emacs_keysym): * event-msw.c (mswindows_dde_callback): * event-msw.c (mswindows_wnd_proc): * event-stream.c (Fnext_event): * file-coding.c (setup_eol_coding_systems): * fileio.c: * fileio.c (Fdirectory_file_name): * fileio.c (if): * fileio.c (Fsubstitute_in_file_name): * fileio.c (Fencrypt_string): * fileio.c (Fdecrypt_string): * filelock.c (MAKE_LOCK_NAME): * filelock.c (lock_file_1): * filelock.c (current_lock_owner): * filelock.c (lock_file): * fns.c (concat): * fns.c (mapcar1): * fns.c (Fbase64_encode_region): * fns.c (Fbase64_encode_string): * fns.c (Fbase64_decode_region): * fns.c (Fbase64_decode_string): * glyphs-gtk.c (gtk_xface_instantiate): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (mswindows_widget_property): * glyphs-msw.c (mswindows_combo_box_property): * glyphs-x.c (x_xface_instantiate): * gui-x.c (add_accel_and_to_external): * input-method-xlib.c (EmacsXtCvtStringToXIMStyles): * intl-win32.c (Fmswindows_get_valid_keyboard_layouts): * lisp.h: * lisp.h (alloca_new): * lisp.h (NOTE): New. * lisp.h (MAX_STRING_ASCII_BEGIN): * lread.c (Fload_internal): * lread.c (locate_file_map_suffixes): * menubar-gtk.c (menu_descriptor_to_widget_1): * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar.c (Fnormalize_menu_item_name): * mule-wnnfns.c (Fwnn_open): * nt.c (init_mswindows_environment): * objects-msw.c (mswindows_string_to_color): * objects-msw.c (mswindows_font_instance_truename): * process-nt.c (nt_create_process): * realpath.c (cygwin_readlink_and_correct_case): * redisplay-gtk.c: * redisplay-gtk.c (gtk_text_width): * redisplay-gtk.c (gtk_output_string): * redisplay-output.c: * redisplay-output.c (compare_runes_2): * redisplay-x.c: * redisplay-x.c (x_text_width): * redisplay-x.c (x_output_string): * redisplay.c (generate_displayable_area): * redisplay.c (regenerate_window): * search.c (wordify): * search.c (Fregexp_quote): * select-msw.c (mswindows_own_selection): * sysdep.c (sys_subshell): * sysdep.c (init_system_name): * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): * syswindows.h (WIN32_TO_LOCAL_FILE_FORMAT): * text.c (convert_emchar_string_into_malloced_string): * text.h: * text.h (EI_ALLOC): * text.h (eito_alloca): * text.h (EI_CASECHANGE): * text.h (DFC_ALLOCA_USE_CONVERTED_DATA): * text.h (DFC_C_STRING_ALLOCA_USE_CONVERTED_DATA): * text.h (GET_STRERROR): * ui-byhand.c (Fgtk_curve_get_vector): * ui-byhand.c (Fgtk_curve_set_vector): Fix Raymond Toy's crash. Repeat to self: 2^21 - 1 is NOT the same as (2 << 21) - 1. Fix crashes due to excessive alloca(). replace alloca() with ALLOCA(), which calls the C alloca() [which uses xmalloc()] when the size is too big. Insert in various places calls to try to flush the C alloca() stored info if there is any. Add MALLOC_OR_ALLOCA(), for places that expect to be alloca()ing large blocks. This xmalloc()s when too large and records an unwind-protect to free -- relying on the caller to unbind_to() elsewhere in the function. Use it in concat(). Use MALLOC instead of ALLOCA in select-msw.c. 2002-05-21 Jonathan Harris <jonathan@xemacs.org> * device-msw.c (mswindows_handle_page_setup_dialog_box): Fix detection of metric units to work on Win95 2002-05-17 Stephen J. Turnbull <stephen@xemacs.org> * eldap.c (print_ldap): swap arguments of write_c_string. 2002-05-16 Ben Wing <ben@xemacs.org> * bytecode.c (execute_rare_opcode): * editfns.c: * editfns.c (save_restriction_save): * editfns.c (save_restriction_restore): * editfns.c (Fsave_restriction): * lisp.h: * lread.c (Feval_region): Fix save-restriction to use markers rather than pseudo-markers (integers representing the amount of text on either side of the region). That way, all inserts are handled correctly, not just those inside old restriction. Add buffer argument to save_restriction_save(). * process.c: * process.c (process_setup_for_insertion): * process.c (read_process_output): * process.c (status_notify): Clean up very dirty and kludgy code that outputs into a buffer -- use proper unwind protects, etc. * font-lock.c (find_context): Do save-restriction/widen around the function -- otherwise, incorrect results will ensue when a buffer has been narrowed before a call to e.g. `buffer-syntactic-context' -- something that happens quite often. * fileio.c: * fileio.c (Fmake_temp_name): * fileio.c (syms_of_fileio): Look for a handler for make-temp-name. * window.c: * window.c (allocate_window): * window.c (Fset_window_point): * window.c (unshow_buffer): * window.c (Fset_window_buffer): * window.c (make_dummy_parent): * winslots.h: Try to solve this annoying problem: have two frames displaying the buffer, in different places; in one, temporarily switch away to another buffer and then back -- and you've lost your position; it's reset to the other one in the other frame. My current solution involves window-level caches of buffers and points (also a cache for window-start); when set-window-buffer is called, it looks to see if the buffer was previously visited in the window, and if so, uses the most recent point at that time. (It's a marker, so it handles changes.) #### Note: It could be argued that doing it on the frame level would be better -- e.g. if you visit a buffer temporarily through a grep, and then go back to that buffer, you presumably want the grep's position rather than some previous position provided everything was in the same frame, even though the grep was in another window in the frame. However, doing it on the frame level fails when you have two windows on the same frame. Perhaps we keep both a window and a frame cache, and use the frame cache if there are no other windows on the frame showing the buffer, else the window's cache? This is probably something to be configurable using a specifier. Suggestions please please please? * window.c (window_scroll): * window.c (Fmove_to_window_line): Clean up a bit code that deals with the annoyance of window-point vs. point. 2002-05-16 Stephen J. Turnbull <stephen@xemacs.org> * select.c (Fown_selection_internal): * select.c (Fget_selection_internal): Revert Jerry James's 2002-04-23 patch. 2002-05-14 Ben Wing <ben@xemacs.org> * font-lock.c (find_context): Don't use off the beginning position to initiate syntax cache. 2002-05-14 Ben Wing <ben@xemacs.org> * text.c (copy_buffer_text_out): Fix bug leading to crashes with multibyte text. * win32.c (Fmswindows_shell_execute): Fix crash due to errant xfree(). 2002-05-14 Ben Wing <ben@xemacs.org> * callproc.c (Fold_call_process_internal): Use Fget_buffer_create() with a string buffer, as documented. * extents.c (signal_extent_changed): indentation. * lstream.c (lisp_buffer_reader): fix a bug in selective-display handling; not the crash we're seeing. * marker.c: * marker.c (byte_marker_position): * marker.c (set_byte_marker_position): delete superfluous error-checking -- it's already there in bytebpos_to_membpos() and vice-versa. 2002-05-13 Ben Wing <ben@xemacs.org> * config.h.in: * font-lock.c: Reenable font-lock code since it's used by mouse.el. The flag for this exists in config.h.in but not currently controllable through configure. 2002-05-13 Adrian Aichner <adrian@xemacs.org> * callproc.c: Process-related docstring improvements spurred by Norbert Koch. 2002-05-09 Ben Wing <ben@xemacs.org> * doprnt.c (emacs_doprnt_1): Use make_int() not make_char() when error about bad charval, or abort will occur. * extents.c (signal_extent_changed): Loop over children, not ourself -- avoid infinite loop. * lisp-disunion.h: * lisp-union.h: Rename make_char() to make_char_1 for error-checking purposes. * lread.c (read_escape): Syntax error if escape is outside of ISO-8859-1 range. Remove hopelessly broken (and unworkable) FSF_KEYS code. * mule-coding.c (Fdecode_shift_jis_char): * search.c (skip_chars): Spacing changes. * text.h: New make_char() -- verify that the char value is legal. 2002-04-23 Jerry James <james@xemacs.org> * select.c (Fown_selection_internal): Document connection with interprogram-cut-function. * select.c (Fget_selection_internal): return Qnil if XEmacs owns the selection and it does not need coercion. Document connection with interprogram-paste-function. 2002-05-06 Jonathan Harris <jonathan@xemacs.org> * console-msw.h: * event-msw.c (mswindows_wnd_proc): Condition references to menu accelerator functions on HAVE_MENUBARS. * frame-msw.c (mswindows_init_frame_3): Remove obsolete runemacs hack which called ShowWindow() twice. * intl-auto-encap-win32.c: * intl-auto-encap-win32.h: * intl-encap-win32.c: Use handwritten version of GetEnvironmentStrings() in intl-encap-win32.c. * ntproc.c: Removed. * s/windowsnt.h: Disable .data section renaming hack when using portable dumping. Force _WIN32_WINNT = 0x0400 since intl-auto-encap-win32.[ch] requires this. 2002-05-05 Ben Wing <ben@xemacs.org> * Makefile.in.in (batch_test_emacs): Fix so that packages are around when testing. * abbrev.c (struct abbrev_match_mapper_closure): * abbrev.c (abbrev_match_mapper): * abbrev.c (abbrev_match): * abbrev.c (Fexpand_abbrev): * alloc.c (deadbeef_memory): * alloc.c (STRING_FULLSIZE): * alloc.c (sledgehammer_check_ascii_begin): * alloc.c (make_uninit_string): * alloc.c (set_string_char): * alloc.c (init_string_ascii_begin): * alloc.c (make_string_nocopy): * alloc.c (compact_string_chars): * alloc.c (debug_string_purity_print): * buffer.c (mark_buffer): * buffer.c (print_buffer): * buffer.c (finish_init_buffer): * buffer.c (Fother_buffer): * buffer.c (Fkill_buffer): * buffer.h: * buffer.h (struct buffer_text): * buffer.h (struct buffer): * buffer.h (BYTE_BUF_BEG): * buffer.h (BYTE_BUF_BEGV): * buffer.h (BYTE_BUF_ZV): * buffer.h (BYTE_BUF_Z): * buffer.h (BYTE_BUF_PT): * buffer.h (INC_BYTEBPOS): * buffer.h (make_charbpos): * buffer.h (BYTE_BUF_FETCH_CHAR_RAW): * buffer.h (BYTE_BUF_CHARPTR_COPY_EMCHAR): * buffer.h (SET_BOTH_BUF_BEGV): * buffer.h (SET_BOTH_BUF_ZV): * buffer.h (BOTH_BUF_SET_PT): * buffer.h (BUF_NARROWED): * buffer.h (BYTE_BUF_CEILING_OF_IGNORE_ACCESSIBLE): * buffer.h (BYTE_BUF_FLOOR_OF_IGNORE_ACCESSIBLE): * bytecode.c (optimize_compiled_function): * bytecode.c (print_compiled_function): * bytecode.c (Fcompiled_function_annotation): * callint.c (Fcall_interactively): * casefiddle.c: * casefiddle.c (casify_object): * casefiddle.c (casify_region_internal): * casetab.c: * casetab.c (STRING256_P): * casetab.c (print_case_table): * casetab.c (allocate_case_table): * casetab.c (Fmake_case_table): * casetab.c (case_table_char): * casetab.c (Fget_case_table): * casetab.c (Fput_case_table): * casetab.c (Fput_case_table_pair): * casetab.c (Fcopy_case_table): * casetab.c (compute_canon_mapper): * casetab.c (compute_up_or_eqv_mapper): * casetab.c (recompute_case_table): * casetab.c (convert_old_style_syntax_string): * casetab.c (set_case_table): * casetab.c (Fset_standard_case_table): * casetab.c (syms_of_casetab): * casetab.c (complex_vars_of_casetab): * casetab.h: * casetab.h (struct Lisp_Case_Table): * charset.h: * charset.h (emchar_charset): * charset.h (leading_byte_private_p): * charset.h (private_leading_byte_prefix): * charset.h (CHARSET_PRIVATE_P): * charset.h (EMCHAR_FIELD1_MASK): * charset.h (emchar_field1): * charset.h (MIN_EMCHAR_FIELD2_OFFICIAL): * charset.h (MIN_EMCHAR_FIELD1_OFFICIAL): * charset.h (MIN_EMCHAR_FIELD2_PRIVATE): * charset.h (MIN_EMCHAR_FIELD1_PRIVATE): * charset.h (MIN_CHAR_OFFICIAL_TYPE9N): * charset.h (BREAKUP_EMCHAR_1_UNSAFE): * charset.h (BREAKUP_EMCHAR): * chartab.c: * chartab.c (char_table_entry_hash): * chartab.c (decode_char_table_range): * chartab.c (encode_char_table_range): * chartab.c (struct ptemap): * chartab.c (print_table_entry): * chartab.c (print_char_table): * chartab.c (char_table_equal): * chartab.c (char_table_hash): * chartab.c (set_char_table_default): * chartab.c (fill_char_table): * chartab.c (Freset_char_table): * chartab.c (Fmake_char_table): * chartab.c (get_non_ascii_char_table_value): * chartab.c (Fchar_table_default): * chartab.c (Fget_char_table): * chartab.c (copy_mapper): * chartab.c (copy_char_table_range): * chartab.c (get_range_char_table): * chartab.c (Fget_range_char_table): * chartab.c (put_char_table): * chartab.c (Fput_char_table): * chartab.c (Fremove_char_table): * chartab.c (map_over_charset_ascii_1): * chartab.c (map_over_charset_control_1): * chartab.c (map_over_charset_row): * chartab.c (map_over_other_charset): * chartab.c (map_char_table): * chartab.c (slow_map_char_table_fun): * chartab.c (Fmap_char_table): * chartab.c (check_category_char): * chartab.c (CATEGORY_SET): * chartab.c (word_boundary_p): * chartab.c (syms_of_chartab): * chartab.h: * chartab.h (struct Lisp_Char_Table): * cmds.c: * cmds.c (internal_self_insert): * console-msw.h: * console-stream.c (stream_clear_region): * console-stream.c (stream_ring_bell): * console-x.c (x_semi_canonicalize_console_connection): * console.c (find_nonminibuffer_frame_not_on_console_predicate): * console.h: * data.c (eq_with_ebola_notice): * data.c (Faref): * data.c (Faset): * device-msw.c (print_devmode): * device.c (find_nonminibuffer_frame_not_on_device_predicate): * device.h: * device.h (struct pixel_to_glyph_translation_cache): * dialog-msw.c (dialog_proc): * dialog-x.c (maybe_run_dbox_text_callback): * dired-msw.c: * dired-msw.c (mswindows_get_files): * dired.c: * dired.c (Fdirectory_files): * dired.c (file_name_completion): * dired.c (user_name_completion): * doc.c (unparesseuxify_doc_string): * doprnt.c (emacs_doprnt_1): * dumper.c: * dumper.c (PDUMP_READ_ALIGNED): * dumper.c (pdump_structure_size): * dumper.c (pdump): * dumper.c (pdump_load_finish): * editfns.c: * editfns.c (Fstring_to_char): * editfns.c (Ftranslate_region): * editfns.c (Fdelete_region): * editfns.c (widen_buffer): * editfns.c (Fnarrow_to_region): * editfns.c (save_restriction_restore): * elhash.c (print_hash_table_data): * elhash.c (print_hash_table): * elhash.c (Finternal_hash_value): * emacs.c: * emacs.c (main_1): * emacs.c (standard_args): * eval.c (print_subr): * eval.c (Fuser_variable_p): * eval.c (backtrace_specials): * eval.c (Fbacktrace): * event-Xt.c (USE_CHARSET): * event-Xt.c (x_keysym_to_character): * event-Xt.c (emacs_Xt_format_magic_event): * event-gtk.c (emacs_gtk_format_magic_event): * event-msw.c (mswindows_wnd_proc): * event-msw.c (mswindows_find_frame): * event-msw.c (FROB): * event-msw.c (emacs_mswindows_format_magic_event): * event-stream.c (external_debugging_print_event): * event-stream.c (command_builder_find_leaf): * event-stream.c (dribble_out_event): * events.c (print_event_1): * events.c (print_event): * events.c (nth_of_key_sequence_as_event): * events.c (Fevent_next): * events.c (Fset_event_next): * events.h: * extents.c: * extents.c (stack_of_extents): * extents.c (memxpos_to_startind): * extents.c (buffer_or_string_bytexpos_to_startind): * extents.c (buffer_or_string_bytexpos_to_endind): * extents.c (gap_array_adjust_markers): * extents.c (gap_array_move_gap): * extents.c (extent_list_locate_from_pos): * extents.c (extent_list_at): * extents.c (soe_dump): * extents.c (soe_move): * extents.c (extent_endpoint_byte): * extents.c (extent_endpoint_char): * extents.c (signal_single_extent_changed): * extents.c (signal_extent_changed): * extents.c (signal_extent_property_changed): * extents.c (extent_attach): * extents.c (extent_detach): * extents.c (extent_in_region_p): * extents.c (map_extents): * extents.c (adjust_extents): * extents.c (adjust_extents_for_deletion): * extents.c (extent_find_end_of_run): * extents.c (extent_find_beginning_of_run): * extents.c (extent_fragment_update): * extents.c (print_extent_1): * extents.c (print_extent): * extents.c (extent_remprop): * extents.c (extent_endpoint_external): * extents.c (Fextent_length): * extents.c (Fnext_extent_change): * extents.c (Fprevious_extent_change): * extents.c (Fset_extent_parent): * extents.c (set_extent_endpoints_1): * extents.c (set_extent_endpoints): * extents.c (set_extent_openness): * extents.c (make_extent): * extents.c (Fmake_extent): * extents.c (Fset_extent_endpoints): * extents.c (Fextent_in_region_p): * extents.c (Fmap_extents): * extents.c (struct slow_map_extent_children_arg): * extents.c (slow_map_extent_children_function): * extents.c (Fmap_extent_children): * extents.c (struct extent_at_arg): * extents.c (decode_extent_at_flag): * extents.c (extent_at): * extents.c (Fextent_at): * extents.c (Fextents_at): * extents.c (struct verify_extents_arg): * extents.c (verify_extent_modification): * extents.c (struct process_extents_for_insertion_arg): * extents.c (process_extents_for_insertion_mapper): * extents.c (process_extents_for_insertion): * extents.c (struct process_extents_for_deletion_arg): * extents.c (process_extents_for_deletion): * extents.c (report_extent_modification_mapper): * extents.c (report_extent_modification): * extents.c (set_extent_invisible): * extents.c (Fset_extent_face): * extents.c (Fset_extent_mouse_face): * extents.c (set_extent_glyph): * extents.c (Fset_extent_begin_glyph_layout): * extents.c (Fset_extent_end_glyph_layout): * extents.c (Fset_extent_priority): * extents.c (Fset_extent_property): * extents.c (extent_properties): * extents.c (ADD_PROP): * extents.c (Fextent_properties): * extents.c (do_highlight): * extents.c (run_extent_copy_paste_internal): * extents.c (run_extent_copy_function): * extents.c (run_extent_paste_function): * extents.c (run_extent_paste_function_char): * extents.c (insert_extent): * extents.c (struct add_string_extents_arg): * extents.c (add_string_extents_mapper): * extents.c (struct add_string_extents_the_hard_way_arg): * extents.c (add_string_extents_the_hard_way_mapper): * extents.c (add_string_extents): * extents.c (struct splice_in_string_extents_arg): * extents.c (splice_in_string_extents_mapper): * extents.c (struct splice_in_string_extents_the_hard_way_arg): * extents.c (splice_in_string_extents_the_hard_way_mapper): * extents.c (splice_in_string_extents): * extents.c (copy_string_extents_mapper): * extents.c (copy_string_extents): * extents.c (get_char_property): * extents.c (get_char_property_char): * extents.c (Fget_text_property): * extents.c (Fget_char_property): * extents.c (struct put_text_prop_arg): * extents.c (put_text_prop_mapper): * extents.c (put_text_prop_openness_mapper): * extents.c (put_text_prop): * extents.c (Fput_text_property): * extents.c (Fadd_text_properties): * extents.c (Fremove_text_properties): * extents.c (next_single_property_change): * extents.c (previous_single_property_change): * extents.h: * extents.h (struct extent): * faces.c (print_face): * faces.c (update_face_inheritance_mapper): * faces.c (ensure_face_cachel_complete): * faces.c (face_cachel_charset_font_metric_info): * file-coding.c (print_coding_system): * file-coding.c (print_coding_system_in_print_method): * file-coding.c (chain_print): * file-coding.c (no_conversion_convert): * file-coding.c (undecided_print): * file-coding.c (gzip_print): * file-coding.h (DECLARE_CODING_SYSTEM_TYPE): * file-coding.h (DECODE_ADD_BINARY_CHAR): * fileio.c (Ffile_truename): * fileio.c (expand_and_dir_to_file): * fns.c (print_bit_vector): * fns.c (Flength): * fns.c (Fstring_lessp): * fns.c (Fsplit_path): * fns.c (Ffillarray): * fns.c (Fbase64_encode_string): * fns.c (Fbase64_decode_string): * font-lock.c: * font-lock.c (find_context): * frame-gtk.c (gtk_set_frame_text_value): * frame-msw.c (mswindows_get_mouse_position): * frame-msw.c (mswindows_get_frame_parent): * frame-x.c: * frame-x.c (x_set_frame_text_value): * frame.c: * frame.c (allocate_frame_core): * frame.c (Fignore_event): * frame.h: * glade.c (connector): * glyphs-gtk.c: * glyphs-gtk.c (convert_EImage_to_GDKImage): * glyphs-gtk.c (gtk_print_image_instance): * glyphs-gtk.c (gtk_locate_pixmap_file): * glyphs-msw.c (mswindows_locate_pixmap_file): * glyphs-msw.c (mswindows_print_image_instance): * glyphs-msw.c (charset_of_text): * glyphs-msw.h: * glyphs-x.c (LISP_DEVICE_TO_X_SCREEN): * glyphs-x.c (convert_EImage_to_XImage): * glyphs-x.c (x_print_image_instance): * glyphs-x.c (x_locate_pixmap_file): * glyphs.c (check_instance_cache_mapper): * glyphs.c (print_image_instance): * glyphs.c (query_string_font): * glyphs.c (check_valid_xbm_inline): * glyphs.c (display_table_entry): * glyphs.h: * gui-msw.c (mswindows_handle_gui_wm_command): * gui-x.c (mark_widget_value_mapper): * gui-x.c (popup_selection_callback): * gui.h: * gutter.h (GUTTER_POS_LOOP): * hash.h: * indent.c: * indent.c (column_at_point): * indent.c (string_column_at_point): * indent.c (byte_spaces_at_point): * indent.c (Fcurrent_indentation): * indent.c (Fmove_to_column): * insdel.c (BYTE_BUF_GPT): * insdel.c (SET_BYTE_BUF_GPT): * insdel.c (SET_END_SENTINEL): * insdel.c (set_buffer_point): * insdel.c (gap_left): * insdel.c (gap_right): * insdel.c (move_gap): * insdel.c (merge_gap_with_end_gap): * insdel.c (make_gap): * insdel.c (signal_before_change): * insdel.c (signal_after_change): * insdel.c (buffer_insert_string_1): * insdel.c (buffer_delete_range): * insdel.c (buffer_replace_char): * insdel.c (make_string_from_buffer_1): * insdel.c (init_buffer_text): * intl-win32.c: * intl-win32.c (Fmswindows_get_valid_code_pages): * intl-win32.c (Fmswindows_get_console_code_page): * intl-win32.c (Fmswindows_set_console_code_page): * intl-win32.c (Fmswindows_get_console_output_code_page): * intl-win32.c (Fmswindows_set_console_output_code_page): * intl-win32.c (Fmswindows_get_code_page_charset): * intl-win32.c (Fmswindows_get_valid_keyboard_layouts): * intl-win32.c (Fmswindows_get_keyboard_layout): * intl-win32.c (Fmswindows_set_keyboard_layout): * intl-win32.c (mswindows_multibyte_to_unicode_print): * intl.c: * intl.c (Fignore_defer_gettext): * keymap.c (print_keymap): * keymap.c (keymap_lookup_directly): * keymap.c (keymap_store): * keymap.c (define_key_check_and_coerce_keysym): * keymap.c (Fdefine_key): * keymap.c (Flookup_key): * keymap.c (map_keymap_mapper): * keymap.c (Fkey_description): * lisp-disunion.h: * lisp-disunion.h (VALMASK): * lisp-disunion.h (VOID_TO_LISP): * lisp-union.h: * lisp-union.h (union Lisp_Object): * lisp-union.h (XPNTRVAL): * lisp-union.h (XREALINT): * lisp-union.h (INTP): * lisp.h: * lisp.h (DECLARE_POINTER_TYPE_ARITH_COUNT): * lisp.h (MAX_ALIGN_SIZE): * lisp.h (struct Lisp_String): * lisp.h (set_lispstringp_length): * lisp.h (XSET_STRING_LENGTH): * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): * lisp.h (SYMBOL_IS_KEYWORD): * lread.c: * lrecord.h: * lrecord.h (DECLARE_LRECORD): * lrecord.h (DECLARE_EXTERNAL_LRECORD): * lrecord.h (DECLARE_NONRECORD): * lstream.c (aligned_sizeof_lstream): * lstream.c (Lstream_really_write): * lstream.c (make_lisp_buffer_stream_1): * lstream.c (make_lisp_buffer_input_stream): * lstream.c (lisp_buffer_reader): * lstream.c (lisp_buffer_writer): * lstream.h: * marker.c (print_marker): * marker.c (byte_marker_position): * marker.c (marker_position): * marker.c (set_byte_marker_position): * marker.c (set_marker_position): * marker.c (Fbuffer_has_markers_at): * menubar-gtk.c (__torn_off_sir): * menubar-gtk.c (__activate_menu): * menubar-gtk.c (__generic_button_callback): * menubar-msw.c: * menubar-x.c (pre_activate_callback): * menubar-x.c (command_builder_operate_menu_accelerator): * menubar-x.c (command_builder_find_menu_accelerator): * menubar.c: * menubar.c (Fnormalize_menu_item_name): * minibuf.c: * minibuf.c (Ftry_completion): * minibuf.c (Fall_completions): * minibuf.c (Fminibuffer_prompt): * minibuf.c (Fminibuffer_prompt_width): * minibuf.c (echo_area_append): * mule-ccl.c: * mule-ccl.c (CCL_WRITE_CHAR): * mule-ccl.c (CCL_WRITE_STRING): * mule-ccl.c (CCL_MAKE_CHAR): * mule-ccl.c (ccl_driver): * mule-charset.c (Fmake_charset): * mule-charset.c (Fcharset_from_attributes): * mule-coding.c (byte_shift_jis_two_byte_1_p): * mule-coding.c (byte_shift_jis_two_byte_2_p): * mule-coding.c (byte_shift_jis_katakana_p): * mule-coding.c (shift_jis_convert): * mule-coding.c (Fdecode_shift_jis_char): * mule-coding.c (Fencode_shift_jis_char): * mule-coding.c (byte_big5_two_byte_1_p): * mule-coding.c (byte_big5_two_byte_2_p): * mule-coding.c (big5_convert): * mule-coding.c (decode_big5_char): * mule-coding.c (Fencode_big5_char): * mule-coding.c (charset_by_attributes_or_create_one): * mule-coding.c (iso2022_decode): * mule-coding.c (iso2022_encode): * mule-coding.c (iso2022_print): * mule-coding.c (iso2022_detect): * mule-wnnfns.c (m2w): * nas.c: * objects-msw.c (mswindows_string_to_color): * objects-msw.c (mswindows_font_spec_matches_charset): * objects-x.c (x_font_instance_properties): * opaque.c (aligned_sizeof_opaque): * postgresql.c (print_pgconn): * postgresql.c (print_pgresult): * print.c: * print.c (output_string): * print.c (write_string_1): * print.c (write_string): * print.c (write_c_string): * print.c (write_eistring): * print.c (write_fmt_string): * print.c (write_fmt_string_lisp): * print.c (stderr_out_lisp): * print.c (Fterpri): * print.c (Fprint): * print.c (print_error_message): * print.c (print_vector_internal): * print.c (print_cons): * print.c (print_string): * print.c (print_internal): * print.c (print_float): * print.c (print_symbol): * process-nt.c (nt_create_process): * process-unix.c (close_process_descs_mapfun): * process.c (print_process): * process.c (get_process_from_usid): * process.c (Fstart_process_internal): * process.c (status_message): * process.c (status_notify): * process.c (Fprocess_connection): * process.c (getenv_internal): * process.c (putenv_internal): * process.h: * profile.c (get_profiling_info_maphash): * profile.c (mark_profiling_info_maphash): * rangetab.c (print_range_table): * rangetab.c (unified_range_table_copy_data): * rangetab.c (align_the_damn_table): * redisplay-gtk.c: * redisplay-gtk.c (separate_textual_runs): * redisplay-gtk.c (gtk_output_display_block): * redisplay-msw.c (separate_textual_runs): * redisplay-msw.c (mswindows_output_display_block): * redisplay-output.c: * redisplay-output.c (ADJ_CHARPOS): * redisplay-output.c (redisplay_move_cursor): * redisplay-output.c (redisplay_update_line): * redisplay-x.c (separate_textual_runs): * redisplay-x.c (x_output_display_block): * redisplay.c: * redisplay.c (position_redisplay_data_type): * redisplay.c (struct prop_block): * redisplay.c (generate_display_line): * redisplay.c (add_hscroll_rune): * redisplay.c (add_emchar_rune_1): * redisplay.c (add_blank_rune): * redisplay.c (add_octal_runes): * redisplay.c (add_control_char_runes): * redisplay.c (add_disp_table_entry_runes_1): * redisplay.c (add_propagation_runes): * redisplay.c (add_glyph_rune): * redisplay.c (create_text_block): * redisplay.c (add_margin_blank): * redisplay.c (generate_modeline): * redisplay.c (generate_fstring_runes): * redisplay.c (create_string_text_block): * redisplay.c (generate_string_display_line): * redisplay.c (generate_displayable_area): * redisplay.c (REGEN_INC_FIND_START_END): * redisplay.c (regenerate_window_extents_only_changed): * redisplay.c (regenerate_window_incrementally): * redisplay.c (point_visible): * redisplay.c (point_at_center): * redisplay.c (update_internal_cache_list): * redisplay.c (UPDATE_CACHE_RETURN): * redisplay.c (pixel_to_glyph_translation): * redisplay.h: * redisplay.h (struct rune): * redisplay.h (struct display_line): * redisplay.h (struct extent_fragment): * regex.c: * regex.c (RE_TRANSLATE_1): * regex.c (charptr_emchar): * regex.c (INC_CHARPTR_FMT): * regex.c (SYNTAX): * regex.c (EXTEND_BUFFER): * regex.c (regex_compile): * regex.c (compile_range): * regex.c (compile_extended_range): * regex.c (re_compile_fastmap): * regex.c (re_search): * regex.c (re_search_2): * regex.c (REGEX_PREFETCH): * regex.c (WORDCHAR_P): * regex.c (re_match): * regex.c (re_match_2): * regex.c (re_match_2_internal): * regex.c (re_compile_pattern): * regex.c (re_comp): * regex.c (make-backup-files): Removed. * regex.c (version-control): Removed. * regex.c (trim-versions-without-asking): Removed. * regex.c (End): Removed. * regex.h: * regex.h (RE_LISP_SHORT_CONTEXT_ARGS_DECL): * scrollbar-msw.c (mswindows_free_scrollbar_instance): * scrollbar-msw.c (mswindows_handle_scrollbar_event): * scrollbar-msw.c (mswindows_handle_mousewheel_event): * search.c: * search.c (matcher_overflow): * search.c (compile_pattern_1): * search.c (compile_pattern): * search.c (fixup_search_regs_for_buffer): * search.c (looking_at_1): * search.c (Fposix_looking_at): * search.c (string_match_1): * search.c (fast_string_match): * search.c (byte_scan_buffer): * search.c (scan_buffer): * search.c (byte_find_next_newline_no_quit): * search.c (byte_find_next_emchar_in_string): * search.c (find_before_next_newline): * search.c (skip_chars): * search.c (search_command): * search.c (trivial_regexp_p): * search.c (search_buffer): * search.c (simple_search): * search.c (boyer_moore): * search.c (set_search_regs): * search.c (wordify): * search.c (Freplace_match): * search.c (match_limit): * search.c (Fmatch_data): * search.c (Fstore_match_data): * select-x.c (hack_motif_clipboard_selection): * select-x.c (Fx_store_cutbuffer_internal): * specifier.c (print_specifier): * specifier.c (aligned_sizeof_specifier): * specifier.c (recompute_cached_specifier_everywhere_mapfun): * specifier.h: * specifier.h (DECLARE_SPECIFIER_TYPE): * symbols.c (Fintern): * symsinit.h: * syntax.c: * syntax.c (struct lisp_parse_state): * syntax.c (find_defun_start): * syntax.c (Fset_syntax_table): * syntax.c (init_syntax_cache): * syntax.c (update_syntax_cache): * syntax.c (Fchar_syntax): * syntax.c (charset_syntax): * syntax.c (syntax_match): * syntax.c (Fmatching_paren): * syntax.c (WORD_BOUNDARY_P): * syntax.c (scan_words): * syntax.c (find_start_of_comment): * syntax.c (find_end_of_comment): * syntax.c (Fforward_comment): * syntax.c (scan_lists): * syntax.c (char_quoted): * syntax.c (Fbackward_prefix_chars): * syntax.c (scan_sexps_forward): * syntax.c (Fparse_partial_sexp): * syntax.c (copy_to_mirrortab): * syntax.c (copy_if_not_already_present): * syntax.c (update_just_this_syntax_table): * syntax.c (update_syntax_table): * syntax.c (syms_of_syntax): * syntax.c (vars_of_syntax): * syntax.c (complex_vars_of_syntax): * syntax.h: * syntax.h (SYNTAX_CODE): * syntax.h (SYNTAX_FROM_CODE): * syntax.h (SYNTAX_PREFIX): * syntax.h (struct syntax_cache): * syswindows.h: * tests.c (Ftest_data_format_conversion): * text.c: * text.c (convert_emchar_string_into_malloced_string): * text.c (COPY_TEXT_BETWEEN_FORMATS): * text.c (copy_buffer_text_out): * text.c (find_charsets_in_intbyte_string): * text.c (find_charsets_in_emchar_string): * text.c (intbyte_string_displayed_columns): * text.c (emchar_string_displayed_columns): * text.c (intbyte_string_nonascii_chars): * text.c (eicpyout_malloc_fmt): * text.c (skip_ascii): * text.c (charcount_to_bytecount_fun): * text.c (charbpos_to_bytebpos_func): * text.c (bytebpos_to_charbpos_func): * text.c (buffer_mule_signal_inserted_region): * text.c (buffer_mule_signal_deleted_region): * text.c (get_buffer_range_char): * text.c (get_buffer_range_byte): * text.c (get_string_pos_char): * text.c (get_string_range_char): * text.c (get_buffer_or_string_pos_char): * text.c (get_buffer_or_string_pos_byte): * text.c (get_buffer_or_string_range_char): * text.c (get_buffer_or_string_range_byte): * text.c (buffer_or_string_accessible_begin_char): * text.c (buffer_or_string_accessible_end_char): * text.c (buffer_or_string_accessible_begin_byte): * text.c (buffer_or_string_accessible_end_byte): * text.c (buffer_or_string_absolute_begin_char): * text.c (buffer_or_string_absolute_end_char): * text.c (buffer_or_string_absolute_begin_byte): * text.c (buffer_or_string_absolute_end_byte): * text.c (dfc_convert_to_external_format): * text.c (dfc_convert_to_internal_format): * text.c (non_ascii_set_charptr_emchar): * text.c (non_ascii_charptr_emchar): * text.c (non_ascii_valid_emchar_p): * text.c (non_ascii_charptr_copy_emchar): * text.c (Lstream_get_emchar_1): * text.c (Fmake_char): * text.c (Fchar_charset): * text.c (Fchar_octet): * text.c (Fsplit_char): * text.c (lookup_composite_char): * text.c (Fmake_composite_char): * text.c (Fcomposite_char_string): * text.h: * text.h (rep_bytes_by_first_byte): * text.h (byte_ascii_p): * text.h (intbyte_leading_byte_p): * text.h (emchar_multibyte_p): * text.h (emchar_ascii_p): * text.h (assert_valid_charptr): * text.h (INC_CHARPTR): * text.h (INC_CHARPTR_FMT): * text.h (DEC_CHARPTR_FMT): * text.h (VALIDATE_CHARPTR_BACKWARD): * text.h (validate_intbyte_string_backward): * text.h (simple_charptr_copy_emchar): * text.h (charptr_emchar): * text.h (valid_emchar_p): * text.h (CHAR_INTP): * text.h (eicpy_lstr): * text.h (eicpy_raw_fmt): * text.h (eicpy_raw): * text.h (eicpy_rawz_fmt): * text.h (eicpy_rawz): * text.h (eicpyout_alloca): * text.h (eicat_lstr): * text.h (GET_STRERROR): * tooltalk.c (tooltalk_message_callback): * tooltalk.c (tooltalk_pattern_callback): * ui-byhand.c (__generic_toolbar_callback): * ui-byhand.c (__emacs_gtk_ctree_recurse_internal): * ui-gtk.c (emacs_gtk_object_printer): * ui-gtk.c (__internal_callback_destroy): * ui-gtk.c (__internal_callback_marshal): * ui-gtk.c (emacs_gtk_boxed_printer): * ui-gtk.c (gtk_type_to_lisp): * unicode.c (sledgehammer_check_from_table): * unicode.c (sledgehammer_check_to_table): * unicode.c (set_unicode_conversion): * unicode.c (emchar_to_unicode): * unicode.c (unicode_to_char): * unicode.c (recalculate_unicode_precedence): * unicode.c (Fchar_to_unicode): * unicode.c (encode_unicode_char): * unicode.c (unicode_convert): * unicode.c (unicode_print): * win32.c: * win32.c (tstr_to_local_file_format): * win32.c (mswindows_lisp_error_1): * win32.c (Fmswindows_shell_execute): * window.c (print_window): * window.c (print_window_config): * window.c (Fcurrent_pixel_column): Another big Ben patch. -- FUNCTIONALITY CHANGES: add partial support for 8-bit-fixed, 16-bit-fixed, and 32-bit-fixed formats. not quite done yet. (in particular, needs functions to actually convert the buffer.) NOTE: lots of changes to regex.c here. also, many new *_fmt() inline funs that take an Internal_Format argument. redo syntax cache code. make the cache per-buffer; keep the cache valid across calls to functions that use it. also keep it valid across insertions/deletions and extent changes, as much as is possible. eliminate the junky regex-reentrancy code by passing in the relevant lisp info to the regex routines as local vars. add general mechanism in extents code for signalling extent changes. fix numerous problems with the case-table implementation; yoshiki never properly transferred many algorithms from old-style to new-style case tables. redo char tables to support a default argument, so that mapping only occurs over changed args. change many chartab functions to accept Lisp_Object instead of Lisp_Char_Table *. comment out the code in font-lock.c by default, because font-lock.el no longer uses it. we should consider eliminating it entirely. Don't output bell as ^G in console-stream when not a TTY. add -mswindows-termination-handle to interface with i.c, so we can properly kill a build. add more error-checking to buffer/string macros. add some additional buffer_or_string_() funs. -- INTERFACE CHANGES AFFECTING MORE CODE: switch the arguments of write_c_string and friends to be consistent with write_fmt_string, which must have printcharfun first. change BI_* macros to BYTE_* for increased clarity; similarly for bi_* local vars. change VOID_TO_LISP to be a one-argument function. eliminate no-longer-needed CVOID_TO_LISP. -- char/string macro changes: rename MAKE_CHAR() to make_emchar() for slightly less confusion with make_char(). (The former generates an Emchar, the latter a Lisp object. Conceivably we should rename make_char() -> wrap_char() and similarly for make_int(), make_float().) Similar changes for other *CHAR* macros -- we now consistently use names with `emchar' whenever we are working with Emchars. Any remaining name with just `char' always refers to a Lisp object. rename macros with XSTRING_* to string_* except for those that reference actual fields in the Lisp_String object, following conventions used elsewhere. rename set_string_{data,length} macros (the only ones to work with a Lisp_String_* instead of a Lisp_Object) to set_lispstringp_* to make the difference clear. try to be consistent about caps vs. lowercase in macro/inline-fun names for chars and such, which wasn't the case before. we now reserve caps either for XFOO_ macros that reference object fields (e.g. XSTRING_DATA) or for things that have non-function semantics, e.g. directly modifying an arg (BREAKUP_EMCHAR) or evaluating an arg (any arg) more than once. otherwise, use lowercase. here is a summary of most of the macros/inline funs changed by all of the above changes: BYTE_*_P -> byte_*_p XSTRING_BYTE -> string_byte set_string_data/length -> set_lispstringp_data/length XSTRING_CHAR_LENGTH -> string_char_length XSTRING_CHAR -> string_emchar INTBYTE_FIRST_BYTE_P -> intbyte_first_byte_p INTBYTE_LEADING_BYTE_P -> intbyte_leading_byte_p charptr_copy_char -> charptr_copy_emchar LEADING_BYTE_* -> leading_byte_* CHAR_* -> EMCHAR_* *_CHAR_* -> *_EMCHAR_* *_CHAR -> *_EMCHAR CHARSET_BY_ -> charset_by_* BYTE_SHIFT_JIS* -> byte_shift_jis* BYTE_BIG5* -> byte_big5* REP_BYTES_BY_FIRST_BYTE -> rep_bytes_by_first_byte char_to_unicode -> emchar_to_unicode valid_char_p -> valid_emchar_p 2002-04-30 Charles G. Waldman <cgw@xemacs.org> * sysdep.c (sys_siglist): change "signum" to "signal" 2001-04-21 Martin Buchholz <martin@xemacs.org> * s/darwin.h: New file. Thanks to Greg Parker <gparker@cs.stanford.edu>. 2002-04-23 Andreas Jaeger <aj@suse.de> * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x which use lib64 for 64-bit libs. (START_FILES): Likewise. 2002-02-11 Mike Sperber <mike@xemacs.org> * device-x.c: (x_IO_error_handler): (x_init_device): Temporarily keep device in static variable `device_being_initialized' so we can recover gracefully from internal XOpenDevice failure. (XOpenDevice is documented to return NULL on failure, but sometimes calls the IO error handler instead.) 2002-01-31 John H. Palmieri <palmieri@math.washington.edu> * dired.c (Ffile_name_all_completions): Change documentation -- remove reference to completion-ignored-extensions. * dired.c (vars_of_dired): Change documentation for completion-ignored-extensions -- remove reference to file-name-all-completions. 2002-03-06 Jerry James <james@xemacs.org> * emodules.c (emodules_load): Fix multiple loading of same module. 2002-01-25 Andrew Begel <abegel@cs.berkeley.edu> * sysdll.c (dll_open): Changed to use RTLD_NOW instead of RTLD_LAZY to avoid incorrect symbol binding when using nested shared libraries on Solaris. 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org> * fileio.c (Ffind_file_name_handler): Improve docstring. 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org> * fns.c (Fmapconcat): Improve docstring. 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org> * device-gtk.c: Add prototype for emacs_gtk_selection_clear_event_handle. (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD selection. Setup signal handler for "selection_clear_event" (emacs_gtk_selection_clear_event_handle). * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle other applications owning the clipboard (based on x_handle_selection_clear). 2001-12-23 William M. Perry <wmperry@gnu.org> * menubar-gtk.c (gtk_popup_menu) Add sanity checks, fix crash. 2002-01-04 Martin Buchholz <martin@xemacs.org> * keymap.c (define_key_alternate_name): Parenthesize EQ. 2001-12-17 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.4.6 "Common Lisp" is released. Change intbyte_strcmp -> qxestrcmp_c (duplicated functionality). -- INTERFACE CHANGES AFFECTING LESS CODE: use DECLARE_INLINE_HEADER in various places. remove '#ifdef emacs' from XEmacs-only files. eliminate CHAR_TABLE_VALUE(), which duplicated the functionality of get_char_table(). add BUFFER_TEXT_LOOP to simplify iterations over buffer text. define typedefs for signed and unsigned types of fixed sizes (INT_32_BIT, UINT_32_BIT, etc.). create ALIGN_FOR_TYPE as a higher-level interface onto ALIGN_SIZE; fix code to use it. add charptr_emchar_len to return the text length of the character pointed to by a ptr; use it in place of charcount_to_bytecount(..., 1). add emchar_len to return the text length of a given character. add types Bytexpos and Charxpos to generalize Bytebpos/Bytecount and Charbpos/Charcount, in code (particularly, the extents code and redisplay code) that works with either kind of index. rename redisplay struct params with names such as `charbpos' to e.g. `charpos' when they are e.g. a Charxpos, not a Charbpos. eliminate xxDEFUN in place of DEFUN; no longer necessary with changes awhile back to doc.c. split up big ugly combined list of EXFUNs in lisp.h on a file-by-file basis, since other prototypes are similarly split. rewrite some "*_UNSAFE" macros as inline funs and eliminate the _UNSAFE suffix. move most string code from lisp.h to text.h; the string code and text.h code is now intertwined in such a fashion that they need to be in the same place and partially interleaved. (you can't create forward references for inline funs) 2002-04-30 Charles G. Waldman <cgw@xemacs.org> * sysdep.c (sys_siglist): change "signum" to "signal" 2002-04-24 Andy Piper <andy@xemacs.org> * redisplay.c (create_text_block): Don't actually add propagation data if the line ends after we have added a glyph. * lisp.h (Dynarr_end): Fix definition. 2002-04-22 Andy Piper <andy@xemacs.org> * extents.c (extent_fragment_update): check for glyphs we have previously displayed. * extents.c (print_extent_1): warning removal. * extents.h: change prototype. * redisplay-output.c (redisplay_normalize_glyph_area): calculate widths correctly for wide glyphs. * redisplay.c (position_redisplay_data_type): add end_glyph_width. * redisplay.c (prop_type): add PROP_GLYPH. * redisplay.c (struct prop_block): add glyph type * redisplay.c (add_glyph_rune): when adding part of a glyph add it to the propagation data. * redisplay.c (create_text_block): if there is a glyph in the propagation data use it to salt extent_fragment_update. * redisplay.c (create_string_text_block): ditto. 2002-04-13 Nix <nix@esperi.demon.co.uk> * redisplay.h (struct rune): Add ascent, descent, and yoffset fields. * redisplay-output.c (compare_runes): Compare them. * redisplay.c: Update copyright date. * redisplay.c (pos_data): Add need_baseline_computation field. * redisplay.c (add_glyph_rune): Update ascent, descent, and need_baseline_computation; zero yoffset. Set max_pixmap_height for all pixmaps, not just automatically positioned ones. * redisplay.c (calculate_yoffset): New, compute yoffset values. * redisplay.c (calculate_baseline): New, compute textual baseline. * redisplay.c (add_glyph_rune): Call them. * redisplay.c (create_text_block): Likewise. * redisplay.c (create_overlay_glyph_block): Likewise. * redisplay.c (add_margin_runes): Likewise. * redisplay.c (create_string_text_block): Likewise. Fix tabdamage. * redisplay.h: (redisplay_calculate_display_boxes): Change prototype. * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset. * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset. * redisplay-msw.c (mswindows_output_string): Likewise. * redisplay-msw.c (mswindows_output_display_block): Pass yoffset. * redisplay-gtk.c (gtk_output_display_block): Likewise. * redisplay-x.c (x_output_display_block): Likewise. 2002-04-02 Andy Piper <andy@xemacs.org> * dired-msw.c (mswindows_get_files): * nt.c (mswindows_stat): SetErrorMode() so that file errors are completely handled by XEmacs. Suggested by Thomas Vogler <mail@thomas-vogler.de>. 2002-04-01 Andy Piper <andy@xemacs.org> * emacs.c (Fkill_emacs): Only output message box in interactive mode. 2002-03-14 Mike Alexander <mta@arbortext.com> * event-msw.c (mswindows_unwait_process): New, remove process from wait list * process-nt.c (nt_finalize_process_data): Call mswindows_unwait_process * console-msw.h: Declare mswindows_unwait_process 2002-03-20 Andy Piper <andy@xemacs.org> * menubar-msw.c (mswindows_popup_menu): warning removal. * dialog-msw.c (dialog_popped_down): ditto. 2002-02-13 Andy Piper <andy@xemacs.org> * event-msw.c (mswindows_wnd_proc): only mark the frame visible if we did in fact enqueue the XM_MAPFRAME event. 2002-02-06 Adrian Aichner <adrian@xemacs.org> * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER operation. * src/buffer.c (kill_buffer): Undedicate windows showing BUF before replacing them. * redisplay.c (mark_redisplay): Remove call to update_frame_window_mirror. * src/window.c (undedicate_windows): Use it. * src/window.h: Add prototype. 2002-01-03 Andy Piper <andy@xemacs.org> * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive letters. (xrealpath): ditto. 2001-12-11 Andy Piper <andy@xemacs.org> * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p. * dialog-msw.c (mswindows_make_dialog_box_internal): set popup_up_p. * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto. * menubar-msw.c (mswindows_handle_wm_command): ditto. * menubar-msw.c (mswindows_popup_menu): ditto. 2001-11-24 Andy Piper <andy@xemacs.org> * window.c (Fsplit_window): Doc return type. 2001-07-30 Adrian Aichner <adrian@xemacs.org> * event-msw.c: Typo fix. * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after magic XM_MAPFRAME event has been sent. 2001-11-23 Andy Piper <andy@xemacs.org> * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events. 2001-11-21 Andy Piper <andy@xemacs.org> * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with mouse events outside the frame. 2001-11-15 Andy Piper <andy@xemacs.org> (Fmswindows_shell_execute): fix handling of URL's under cygwin (again). 2001-11-14 Andy Piper <andy@xemacs.org> * nt.c (REG_ROOT): change registry key to XEmacs. 2001-10-29 Andy Piper <andy@xemacs.org> * dialog-msw.c (handle_directory_dialog_box): quit if the user cancels. 2002-04-15 Ben Wing <ben@xemacs.org> * process.c: Need sysdep.h for environ. 2002-04-14 Ben Wing <ben@xemacs.org> * lisp.h: Add support for strong type-checking of Bytecount, Bytebpos, Charcount, Charbpos, and others, by making them classes, overloading the operators to provide integer-like operation and carefully controlling what operations are allowed. Not currently enabled in C++ builds because there are still a number of compile errors, and it won't really work till we merge in my "8-bit-Mule" workspace, in which I make use of the new types Charxpos, Bytexpos, Memxpos, representing a "position" either in a buffer or a string. (This is especially important in the extent code.) * abbrev.c: * abbrev.c (abbrev_oblookup): * alloc.c (STRING_CHARS_BLOCK_SIZE): * alloc.c (allocate_string_chars_struct): * alloc.c (make_uninit_string): * alloc.c (set_string_char): * alloc.c (build_intstring): * eval.c (record_unwind_protect_restoring_lisp_object): * eval.c (record_unwind_protect_restoring_int): * buffer.c (init_initial_directory): * buffer.h (BI_BUF_PTR_BYTE_POS): * buffer.h (real_charbpos_to_bytebpos): * editfns.c (Fuser_full_name): * editfns.c (Finsert_char): * fns.c (Ffillarray): * text.h: * text.h (REP_BYTES_BY_FIRST_BYTE_1): * text.h (simple_set_charptr_emchar): * text.h (DECLARE_INLINE_HEADER): * text.h (endif): Warning fixes, some of them related to new C++ strict type checking of Bytecount, Charbpos, etc. * dired.c (file_name_completion): Caught an actual error due to strong type checking -- char len being passed when should be byte len. * alloc.c: * alloc.c (DECREMENT_CONS_COUNTER): * alloc.c (memory_full): * alloc.c (Fmake_byte_code): * alloc.c (garbage_collect_1): * alloc.c (recompute_need_to_garbage_collect): * alloc.c (common_init_alloc_once_early): * backtrace.h: * backtrace.h (SPECBIND_FAST_UNSAFE): * bytecode.c: * bytecode.c (execute_optimized_program): * bytecode.c (mark_compiled_function): * bytecode.h: * bytecode.h (struct Lisp_Compiled_Function): * eval.c: * eval.c (handle_compiled_function_with_and_rest): * eval.c (funcall_compiled_function): * eval.c (Feval): * eval.c (Ffuncall): * eval.c (function_argcount): * sysdep.c (total_data_usage): Further optimize Ffuncall: -- process arg list at compiled-function creation time, converting into an array for extra-quick access at funcall time. -- rewrite funcall_compiled_function to use it, and inline this function. -- change the order of check for magic stuff in SPECBIND_FAST_UNSAFE to be faster. -- move the check for need to garbage collect into the allocation code, so only a single flag needs to be checked in funcall. * buffer.c (Fstring_char_byte_converion_info): * buffer.c (syms_of_buffer): * symbols.c: * symbols.c (intern_converting_underscores_to_dashes): add debug funs to check on mule optimization info in buffers and strings. * eval.c (init_eval_semi_early): * emacs.c (main_1): * text.c (reinit_eistring_once_early): * regex.c (vars_of_regex): * scrollbar-msw.c (vars_of_scrollbar_mswindows): * search.c (vars_of_search): Fix evil crashes due to eistrings not properly reinitialized under pdump. Redo a bit some of the init routines; convert some complex_vars_of() into simple vars_of(), because they didn't need complex processing. * callproc.c: * callproc.c (call_process_kill): * callproc.c (call_process_cleanup): * callproc.c (Fold_call_process_internal): * callproc.c (child_setup): * callproc.c (syms_of_callproc): * callproc.c (getenv): Removed. * emacs.c: * emacs.c (main_1): * event-stream.c (check_event_stream_ok): * event-stream.c (init_event_stream): * nt.c: * nt.c (init_mswindows_environment): * nt.c (Fmswindows_long_file_name): * nt.c (init_nt): * process.c: * process.c (init_process_io_handles): * process.c (Fstart_process_internal): * process.c (getenv_internal): * process.c (putenv_internal): * process.c (getenv): New. * process.c (DEFUN): * process.c (Fgetenv): * process.c (egetenv): * process.c (init_xemacs_process): * process.c (syms_of_process): * process.c (vars_of_process): * process.h: * sysdep.c (wait_for_termination): * sysdep.c (init_baud_rate): * sysdep.c (emacs_get_tty): * sysdep.c (emacs_set_tty): * sysdep.c (tty_init_sys_modes_on_device): * sysdep.h: * syssignal.h: * syswindows.h: * ntproc.c: Delete. Hallelujah, praise the Lord, there is no god but Allah!!! fix so that processes can be invoked in bare temacs -- thereby eliminating any need for callproc.c. (currently only eliminated under NT.) remove all crufty and unnecessary old process code in ntproc.c and elsewhere. move non-callproc-specific stuff (mostly environment) into process.c, so callproc.c can be left out under NT. * console-tty.c (tty_init_console): * doc.c: * doc.c (unparesseuxify_doc_string): * doc.c (get_doc_string): * doc.c (Fsnarf_documentation): * file-coding.c: * file-coding.c (coding_reader): * file-coding.c (set_coding_character_mode): * file-coding.c (make_coding_stream_1): * file-coding.c (make_coding_output_stream): * file-coding.c (detect_coding_stream): * file-coding.h: * file-coding.h (struct coding_stream): * file-coding.h (LSTREAM_FL_NO_CLOSE_OTHER): * lstream.c: * lstream.c (Lstream_read_1): * lstream.c (Lstream_read): * lstream.c (Lstream_fgetc): * lstream.h (lstream_implementation): fix doc string handling so it works with Japanese, etc docs. change handling of "character mode" so callers don't have to manually set it (quite error-prone). * event-msw.c (init_event_mswindows_late): spacing fixes. * lread.c: * lread.c (pas_de_holgazan_ici): * lread.c (load_force_doc_string_unwind): * lread.c (readevalloop): * lread.c (read_list_conser): * lread.c (read_vector): eliminate unused crufty vintage-19 "FSF defun hack" code. * lrecord.h: improve pdump description docs. * buffer.c: * ntheap.c: * ntheap.c (round_to_next): * ntheap.c (get_data_start): * ntheap.c (get_data_end): * ntheap.c (allocate_heap): * ntheap.c (sbrk): * ntheap.c (recreate_heap): * unexnt.c: * unexnt.c (_start): * unexnt.c (unexec): * unexnt.c (get_bss_info_from_map_file): * unexnt.c (get_section_info): * unexnt.c (copy_executable_and_dump_data_section): * unexnt.c (dump_bss_and_heap): * unexnt.c (read_in_bss): * unexnt.c (map_in_heap): * win32.c: * win32.c (mswindows_get_module_file_name): * emacs.c (make_arg_list_1): * emacs.c (Fdump_emacs): Mule-ize some unexec and startup code. It was pseudo-Mule-ized before by simply always calling the ...A versions of functions, but that won't cut it -- eventually we want to be able to run properly even if XEmacs has been installed in a Japanese directory. (The current problem is the timing of the loading of the Unicode tables; this will eventually be fixed.) Go through and fix various other places where the code was not Mule-clean. Provide a function mswindows_get_module_file_name() to get our own name without resort to PATH_MAX and such. Add a big comment in main() about the problem with Unicode table load timing that I just alluded to. * emacs.c (guts_of_fatal_error_signal): * emacs.c (mswindows_handle_hardware_exceptions_1): When error-checking is enabled (interpreted as "user is developing XEmacs"), don't ask user to "pause to read messages" when a fatal error has occurred, because it will wedge if we are in an inner modal loop (typically when a menu is popped up) and make us unable to get a useful stack trace in the debugger. * text.c (update_entirely_ascii_p_flag): * text.c (charbpos_to_bytebpos_func): * text.c (bytebpos_to_charbpos_func): Correct update_entirely_ascii_p_flag to actually work. * lisp.h: * symsinit.h: declarations for above changes. 2002-04-13 Jonathan Harris <jonathan@xemacs.org> * unexnt.c (_start): * unexnt.c (unexec): * unexnt.c (map_in_heap): Clean up one remaining file where nonintercepted Windows calls were being used. 2002-04-07 William M. Perry <wmperry@gnu.org> * event-gtk.c: * device-gtk.c: * glyphs-gtk.c: * frame-gtk.c: * gtk-xemacs.c: * menubar-gtk.c: * redisplay-gtk.c: Need to include device.h and window.h in a few places. Not sure which .h has changed that was transparently pulling them in before, but... 2002-03-06 Jerry James <james@xemacs.org> * emodules.c (emodules_load): Fix multiple loading of same module. 2002-04-05 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.6 "bok choi" is released. 2002-04-03 Ben Wing <ben@xemacs.org> * console-tty.c (tty_init_console): * eval.c: * eval.c (restore_lisp_object): * eval.c (restore_int): * eval.c (record_unwind_protect_restoring_int): * event-unixoid.c (read_event_from_tty_or_stream_desc): * file-coding.c (coding_reader): * file-coding.c (make_coding_stream_1): * file-coding.c (make_coding_input_stream): * file-coding.c (make_coding_output_stream): * file-coding.c (detect_coding_stream): * file-coding.h: * file-coding.h (DETECTOR_HAS_METHOD): * file-coding.h (struct coding_stream): * lisp.h: * print.c (Fprin1): * print.c (Fprin1_to_string): * print.c (Fprinc): * print.c (Fprint): * print.c (print_internal): * print.c (debug_print_no_newline): * print.c (debug_backtrace): * sysdep.c (total_data_usage): Fix data corruption error in print.c from print_depth becoming negative. Borrow primitives internal_bind_int, internal_bind_lisp_object from my stderr-proc ws, soon to be integrated; use them to properly bind print_depth et al. First fix for TTY problem. The basic problem is I switched things so that the TTY I/O is filtered through a coding system, for the support of kterm and such, that speak JIS or similar encodings. (#### I ***swear*** I had this working way back in 19.12.) Anyway, this introduced buffering issues, in which instead of one char being read, it tried to read 1024 chars. I tried setting the stdin descriptor non-blocking, but it doesn't appear to work on Cygwin. (#### Andy, do you know anything about this?) So I fixed it elsewhere. If you get weirdness on the TTY, look in console-tty.c and see how it gets the coding system; maybe there's a way to change it (and if not, there should be!). Also fix warning in sysdep.c. 2002-03-31 Ben Wing <ben@xemacs.org> * alloc.c: * alloc.c (INCREMENT_CONS_COUNTER): * alloc.c (xmalloc): * alloc.c (xcalloc): * alloc.c (xrealloc): * alloc.c (Fmemory_limit): * alloc.c (Fmemory_usage): * alloc.c (common_init_alloc_once_early): * alloc.c (syms_of_alloc): * alloc.c (vars_of_alloc): * bytecode.c: * bytecode.c (Ffetch_bytecode): * chartab.c (symbol_to_char_table_type): * chartab.c (Fget_range_char_table): * chartab.c (check_valid_char_table_value): * data.c (Faref): * data.c (Faset): * data.c (Fquo): * data.c (Fmod): * data.c (decode_weak_list_type): * data.c (encode_weak_list_type): * elhash.c (decode_hash_table_weakness): * elhash.c (decode_hash_table_test): * emacs.c (main): * eval.c: * eval.c (Feval): * eval.c (Ffuncall): * event-Xt.c (x_to_emacs_keysym): * event-unixoid.c: * event-unixoid.c (poll_fds_for_input): * extents.c (decode_extent_at_flag): * extents.c (symbol_to_glyph_layout): * file-coding.c (symbol_to_eol_type): * file-coding.c (Fcoding_system_aliasee): * file-coding.c (coding_category_symbol_to_id): * fileio.c (report_file_type_error): * fileio.c (Fsubstitute_in_file_name): * fns.c: * fns.c (Fcompare_strings): * fns.c (internal_equalp): * fns.c (syms_of_fns): * glyphs.c (process_image_string_instantiator): * gutter.c (decode_gutter_position): * lisp-union.h: * lisp.h: * lisp.h (RETURN_NOT_REACHED): * mule-charset.c (Fcharset_property): * nt.c (mswindows_stat): * process-unix.c (unix_create_process): * process.c (decode_signal): * specifier.c (decode_locale_type): * specifier.c (decode_how_to_add_specification): * symbols.c (decode_magic_handler_type): * symbols.c (handler_type_from_function_symbol): * sysdep.c: * sysdep.c (start_of_data): * sysdep.c (total_data_usage): * sysdep.h (total_data_usage): * text.c: * text.c (qxestrncasecmp_i18n): * text.c (qxememcmp4): * text.c (qxememcasecmp4): * text.c (qxetextcmp): * text.c (qxetextcmp_matching): * text.c (qxetextcasecmp): * text.c (qxetextcasecmp_matching): * text.c (lisp_strcasecmp_i18n): * text.c (eicmp_1): * toolbar.c (decode_toolbar_position): * toolbar.c (Fset_default_toolbar_position): Try to implement GC triggering based on percentage of total memory usage. Not currently activated (percentage set to 0) because not quite working. Add `memory-usage' primitive to return XEmacs' idea of its memory usage. Add primitive compare-strings, compatible with FSF 21.1 -- can compare any part of two strings, optionally ignoring case. Improve qxe() functions in text.c for text comparison. Use RETURN_NOT_REACHED to try to avoid warnings about unreachable code. Add volatile_make_int() to fix warning in unix_send_process(). 2002-03-31 Ben Wing <ben@xemacs.org> * s/windowsnt.h: Use new ERROR_CHECK_ALL; not related to DEBUG_XEMACS. 2002-03-31 Ben Wing <ben@xemacs.org> * alloc.c: * alloc.c (resize_string): * alloc.c (make_string): * alloc.c (make_string_nocopy): * alloc.c (common_init_alloc_once_early): * backtrace.h: * buffer.c: * buffer.c (print_buffer): * buffer.c (Fkill_buffer): * buffer.h: * buffer.h (membpos_to_bytebpos): * bytecode.c (print_compiled_function): * callproc.c (Fold_call_process_internal): * casetab.c (print_case_table): * charset.h (CHARSET_BY_LEADING_BYTE): * charset.h (MAKE_CHAR): * charset.h (breakup_char_1): * chartab.c: * chartab.c (print_chartab_range): * chartab.c (print_chartab_two_byte_charset): * chartab.c (print_char_table): * chartab.c (Fchar_table_p): * chartab.c (Fchar_table_type_list): * chartab.c (Fvalid_char_table_type_p): * chartab.c (Fchar_table_type): * chartab.c (Fput_char_table): * chartab.c (check_category_char): * cmdloop.c: * config.h.in: * console-msw.c (GetConsoleHwnd): * console-stream.c: * console-tty.c: * console-tty.c (tty_init_console): * console.c: * console.c (print_console): * console.h (error_check_console_type): * data.c (print_weak_list): * device-msw.c: * device-msw.c (mswindows_handle_page_setup_dialog_box): * device-msw.c (print_devmode): * device.c: * device.c (print_device): * device.h (error_check_device_type): * dired-msw.c: * dired-msw.c (Fmswindows_insert_directory): * dired.c: * dumper.c: * dumper.c (pdump_file_get): * dumper.c (pdump_resource_get): * dumper.c (pdump_load): * editfns.c: * editfns.c (save_excursion_save): * eldap.c (print_ldap): * elhash.c: * elhash.c (check_hash_table_invariants): * elhash.c (print_hash_table_data): * elhash.c (print_hash_table): * elhash.c (free_hentries): * emacs.c (vars_of_emacs): * eval.c: * eval.c (internal_catch): * eval.c (unwind_to_catch): * eval.c (condition_case_1): * eval.c (check_error_state_sanity): * event-Xt.c: * event-Xt.c (x_to_emacs_keysym): * event-gtk.c (gtk_to_emacs_keysym): * event-msw.c: * event-msw.c (mswindows_wnd_proc): * event-stream.c: * events.c: * events.c (print_event): * events.c (transfer_event_chain_pointer): * extents.c (print_extent_1): * extents.c (print_extent): * faces.c (print_face): * file-coding.c: * file-coding.c (print_coding_system_in_print_method): * file-coding.c (coding_closer): * file-coding.c (make_coding_stream_1): * file-coding.c (make_coding_input_stream): * file-coding.c (make_coding_output_stream): * file-coding.c (encode_decode_coding_region): * file-coding.c (chain_init_coding_streams_1): * file-coding.c (undecided_convert): * file-coding.c (detect_coding_stream): * file-coding.h: * file-coding.h (_coding_system_data): * file-coding.h (XSETCODING_SYSTEM_OF_TYPE): * file-coding.h (struct coding_stream): * fileio.c: * frame-msw.c: * frame.c: * frame.c (print_frame): * frame.h: * frame.h (error_check_frame_type): * glyphs-gtk.c: * glyphs-gtk.c (gtk_print_image_instance): * glyphs-gtk.c (write_lisp_string_to_temp_file): * glyphs-msw.c: * glyphs-msw.c (mswindows_print_image_instance): * glyphs-msw.c (mswindows_progress_gauge_redisplay): * glyphs-shared.c: * glyphs-widget.c: * glyphs-x.c (x_print_image_instance): * glyphs-x.c (x_progress_gauge_redisplay): * glyphs.c: * glyphs.c (print_image_instance): * glyphs.c (print_glyph): * glyphs.h: * glyphs.h (GLYPH_CACHEL_WIDTH): * glyphs.h (GLYPH_CACHEL_GLYPH): * insdel.c (fixup_internal_substring): * insdel.c (buffer_insert_lisp_string_1): * intl-auto-encap-win32.c: * intl-auto-encap-win32.c (qxeGetLongPathName): * intl-auto-encap-win32.h: * intl-encap-win32.c: * intl-encap-win32.c (qxeDefMDIChildProc): * intl-win32.c (mswindows_multibyte_to_unicode_print): * keymap.c (print_keymap): * lisp-union.h: * lisp-union.h (wrap_pointer_1): * lisp.h: * lread.c (Fload_internal): * lrecord.h: * lrecord.h (MAKE_LRECORD_IMPLEMENTATION): * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): * lrecord.h (wrap_record_1): * lstream.c (print_lstream): * lstream.h (error_check_lstream_type): * macros.c: * marker.c: * marker.c (print_marker): * marker.c (unchain_marker): * marker.c (bi_marker_position): * marker.c (set_bi_marker_position): * md5.c: * md5.c (Fmd5): * menubar-x.c: * menubar-x.c (command_builder_operate_menu_accelerator): * menubar.c: * mule-coding.c (iso2022_print): * mule-coding.c (FROB): * ntproc.c (_DebPrint): * ntproc.c (new_child): * ntproc.c (create_child): * ntproc.c (find_child_console): * ntproc.c (kill_will_disappear_soon): * objects-gtk.c (gtk_print_color_instance): * objects-gtk.c (gtk_print_font_instance): * objects-msw.c: * objects-msw.c (mswindows_font_instance_truename): * objects-x.c: * objects-x.c (x_print_color_instance): * objects-x.c (x_print_font_instance): * objects.c: * objects.c (print_color_instance): * objects.c (print_font_instance): * opaque.c: * opaque.c (print_opaque): * opaque.c (print_opaque_ptr): * print.c: * print.c (write_string_1): * print.c (default_object_printer): * print.c (internal_object_printer): * print.c (print_internal): * process-nt.c (send_signal_the_95_way): * process-nt.c (get_internet_address): * process-unix.c (unix_send_process): * process.c: * process.c (print_process): * process.c (init_process_io_handles): * rangetab.c: * rangetab.c (print_range_table): * redisplay-msw.c: * redisplay-output.c (sync_display_line_structs): * redisplay.c: * redisplay.c (ensure_modeline_generated): * redisplay.c (redisplay_without_hooks): * redisplay.c (sledgehammer_check_redisplay_structs_1): * regex.c: * regex.c (re_match_2_internal): * scrollbar-msw.c: * select-msw.c: * select-msw.c (mswindows_selection_data_type_name): * signal.c: * specifier.c: * specifier.c (print_specifier): * specifier.h: * specifier.h (_specifier_data): * symbols.c (mark_symbol_value_buffer_local): * symbols.c (print_symbol_value_magic): * sysdep.c: * syswindows.h: * syswindows.h (ERROR_WHEN_NONINTERCEPTED_FUNS_USED): * text.c: * text.c (bytecount_to_charcount): * text.c (charcount_to_bytecount): * text.c (charbpos_to_bytebpos_func): * text.c (bytebpos_to_charbpos_func): * text.c (dfc_convert_to_external_format): * text.c (dfc_convert_to_internal_format): * text.c (Lstream_get_emchar_1): * text.h: * text.h (DECLARE_INLINE_HEADER): * toolbar-msw.c: * tooltalk.c (print_tooltalk_message): * tooltalk.c (print_tooltalk_pattern): * ui-gtk.c (ffi_object_printer): * ui-gtk.c (emacs_gtk_object_printer): * ui-gtk.c (emacs_gtk_boxed_printer): * unicode.c: * unicode.c (Fchar_to_unicode): * unicode.c (unicode_print): * unicode.c (syms_of_unicode): * window.c: * window.c (print_window): * window.c (print_window_config): Redo error-checking macros: ERROR_CHECK_TYPECHECK -> ERROR_CHECK_TYPES, ERROR_CHECK_CHARBPOS -> ERROR_CHECK_TEXT, add ERROR_CHECK_DISPLAY, ERROR_CHECK_STRUCTURES. Document these in config.h.in. Fix code to follow docs. Fix *_checking_assert() in accordance with new names. Attempt to fix periodic redisplay crash freeing display line structures. Add first implementation of sledgehammer redisplay check. Redo print_*() to use write_fmt_string(), write_fmt_string_lisp(). Fix bug in md5 handling. Rename character-to-unicode to char-to-unicode; same for unicode-to-char{acter}. Move chartab documentation to `make-char-table'. Some header cleanup. Clean up remaining places where nonintercepted Windows calls are being used. 2002-03-29 Jonathan Harris <jonathan@xemacs.org> * device-msw.c (plist_get_margin): Add arg specifying mm or inches * device-msw.c (plist_set_margin): Fix multiplicand used for mm * device-msw.c (mswindows_handle_page_setup_dialog_box): Detect and handle case where machine is set up for metric units * intl-auto-encap-win32.c: * intl-auto-encap-win32.h: * intl-encap-win32.c: Add Get & SetLocaleInfo from winnls.h 2002-03-29 William M. Perry <wmperry@gnu.org> * ui-gtk.c (Fgtk_import_function_internal): (emacs_gtk_object_finalizer): (build_gtk_object): (build_gtk_boxed): Use wrap_emacs_*() instead of wrap_*() for gtk_boxed, gtk_object, ffi 2002-03-24 Ben Wing <ben@xemacs.org> * Makefile.in.in (gui_objs): * Makefile.in.in (objs): Always include gui.c, to fix compile error when TTY-only. * EmacsFrame.c (EmacsFrameSetValues): * abbrev.c: * abbrev.c (abbrev_match_mapper): * abbrev.c (Fexpand_abbrev): * alloc.c: * alloc.c (malloc_warning): * alloc.c (allocate_lisp_storage): * alloc.c (Fcons): * alloc.c (noseeum_cons): * alloc.c (make_float): * alloc.c (make_vector): * alloc.c (Fvector): * alloc.c (make_bit_vector_internal): * alloc.c (make_bit_vector): * alloc.c (make_bit_vector_from_byte_vector): * alloc.c (Fbit_vector): * alloc.c (make_compiled_function): * alloc.c (Fmake_symbol): * alloc.c (allocate_event): * alloc.c (Fmake_marker): * alloc.c (noseeum_make_marker): * alloc.c (mark_string): * alloc.c (string_plist_ptr): * alloc.c (allocate_string_chars_struct): * alloc.c (make_uninit_string): * alloc.c (resize_string): * alloc.c (set_string_char): * alloc.c (Fmake_string): * alloc.c (init_string_ascii_begin): * alloc.c (make_string_nocopy): * alloc.c (make_lcrecord_list): * alloc.c (allocate_managed_lcrecord): * alloc.c (ADDITIONAL_FREE_marker): * alloc.c (verify_string_chars_integrity): * alloc.c (compact_string_chars): * alloc.c (debug_string_purity_print): * alloc.c (UNMARK_string): * alloc.c (common_init_alloc_once_early): * buffer.c (Fdecode_buffer): * buffer.c (finish_init_buffer): * buffer.c (Fother_buffer): * buffer.c (Fcurrent_buffer): * buffer.c (Fbury_buffer): * buffer.c (common_init_complex_vars_of_buffer): * buffer.h (wrap_buffer): * buffer.h (buffer_or_string_charbpos_to_bytebpos): * buffer.h (buffer_or_string_bytebpos_to_charbpos): * buffer.h (buffer_or_string_charbpos_to_membpos): * buffer.h (buffer_or_string_membpos_to_charbpos): * bytecode.c (execute_optimized_program): * bytecode.h (wrap_compiled_function): * callint.c: * callint.c (Fcall_interactively): * callproc.c: * callproc.c (call_process_cleanup): * callproc.c (Fold_call_process_internal): * casetab.c: * casetab.c (allocate_case_table): * casetab.c (set_case_table): * casetab.h (wrap_case_table): * charset.h (wrap_charset): * chartab.c: * chartab.c (mark_char_table): * chartab.c (print_char_table): * chartab.c (Fmake_char_table): * chartab.c (make_char_table_entry): * chartab.c (copy_char_table_entry): * chartab.c (Fcopy_char_table): * chartab.h: * chartab.h (wrap_char_table_entry): * chartab.h (struct Lisp_Char_Table): * chartab.h (wrap_char_table): * cmds.c (Fpoint_at_bol): * console-msw.c: * console-msw.c (DSYMNAME): * console-msw.h (wrap_devmode): * console-msw.h (wrap_mswindows_dialog_id): * console-tty.c (tty_init_console): * console-tty.c (decode_tty_console): * console-x.c: * console-x.c (x_semi_canonicalize_console_connection): * console-x.h: * console.c (allocate_console): * console.c (create_console): * console.c (delete_console_internal): * console.c (common_init_complex_vars_of_console): * console.h (wrap_console): * data.c: * data.c (Faref): * data.c (Faset): * data.c (make_weak_list): * database.c: * database.c (wrap_database): * database.c (print_database): * database.c (finalize_database): * database.c (Fopen_database): * device-gtk.c (decode_gtk_device): * device-gtk.c (gtk_init_device): * device-gtk.c (gtk_delete_device): * device-msw.c (ensure_not_printing): * device-msw.c (Fmsprinter_get_settings): * device-msw.c (Fmsprinter_select_settings): * device-msw.c (Fmsprinter_apply_settings): * device-msw.c (finalize_devmode): * device-msw.c (allocate_devmode): * device-x.c: * device-x.c (decode_x_device): * device-x.c (x_init_device): * device-x.c (x_delete_device): * device-x.c (x_error_handler): * device-x.c (x_IO_error_handler): * device.c (allocate_device): * device.c (Fset_device_selected_frame): * device.c (Fmake_device): * device.c (delete_device_internal): * device.c (Fset_device_class): * device.h (wrap_device): * dialog-msw.c (handle_question_dialog_box): * doc.c: * doc.c (weird_doc): * doc.c (kludgily_ignore_lost_doc_p): * doc.c (verify_doc_mapper): * doprnt.c: * doprnt.c (NEXT_ASCII_BYTE): * doprnt.c (emacs_doprnt_1): * dumper.c (pdump_reloc_one): * dynarr.c (Dynarr_insert_many): * editfns.c (Fstring_to_char): * editfns.c (user_login_name): * editfns.c (Fuser_real_login_name): * editfns.c (Ftranslate_region): * eldap.c (make_ldap): * eldap.h (wrap_ldap): * elhash.c (make_general_lisp_hash_table): * elhash.c (Fcopy_hash_table): * elhash.h (wrap_hash_table): * emacs.c (mswindows_handle_hardware_exceptions_1): * eval.c: * eval.c (Fuser_variable_p): * eval.c (throw_or_bomb_out): * eval.c (Fsignal): * eval.c (restore_current_warning_level): * eval.c (call_with_suspended_errors_1): * eval.c (call_with_suspended_errors): * eval.c (maybe_signal_error_1): * eval.c (maybe_signal_continuable_error_1): * eval.c (eval_in_buffer_trapping_errors): * eval.c (warn_when_safe_lispobj): * eval.c (warn_when_safe): * eval.c (vars_of_eval): * event-Xt.c (x_event_to_emacs_event): * event-Xt.c (handle_focus_event_1): * event-Xt.c (change_frame_visibility): * event-Xt.c (handle_map_event): * event-Xt.c (handle_client_message): * event-Xt.c (emacs_Xt_handle_magic_event): * event-Xt.c (emacs_Xt_select_process): * event-Xt.c (emacs_Xt_select_console): * event-Xt.c (emacs_Xt_unselect_console): * event-Xt.c (emacs_Xt_next_event): * event-gtk.c (handle_focus_event_1): * event-gtk.c (change_frame_visibility): * event-gtk.c (handle_map_event): * event-gtk.c (handle_client_message): * event-gtk.c (emacs_gtk_handle_magic_event): * event-gtk.c (emacs_gtk_select_process): * event-gtk.c (emacs_gtk_select_console): * event-gtk.c (emacs_gtk_unselect_console): * event-gtk.c (dragndrop_data_received): * event-gtk.c (emacs_gtk_next_event): * event-gtk.c (gtk_event_to_emacs_event): * event-gtk.c (emacs_shell_event_handler): * event-msw.c (make_ntpipe_input_stream): * event-msw.c (make_ntpipe_output_stream): * event-msw.c (make_winsock_stream_1): * event-msw.c (mswindows_enqueue_process_event): * event-msw.c (emacs_mswindows_next_event): * event-msw.c (get_process_input_waitable): * event-msw.c (emacs_mswindows_select_process): * event-stream.c (wrap_command_builder): * event-stream.c (event_stream_next_event): * event-stream.c (echo_key_event): * event-stream.c (munge_keymap_translate): * event-stream.c (pre_command_hook): * event-stream.c (dribble_out_event): * event-tty.c (emacs_tty_next_event): * event-unixoid.c (read_event_from_tty_or_stream_desc): * events.c: * events.c (print_event_1): * events.c (print_event): * events.c (nth_of_key_sequence_as_event): * events.c (format_event_object): * events.c (Fevent_window): * events.h: * events.h (wrap_timeout): * events.h (wrap_event): * extents.c: * extents.c (allocate_extent_auxiliary): * extents.c (mark_extent_info): * extents.c (allocate_extent_info): * extents.c (decode_buffer_or_string): * extents.c (buffer_or_string_extent_info): * extents.c (buffer_or_string_extent_info_force): * extents.c (print_extent_2): * extents.c (extent_fragment_update): * extents.c (Fnext_extent): * extents.c (Fprevious_extent): * extents.c (Fnext_e_extent): * extents.c (Fprevious_e_extent): * extents.c (Fset_extent_parent): * extents.c (set_extent_endpoints_1): * extents.c (copy_extent): * extents.c (destroy_extent): * extents.c (Fmake_extent): * extents.c (Fcopy_extent): * extents.c (slow_map_extents_function): * extents.c (slow_map_extent_children_function): * extents.c (extent_at_mapper): * extents.c (report_extent_modification_mapper): * extents.c (Fextent_properties): * extents.c (Fforce_highlight_extent): * extents.c (run_extent_copy_paste_internal): * extents.c (insert_extent): * extents.c (splice_in_string_extents): * extents.c (put_text_prop_mapper): * extents.c (put_text_prop_openness_mapper): * extents.c (put_text_prop): * extents.h (wrap_extent): * extents.h (wrap_extent_auxiliary): * extents.h (wrap_extent_info): * faces.c: * faces.c (face_property_matching_instance): * faces.c (Fmake_face): * faces.c (init_device_faces): * faces.c (init_frame_faces): * faces.c (ensure_face_cachel_contains_charset): * faces.c (add_face_cachel): * faces.c (get_builtin_face_cache_index): * faces.c (get_extent_fragment_face_cache_index): * faces.c (update_frame_face_values): * faces.c (complex_vars_of_faces): * faces.h (wrap_face): * faces.h (FACE_PROPERTY_INSTANCE): * faces.h (FACE_FONT): * file-coding.c: * file-coding.c (setup_eol_coding_systems): * file-coding.c (make_coding_system_1): * file-coding.c (Fcopy_coding_system): * file-coding.c (make_coding_stream_1): * file-coding.c (convert_eol_print): * file-coding.c (convert_eol_putprop): * file-coding.c (convert_eol_getprop): * file-coding.c (detected_coding_system): * file-coding.c (complex_vars_of_file_coding): * file-coding.h: * file-coding.h (wrap_coding_system): * file-coding.h (XSETCODING_SYSTEM_OF_TYPE): * fileio.c (build_annotations): * fileio.c (auto_save_expand_name_error): * fileio.c (Fdo_auto_save): * filelock.c (lock_file): * fns.c (Fstring_equal): * fns.c (Fstring_lessp): * fns.c (Fstring_modified_tick): * fns.c (bump_string_modiff): * fns.c (Fsubstring): * fns.c (bad_bad_bunny): * fns.c (bad_bad_turtle): * fns.c (Ffillarray): * frame-gtk.c (decode_gtk_frame): * frame-gtk.c (gtk_set_frame_properties): * frame-gtk.c (resize_event_cb): * frame-gtk.c (delete_event_cb): * frame-gtk.c (cleanup_deleted_frame): * frame-gtk.c (gtk_get_mouse_position): * frame-gtk.c (gtk_update_frame_external_traits): * frame-msw.c: * frame-msw.c (mswindows_init_frame_1): * frame-msw.c (mswindows_set_frame_properties): * frame-msw.c (error_frame_unsizable): * frame-tty.c (tty_schedule_frame_select): * frame-x.c: * frame-x.c (decode_x_frame): * frame-x.c (x_wm_maybe_store_wm_command): * frame-x.c (x_set_frame_properties): * frame-x.c (x_get_mouse_position): * frame-x.c (x_update_frame_external_traits): * frame.c (allocate_frame_core): * frame.c (setup_normal_frame): * frame.c (setup_minibuffer_frame): * frame.c (Fmake_frame): * frame.c (adjust_frame_size): * frame.c (device_selected_frame): * frame.c (Flast_nonminibuf_frame): * frame.c (Fset_frame_selected_window): * frame.c (Fnext_frame): * frame.c (Fprevious_frame): * frame.c (other_visible_frames): * frame.c (delete_frame_internal): * frame.c (Fdelete_frame): * frame.c (Fmouse_pixel_position): * frame.c (Fmouse_position): * frame.c (store_minibuf_frame_prop): * frame.c (dissect_as_face_setting): * frame.c (Fset_frame_properties): * frame.c (Fframe_property): * frame.c (Fframe_properties): * frame.c (Fset_frame_height): * frame.c (Fset_frame_width): * frame.c (Fset_frame_size): * frame.c (frame_conversion_internal): * frame.c (change_frame_size_1): * frame.c (update_frame_icon): * frame.h (wrap_frame): * free-hook.c (Freally_free): * general-slots.h: * glyphs-eimage.c: * glyphs-eimage.c (png_instantiate): * glyphs-gtk.c (extract_xpm_color_names): * glyphs-gtk.c (gtk_xpm_instantiate): * glyphs-gtk.c (gtk_redisplay_widget): * glyphs-msw.c (init_image_instance_from_dibitmap): * glyphs-msw.c (extract_xpm_color_names): * glyphs-msw.c (mswindows_resource_instantiate): * glyphs-msw.c (init_image_instance_from_xbm_inline): * glyphs-widget.c (check_valid_item_list): * glyphs-x.c (extract_xpm_color_names): * glyphs-x.c (x_xpm_instantiate): * glyphs-x.c (x_redisplay_widget): * glyphs.c: * glyphs.c (check_window_subwindow_cache): * glyphs.c (allocate_image_instance): * glyphs.c (decode_error_behavior_flag): * glyphs.c (encode_error_behavior_flag): * glyphs.c (invalidate_glyph_geometry_maybe): * glyphs.c (image_going_to_add): * glyphs.c (allocate_glyph): * glyphs.c (glyph_image_instance_maybe): * glyphs.c (Fglyph_width): * glyphs.c (Fglyph_ascent): * glyphs.c (Fglyph_descent): * glyphs.c (Fglyph_height): * glyphs.c (set_glyph_dirty_p): * glyphs.c (glyph_baseline): * glyphs.c (glyph_contrib_p): * glyphs.c (glyph_query_geometry): * glyphs.c (glyph_do_layout): * glyphs.c (update_glyph_cachel_data): * glyphs.c (mark_glyph_cachels_as_clean): * glyphs.c (unmap_subwindow): * glyphs.c (map_subwindow): * glyphs.c (add_glyph_animated_timeout): * glyphs.c (disable_glyph_animated_timeout): * glyphs.h: * glyphs.h (IMAGE_SPECIFIERP): * glyphs.h (wrap_image_instance): * glyphs.h (wrap_glyph): * gpmevent.c: * gpmevent.c (struct __gpm_state): * gpmevent.c (store_gpm_state): * gpmevent.c (restore_gpm_state): * gpmevent.c (clear_gpm_state): * gpmevent.c (Freceive_gpm_event): * gpmevent.c (turn_off_gpm): * gpmevent.c (tty_get_foreign_selection): * gpmevent.c (tty_selection_exists_p): * gpmevent.c (tty_own_selection): * gpmevent.c (tty_get_mouse_position): * gpmevent.c (tty_set_mouse_position): * gpmevent.c (gpm_event_pending_p): * gpmevent.c (gpm_next_event_cb): * gpmevent.c (hook_event_callbacks_once): * gpmevent.c (hook_console_methods_once): * gpmevent.c (Fgpm_enabled_p): * gpmevent.c (Fgpm_enable): * gpmevent.c (vars_of_gpmevent): * gpmevent.c (syms_of_gpmevent): * gtk-xemacs.c (smash_scrollbar_specifiers): * gtk-xemacs.c (smash_toolbar_specifiers): * gui-msw.c (mswindows_handle_gui_wm_command): * gui-x.c: * gui-x.c (gcpro_popup_callbacks): * gui-x.c (popup_selection_callback): * gui-x.c (button_item_to_widget_value): * gui-x.h (wrap_popup_data): * gui.c: * gui.c (FROB): * gui.c (gui_item_add_keyval_pair): * gui.c (allocate_gui_item): * gui.c (make_gui_item_from_keywords_internal): * gui.c (update_gui_item_keywords): * gui.c (gui_parse_item_keywords_no_errors): * gui.c (gui_item_display_flush_right): * gui.c (print_gui_item): * gui.c (finalize_gui_item): * gui.c (gui_error): * gui.c (gui_error_2): * gui.h (wrap_gui_item): * gutter.c (output_gutter): * gutter.h (GUTTER_SPECIFIERP): * indent.c: * indent.c (last_visible_position): * indent.c (string_column_at_point): * indent.c (Findent_to): * indent.c (Fcurrent_indentation): * indent.c (Fmove_to_column): * input-method-xlib.c: * input-method-xlib.c (XIM_init_device): * input-method-xlib.c (XIM_init_frame): * insdel.c: * insdel.c (begin_multiple_change): * insdel.c (signal_first_change): * insdel.c (signal_before_change): * insdel.c (signal_after_change): * insdel.c (prepare_to_modify_buffer): * insdel.c (buffer_insert_string_1): * insdel.c (barf_if_buffer_read_only): * keymap.c: * keymap.c (keymap_lookup_directly): * keymap.c (keymap_store): * keymap.c (make_keymap): * keymap.c (define_key_check_and_coerce_keysym): * keymap.c (key_desc_list_to_event): * keymap.c (Fdefine_key): * keymap.c (Flookup_key): * keymap.c (get_relevant_keymaps): * keymap.c (minor_mode_keymap_predicate): * keymap.c (map_keymap_sort_predicate): * keymap.c (Fkey_description): * keymap.c (Fsingle_key_description): * keymap.c (where_is_to_char): * keymap.c (format_raw_keys): * keymap.c (where_is_recursive_mapper): * keymap.c (where_is_internal): * keymap.h (wrap_keymap): * lisp-disunion.h: * lisp-union.h (XPNTRVAL): * lisp-union.h (make_int): * lisp-union.h (make_char): * lisp-union.h (wrap_pointer_1): * lisp.h: * lisp.h (dynarr): * lisp.h (error_behavior): * lisp.h (wrap_cons): * lisp.h (struct Lisp_String): * lisp.h (wrap_string): * lisp.h (set_string_char): * lisp.h (wrap_vector): * lisp.h (wrap_bit_vector): * lisp.h (struct Lisp_Symbol): * lisp.h (SYMBOL_IS_KEYWORD): * lisp.h (wrap_symbol): * lisp.h (XSYMBOL_NEXT): * lisp.h (wrap_subr): * lisp.h (wrap_marker): * lisp.h (wrap_float): * lisp.h (FLOATP): * lisp.h (wrap_weak_list): * lisp.h (wrap_lcrecord_list): * lread.c (Fread_from_string): * lrecord.h: * lrecord.h (wrap_toolbar_button): * lrecord.h (wrap_record_1): * lstream.c (Lstream_delete): * lstream.c (make_stdio_stream_1): * lstream.c (make_filedesc_stream_1): * lstream.c (make_lisp_string_input_stream): * lstream.c (make_fixed_buffer_input_stream): * lstream.c (make_fixed_buffer_output_stream): * lstream.c (make_resizing_buffer_output_stream): * lstream.c (make_dynarr_output_stream): * lstream.c (make_lisp_buffer_stream_1): * lstream.h (wrap_lstream): * marker.c (mark_marker): * marker.c (Fmarker_buffer): * marker.c (init_buffer_markers): * menubar-gtk.c (__generic_button_callback): * menubar-gtk.c (menu_descriptor_to_widget_1): * menubar-msw.c (mswindows_handle_wm_command): * menubar-x.c (pre_activate_callback): * menubar-x.c (set_frame_menubar): * menubar-x.c (x_popup_menu): * menubar.c (Fnormalize_menu_item_name): * minibuf.c: * minibuf.c (Ftry_completion): * minibuf.c (Fall_completions): * minibuf.c (clear_echo_area_internal): * minibuf.c (echo_area_append): * minibuf.c (echo_area_status): * mule-canna.c (Fcanna_touroku_string): * mule-canna.c (Fcanna_change_mode): * mule-canna.c (Fcanna_do_function): * mule-ccl.c (Fccl_execute): * mule-charset.c: * mule-charset.c (print_charset): * mule-charset.c (make_charset): * mule-charset.c (Fmake_charset): * mule-charset.c (Fcharset_id): * mule-charset.c (syms_of_mule_charset): * mule-wnnfns.c (Fwnn_inspect): * native-gtk-toolbar.c (gtk_output_toolbar): * objects-msw.c: * objects-msw.c (mswindows_print_color_instance): * objects-msw.c (mswindows_color_instance_equal): * objects-msw.c (mswindows_color_instance_hash): * objects-msw.c (mswindows_print_font_instance): * objects-msw.c (mswindows_font_instance_truename): * objects-msw.c (mswindows_font_spec_matches_charset): * objects-tty.c: * objects-tty.c (tty_font_spec_matches_charset): * objects-x.c (x_font_instance_truename): * objects.c: * objects.c (finalose): * objects.c (Fmake_color_instance): * objects.c (font_instance_equal): * objects.c (font_instance_hash): * objects.c (Fmake_font_instance): * objects.c (Flist_fonts): * objects.c (reinit_vars_of_objects): * objects.h (COLOR_SPECIFIERP): * objects.h (FONT_SPECIFIERP): * objects.h (FACE_BOOLEAN_SPECIFIERP): * objects.h (wrap_color_instance): * objects.h (wrap_font_instance): * opaque.c (make_opaque): * opaque.h (wrap_opaque): * opaque.h (wrap_opaque_ptr): * postgresql.c (make_pgconn): * postgresql.c (make_pgresult): * postgresql.h (wrap_pgconn): * postgresql.h (wrap_pgresult): * print.c: * print.c (output_string): * print.c (write_eistring): * print.c (temp_output_buffer_setup): * print.c (print_string): * print.c (print_internal): * print.c (print_symbol): * process-unix.c: * process-unix.c (unix_canonicalize_host_name): * process.c (make_process_internal): * process.c (init_process_io_handles): * process.c (Fprocess_send_region): * process.c (status_message): * process.c (status_notify): * process.c (decode_signal): * process.c (handle_signal): * process.h (PROCESSP): * process.h (wrap_process): * rangetab.c (Fmake_range_table): * rangetab.c (Fcopy_range_table): * rangetab.h (wrap_range_table): * redisplay-gtk.c (gtk_output_display_block): * redisplay-gtk.c (gtk_output_string): * redisplay-gtk.c (gtk_output_pixmap): * redisplay-gtk.c (gtk_clear_to_window_end): * redisplay-gtk.c (gtk_output_eol_cursor): * redisplay-gtk.c (gtk_clear_frame): * redisplay-gtk.c (gtk_flash): * redisplay-msw.c: * redisplay-msw.c (mswindows_output_string): * redisplay-msw.c (mswindows_output_pixmap): * redisplay-msw.c (mswindows_output_display_block): * redisplay-output.c: * redisplay-output.c (compare_runes): * redisplay-output.c (get_cursor_size_and_location): * redisplay-output.c (clear_left_border): * redisplay-output.c (clear_right_border): * redisplay-output.c (output_display_line): * redisplay-output.c (redisplay_output_subwindow): * redisplay-output.c (redisplay_output_layout): * redisplay-output.c (redisplay_output_pixmap): * redisplay-output.c (redisplay_clear_top_of_window): * redisplay-output.c (redisplay_clear_to_window_end): * redisplay-tty.c: * redisplay-tty.c (tty_output_display_block): * redisplay-tty.c (tty_clear_to_window_end): * redisplay-tty.c (tty_turn_on_frame_face): * redisplay-tty.c (tty_turn_off_frame_face): * redisplay-x.c: * redisplay-x.c (x_output_display_block): * redisplay-x.c (x_output_string): * redisplay-x.c (x_output_eol_cursor): * redisplay-x.c (x_clear_frame): * redisplay-x.c (x_flash): * redisplay.c: * redisplay.c (redisplay_text_width_emchar_string): * redisplay.c (redisplay_frame_text_width_string): * redisplay.c (add_emchar_rune_1): * redisplay.c (add_intbyte_string_runes): * redisplay.c (add_disp_table_entry_runes_1): * redisplay.c (add_glyph_rune): * redisplay.c (create_text_block): * redisplay.c (create_overlay_glyph_block): * redisplay.c (create_left_glyph_block): * redisplay.c (create_right_glyph_block): * redisplay.c (generate_formatted_string_db): * redisplay.c (generate_fstring_runes): * redisplay.c (create_string_text_block): * redisplay.c (call_redisplay_end_triggers): * redisplay.c (redisplay_frame): * redisplay.c (start_with_point_on_display_line): * redisplay.c (glyph_to_pixel_translation): * redisplay.c (pixel_to_glyph_translation): * scrollbar-gtk.c (gtk_scrollbar_pointer_changed_in_window): * scrollbar-msw.c (mswindows_handle_mousewheel_event): * scrollbar-x.c (x_scrollbar_pointer_changed_in_window): * scrollbar.c (init_frame_scrollbars): * scrollbar.c (init_device_scrollbars): * scrollbar.h (wrap_scrollbar_instance): * search.c: * search.c (fixup_search_regs_for_string): * search.c (looking_at_1): * search.c (string_match_1): * search.c (bi_find_next_emchar_in_string): * search.c (search_buffer): * search.c (set_search_regs): * search.c (wordify): * search.c (Freplace_match): * search.c (Fstore_match_data): * select-gtk.c (gtk_own_selection): * select-x.c: * sound.c: * sound.c (Fding): * sound.c (vars_of_sound): * specifier.c: * specifier.c (make_specifier_internal): * specifier.c (canonicalize_tag_set): * specifier.c (setup_device_initial_specifier_tags): * specifier.c (NOTE): New. * specifier.c (recompute_one_cached_specifier_in_window): * specifier.c (recompute_one_cached_specifier_in_frame): * specifier.h: * specifier.h (wrap_specifier): * specifier.h (GENERIC_SPECIFIERP): * specifier.h (INTEGER_SPECIFIERP): * specifier.h (NATNUM_SPECIFIERP): * specifier.h (BOOLEAN_SPECIFIERP): * specifier.h (DISPLAYTABLE_SPECIFIERP): * strftime.c (add_num_time_t): * symbols.c: * symbols.c (mark_symbol): * symbols.c (Fintern): * symbols.c (Fintern_soft): * symbols.c (Funintern): * symbols.c (oblookup): * symbols.c (map_obarray): * symbols.c (Fsymbol_name): * symbols.c (set_up_buffer_local_cache): * symbols.c (flush_all_buffer_local_cache): * symbols.c (Fset): * symbols.c (Fdefvaralias): * symbols.c (init_symbols_once_early): * symbols.c (defsubr): * symbols.c (defsubr_macro): * symbols.c (defvar_magic): * symeval.h: * symeval.h (wrap_symbol_value_magic): * syntax.h: * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR): * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR): * text.c (get_buffer_pos_char): * text.c (get_buffer_range_char): * text.c (get_string_pos_byte): * text.c (get_string_range_byte): * text.h: * text.h (eiinit): * text.h (eiinit_malloc): * toolbar-common.c: * toolbar-common.c (common_output_toolbar_button): * toolbar-common.c (common_output_toolbar): * toolbar-common.c (common_clear_toolbar): * toolbar-msw.c: * toolbar-msw.c (mswindows_output_toolbar): * toolbar-msw.c (mswindows_handle_toolbar_wm_command): * toolbar.c (update_toolbar_button): * toolbar.c (init_frame_toolbars): * toolbar.c (init_device_toolbars): * toolbar.h (wrap_toolbar_button): * toolbar.h (TOOLBAR_SPECIFIERP): * tooltalk.c (make_tooltalk_message): * tooltalk.c (make_tooltalk_pattern): * tooltalk.c (init_tooltalk): * tooltalk.h (wrap_tooltalk_message): * tooltalk.h (wrap_tooltalk_pattern): * ui-gtk.c (Fgtk_import_function_internal): * ui-gtk.c (emacs_gtk_object_finalizer): * ui-gtk.c (build_gtk_object): * ui-gtk.c (build_gtk_boxed): * ui-gtk.c (lisp_to_gtk_type): * ui-gtk.h (wrap_emacs_ffi): * ui-gtk.h (wrap_emacs_gtk_object): * ui-gtk.h (wrap_emacs_gtk_boxed): * undo.c (undo_prelude): * vm-limit.c: * vm-limit.c (memory_warnings): * window.c: * window.c (allocate_window): * window.c (window_is_leftmost): * window.c (window_is_rightmost): * window.c (window_is_highest): * window.c (window_is_lowest): * window.c (margin_width_internal): * window.c (Fnext_window): * window.c (Fprevious_window): * window.c (Fnext_vertical_window): * window.c (window_loop): * window.c (buffer_window_count): * window.c (Fdelete_other_windows): * window.c (list_windows): * window.c (make_dummy_parent): * window.c (window_pixel_height_to_char_height): * window.c (window_char_height_to_pixel_height): * window.c (window_displayed_height): * window.c (window_pixel_width_to_char_width): * window.c (window_char_width_to_pixel_width): * window.c (change_window_height): * window.c (Fmove_to_window_line): * window.c (wrap_window_configuration): * window.c (Fcurrent_window_configuration): * window.h (wrap_window): * window.h (wrap_window_mirror): Eliminate XSETFOO. Replace all usages with wrap_foo(). Make symbol->name a Lisp_Object, not Lisp_String *. Eliminate nearly all uses of Lisp_String * in favor of Lisp_Object, and correct macros so most of them favor Lisp_Object. Create new error-behavior ERROR_ME_DEBUG_WARN -- output warnings, but at level `debug' (usually ignored). Use it when instantiating specifiers, so problems can be debugged. Move log-warning-minimum-level into C so that we can optimize ERROR_ME_DEBUG_WARN. Fix warning levels consistent with new definitions. Add default_ and parent fields to char table; not yet implemented. New fun Dynarr_verify(); use for further error checking on Dynarrs. Rearrange code at top of lisp.h in conjunction with dynarr changes. Fix eifree(). Use Eistrings in various places (format_event_object(), where_is_to_char(), and callers thereof) to avoid fixed-size strings buffers. New fun write_eistring(). Reindent and fix GPM code to follow standards. Set default MS Windows font to Lucida Console (same size as Courier New but less interline spacing, so more lines fit). Increase default frame size on Windows to 50 lines. (If that's too big for the workspace, the frame will be shrunk as necessary.) Fix problem with text files with no newlines (). (Change `convert-eol' coding system to use `nil' for autodetect, consistent with make-coding-system.) Correct compile warnings in vm-limit.c. Fix handling of reverse-direction charsets to avoid errors when opening (e.g.) mule-ucs/lisp/reldata/uiso8859-6.el. Recode some object printing methods to use write_fmt_string() instead of a fixed buffer and sprintf. Turn on display of png comments as warnings (level `info'), now that they're unobtrusive. Revamped the sound documentation. Fixed bug in redisplay w.r.t. hscroll/truncation/continuation glyphs causing jumping up and down of the lines, since they're bigger than the line size. (It was seen most obviously when there's a horizontal scroll bar, e.g. do C-h a glyph or something like that.) The problem was that the glyph-contrib-p setting on glyphs was ignored even if it was set properly, which it wasn't until now. 2002-03-14 Mike Alexander <mta@arbortext.com> * event-msw.c (mswindows_unwait_process): New, remove process from wait list * process-nt.c (nt_finalize_process_data): Call mswindows_unwait_process * console-msw.h: Declare mswindows_unwait_process 2002-03-21 William M. Perry <wmperry@gnu.org> * event-gtk.c (emacs_gtk_force_event_pending): Bogus definition that does nothing right now. (reinit_vars_of_event_gtk): Register a force_event_pending handler. This seems to cure the crashes at startup caused by the progress bar. 2002-03-21 Malcolm Purvis <malcolmpurvis@optushome.com.au> * event-gtk.c (emacs_gtk_format_magic_event): Fixed compilation typos. 2002-03-20 Ben Wing <ben@xemacs.org> * chartab.c: * chartab.c (Fcheck_category_at): * chartab.c (Fchar_in_category_p): Fix bugs in implementation and doc strings. * config.h.in (type_checking_assert_at_line): Add foo_checking_assert_at_line() macros. Not clear whether these are actually useful, though; I'll take them out if not. * symsinit.h: * emacs.c: * emacs.c (main_1): Some improvements to the timeline. Rearrange a bit the init calls. Add call for reinit_vars_of_object_mswindows() and declare in symsinit.h. * event-Xt.c: * event-Xt.c (emacs_Xt_format_magic_event): * event-Xt.c (describe_event_window): * event-Xt.c (describe_event): * event-Xt.c (emacs_Xt_event_handler): * event-Xt.c (reinit_vars_of_event_Xt): * event-gtk.c: * event-gtk.c (emacs_gtk_format_magic_event): * event-gtk.c (reinit_vars_of_event_gtk): * event-msw.c: * event-msw.c (emacs_mswindows_format_magic_event): * event-msw.c (reinit_vars_of_event_mswindows): * event-stream.c: * event-stream.c (event_stream_operation): * event-stream.c (check_event_stream_ok): * event-stream.c (event_stream_handle_magic_event): * event-tty.c: * event-tty.c (emacs_tty_format_magic_event): * event-tty.c (reinit_vars_of_event_tty): * events.c: * events.c (event_equal): * events.c (event_hash): * events.c (format_event_object): * events.h: * events.h (struct event_stream): * events.h (union magic_data): Introduce new event methods for printing, comparing, and hashing magic events, to avoid event-type-specific stuff that had crept into events.c. (And was crashing, since the channel in MS Windows magic events may be nil.) Implement the methods in event-{tty,gtk,Xt,mswindows}.c. Make wrapping functions event_stream_{compare,hash,format}_magic_event() to check if everything's OK and call the actual callback. Fix events.c to use the new methods. Add a new event-stream-operation EVENT_STREAM_NOTHING -- event stream not actually required to be able to do anything, just be open. (#### This event-stream-operation stuff needs to be rethought.) Fixed describe_event() in event-Xt.c to print its output to a stream, not always to stderr, so it can be used elsewhere. (e.g. in print-event when a magic event is encountered?) * lisp.h: * lisp.h (XCHAR_1): * lisp.h (XCHAR): * lisp.h (XINT_1): * lisp.h (XCHAR_OR_INT_1): * lrecord.h: * lrecord.h (DECLARE_LRECORD): * lrecord.h (DECLARE_EXTERNAL_LRECORD): * lrecord.h (DECLARE_NONRECORD): * lrecord.h (XRECORD): * lrecord.h (wrap_record_1): * lrecord.h (wrap_record): Define new assert_at_line(), for use in asserts inside of inline functions. The assert will report the line and file of the inline function, which is almost certainly not what you want as it's useless. what you want to see is where the pseudo-macro was called from. So, when error-checking is on, we pass in the line and file into the macros, for accurate printout using assert_at_line(). Happens only when error-checking is defined so doesn't slow down non-error-checking builds. Fix XCHAR, XINT, XCHAR_OR_INT, XFOO, and wrap_foo() in this fashion. * lstream.c: * lstream.c (resizing_buffer_stream_ptr): * lstream.h: Add resizing_buffer_to_lisp_string(). * objects-gtk.c (gtk_find_charset_font): Fix typo. * objects-msw.c: * objects-msw.c (create_hfont_from_font_spec): * objects-msw.c (initialize_font_instance): * objects-msw.c (mswindows_font_spec_matches_charset_stage_1): * objects-msw.c (mswindows_font_spec_matches_charset): * objects-msw.c (reinit_vars_of_object_mswindows): * objects-msw.c (vars_of_objects_mswindows): Implement a smarter way of determining whether a font matches a charset. Formerly we just looked at the "script" element of the font spec, converted it to a code page, and compared it with the code page derived from the charset. Now, as well as doing this, we ask the font for the list of unicode ranges it supports, see what range the charset falls into (#### bogus! need to do this char-by-char), and see if any of the font's supported ranges include the charset's range. also do some caching in Vfont_signature_data of previous inquiries. * charset.h: * text.c (Fmake_char): * mule-charset.c (get_charset_limits): New fun; extracted out of Fmake_char() and declare prototype in charset.h. * text.h: introduce assert_by_line() to make REP_BYTES_BY_FIRST_BYTE report the file and line more accurately in an assertion failure. * unicode.c (char_to_unicode): make non-static (used in objects-msw.c), declare in charset.h. 2002-03-18 Ben Wing <ben@xemacs.org> * process.c: * process.c (init_process_io_handles): Obey coding-system-for-{read,write} if set. 2002-03-18 Ben Wing <ben@xemacs.org> * fns.c: * fns.c (Frequire): * fns.c (vars_of_fns): * lread.c: * lread.c (Fload_internal): * lread.c (PRINT_LOADING_MESSAGE_1): Add variable require-prints-loading-message to cause loading messages to get printed when a file is loading during a `require', which normally doesn't happen. This can be set using env var XEMACSDEBUG to debug problems with non-interactive compilation. Modify load-internal so it prints "Requiring: ..." instead of "Loading: ..." when appropriate. 2002-03-16 Ben Wing <ben@xemacs.org> * cm.c (cmgoto): * file-coding.c: * file-coding.c (detection_result_symbol_to_number): fix warnings. 2002-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org> * unicode.c (add_charsets_to_precedence_list): Fix passing wrong argument to XCHARSET_LEADING_BYTE. 2002-03-15 Jonathan Harris <jhar@tardis.ed.ac.uk> * intl-encap-win32.c (copy_shfileinfoa_to_shfileinfow): Take size parameter and assert it's big enough. * intl-encap-win32.c (qxeSHGetFileInfo): Deal with the case where no fileinfo structure is passed in. 2002-03-14 Jonathan Harris <jhar@tardis.ed.ac.uk> * intl-encap-win32.c: Remove EncryptFile, DecryptFile & mciGetDeviceIDFromElementID - APIs are not available on Win98 * intl-auto-encap-win32.c: ditto * intl-auto-encap-win32.h: ditto * intl-encap-win32.c: Remove 'dir' command. 2002-03-13 William M. Perry <wmperry@gnu.org> * ui-gtk.c (__allocate_object_storage): Make static to avoid warnings. (type_to_marshaller_type): Ditto. * symsinit.h: Added some missing *_gtk_* functions to avoid warnings. * select-gtk.c: Add extern definitions of lisp_to_time and time_to_lisp to avoid warnings. * redisplay-gtk.c (gtk_flash): reorder select/poll stuff to avoid warning about 'poll' being implicitly defined. Mirrors change made to redisplay-x.c some time ago. (gtk_bevel_area): Fix unused variable warning. * gtk-xemacs.c (smash_face_fallbacks): ifdef this out to avoid warnings. * glyphs-gtk.c (write_lisp_string_to_temp_file): Fix 'grpro3' typo. (gtk_locate_pixmap_file): Use split_external_path instead of decode_path. * gccache-gtk.c (gc_cache_hash): Fix signed/unsigned warning. * event-gtk.c: event-mods.h no longer needed. event-gtk.h is. * emacs-marshals.c (our_string_hash): Make this function static to avoid warnings. * device-gtk.c (gtk_event_name): Fix signed/unsigned warning. * event-gtk.h: New header file to hold declarations from event-gtk.c that are used in other files. The quest to remove compilation warnings from GTK files begins. 2002-03-15 Ben Wing <ben@xemacs.org> * config.h.in: * sysdep.c: * sysdep.c (get_process_times_1): * sysfile.h: * systime.h: add HAVE_SYS_TIMES_H and use it to include sys/times.h, used for struct tms in new POSIX() function times(). 2002-03-15 Ben Wing <ben@xemacs.org> * .cvsignore: ignore .tmp files that are getting auto-created by VC. * Makefile.in.in (release): * Makefile.in.in (fastdump): * Makefile.in.in (dynodump_deps): * Makefile.in.in (dump-elcs): * Makefile.in.in (batch_test_emacs): * Makefile.in.in (run-rtcmacs): Use -no-packages to avoid problems with package files shadowing core files (e.g. unicode.el in mule-ucs). * alloc.c (disksave_object_finalization): * emacs.c: * emacs.c (argmatch): * emacs.c (main_1): * emacs.c (standard_args): * emacs.c (vars_of_emacs): * lisp.h: add new -no-packages. make sure list of args for sorting is actually correct. clean up arg parsing code. 2002-03-12 Ben Wing <ben@xemacs.org> * The Great Mule Merge: placeholder. 2002-01-31 John H. Palmieri <palmieri@math.washington.edu> * dired.c (Ffile_name_all_completions): Change documentation -- remove reference to completion-ignored-extensions. * dired.c (vars_of_dired): Change documentation for completion-ignored-extensions -- remove reference to file-name-all-completions. 2002-03-05 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.5 "beets" is released. 2002-03-04 Stephen J. Turnbull <stephen@xemacs.org> * fileio.c (Fwrite_region_internal): Document use of start == Qnil. 2001-09-04 Daiki Ueno <ueno@unixuser.org> * insdel.c (prepare_to_modify_buffer): Don't call the function ask-user-about-supersession-threat when CLASH_DETECTION is set. 2002-02-13 Ben Wing <ben@xemacs.org> * event-stream.c (reset_key_echo): * event-stream.c (reset_this_command_keys): * event-stream.c (execute_command_event): If console is dead as a result of C-x 5 0, then post-command stuff needs to be careful and do only non-console-specific stuff. 2002-02-11 Mike Sperber <mike@xemacs.org> * device-x.c: (x_IO_error_handler): (x_init_device): Temporarily keep device in static variable `device_being_initialized' so we can recover gracefully from internal XOpenDevice failure. (XOpenDevice is documented to return NULL on failure, but sometimes calls the IO error handler instead.) 2002-02-12 Stephen J. Turnbull <stephen@xemacs.org> * fileio.c (Ffind_file_name_handler): Improve docstring. 2002-01-20 Stephen J. Turnbull <stephen@xemacs.org> * fns.c (Fmapconcat): Improve docstring. 2002-01-03 Eric Gillespie, Jr. <epg@pretzelnet.org> * device-gtk.c: Add prototype for emacs_gtk_selection_clear_event_handle. (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD selection. Setup signal handler for "selection_clear_event" (emacs_gtk_selection_clear_event_handle). * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle other applications owning the clipboard (based on x_handle_selection_clear). 2002-02-02 William M. Perry <wmperry@gnu.org> * winslots.h: New toolbar_shadow_thickness slot. * toolbar.c (Vtoolbar_shadow_thickness): New specifier to control thickness of toolbar shadows instead of relying on X resourcs. (toolbar_shadows_changed): New function to redraw toolbars if the thickness specifier is changed. (specifier_vars_of_toolbar): Arrange for caching and defaults for toolbar-shadow-thickness. * toolbar-x.c: Use the new redisplay-based toolbar code. * toolbar-common.c (__prepare_button_area): Look at toolbar-shadow-thickness specifier instead of window-system specific stuff. * gtk-xemacs.c (smash_scrollbar_specifiers): New function to set the toolbar-shadow-thickness specifier from GTK styles. * frameslots.h: New toolbar_shadow_thickness slot. * glyphs-gtk.c (extract_xpm_color_names): Resurrect the xpm color symbols stuff because the GTK XPM libraries do very weird things if you don't specify the transparency at all. Reverting the patch of 12/22/01. 2002-01-26 Stephen J. Turnbull <stephen@xemacs.org> * ChangeLog (2001-09-19 Ben Wing): Entry dosed with Dramamine. * README.integral-types: New file excised from ChangeLog. 2002-01-19 Jan Vroonhof <jan@xemacs.org> * cmdloop.c: New variable Qdisabled_command_loop. Move Vdisabled_command_loop declaration here. * cmdloop.c (syms_of_cmdloop): Declare Qdisabled_command_loop. * eval.c (Fcommand_execute): Use the value of the symbol not the value of the value as the hook to run. * event-stream.c: Remove declaration of Vdisabled_command_loop * lisp.h: Declare Qdisabled_command_loop 2002-01-15 Adrian Aichner <adrian@xemacs.org> * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW to fix problem switching between virtual desktops under virtuawin virtual window manager. 2002-01-10 Stephen J. Turnbull <stephen@xemacs.org> * mule-charset.c (global): (syms_of_mule_charset): (complex_vars_of_mule_charset): Declare and initialize Vcharset_latin_iso8859_15. * mule-charset.h (LEADING_BYTE_OFFICIAL_1): Add LATIN_ISO8859_15. 2002-01-08 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.4 "bamboo" is released. 2001-07-22 Stephen J. Turnbull <stephen@xemacs.org> * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup. * process-unix.c (unix_canonicalize_host_name): sysdep.c (init_system_name): Use it to conditionally support IPv6 canonicalization. 2002-01-04 Martin Buchholz <martin@xemacs.org> * keymap.c (define_key_alternate_name): Parenthesize EQ. 2001-12-22 William M. Perry <wmperry@gnu.org> * glyphs-gtk.c (gtk_xpm_instantiate): Don't bother doing the xpm-color-symbols checks, they are impossible to implement with GTK's XPM implementation. :( 2001-12-13 William M. Perry <wmperry@gnu.org> * select-gtk.c (gtk_own_selection): Update to follow the new method signature. Ignore owned_p as it appears to only be used for motif hacks. * redisplay-gtk.c (gtk_output_string): Fixed some warnings about signed/unsigned comparison. (gtk_output_gdk_pixmap): Remove clipping code as per change by andy@xemacs.org to the X11 code. (gtk_output_pixmap): Make this follow the output_pixmap method conventions and expose it. (gtk_output_horizontal_line): Renamed from output_hline, and expose it in our method structure. (gtk_ring_bell): Don't ring the bell if volume <= 0 * toolbar-gtk.c (gtk_output_toolbar_button): (gtk_output_frame_toolbars): (gtk_redraw_exposed_toolbars): (gtk_redraw_frame_toolbars): These are now just aliases for the common_XXX() routines in toolbar-common.c * toolbar-common.c: New common toolbar implementation. This file uses only the redisplay_XXX() functions and device methods to draw the toolbar, and so should be portable across all windowing systems (other than tty, and even then I imagine text-based stuff would work if you had a way to select it). 2001-12-11 Andy Piper <andy@xemacs.org> * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p. * dialog-msw.c (mswindows_make_dialog_box_internal): set popup_up_p. * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto. * menubar-msw.c (mswindows_handle_wm_command): ditto. * menubar-msw.c (mswindows_popup_menu): ditto. 2001-11-24 Andy Piper <andy@xemacs.org> * window.c (Fsplit_window): Doc return type. 2001-07-30 Adrian Aichner <adrian@xemacs.org> * event-msw.c: Typo fix. * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after magic XM_MAPFRAME event has been sent. 2001-11-23 Andy Piper <andy@xemacs.org> * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events. 2001-11-21 Andy Piper <andy@xemacs.org> * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with mouse events outside the frame. 2001-11-15 Andy Piper <andy@xemacs.org> (Fmswindows_shell_execute): fix handling of URL's under cygwin (again). 2001-11-14 Andy Piper <andy@xemacs.org> * nt.c (REG_ROOT): change registry key to XEmacs. 2001-10-29 Andy Piper <andy@xemacs.org> * dialog-msw.c (handle_directory_dialog_box): quit if the user cancels. 2001-12-16 Torsten Duwe <duwe@caldera.de> * search.c (Freplace_match): Add missing sub-expression functionality. * buffer.c (decode_buffer): Add a check for pointer type to decode_buffer, before gcc's CSE optimization reorders a dereference in front of the allow_string test. 2001-11-16 Darryl Okahata <darrylo@xemacs.org> * window.c (window_loop): Fix bug that sometimes prevented window_loop() from iterating across multiple devices. Also, at Ben's request, changed infloop-detecting code to abort() instead of silently terminating window_loop(). 2001-11-21 Stephen J. Turnbull <stephen@xemacs.org> Based on analysis and patch by Simon Josefson <jas@extundo.com>. * editfns.c (make_time): New function. (Fencode_time): Use it instead of wasteful_word_to_lisp. * lisp.h (make_time): Prototype and comment it. * dired.c (wasteful_word_to_lisp): Deprecate. (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp(). 2001-10-31 Kyle Jones <kyle_jones@wonderworks.com> * fileio.c (auto_save_1): Use current coding system, not escape-quoted. 2001-11-13 Ben Wing <ben@xemacs.org> * window.c: * window.c (window_truncation_on): * window.c (syms_of_window): truncate-partial-width-windows should respect the buffer being displayed, like other redisplay vars. 2001-11-13 Hirokazu FUKUI <hfukui@sannet.ne.jp> * event-stream.c (Fread_key_sequence): save current buffer. 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu> * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300). 2001-10-29 Andrew Begel <abegel@eecs.berkeley.edu> * alloc.c (lcrecord_stats): Add space for types defined in modules. 2001-12-18 Adrian Aichner <adrian@xemacs.org> * .cvsignore: Sort lines, add dump-id.c. 2001-12-13 William M. Perry <wmperry@gnu.org> * glyphs-gtk.c (gtk_map_subwindow): Make sure that we always call gtk_fixed_put, even if the size allocations are the same. (gtk_subwindow_instantiate): Fixed compilation warnings. 2001-10-26 Mike Alexander <mta@arbortext.com> * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle. 2001-10-25 Andy Piper <andy@xemacs.org> * ChangeLog: * dialog-msw.c (handle_directory_proc): new function. (handle_directory_dialog_box): new fucntion. (handle_file_dialog_box): use new directory dialog support. (mswindows_make_dialog_box_internal): ditto. * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event handling. (mswindows_find_frame): make global. * fileio.c (Fexpand_file_name): build fix. * general-slots.h: add Qdirectory. * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus handling. * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with cygwin not leaving win32 paths unchanged. * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the cygwin runtime to do path conversion. (Fmswindows_shell_execute): fix cygwin handling of URLs. (syms_of_win32): add new function. * window.c (window_loop): build fix. 2001-10-15 Andy Piper <andy@xemacs.org> (Fmswindows_shell_execute): fix handling of URL's under cygwin. 2001-08-30 Daiki Ueno <ueno@unixuser.org> * process-unix.c (unix_open_multicast_group): Remove too much conversion between host and network byte order. 2001-09-19 Ben Wing <ben@xemacs.org> * abbrev.c (abbrev_match_mapper): * abbrev.c (abbrev_oblookup): * abbrev.c (obarray_has_blank_p): * abbrev.c (abbrev_count_case): * abbrev.c (Fexpand_abbrev): * alloc.c (xmalloc): * alloc.c (xcalloc): * alloc.c (xmalloc_and_zero): * alloc.c (xrealloc): * alloc.c (deadbeef_memory): * alloc.c (allocate_lisp_storage): * alloc.c (alloc_lcrecord): * alloc.c (size_vector): * alloc.c (vector_hash): * alloc.c (make_vector_internal): * alloc.c (make_vector): * alloc.c (make_bit_vector_internal): * alloc.c (make_bit_vector): * alloc.c (make_bit_vector_from_byte_vector): * alloc.c (Fmake_marker): * alloc.c (noseeum_make_marker): * alloc.c (make_uninit_string): * alloc.c (resize_string): * alloc.c (set_string_char): * alloc.c (Fmake_string): * alloc.c (Fstring): * alloc.c (make_string): * alloc.c (build_string): * alloc.c (build_translated_string): * alloc.c (make_string_nocopy): * alloc.c (make_lcrecord_list): * alloc.c (tick_lcrecord_stats): * alloc.c (garbage_collect_1): * alloc.c (malloced_storage_size): * alloc.c (fixed_type_block_overhead): * blocktype.c (Blocktype_newf): * blocktype.h: * blocktype.h (Blocktype_declare): * buffer.c: * buffer.c (Fkill_buffer): * buffer.c (compute_buffer_text_usage): * buffer.c (struct): * buffer.c (reinit_vars_of_buffer): * buffer.c (directory_is_current_directory): * buffer.h: * buffer.h (struct buffer_text): * buffer.h (struct buffer): * buffer.h (VALID_CHARPTR_P): * buffer.h (REAL_INC_CHARBYTEBPOS): * buffer.h (INC_CHARBYTEBPOS): * buffer.h (DEC_CHARPTR): * buffer.h (VALIDATE_CHARPTR_FORWARD): * buffer.h (charptr_n_addr): * buffer.h (simple_set_charptr_emchar): * buffer.h (charptr_emchar): * buffer.h (set_charptr_emchar): * buffer.h (charptr_copy_char): * buffer.h (BI_BUF_BEG): * buffer.h (BI_BUF_PTR_BYTE_POS): * buffer.h (BUF_PTR_BYTE_POS): * buffer.h (BI_BUF_BYTE_ADDRESS): * buffer.h (BUF_BYTE_ADDRESS): * buffer.h (BI_BUF_BYTE_ADDRESS_BEFORE): * buffer.h (BUF_BYTE_ADDRESS_BEFORE): * buffer.h (valid_membpos_p): * buffer.h (bytebpos_to_membpos): * buffer.h (membpos_to_bytebpos): * buffer.h (membpos_to_charbpos): * buffer.h (buffer_or_string_bytebpos_to_membpos): * buffer.h (buffer_or_string_membpos_to_bytebpos): * buffer.h (buffer_or_string_charbpos_to_bytebpos): * buffer.h (VALID_BYTEBPOS_P): * buffer.h (ASSERT_VALID_BYTEBPOS_UNSAFE): * buffer.h (VALIDATE_BYTEBPOS_BACKWARD): * buffer.h (VALIDATE_BYTEBPOS_FORWARD): * buffer.h (INC_BYTEBPOS): * buffer.h (DEC_BYTEBPOS): * buffer.h (prev_bytebpos): * buffer.h (next_bytebpos): * buffer.h (BYTEBPOS_INVALID): * buffer.h (real_charbpos_to_bytebpos): * buffer.h (real_bytebpos_to_charbpos): * buffer.h (charbpos_to_bytebpos): * buffer.h (make_charbpos): * buffer.h (BUF_FETCH_CHAR): * buffer.h (BUF_CHARPTR_COPY_CHAR): * buffer.h (union): * buffer.h (DFC_LISP_STRING_USE_CONVERTED_DATA): * buffer.h (BUF_CEILING_OF): * buffer.h (BUF_FLOOR_OF): * buffer.h (BUF_CEILING_OF_IGNORE_ACCESSIBLE): * buffer.h (BUF_FLOOR_OF_IGNORE_ACCESSIBLE): * buffer.h (BUFFER_ALLOC): * buffer.h (intbyte_strcmp): * buffer.h (intbyte_memcmp): * bytecode.c (invalid_byte_code): * bytecode.c (optimize_byte_code): * bytecode.c (compiled_function_hash): * bytecode.c (compiled_function_instructions): * callint.c (check_mark): * callint.c (callint_prompt): * callint.c (PROMPT): * callint.c (Fcall_interactively): * callproc.c (Fold_call_process_internal): * callproc.c (getenv_internal): * callproc.c (Fgetenv): * callproc.c (egetenv): * callproc.c (init_callproc): * casefiddle.c (casify_object): * casefiddle.c (casify_region_internal): * casefiddle.c (casify_word): * chartab.c (char_table_entry_hash): * chartab.c (char_table_hash): * cmds.c (Fforward_char): * cmds.c (Fforward_line): * cmds.c (Fdelete_char): * config.h.in: * console-msw.c (mswindows_output_console_string): * console-msw.c (Fmswindows_debugging_output): * console-msw.c (DSTRING): * console-msw.c (DSYMNAME): * console-msw.c (mswindows_lisp_error): * console-msw.h: * console-x.c (split_up_display_spec): * console-x.c (x_semi_canonicalize_console_connection): * console.c (stuff_buffered_input): * console.h (struct console_methods): * data.c (weak_list_hash): * database.c (berkdb_get): * database.c (berkdb_map): * device-msw.c (msprinter_default_printer): * device-msw.c (hash_devmode): * device-msw.c (Fmswindows_printer_list): * device-x.c (validify_resource_component): * device-x.c (Fx_get_resource_prefix): * device.h (struct pixel_to_glyph_translation_cache): * dialog-msw.c (push_intbyte_string_as_unicode): * dialog-msw.c (handle_question_dialog_box): * dired.c (Fdirectory_files): * dired.c (file_name_completion): * dired.c (struct user_name): * dired.c (user_name_completion): * dired.c (make_directory_hash_table): * dired.c (Ffile_attributes): * doc.c (string_join): * doc.c (Fsnarf_documentation): * doc.c (Fsubstitute_command_keys): * doprnt.c (union printf_arg): * doprnt.c (doprnt_1): * doprnt.c (parse_off_posnum): * doprnt.c (parse_doprnt_spec): * doprnt.c (get_doprnt_args): * doprnt.c (emacs_doprnt_1): * doprnt.c (emacs_doprnt_2): * doprnt.c (emacs_doprnt_c): * doprnt.c (emacs_doprnt_va): * doprnt.c (emacs_doprnt_lisp): * doprnt.c (emacs_doprnt_lisp_2): * doprnt.c (emacs_doprnt_string_c): * doprnt.c (emacs_doprnt_string_va): * doprnt.c (emacs_doprnt_string_lisp): * doprnt.c (emacs_doprnt_string_lisp_2): * dumper.c: * dumper.c (struct): * dumper.c (dump_add_opaque): * dumper.c (pdump_align_stream): * dumper.c (pdump_size_to_align): * dumper.c (pdump_entry_list_elt): * dumper.c (pdump_add_entry): * dumper.c (pdump_get_indirect_count): * dumper.c (pdump_register_sub): * dumper.c (pdump_dump_data): * dumper.c (pdump_reloc_one): * dumper.c (pdump_allocate_offset): * dumper.c (pdump_dump_root_struct_ptrs): * dumper.c (pdump_dump_root_objects): * dumper.c (pdump_load_finish): * dumper.c (pdump_resource_get): * dumper.c (pdump_file_get): * dynarr.c (Dynarr_memory_usage): * editfns.c (Fchar_to_string): * editfns.c (buildmark): * editfns.c (charbpos_clip_to_bounds): * editfns.c (bytebpos_clip_to_bounds): * editfns.c (Fgoto_char): * editfns.c (save_excursion_save): * editfns.c (beginning_of_line_p): * editfns.c (Fchar_after): * editfns.c (Fchar_before): * editfns.c (Fformat_time_string): * editfns.c (Fcurrent_time_string): * editfns.c (Finsert_char): * editfns.c (Fbuffer_substring): * editfns.c (Fbuffer_substring_no_properties): * editfns.c (Finsert_buffer_substring): * editfns.c (Fcompare_buffer_substrings): * editfns.c (Fsubst_char_in_region): * editfns.c (Ftranslate_region): * editfns.c (Fdelete_region): * editfns.c (Fnarrow_to_region): * editfns.c (save_restriction_restore): * editfns.c (transpose_markers): * editfns.c (Ftranspose_regions): * eldap.c (Fldap_open): * eldap.c (Fldap_add): * eldap.c (Fldap_modify): * elhash.c: * elhash.c (struct Lisp_Hash_Table): * elhash.c (HASHCODE): * elhash.c (hash_table_size): * elhash.c (lisp_string_hash): * elhash.c (lisp_object_eql_hash): * elhash.c (lisp_object_equal_hash): * elhash.c (hash_table_hash): * elhash.c (compute_hash_table_derived_values): * elhash.c (make_standard_lisp_hash_table): * elhash.c (make_general_lisp_hash_table): * elhash.c (make_lisp_hash_table): * elhash.c (decode_hash_table_size): * elhash.c (resize_hash_table): * elhash.c (pdump_reorganize_hash_table): * elhash.c (enlarge_hash_table): * elhash.c (find_hentry): * elhash.c (remhash_1): * elhash.c (internal_array_hash): * elhash.c (internal_hash): * elhash.h: * emacs.c (split_string_by_emchar_1): * emacs.c (decode_path): * emacs.c (vars_of_emacs): * emodules.c (emodules_load): * emodules.c (emodules_doc_subr): * emodules.c (emodules_doc_sym): * eval.c (print_subr): * eval.c (build_error_data): * eval.c (signal_error): * eval.c (maybe_signal_error): * eval.c (signal_continuable_error): * eval.c (maybe_signal_continuable_error): * eval.c (signal_error_2): * eval.c (maybe_signal_error_2): * eval.c (signal_continuable_error_2): * eval.c (maybe_signal_continuable_error_2): * eval.c (signal_ferror): * eval.c (maybe_signal_ferror): * eval.c (signal_continuable_ferror): * eval.c (maybe_signal_continuable_ferror): * eval.c (signal_ferror_with_frob): * eval.c (maybe_signal_ferror_with_frob): * eval.c (signal_continuable_ferror_with_frob): * eval.c (maybe_signal_continuable_ferror_with_frob): * eval.c (syntax_error): * eval.c (syntax_error_2): * eval.c (maybe_syntax_error): * eval.c (sferror): * eval.c (sferror_2): * eval.c (maybe_sferror): * eval.c (invalid_argument): * eval.c (invalid_argument_2): * eval.c (maybe_invalid_argument): * eval.c (invalid_constant): * eval.c (invalid_constant_2): * eval.c (maybe_invalid_constant): * eval.c (invalid_operation): * eval.c (invalid_operation_2): * eval.c (maybe_invalid_operation): * eval.c (invalid_change): * eval.c (invalid_change_2): * eval.c (maybe_invalid_change): * eval.c (invalid_state): * eval.c (invalid_state_2): * eval.c (maybe_invalid_state): * eval.c (wtaerror): * eval.c (stack_overflow): * eval.c (out_of_memory): * eval.c (printing_unreadable_object): * eval.c (caught_a_squirmer): * eval.c (eval_in_buffer_trapping_errors): * eval.c (run_hook_trapping_errors): * eval.c (safe_run_hook_trapping_errors): * eval.c (call0_trapping_errors): * eval.c (call1_trapping_errors): * eval.c (call2_trapping_errors): * eval.c (warn_when_safe): * event-Xt.c (x_event_to_emacs_event): * event-Xt.c (describe_event_window): * event-gtk.c (dragndrop_data_received): * event-msw.c (ntpipe_slurp_reader): * event-msw.c (ntpipe_shove_writer): * event-msw.c (struct winsock_stream): * event-msw.c (winsock_initiate_read): * event-msw.c (winsock_reader): * event-msw.c (winsock_writer): * event-msw.c (emacs_mswindows_create_stream_pair): * event-stream.c: * event-stream.c (allocate_command_builder): * event-stream.c (echo_key_event): * event-stream.c (lookup_command_event): * event-stream.c (dribble_out_event): * event-unixoid.c (event_stream_unixoid_create_stream_pair): * events.c (event_hash): * events.c (format_event_object): * events.c (event_pixel_translation): * events.c (Fevent_point): * events.c (Fevent_closest_point): * events.h (struct command_builder): * extents.c: * extents.c (stack_of_extents): * extents.c (membpos_to_startind): * extents.c (bytebpos_to_startind): * extents.c (buffer_or_string_bytebpos_to_startind): * extents.c (buffer_or_string_bytebpos_to_endind): * extents.c (gap_array_adjust_markers): * extents.c (gap_array_move_gap): * extents.c (extent_list_locate_from_pos): * extents.c (extent_list_at): * extents.c (soe_dump): * extents.c (soe_move): * extents.c (extent_endpoint_bytebpos): * extents.c (extent_endpoint_charbpos): * extents.c (extent_changed_for_redisplay): * extents.c (extent_in_region_p): * extents.c (map_extents_bytebpos): * extents.c (map_extents): * extents.c (adjust_extents): * extents.c (adjust_extents_for_deletion): * extents.c (extent_find_end_of_run): * extents.c (extent_find_beginning_of_run): * extents.c (extent_fragment_update): * extents.c (extent_hash): * extents.c (extent_endpoint_external): * extents.c (Fextent_length): * extents.c (Fnext_extent_change): * extents.c (Fprevious_extent_change): * extents.c (set_extent_endpoints_1): * extents.c (set_extent_endpoints): * extents.c (make_extent_internal): * extents.c (copy_extent): * extents.c (Fmake_extent): * extents.c (Fset_extent_endpoints): * extents.c (Fextent_in_region_p): * extents.c (Fmap_extents): * extents.c (struct slow_map_extent_children_arg): * extents.c (slow_map_extent_children_function): * extents.c (Fmap_extent_children): * extents.c (struct extent_at_arg): * extents.c (extent_at_bytebpos): * extents.c (Fextent_at): * extents.c (Fextents_at): * extents.c (struct verify_extents_arg): * extents.c (verify_extent_modification): * extents.c (struct process_extents_for_insertion_arg): * extents.c (process_extents_for_insertion_mapper): * extents.c (process_extents_for_insertion): * extents.c (struct process_extents_for_deletion_arg): * extents.c (process_extents_for_deletion): * extents.c (report_extent_modification_mapper): * extents.c (report_extent_modification): * extents.c (run_extent_copy_paste_internal): * extents.c (run_extent_copy_function): * extents.c (run_extent_paste_function): * extents.c (update_extent): * extents.c (insert_extent): * extents.c (Finsert_extent): * extents.c (struct add_string_extents_arg): * extents.c (add_string_extents_mapper): * extents.c (add_string_extents): * extents.c (struct splice_in_string_extents_arg): * extents.c (splice_in_string_extents_mapper): * extents.c (splice_in_string_extents): * extents.c (copy_string_extents_mapper): * extents.c (copy_string_extents): * extents.c (get_text_property_bytebpos): * extents.c (get_text_property_1): * extents.c (struct put_text_prop_arg): * extents.c (put_text_prop_mapper): * extents.c (put_text_prop_openness_mapper): * extents.c (put_text_prop): * extents.c (Fput_text_property): * extents.c (Fadd_text_properties): * extents.c (Fremove_text_properties): * extents.h: * extents.h (struct extent): * faces.c (face_hash): * file-coding.c: * file-coding.c (detect_eol_type): * file-coding.c (detect_coding_type): * file-coding.c (determine_real_coding_system): * file-coding.c (Fdetect_coding_region): * file-coding.c (decoding_reader): * file-coding.c (decoding_writer): * file-coding.c (mule_decode): * file-coding.c (Fdecode_coding_region): * file-coding.c (encoding_reader): * file-coding.c (encoding_writer): * file-coding.c (mule_encode): * file-coding.c (Fencode_coding_region): * file-coding.c (detect_coding_sjis): * file-coding.c (decode_coding_sjis): * file-coding.c (encode_coding_sjis): * file-coding.c (detect_coding_big5): * file-coding.c (decode_coding_big5): * file-coding.c (encode_coding_big5): * file-coding.c (decode_ucs4): * file-coding.c (detect_coding_ucs4): * file-coding.c (decode_coding_ucs4): * file-coding.c (encode_coding_ucs4): * file-coding.c (detect_coding_utf8): * file-coding.c (decode_coding_utf8): * file-coding.c (encode_coding_utf8): * file-coding.c (detect_coding_iso2022): * file-coding.c (decode_coding_iso2022): * file-coding.c (encode_coding_iso2022): * file-coding.c (decode_coding_no_conversion): * file-coding.c (encode_coding_no_conversion): * file-coding.h (INTBYTE_FIRST_BYTE_P): * fileio.c (normalize_filename): * fileio.c (report_file_type_error): * fileio.c (report_error_with_errno): * fileio.c (report_file_error): * fileio.c (read_allowing_quit): * fileio.c (write_allowing_quit): * fileio.c (Ffile_name_directory): * fileio.c (Ffile_name_nondirectory): * fileio.c (Fmake_temp_name): * fileio.c (Fexpand_file_name): * fileio.c (Ffile_truename): * fileio.c (Fsubstitute_in_file_name): * fileio.c (barf_or_query_if_file_exists): * fileio.c (Ffile_name_absolute_p): * fileio.c (Ffile_symlink_p): * fileio.c (Fdo_auto_save): * filelock.c (MAKE_LOCK_NAME): * filelock.c (fill_in_lock_file_name): * floatfns.c (float_hash): * fns.c (print_bit_vector): * fns.c (bit_vector_hash): * fns.c (size_bit_vector): * fns.c (Flength): * fns.c (Fsafe_length): * fns.c (Fstring_lessp): * fns.c (copy_list): * fns.c (concat): * fns.c (Ffillarray): * fns.c (bytecode_nconc2): * fns.c (Fnconc): * fns.c (mapcar1): * fns.c (Fmapcar): * fns.c (Fmapvector): * fns.c (ADVANCE_INPUT): * fns.c (base64_encode_1): * fns.c (base64_decode_1): * fns.c (XMALLOC_OR_ALLOCA): * fns.c (Fbase64_encode_region): * fns.c (Fbase64_encode_string): * fns.c (Fbase64_decode_region): * fns.c (Fbase64_decode_string): * font-lock.c (struct context_cache): * font-lock.c (font_lock_maybe_update_syntactic_caches): * font-lock.c (beginning_of_defun): * font-lock.c (end_of_defun): * font-lock.c (setup_context_cache): * font-lock.c (find_context): * font-lock.c (Fsyntactically_sectionize): * frame-gtk.c (gtk_set_frame_text_value): * frame-gtk.c (gtk_set_title_from_intbyte): * frame-gtk.c (gtk_set_icon_name_from_intbyte): * frame-gtk.c (console_type_create_frame_gtk): * frame-msw.c (mswindows_set_title_from_intbyte): * frame-msw.c (console_type_create_frame_mswindows): * frame-x.c (x_set_frame_text_value): * frame-x.c (x_set_title_from_intbyte): * frame-x.c (x_set_icon_name_from_intbyte): * frame-x.c (x_set_frame_properties): * frame-x.c (x_cde_transfer_callback): * frame-x.c (console_type_create_frame_x): * frame.c (Fmake_frame): * frame.c (Fmouse_position): * frame.c (generate_title_string): * frame.c (update_frame_title): * gif_io.c (GifStdRead): * gif_io.c (GifStdWrite): * gif_io.c (GifRead): * gif_io.c (GifWrite): * gifrlib.h: * glyphs-eimage.c (jpeg_memory_src): * glyphs-eimage.c (jpeg_instantiate): * glyphs-eimage.c (gif_memory_storage): * glyphs-eimage.c (gif_read_from_memory): * glyphs-eimage.c (gif_instantiate): * glyphs-eimage.c (struct png_memory_storage): * glyphs-eimage.c (png_read_from_memory): * glyphs-eimage.c (png_instantiate): * glyphs-eimage.c (tiff_memory_storage): * glyphs-eimage.c (tiff_memory_read): * glyphs-eimage.c (tiff_instantiate): * glyphs-msw.c (mswindows_xpm_instantiate): * glyphs-msw.c (bmp_instantiate): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (mswindows_image_instance_hash): * glyphs-msw.c (mswindows_widget_property): * glyphs-msw.c (mswindows_combo_box_property): * glyphs-x.c (x_image_instance_hash): * glyphs-x.c (write_lisp_string_to_temp_file): * glyphs.c (image_instance_hash): * glyphs.c (incompatible_image_types): * glyphs.c (query_string_geometry): * glyphs.c (query_string_font): * glyphs.c (instantiator_eq_hash): * glyphs.c (glyph_hash): * glyphs.h (struct Lisp_Image_Instance): * gpmevent.c (tty_get_foreign_selection): * gui-x.c (menu_separator_style_and_to_external): * gui-x.c (add_accel_and_to_external): * gui-x.c (button_item_to_widget_value): * gui-x.h: * gui.c (separator_string_p): * gui.c (gui_name_accelerator): * gui.c (gui_item_hash): * gui.h: * gutter.c (gutter_extent_signal_changed_region_maybe): * gutter.h: * hash.c: * hash.c (memory_hash): * hash.c (string_hash): * hash.c (hash_table_size): * hash.c (gethash): * hash.c (make_hash_table): * hash.c (make_general_hash_table): * hash.c (grow_hash_table): * hash.c (puthash): * hash.c (rehash): * hash.c (remhash): * hash.h: * hash.h (struct hash_table): * hpplay.c (player_error_internal): * indent.c: * indent.c (last_visible_position): * indent.c (column_at_point): * indent.c (string_column_at_point): * indent.c (Findent_to): * indent.c (bi_spaces_at_point): * indent.c (Fcurrent_indentation): * indent.c (Fmove_to_column): * indent.c (vmotion_1): * indent.c (vmotion): * indent.c (vertical_motion_1): * indent.c (vmotion_pixels): * indent.c (Fvertical_motion_pixels): * insdel.c: * insdel.c (MAX_CHARBPOS_GAP_SIZE_3): * insdel.c (bytecount_to_charcount): * insdel.c (charcount_to_bytecount): * insdel.c (charbpos_to_bytebpos_func): * insdel.c (bytebpos_to_charbpos_func): * insdel.c (buffer_mule_signal_inserted_region): * insdel.c (buffer_mule_signal_deleted_region): * insdel.c (charbpos_to_bytebpos): * insdel.c (bytebpos_to_charbpos): * insdel.c (get_buffer_pos_char): * insdel.c (get_buffer_pos_byte): * insdel.c (get_buffer_range_char): * insdel.c (get_buffer_range_byte): * insdel.c (get_string_range_char): * insdel.c (get_buffer_or_string_pos_char): * insdel.c (get_buffer_or_string_pos_byte): * insdel.c (get_buffer_or_string_range_char): * insdel.c (get_buffer_or_string_range_byte): * insdel.c (buffer_or_string_accessible_begin_char): * insdel.c (buffer_or_string_accessible_end_char): * insdel.c (buffer_or_string_accessible_begin_byte): * insdel.c (buffer_or_string_accessible_end_byte): * insdel.c (buffer_or_string_absolute_begin_char): * insdel.c (buffer_or_string_absolute_end_char): * insdel.c (buffer_or_string_absolute_begin_byte): * insdel.c (buffer_or_string_absolute_end_byte): * insdel.c (JUST_SET_POINT): * insdel.c (set_buffer_point): * insdel.c (do_marker_adjustment): * insdel.c (adjust_markers): * insdel.c (adjust_markers_for_insert): * insdel.c (gap_left): * insdel.c (gap_right): * insdel.c (move_gap): * insdel.c (merge_gap_with_end_gap): * insdel.c (make_gap): * insdel.c (buffer_signal_changed_region): * insdel.c (buffer_extent_signal_changed_region): * insdel.c (cancel_multiple_change): * insdel.c (begin_multiple_change): * insdel.c (signal_before_change): * insdel.c (signal_after_change): * insdel.c (prepare_to_modify_buffer): * insdel.c (fixup_internal_substring): * insdel.c (buffer_insert_string_1): * insdel.c (buffer_insert_raw_string_1): * insdel.c (buffer_insert_lisp_string_1): * insdel.c (buffer_insert_c_string_1): * insdel.c (buffer_insert_emacs_char_1): * insdel.c (buffer_insert_c_char_1): * insdel.c (buffer_insert_from_buffer_1): * insdel.c (buffer_delete_range): * insdel.c (buffer_replace_char): * insdel.c (make_string_from_buffer_1): * insdel.c (make_string_from_buffer): * insdel.c (make_string_from_buffer_no_extents): * insdel.c (barf_if_buffer_read_only): * insdel.c (find_charsets_in_intbyte_string): * insdel.c (intbyte_string_displayed_columns): * insdel.c (convert_intbyte_string_into_emchar_dynarr): * insdel.c (convert_intbyte_string_into_emchar_string): * insdel.c (convert_emchar_string_into_intbyte_dynarr): * insdel.c (convert_emchar_string_into_malloced_string): * insdel.c (reinit_vars_of_insdel): * insdel.c (init_buffer_text): * insdel.h: * insdel.h (struct buffer_text_change_data): * keymap.c (make_key_description): * keymap.c (make_keymap): * keymap.c (define_key_check_and_coerce_keysym): * keymap.c (Fsingle_key_description): * keymap.c (Ftext_char_description): * keymap.c (vars_of_keymap): * line-number.c (invalidate_line_number_cache): * line-number.c (insert_invalidate_line_number_cache): * line-number.c (delete_invalidate_line_number_cache): * line-number.c (get_nearest_line_number): * line-number.c (add_position_to_cache): * line-number.c (buffer_line_number): * line-number.h: * line-number.h (buffer_line_number): * lisp.h: * lisp.h (DO_REALLOC): * lisp.h (struct): * lisp.h (struct Lisp_Buffer_Cons): * lisp.h (struct Lisp_String): * lisp.h (set_string_char): * lisp.h (struct Lisp_Bit_Vector): * lisp.h (bit_vector_bit): * lisp.h (set_bit_vector_bit): * lisp.h (struct Lisp_Marker): * lisp.h (struct lcrecord_list): * lisp.h (struct overhead_stats): * lread.c: * lread.c (readchar): * lread.c (Fload_internal): * lread.c (read_atom): * lread.c (parse_integer): * lread.c (isfloat_string): * lrecord.h: * lrecord.h (struct lrecord_implementation): * lrecord.h (lrecord_description_type): * lrecord.h (struct struct_description): * lstream.c: * lstream.c (aligned_sizeof_lstream): * lstream.c (sizeof_lstream): * lstream.c (Lstream_flush_out): * lstream.c (Lstream_adding): * lstream.c (Lstream_write_1): * lstream.c (Lstream_write): * lstream.c (Lstream_raw_read): * lstream.c (Lstream_read_more): * lstream.c (Lstream_read): * lstream.c (Lstream_unread): * lstream.c (Lstream_fputc): * lstream.c (stdio_reader): * lstream.c (stdio_writer): * lstream.c (struct filedesc_stream): * lstream.c (filedesc_reader): * lstream.c (filedesc_writer): * lstream.c (filedesc_stream_set_pty_flushing): * lstream.c (lisp_string_reader): * lstream.c (lisp_string_rewinder): * lstream.c (struct fixed_buffer_stream): * lstream.c (make_fixed_buffer_input_stream): * lstream.c (make_fixed_buffer_output_stream): * lstream.c (fixed_buffer_reader): * lstream.c (fixed_buffer_writer): * lstream.c (struct resizing_buffer_stream): * lstream.c (resizing_buffer_writer): * lstream.c (dynarr_writer): * lstream.c (make_lisp_buffer_stream_1): * lstream.c (make_lisp_buffer_input_stream): * lstream.c (make_lisp_buffer_output_stream): * lstream.c (lisp_buffer_reader): * lstream.c (lisp_buffer_writer): * lstream.c (lisp_buffer_stream_startpos): * lstream.h: * lstream.h (lstream_implementation): * lstream.h (struct lstream): * malloc.c: * marker.c (marker_equal): * marker.c (marker_hash): * marker.c (set_marker_internal): * marker.c (bi_marker_position): * marker.c (marker_position): * marker.c (set_bi_marker_position): * marker.c (set_marker_position): * md5.c (Fmd5): * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar-msw.c (displayable_menu_item): * menubar-x.c (menu_item_descriptor_to_widget_value_1): * menubar-x.c (menu_accelerator_junk_on_error): * menubar.c (Fnormalize_menu_item_name): * minibuf.c (scmp_1): * minibuf.c (regexp_ignore_completion_p): * minibuf.c (clear_echo_area_internal): * minibuf.c (echo_area_append): * minibuf.c (echo_area_message): * minibuf.c (message_internal): * minibuf.c (message_append_internal): * minibuf.c (message_1): * minibuf.c (message_append_1): * mule-ccl.c (CCL_WRITE_CHAR): * mule-ccl.c (CCL_WRITE_STRING): * mule-charset.c (non_ascii_set_charptr_emchar): * mule-charset.c (non_ascii_charptr_emchar): * mule-charset.c (non_ascii_charptr_copy_char): * mule-charset.c (Lstream_get_emchar_1): * mule-charset.c (Lstream_fput_emchar): * mule-charset.c (Lstream_funget_emchar): * mule-charset.c (make_charset): * mule-charset.c (lookup_composite_char): * mule-charset.h: * mule-charset.h (LEADING_BYTE_PREFIX_P): * mule-charset.h (INTBYTE_FIRST_BYTE_P): * mule-charset.h (INTBYTE_LEADING_BYTE_P): * mule-charset.h (struct Lisp_Charset): * mule-charset.h (CHARSET_LEADING_BYTE): * mule-charset.h (CHARSET_BY_LEADING_BYTE): * mule-charset.h (REP_BYTES_BY_FIRST_BYTE): * mule-charset.h (CHAR_LEADING_BYTE): * mule-wnnfns.c (Fwnn_dict_list): * mule-wnnfns.c (Fwnn_fuzokugo_get): * mule-wnnfns.c (m2w): * objects-gtk.c (gtk_parse_nearest_color): * objects-gtk.c (gtk_font_spec_matches_charset): * objects-gtk.c (gtk_find_charset_font): * objects-gtk.h: * objects-msw.c (mswindows_font_spec_matches_charset): * objects-tty.c (tty_initialize_font_instance): * objects-tty.c (tty_font_spec_matches_charset): * objects-tty.c (tty_find_charset_font): * objects-x.c (x_font_instance_properties): * objects-x.c (x_font_spec_matches_charset): * objects-x.c (x_find_charset_font): * objects.c (font_spec_matches_charset): * objects.h: * opaque.c (aligned_sizeof_opaque): * opaque.c (sizeof_opaque): * opaque.c (make_opaque): * opaque.c (equal_opaque): * opaque.h: * opaque.h (Lisp_Opaque): * print.c (std_handle_out_external): * print.c (std_handle_out_va): * print.c (write_string_to_stdio_stream): * print.c (output_string): * print.c (write_char_internal): * print.c (write_string_1): * print.c (write_c_string): * print.c (Fwrite_char): * print.c (float_to_string): * print.c (print_string): * print.c (print_internal): * print.c (print_symbol): * print.c (Falternate_debugging_output): * print.c (Fexternal_debugging_output): * process-nt.c (alloc_process_memory): * process-nt.c (run_in_other_process): * process-nt.c (nt_send_process): * process-unix.c (unix_send_process): * process-unix.c (unix_process_send_eof): * process-unix.c (unix_kill_child_process): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): * process.c: * process.c (read_process_output): * process.c (send_process): * process.c (Fprocess_send_region): * process.c (status_notify): * process.c (decode_signal): * procimpl.h: * redisplay-gtk.c (gtk_output_display_block): * redisplay-output.c: * redisplay-output.c (compare_runes): * redisplay-output.c (ADJ_CHARBPOS): * redisplay-output.c (redisplay_move_cursor): * redisplay-output.c (redisplay_output_layout): * redisplay-output.c (redisplay_update_line): * redisplay-tty.c: * redisplay-tty.c (tty_output_intbyte_string): * redisplay-tty.c (tty_output_emchar_dynarr): * redisplay-tty.c (substitute_in_dynamic_color_string): * redisplay-tty.c (set_foreground_to): * redisplay-tty.c (set_background_to): * redisplay.c: * redisplay.c (position_redisplay_data_type): * redisplay.c (struct prop_block): * redisplay.c (redisplay_text_width_string): * redisplay.c (redisplay_frame_text_width_string): * redisplay.c (generate_display_line): * redisplay.c (add_hscroll_rune): * redisplay.c (add_emchar_rune): * redisplay.c (add_intbyte_string_runes): * redisplay.c (add_blank_rune): * redisplay.c (add_disp_table_entry_runes_1): * redisplay.c (add_propagation_runes): * redisplay.c (add_glyph_rune): * redisplay.c (create_text_block): * redisplay.c (create_overlay_glyph_block): * redisplay.c (add_margin_blank): * redisplay.c (generate_formatted_string_db): * redisplay.c (generate_modeline): * redisplay.c (add_string_to_fstring_db_runes): * redisplay.c (generate_fstring_runes): * redisplay.c (create_string_text_block): * redisplay.c (generate_string_display_line): * redisplay.c (generate_displayable_area): * redisplay.c (regenerate_window): * redisplay.c (REGEN_INC_FIND_START_END): * redisplay.c (regenerate_window_extents_only_changed): * redisplay.c (regenerate_window_incrementally): * redisplay.c (regenerate_window_point_center): * redisplay.c (point_visible): * redisplay.c (line_at_center): * redisplay.c (point_at_center): * redisplay.c (redisplay_window): * redisplay.c (call_redisplay_end_triggers): * redisplay.c (window_line_number): * redisplay.c (decode_mode_spec): * redisplay.c (update_internal_cache_list): * redisplay.c (line_start_cache_start): * redisplay.c (line_start_cache_end): * redisplay.c (point_in_line_start_cache): * redisplay.c (point_would_be_visible): * redisplay.c (start_end_of_last_line): * redisplay.c (start_of_last_line): * redisplay.c (end_of_last_line): * redisplay.c (end_of_last_line_may_error): * redisplay.c (start_with_line_at_pixpos): * redisplay.c (start_with_point_on_display_line): * redisplay.c (update_line_start_cache): * redisplay.c (UPDATE_CACHE_RETURN): * redisplay.c (pixel_to_glyph_translation): * redisplay.c (init_redisplay): * redisplay.h: * redisplay.h (struct line_start_cache): * redisplay.h (struct rune): * redisplay.h (struct display_line): * redisplay.h (struct extent_fragment): * regex.c (struct): * regex.c (PATFETCH_EXTENDED): * regex.c (PATFETCH_RAW_EXTENDED): * regex.c (regex_compile): * regex.c (compile_extended_range): * regex.c (re_compile_fastmap): * regex.c (re_match_2_internal): * regex.c (regerror): * regex.h (Elemcount): * scrollbar-gtk.h (struct gtk_scrollbar_data): * scrollbar-msw.c (mswindows_handle_mousewheel_event): * scrollbar-x.h (struct x_scrollbar_data): * scrollbar.c (scrollbar_point): * scrollbar.c (update_scrollbar_instance): * scrollbar.c (scrollbar_reset_cursor): * scrollbar.c (Fscrollbar_page_up): * scrollbar.c (Fscrollbar_vertical_drag): * search.c: * search.c (fixup_search_regs_for_buffer): * search.c (looking_at_1): * search.c (fast_string_match): * search.c (bi_scan_buffer): * search.c (scan_buffer): * search.c (bi_find_next_newline_no_quit): * search.c (find_next_newline_no_quit): * search.c (find_next_newline): * search.c (bi_find_next_emchar_in_string): * search.c (find_before_next_newline): * search.c (skip_chars): * search.c (search_command): * search.c (trivial_regexp_p): * search.c (search_buffer): * search.c (simple_search): * search.c (boyer_moore): * search.c (set_search_regs): * search.c (wordify): * search.c (Freplace_match): * search.c (Fmatch_data): * search.c (Fregexp_quote): * select-common.h (selection_data_to_lisp_data): * select-common.h (lisp_data_to_selection_data): * select-gtk.c (atom_to_symbol): * select-gtk.c (emacs_gtk_selection_handle): * select-x.c (hack_motif_clipboard_selection): * select-x.c (x_reply_selection_request): * select-x.c (x_handle_selection_request): * select-x.c (copy_multiple_data): * select-x.c (x_get_window_property): * select-x.c (receive_incremental_selection): * select-x.c (x_get_window_property_as_lisp_data): * select-x.c (Fx_get_cutbuffer_internal): * select-x.c (Fx_store_cutbuffer_internal): * sheap.c (report_sheap_usage): * sound.c (Fplay_sound): * sound.h (sound_perror): * sound.h (sound_warn): * specifier.c (aligned_sizeof_specifier): * specifier.c (sizeof_specifier): * specifier.c (make_specifier_internal): * symbols.c (intern): * symbols.c (oblookup): * symbols.c (hash_string): * symbols.c (init_symbols_once_early): * symbols.c (defsymbol_massage_name_1): * symbols.c (defsymbol_nodump): * symbols.c (defsymbol): * symbols.c (defvar_magic): * syntax.c: * syntax.c (struct lisp_parse_state): * syntax.c (find_defun_start): * syntax.c (scan_words): * syntax.c (Fforward_word): * syntax.c (find_start_of_comment): * syntax.c (find_end_of_comment): * syntax.c (Fforward_comment): * syntax.c (scan_lists): * syntax.c (char_quoted): * syntax.c (Fbackward_prefix_chars): * syntax.c (scan_sexps_forward): * syntax.c (Fparse_partial_sexp): * syntax.h: * syntax.h (struct syntax_cache): * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR): * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR): * sysdep.c (get_eof_char): * sysdep.c (init_system_name): * sysdep.c (sys_readdir): * sysdep.h: * syswindows.h: * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR): * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): * syswindows.h (WIN32_TO_LOCAL_FILE_FORMAT): * tests.c (Ftest_data_format_conversion): * toolbar-gtk.c (gtk_output_toolbar_button): * toolbar-x.c (x_output_toolbar_button): * tooltalk.c (check_status): * tooltalk.c (tt_message_arg_bval_vector): * tparam.c: * undo.c: * undo.c (record_insert): * undo.c (record_delete): * undo.c (record_change): * undo.c (record_property_change): * undo.c (Fprimitive_undo): * win32.c (tstr_to_local_file_format): * window.c (Fpos_visible_in_window_p): * window.c (Fwindow_end): * window.c (unshow_buffer): * window.c (Fdelete_other_windows): * window.c (Fselect_window): * window.c (window_scroll): * window.c (Fcenter_to_window_line): * window.c (Fmove_to_window_line): * window.c (sizeof_window_config_for_n_windows): * window.c (sizeof_window_config): * window.c (Fcurrent_pixel_column): * window.h (struct window): The great integral types renaming. Rationalize the names used for various integral types, so that they match their intended uses and follow consist conventions, and eliminate types that were not semantically different from each other. The following global substitutions were made: Memory_Count Bytecount Lstream_Data_Count Bytecount Element_Count Elemcount Hash_Code Hashcode extcount bytecount bufpos charbpos bytind bytebpos memind membpos bufbyte intbyte Extcount Bytecount Bufpos Charbpos Bytind Bytebpos Memind Membpos Bufbyte Intbyte EXTCOUNT BYTECOUNT BUFPOS CHARBPOS BYTIND BYTEBPOS MEMIND MEMBPOS BUFBYTE INTBYTE MEMORY_COUNT BYTECOUNT LSTREAM_DATA_COUNT BYTECOUNT ELEMENT_COUNT ELEMCOUNT HASH_CODE HASHCODE This resulted in some duplications. * lisp.h: removed duplicate declarations of Bytecount. * lstream.h: removed duplicate declaration of Bytecount. Rewrote the comment about this type. * dumper.c: remove duplicate case tag XD_BYTECOUNT, and the accompanying duplicate code, from 4 switchs tatements. [[See README.integral-types in this directory for more details.]] --invalid. See the Internals Manual, under Major Type Changes, and also README.global-renaming. 2001-09-17 Ben Wing <ben@xemacs.org> * fileio.c (normalize_filename): * fileio.c (Fexpand_file_name): Fix various C++ compile errors in Andy's recent code. * callint.c (Fcall_interactively): * editfns.c (Ftemp_directory): * editfns.c (Fuser_full_name): * emacs.c (argmatch): * lread.c (locate_file_map_suffixes): * redisplay-x.c (x_ring_bell): Fix sign-compare warnings. * scrollbar-msw.c: * scrollbar-msw.c (mswindows_handle_scrollbar_event): Fix crash under MS Windows. See comment around line 223 for explanation. 2001-09-08 Andy Piper <andy@xemacs.org> * device-msw.c (mswindows_finish_init_device): remove dde initialization. * device-msw.c (mswindows_init_dde): factor out from mswindows_finish_init_device() * device-msw.c (init_mswindows_very_early): new function initialize but don't enable dde. * emacs.c (main_1): call init_mswindows_very_early. * event-msw.c: * event-msw.c (mswindows_dde_callback): only execute when we are ready. * symsinit.h: declare init_mswindows_very_early. 2001-09-08 Andy Piper <andy@xemacs.org> * fileio.c (normalize_filename): copied from nt.c * (Ffile_name_directory): enable win32 paths under cygwin. * (Ffile_name_nondirectory): ditto. * (directory_file_name): ditto. * (Fexpand_file_name): ditto. * (Ffile_truename): ditto. * (Fsubstitute_in_file_name): ditto. * (Ffile_name_absolute_p): ditto. * (Ffile_readable_p): ditto. 2001-09-07 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.3 "asparagus" is released. 2001-04-19 Glynn Clements <glynn.clements@virgin.net> * input-method-motif.c (XIM_delete_frame): New callback. (XIM_init_frame): Register it. 2001-08-24 Stephen J. Turnbull <stephen@xemacs.org> * buffer.h (valid_char_p): Make negative integers invalid again. 2001-08-13 Ben Wing <ben@xemacs.org> * regex.c: need to include stddef.h for ptrdiff_t on Solaris, when regex.c is compiled as part of lib-src. 2001-06-24 Ben Wing <ben@xemacs.org> * EmacsFrame.c (EmacsFrameSetValues): * alloc.c: * alloc.c (xmalloc): * alloc.c (xcalloc): * alloc.c (xmalloc_and_zero): * alloc.c (xrealloc): * alloc.c (deadbeef_memory): * alloc.c (allocate_lisp_storage): * alloc.c (alloc_lcrecord): * alloc.c (Fmake_list): * alloc.c (size_vector): * alloc.c (vector_hash): * alloc.c (make_vector_internal): * alloc.c (make_vector): * alloc.c (make_bit_vector_internal): * alloc.c (make_bit_vector): * alloc.c (make_bit_vector_from_byte_vector): * alloc.c (Fmake_string): * alloc.c (make_lcrecord_list): * alloc.c (GC_CHECK_LHEADER_INVARIANTS): * alloc.c (tick_lcrecord_stats): * alloc.c (sweep_strings): * alloc.c (UNMARK_string): * alloc.c (ADDITIONAL_FREE_string): * alloc.c (garbage_collect_1): * alloc.c (Fgarbage_collect): * alloc.c (malloced_storage_size): * alloc.c (fixed_type_block_overhead): * backtrace.h: * backtrace.h (SPECPDL_RESERVE): * blocktype.c (Blocktype_newf): * blocktype.h: * blocktype.h (Blocktype_declare): * buffer.c: * buffer.c (compute_buffer_text_usage): * buffer.c (DEFVAR_BUFFER_LOCAL_1): * buffer.h (struct buffer_text): * buffer.h (MAP_INDIRECT_BUFFERS): * buffer.h (valid_char_p): * buffer.h (union): * buffer.h (bufbyte_memcmp): * bytecode.c (optimize_byte_code): * bytecode.c (compiled_function_hash): * callproc.c (Fold_call_process_internal): * chartab.c (char_table_entry_hash): * chartab.c (char_table_hash): * chartab.c (check_category_char): * chartab.c (Fcheck_category_at): * chartab.c (Fchar_in_category_p): * chartab.h: * console-x.c (x_semi_canonicalize_console_connection): * console.h (struct console_methods): * data.c (Faref): * data.c (Faset): * data.c (weak_list_hash): * device-msw.c (msprinter_init_device): * device-msw.c (Fmsprinter_select_settings): * device-msw.c (hash_devmode): * device-msw.c (Fmswindows_printer_list): * device-x.c (validify_resource_component): * device-x.c (Fx_put_resource): * dialog-msw.c: * dialog-msw.c (dialog_proc): * dialog-msw.c (button_width): * dialog-msw.c (ALIGN_TEMPLATE): * dialog-msw.c (handle_question_dialog_box): * dired.c (struct user_name): * dired.c (user_name_completion): * doc.c (get_doc_string): * doc.c (Fsnarf_documentation): * doprnt.c (parse_off_posnum): * doprnt.c (emacs_doprnt_1): * dumper.c: * dumper.c (struct): * dumper.c (dump_add_opaque): * dumper.c (pdump_align_stream): * dumper.c (pdump_size_to_align): * dumper.c (pdump_entry_list_elt): * dumper.c (pdump_add_entry): * dumper.c (pdump_get_indirect_count): * dumper.c (pdump_register_sub): * dumper.c (pdump_dump_data): * dumper.c (pdump_reloc_one): * dumper.c (pdump_allocate_offset): * dumper.c (pdump_dump_root_struct_ptrs): * dumper.c (pdump_dump_root_objects): * dumper.c (pdump_load_finish): * dumper.c (pdump_resource_get): * dumper.c (pdump_file_get): * dynarr.c (Dynarr_memory_usage): * editfns.c (Fformat_time_string): * editfns.c (Fcurrent_time_string): * eldap.c (Fldap_add): * eldap.c (Fldap_modify): * elhash.c: * elhash.c (struct Lisp_Hash_Table): * elhash.c (lisp_string_hash): * elhash.c (lisp_object_eql_hash): * elhash.c (lisp_object_equal_hash): * elhash.c (hash_table_hash): * elhash.c (print_hash_table): * elhash.c (compute_hash_table_derived_values): * elhash.c (make_standard_lisp_hash_table): * elhash.c (make_general_lisp_hash_table): * elhash.c (make_lisp_hash_table): * elhash.c (decode_hash_table_size): * elhash.c (resize_hash_table): * elhash.c (enlarge_hash_table): * elhash.c (remhash_1): * elhash.c (internal_array_hash): * elhash.c (internal_hash): * elhash.h: * emacs.c: * eval.c (grow_specpdl): * event-Xt.c (x_event_to_emacs_event): * event-msw.c: * event-msw.c (ntpipe_slurp_reader): * event-msw.c (ntpipe_shove_writer): * event-msw.c (struct winsock_stream): * event-msw.c (winsock_reader): * event-msw.c (winsock_writer): * event-msw.c (mswindows_need_event): * event-msw.c (assert): * event-msw.c (mswindows_current_layout_has_AltGr): * event-msw.c (debug_output_mswin_message): * events.c (event_hash): * extents.c (extent_list_locate): * faces.c (face_hash): * file-coding.c: * file-coding.c (detect_eol_type): * file-coding.c (detect_coding_type): * file-coding.c (determine_real_coding_system): * file-coding.c (Fdetect_coding_region): * file-coding.c (decoding_reader): * file-coding.c (decoding_writer): * file-coding.c (mule_decode): * file-coding.c (Fdecode_coding_region): * file-coding.c (encoding_reader): * file-coding.c (encoding_writer): * file-coding.c (mule_encode): * file-coding.c (Fencode_coding_region): * file-coding.c (detect_coding_sjis): * file-coding.c (decode_coding_sjis): * file-coding.c (encode_coding_sjis): * file-coding.c (DECODE_BIG5): * file-coding.c (ENCODE_BIG5): * file-coding.c (detect_coding_big5): * file-coding.c (decode_coding_big5): * file-coding.c (encode_coding_big5): * file-coding.c (Fset_ucs_char): * file-coding.c (detect_coding_ucs4): * file-coding.c (decode_coding_ucs4): * file-coding.c (encode_coding_ucs4): * file-coding.c (detect_coding_utf8): * file-coding.c (decode_coding_utf8): * file-coding.c (encode_coding_utf8): * file-coding.c (detect_coding_iso2022): * file-coding.c (decode_coding_iso2022): * file-coding.c (iso2022_designate): * file-coding.c (encode_coding_iso2022): * file-coding.c (decode_coding_no_conversion): * file-coding.c (encode_coding_no_conversion): * fileio.c (read_allowing_quit): * fileio.c (write_allowing_quit): * filelock.c (struct): * filelock.c (LOCK_PID_MAX): * filelock.c (fill_in_lock_file_name): * filelock.c (lock_file_1): * filelock.c (lock_file): * floatfns.c (float_hash): * fns.c (print_bit_vector): * fns.c (bit_vector_hash): * fns.c (size_bit_vector): * fns.c (Flength): * fns.c (Fsafe_length): * fns.c (copy_list): * fns.c (Fnthcdr): * fns.c (Ffillarray): * fns.c (bytecode_nconc2): * fns.c (Fnconc): * fns.c (mapcar1): * fns.c (Fmapcar): * fns.c (Fmapvector): * fns.c (XMALLOC_OR_ALLOCA): * font-lock.c: * font-lock.c (SYNTAX_END_STYLE): * font-lock.c (SINGLE_SYNTAX_STYLE): * font-lock.c (find_context): * frame-x.c (x_set_initial_frame_size): * frame-x.c (Fcde_start_drag_internal): * frame-x.c (Foffix_start_drag_internal): * frame.h (struct frame): * getloadavg.c: * getloadavg.c (getloadavg): * gif_io.c (GifStdRead): * gif_io.c (GifStdWrite): * gif_io.c (GifRead): * gif_io.c (GifWrite): * gifrlib.h: * glyphs-eimage.c (message): * glyphs-eimage.c (our_skip_input_data): * glyphs-eimage.c (jpeg_memory_src): * glyphs-eimage.c (gif_instantiate_unwind): * glyphs-eimage.c (gif_read_from_memory): * glyphs-eimage.c (gif_memory_close): * glyphs-eimage.c (gif_error_func): * glyphs-eimage.c (png_read_from_memory): * glyphs-eimage.c (tiff_memory_read): * glyphs-eimage.c (tiff_memory_write): * glyphs-eimage.c (tiff_memory_seek): * glyphs-eimage.c (tiff_memory_close): * glyphs-eimage.c (tiff_map_noop): * glyphs-eimage.c (tiff_unmap_noop): * glyphs-eimage.c (tiff_memory_size): * glyphs-eimage.c (tiff_error_func): * glyphs-eimage.c (tiff_warning_func): * glyphs-msw.c (xpm_to_eimage): * glyphs-msw.c (mswindows_resource_instantiate): * glyphs-msw.c (xbm_create_bitmap_from_data): * glyphs-msw.c (mswindows_image_instance_hash): * glyphs-shared.c (read_bitmap_data): * glyphs-shared.c (read_bitmap_data_from_file): * glyphs-x.c (x_image_instance_hash): * glyphs-x.c (write_lisp_string_to_temp_file): * glyphs-x.c (check_pointer_sizes): * glyphs-x.c (x_xpm_instantiate): * glyphs-x.c (x_subwindow_instantiate): * glyphs.c (image_instance_hash): * glyphs.c (bitmap_to_lisp_data): * glyphs.c (instantiator_eq_hash): * glyphs.c (glyph_hash): * glyphs.h: * glyphs.h (INITIALIZE_DEVICE_IIFORMAT): * glyphs.h (struct Lisp_Image_Instance): * glyphs.h (struct expose_ignore): * gmalloc.c (_free_internal): * gpmevent.c (tty_get_foreign_selection): * gui-x.c (add_accel_and_to_external): * gui.c (gui_item_display_flush_left): * gui.c (gui_item_display_flush_right): * gui.c (gui_item_hash): * gui.h: * hash.c: * hash.c (memory_hash): * hash.c (string_hash): * hash.c (hash_table_size): * hash.c (gethash): * hash.c (make_hash_table): * hash.c (make_general_hash_table): * hash.c (grow_hash_table): * hash.c (puthash): * hash.c (rehash): * hash.c (remhash): * hash.h: * hash.h (struct hash_table): * hftctl.c (RD_BUF): * imgproc.c (build_EImage_quantable): * insdel.c (bytecount_to_charcount): * keymap.c: * keymap.c (make_keymap): * keymap.c (relevant_map_push): * line-number.c (insert_invalidate_line_number_cache): * linuxplay.c (linux_play_data_or_file): * lisp.h: * lisp.h (DO_REALLOC): * lisp.h (struct Lisp_Bit_Vector): * lisp.h (bit_vector_bit): * lisp.h (set_bit_vector_bit): * lisp.h (struct lcrecord_list): * lisp.h (struct overhead_stats): * lrecord.h: * lrecord.h (struct lrecord_implementation): * lrecord.h (lrecord_description_type): * lrecord.h (struct lrecord_description): * lrecord.h (struct struct_description): * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): * lrecord.h (RECORD_TYPEP): * lrecord.h (DECLARE_EXTERNAL_LRECORD): * lstream.c: * lstream.c (aligned_sizeof_lstream): * lstream.c (sizeof_lstream): * lstream.c (Lstream_flush_out): * lstream.c (Lstream_adding): * lstream.c (Lstream_write_1): * lstream.c (Lstream_write): * lstream.c (Lstream_raw_read): * lstream.c (Lstream_read_more): * lstream.c (Lstream_read): * lstream.c (Lstream_unread): * lstream.c (Lstream_fputc): * lstream.c (stdio_reader): * lstream.c (stdio_writer): * lstream.c (filedesc_reader): * lstream.c (filedesc_writer): * lstream.c (lisp_string_reader): * lstream.c (struct fixed_buffer_stream): * lstream.c (make_fixed_buffer_input_stream): * lstream.c (make_fixed_buffer_output_stream): * lstream.c (fixed_buffer_reader): * lstream.c (fixed_buffer_writer): * lstream.c (struct resizing_buffer_stream): * lstream.c (resizing_buffer_writer): * lstream.c (dynarr_writer): * lstream.c (lisp_buffer_reader): * lstream.c (lisp_buffer_writer): * lstream.h: * lstream.h (lstream_implementation): * lstream.h (struct lstream): * malloc.c: * malloc.c (malloc): * malloc.c (free): * malloc.c (realloc): * md5.c (Fmd5): * menubar-msw.c (displayable_menu_item): * mule-ccl.c (ccl_driver): * mule-charset.c (non_ascii_charptr_copy_char): * mule-charset.c (Lstream_get_emchar_1): * mule-charset.h (struct Lisp_Charset): * mule-charset.h (CHARSET_BY_ATTRIBUTES): * mule-wnnfns.c (m2w): * ntheap.c (recreate_heap): * ntproc.c (find_child_pid): * objects-msw.c (mswindows_string_to_color): * objects-msw.c (mswindows_initialize_color_instance): * objects-msw.c (mswindows_valid_color_name_p): * objects-x.c (x_initialize_font_instance): * objects-x.c (truename_via_FONT_prop): * objects-x.c (x_font_instance_properties): * offix.c (DndDragButtons): * offix.h: * opaque.c (aligned_sizeof_opaque): * opaque.c (sizeof_opaque): * opaque.c (make_opaque): * opaque.c (equal_opaque): * opaque.c (reinit_opaque_once_early): * opaque.h: * opaque.h (Lisp_Opaque): * postgresql.h (message): * process-nt.c (alloc_process_memory): * process-nt.c (run_in_other_process): * process-nt.c (nt_send_process): * process-unix.c (unix_send_process): * rangetab.c (get_range_table): * redisplay-msw.c (mswindows_output_cursor): * redisplay-x.c (x_output_string): * redisplay-x.c (x_output_vertical_divider): * redisplay.c (add_hscroll_rune): * redisplay.c (add_octal_runes): * redisplay.c (add_control_char_runes): * redisplay.c (add_propagation_runes): * redisplay.c (redisplay_window): * redisplay.c (point_in_line_start_cache): * redisplay.c (glyph_to_pixel_translation): * regex.c: * regex.c (init_syntax_once): * regex.c (print_fastmap): * regex.c (print_double_string): * regex.c (struct): * regex.c (PUSH_FAILURE_POINT): * regex.c (POP_FAILURE_POINT): * regex.c (union): * regex.c (SET_REGS_MATCHED): * regex.c (GET_BUFFER_SPACE): * regex.c (regex_compile): * regex.c (compile_range): * regex.c (re_compile_fastmap): * regex.c (re_set_registers): * regex.c (re_search_2): * regex.c (re_match_2_internal): * regex.c (regcomp): * regex.c (regexec): * regex.c (regerror): * regex.h: * regex.h (Element_Count): * regex.h (struct re_pattern_buffer): * regex.h (struct re_registers): * search.c (skip_chars): * select-gtk.c: * select-gtk.c (symbol_to_gtk_atom): * select-gtk.c (atom_to_symbol): * select-gtk.c (PROCESSING_GTK_CODE): * select-gtk.c (emacs_gtk_selection_handle): * select-gtk.c (gtk_get_window_property): * select-gtk.c (receive_incremental_selection): * select-gtk.c (gtk_get_window_property_as_lisp_data): * select-x.c: * select-x.c (symbol_to_x_atom): * select-x.c (PROCESSING_X_CODE): * select-x.c (x_reply_selection_request): * select-x.c (x_handle_selection_request): * select-x.c (copy_multiple_data): * select-x.c (x_get_window_property): * select-x.c (receive_incremental_selection): * select-x.c (x_get_window_property_as_lisp_data): * select-x.c (Fx_get_cutbuffer_internal): * select-x.c (Fx_store_cutbuffer_internal): * sheap.c (report_sheap_usage): * specifier.c (aligned_sizeof_specifier): * specifier.c (sizeof_specifier): * specifier.c (make_specifier_internal): * symbols.c (defsymbol_massage_name_1): * symbols.c (defkeyword_massage_name): * symbols.c (deferror_massage_name_and_message): * sysdep.c (get_eof_char): * sysdep.c (tty_init_sys_modes_on_device): * sysdep.c (init_system_name): * sysdir.h (select): * tests.c (Ftest_data_format_conversion): * tparam.c: * unexaix.c (copy_sym): * unexconvex.c (sptr;): * unexconvex.c (copy_sym): * unexcw.c: * unexcw.c (unexec): * unexcw.c (ALLOC_MASK): * unexcw.c (CHECK_AOUT_POS): * unexcw.c (get_section_info): * unexcw.c (copy_executable_and_dump_data_section): * unexcw.c (dup_file_area): * unexcw.c (write_int_to_bss): * unexec.c (make_hdr): * unexec.c (copy_sym): * window.c (struct window_config): * window.c (mark_window_config): * window.c (sizeof_window_config_for_n_windows): * window.c (sizeof_window_config): * window.c (window_config_equal): * window.c (free_window_configuration): * window.c (Fset_window_configuration): * window.c (count_windows): * window.c (Fcurrent_window_configuration): * window.c (reinit_vars_of_window): * xgccache.c (gc_cache_hash): * xmu.c (XmuCursorNameToIndex): Create types Memory_Count, Element_Count, Hash_Code. The first two are EMACS_INT, the last EMACS_UINT. Use them to replace size_t, and to replace int/unsigned int where appropriate (there are probably more such places). Eliminate size_t and hashcode_t everywhere except in ancillary code that is borrowed from elsewhere. (Use Memory_Count, Element_Count, Hash_Code, Bytecount, Extcount, or EMACS_INT.) Eliminate use of unsigned everywhere except in the same code, when (a) it holds a simple count (rather than a bit flag and such); (b) it refers to an int or long, not something smaller; (c) it's not necessary specifically to call an external API with such a parameter (we treat such parameters like Extbyte, and convert at the point of entry/exit); and (d) there's no reasonable possibility it will refer to a value greater than 2G, or if it could, other things in XEmacs would break. Put parens around all sizeof args in case we decide to macro-ize this. (I don't think it's necessary. Now that we've turned sign-compare warnings back on, we will get warnings wherever the unsigned return value of sizeof might cause problems. That's what the warnings are for, after all.) Eliminate dumper type XD_SIZE_T and replace with XD_MEMORY_COUNT, XD_ELEMENT_COUNT, XD_HASH_CODE. Rename Lstream_data_count to Lstream_Data_Count, following the capitalization conventions used in other types. * elhash.c (hash_table_size): Hash table sizes are signed now, so comment out the two highest (post-2G) numbers in the primes list. * event-msw.c (mswindows_current_layout_has_AltGr): Rewrite to be a bit more correct and fix unsigned problems. * extents.c (extent_hash): * extents.c (set_extent_glyph): * extents.c (Fset_extent_begin_glyph_layout): * extents.c (Fset_extent_end_glyph_layout): * extents.h: * extents.h (set_extent_normal_field): * extents.h (extent_begin_glyph_layout): To eliminate warnings, create set functions for the enum fields in struct extent. * filelock.c: Use pid_t instead of unsigned long to represent a pid. (#### Perhaps a bad idea. Generally using unknown types of this sort is bad.) * gif_io.c: Include lisp.h. * glyphs-eimage.c (jpeg_instantiate): * glyphs-eimage.c (gif_memory_storage): * glyphs-eimage.c (gif_instantiate): * glyphs-eimage.c (struct png_memory_storage): * glyphs-eimage.c (png_instantiate): * glyphs-eimage.c (tiff_memory_storage): * glyphs-eimage.c (tiff_instantiate): Replace Extbyte with more correct UChar_Binary, Extcount with Memory_Count. * glyphs-shared.c (read_bitmap_data): Replace char with Char_ASCII. * gui-x.c: Replace unsigned int with more correct LWLIB_ID for lwlib_id_tick. * hftctl.c: This was trying to include "lisp.h" to encapsulated file functions (where they once were encapsulated, but no more); so include sysfile.h. This only affects read(). * imgproc.c (get_histogram): replace unsigned char with UChar_Binary. * lisp.h: Move basic types to top of file since we need them in some macros just below. * redisplay-x.c: Convert various variables that were declared as unsigned due to return values from X functions to be signed, and create "external" versions of the variables to retrieve the unsigned value, which is then immediately converted to signed. * tparam.c: Eliminate useless non-#ifdef emacs code. * select-common.h: * select-gtk.c: * select-x.c: Abstract out hairy and duplicated code from select-x/gtk.c and put into select-common.h. Use ifdefs to handle the (small number of) differences. * select-x.c (x_reply_selection_request): * select-x.c (x_handle_selection_request): * select-x.c (copy_multiple_data): * select-x.c (x_get_window_property): * select-x.c (receive_incremental_selection): * select-x.c (x_get_window_property_as_lisp_data): * select-x.c (Fx_get_cutbuffer_internal): * select-x.c (Fx_store_cutbuffer_internal): Replace uses of `unsigned char' and `Extbyte' with UChar_Binary. * sysdep.c (init_baud_rate): Fix warning when HAVE_TTY not defined. * glyphs-eimage.c: * postgresql.h: * sysdir.h: Do some hackery to avoid shadowing warnings. * s\esix.h: * m\tad68k.h: Comment out redefinition of select (we don't have our own version anyway, and we play preprocessor games with select in sysdir.h). 2001-08-04 Adrian Aichner <adrian@xemacs.org> * console.c: Fix of compile error on darwin, as suggested by Toby Smith. 2001-07-28 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.2 "artichoke" is released. 2001-07-27 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_progress_gauge_redisplay): * glyphs.c (check_for_ignored_expose): * glyphs.c (find_matching_subwindow): * glyphs.h: * gutter.c (output_gutter): * gutter.c (redraw_exposed_gutter): warning elimination. 2001-07-26 Adrian Aichner <adrian@xemacs.org> * event-Xt.c (handle_map_event): Fix word duplication typos. * glyphs-eimage.c (gif_instantiate): Ditto. * ntproc.c (vars_of_ntproc): Ditto. * process-nt.c (vars_of_process_nt): Ditto. * redisplay-output.c (compare_runes): Ditto. * redisplay.c (create_string_text_block): Ditto. 2001-07-11 Matt Tucker <tuck@whistlingfish.net> * syntax.c (find_start_of_comment): Fix `unbalanced parentheses' bug when dealing with mixed comment styles in c++/java/etc. mode 2001-06-21 Ben Wing <ben@xemacs.org> * dired-msw.c (Fmswindows_insert_directory): Fix problem noted by Michael Sperber with directories containing [] and code that destructively modifies an existing string. 2001-06-18 Ben Wing <ben@xemacs.org> * dumper.c (pdump_dump_root_objects): * dumper.c (pdump_load_finish): wrap_record_1 -> wrap_pointer_1. 2001-06-18 Ben Wing <ben@xemacs.org> * window.c: * window.c (mark_window_as_deleted): * window.c (WINDOW_SLOT): We can't actually zero out everything in the window when deleting it. set-window-configuration assumes that various slots of the deleted window are still accurate. 2001-06-17 Ben Wing <ben@xemacs.org> --------------------------------------------------------------- DOCUMENTATION FIXES: --------------------------------------------------------------- * eval.c (Ffunction_min_args): * eval.c (Ffunction_max_args): Correct documentation. * elhash.c (Fremhash): Doc correction. --------------------------------------------------------------- LISP OBJECT CLEANUP: --------------------------------------------------------------- * bytecode.h (wrap_compiled_function): * buffer.h (wrap_buffer): * casetab.h (wrap_case_table): * chartab.h (wrap_char_table_entry): * chartab.h (wrap_char_table): * console-msw.h (wrap_devmode): * console-msw.h (wrap_mswindows_dialog_id): * console.h (wrap_console): * database.c (wrap_database): * device.h (wrap_device): * eldap.h (wrap_ldap): * elhash.h (wrap_hash_table): * events.h (wrap_timeout): * events.h (wrap_event): * extents.h (wrap_extent): * extents.h (wrap_extent_auxiliary): * extents.h (wrap_extent_info): * faces.h (wrap_face): * file-coding.h (wrap_coding_system): * frame.h (wrap_frame): * glyphs.h (wrap_image_instance): * glyphs.h (wrap_glyph): * gui-x.h (wrap_popup_data): * gui.h (wrap_gui_item): * keymap.h (wrap_keymap): * lisp-disunion.h (wrap_pointer_1): * lisp-union.h (wrap_pointer_1): * lisp.h (wrap_cons): * lisp.h (wrap_string): * lisp.h (wrap_vector): * lisp.h (wrap_bit_vector): * lisp.h (wrap_symbol): * lisp.h (wrap_subr): * lisp.h (wrap_marker): * lisp.h (wrap_float): * lisp.h (wrap_weak_list): * lisp.h (wrap_lcrecord_list): * lrecord.h (wrap_record_1): * lstream.h (wrap_lstream): * mule-charset.h (wrap_charset): * objects.h (wrap_color_instance): * objects.h (wrap_font_instance): * opaque.h (wrap_opaque): * opaque.h (wrap_opaque_ptr): * postgresql.h (wrap_pgconn): * postgresql.h (wrap_pgresult): * process.h (wrap_process): * rangetab.h (wrap_range_table): * specifier.h (wrap_specifier): * toolbar.h (wrap_toolbar_button): * tooltalk.h (wrap_tooltalk_message): * tooltalk.h (wrap_tooltalk_pattern): * ui-gtk.h (wrap_emacs_ffi): * ui-gtk.h (wrap_emacs_gtk_object): * ui-gtk.h (wrap_emacs_gtk_boxed): * lstream.h (wrap_lstream): * device.h (wrap_device): New. * frame.h (wrap_frame): New. * lisp-disunion.h (wrap_object): * lisp-disunion.h (XSETOBJ): * lrecord.h: Add wrap_* to all objects (it was already there for a few of them) -- an expression to encapsulate a pointer into a Lisp object, rather than the inconvenient XSET*. "wrap" was chosen because "make" as in make_int(), make_char() is not appropriate. (It implies allocation. The issue does not exist for ints and chars because they are not allocated.) Full error checking has been added to these expressions. When used without error checking, non-union build, use of these expressions will incur no loss of efficiency. (In fact, XSET* is now defined in terms of wrap_* in a non-union build.) In a union build, you will also get no loss of efficiency provided that you have a decent optimizing compiler, and a compiler that either understands inlines or automatically inlines those particular functions. (And since people don't normally do their production builds on union, it doesn't matter.) Update the sample Lisp object definition in lrecord.h accordingly. * dumper.c (pdump_dump_root_objects): * dumper.c (pdump_load_finish): Fix places in dumper that referenced wrap_object to reference its new name, wrap_pointer_1. * buffer.c (mark_buffer): * buffer.c (reset_buffer_local_variables): * buffer.c (Fbuffer_local_variables): * buffer.c (nuke_all_buffer_slots): * buffer.c (complex_vars_of_buffer): * bufslots.h: * conslots.h: * console.c: * console.c (mark_console): * console.c (nuke_all_console_slots): * console.c (delete_console_internal): * console.c (common_init_complex_vars_of_console): * console.c (complex_vars_of_console): * console.h (struct console): * devslots.h: NEW FILE. * device.c: * device.c (MARKED_SLOT): * device.c (mark_device): * device.c (nuke_all_device_slots): * device.c (allocate_device): * device.c (Fset_device_selected_frame): * device.c (delete_device_internal): * device.c (vars_of_device): * device.h (struct device): * device.h (MARKED_SLOT): * frame.c (nuke_all_frame_slots): * frame.c (allocate_frame_core): * frame.c (delete_frame_internal): * frame.h (struct frame): * frame.h (FRAME_LIVE_P): * frameslots.h: * window.c (mark_window): * window.c (WINDOW_SLOT): * window.c (allocate_window): * window.c (mark_window_as_deleted): * window.c (wrap_window_configuration): * window.c (Fset_window_configuration): * window.h: * window.h (struct window): * window.h (WINDOW_SLOT): * winslots.h: -- Extract out the Lisp objects of `struct device' into devslots.h, just like for the other structures. -- Extract out the remaining (not copied into the window config) Lisp objects in `struct window' into winslots.h; use different macros (WINDOW_SLOT vs. WINDOW_SAVED_SLOT) to differentiate them. -- Eliminate the `dead' flag of `struct frame', since it duplicates information already available in `framemeths', and fix FRAME_LIVE_P accordingly. (Devices and consoles already work this way.) -- In *slots.h, switch to system where MARKED_SLOT is automatically undef'd at the end of the file. (Follows what winslots.h already does.) -- Update the comments at the beginning of *slots.h to be accurate. -- When making any of the above objects dead, zero it out entirely and reset all Lisp object slots to Qnil. (We were already doing this somewhat, but not consistently.) This (1) Eliminates the possibility of extra objects hanging around that ought to be GC'd, (2) Causes an immediate crash if anyone tries to access a structure in one of these objects, (3) Ensures consistent behavior wrt dead objects. * dialog-msw.c: Use internal_object_printer, since this object should not escape. --------------------------------------------------------------- FIXING A CRASH THAT I HIT ONCE (AND A RELATED BAD BEHAVIOR): --------------------------------------------------------------- * eval.c (unwind_to_catch): * eval.c (condition_bind_unwind): * eval.c (condition_case_unwind): * eval.c (condition_case_1): Fix up some comments about the FSF implementation. Fix two nasty bugs: (1) condition_case_unwind frees the conses sitting in the catch->tag slot too quickly, resulting in a crash that I hit. (2) catches need to be unwound one at a time when calling unwind-protect code, rather than all at once at the end; otherwise, incorrect behavior can result. (A comment shows exactly how.) * backtrace.h: Improve comment about FSF differences in the handler stack. --------------------------------------------------------------- FIXING A CRASH THAT I REPEATEDLY HIT WHEN USING THE MOUSE WHEEL UNDER MSWINDOWS: --------------------------------------------------------------- Basic idea: My crash is due either to a dead, non-marked, GC-collected frame inside of a window mirror, or a prematurely freed window mirror. We need to mark the Lisp objects inside of window mirrors. Tracking the lifespan of window mirrors and scrollbar instances is extremely hard, and there may well be lurking bugs where such objects are freed too soon. The only safe way to fix these problems (and it fixes both problems at once) is to make both of these structures Lisp objects. * lrecord.h (lrecord_type): * emacs.c (main_1): * inline.c: * scrollbar-gtk.c (gtk_create_scrollbar_instance): * scrollbar-gtk.c (find_scrollbar_window_mirror): * scrollbar-gtk.c (scrollbar_cb): * scrollbar-gtk.c (gtk_scrollbar_pointer_changed_in_window): * scrollbar-gtk.c (gtk_update_frame_scrollbars): * scrollbar-msw.c: * scrollbar-msw.c (mswindows_create_scrollbar_instance): * scrollbar-msw.c (mswindows_free_scrollbar_instance): * scrollbar-msw.c (mswindows_update_scrollbar_instance_values): * scrollbar-msw.c (mswindows_handle_scrollbar_event): * scrollbar-msw.c (syms_of_scrollbar_mswindows): * scrollbar-msw.c (vars_of_scrollbar_mswindows): * scrollbar-msw.c (complex_vars_of_scrollbar_mswindows): * scrollbar-x.c (find_scrollbar_window_mirror): * scrollbar-x.c (x_update_frame_scrollbars): * scrollbar.c: * scrollbar.c (mark_scrollbar_instance): * scrollbar.c (free_scrollbar_instance): * scrollbar.c (free_frame_scrollbars): * scrollbar.c (create_scrollbar_instance): * scrollbar.c (syms_of_scrollbar): * scrollbar.h: * scrollbar.h (struct scrollbar_instance): * symsinit.h: Make scrollbar instances actual Lisp objects. Mark the window mirrors in them. inline.c needs to know about scrollbar.h now. Record the new type in lrecord.h. Fix up scrollbar-*.c appropriately. Create a hash table in scrollbar-msw.c so that the scrollbar instances stored in scrollbar HWND's are properly GC-protected. Create complex_vars_of_scrollbar_mswindows() to create the hash table at startup, and call it from emacs.c. Don't store the scrollbar instance as a property of the GTK scrollbar, as it's not used and if we did this, we'd have to separately GC-protect it in a hash table, like in MS Windows. * lrecord.h (lrecord_type): * frame.h (struct frame): * frame.c (delete_frame_internal): * frameslots.h: * redisplay.c: * window.c: * window.c (mark_window_mirror): * window.c (new_window_mirror): * window.c (update_frame_window_mirror): * window.c (free_window_mirror): * window.c (find_window_mirror): * window.c (syms_of_window): * window.c (real_window): * window.h (struct window_mirror): Move mark_window_mirror from redisplay.c to window.c. Make window mirrors actual Lisp objects. Tell lrecord.h about them. Change the window mirror member of struct frame from a pointer to a Lisp object, and add XWINDOW_MIRROR in appropriate places. Mark the scrollbar instances in the window mirror. * redisplay.c: * redisplay.h: * alloc.c (garbage_collect_1): Delete mark_redisplay. Don't call mark_redisplay. We now mark frame-specific structures in mark_frame. NOTE: I also deleted an extremely questionable call to update_frame_window_mirrors(). It was extremely questionable before, and now totally impossible, since it will create Lisp objects during redisplay. * frame.c (mark_frame): Mark the scrollbar instances, which are now Lisp objects. Call mark_gutter() here, not in mark_redisplay(). * gutter.c: Update comments about correct marking. --------------------------------------------------------------- ISSUES BROUGHT UP BY MARTIN: --------------------------------------------------------------- * buffer.h (DFC_C_STRING_ALLOCA_USE_CONVERTED_DATA): Put back these macros the way Steve T and I think they ought to be. I already explained in a previous changelog entry why I think these macros should be the way I'd defined them. Once again: We fix these macros so they don't care about the type of their lvalues. The non-C-string equivalents of these already function in the same way, and it's correct because it should be OK to pass in a CBufbyte *, a BufByte *, a Char_Binary *, an UChar_Binary *, etc. The whole reason for these different types is to work around errors caused by signed-vs-unsigned non-matching types. Any possible error that might be caught in a DFC macro would also be caught wherever the argument is used elsewhere. So creating multiple macro versions would add no useful error-checking and just further complicate an already complicated area. As for Martin's "ANSI aliasing" bug, XEmacs is not ANSI-aliasing clean and probably never will be. Unless the board agrees to change XEmacs in this way (and we really don't want to go down that road), this is not a bug. * sound.h (sound_perror): Undo Martin's type change. * signal.c (qxe_setitimer): Fix problem identified by Martin with Linux and g++ due to non-standard declaration of setitimer(). * systime.h: Update the docs for "qxe_" to point out why making the encapsulation explicit is always the right way to go. (setitimer() itself serves as an example.) 2001-06-11 Martin Buchholz <martin@xemacs.org> * buffer.h (DFC_C_STRING_ALLOCA_USE_CONVERTED_DATA): * buffer.h (DFC_C_STRING_MALLOC_USE_CONVERTED_DATA): Revert to doing type-checking on `sink'. * sound.h (sound_perror): Bufbyte -> CBufbyte * sound.h (sound_warn): Bufbyte -> CBufbyte 2001-06-12 Martin Buchholz <martin@xemacs.org> * config.h.in (alloca): All feature test macros must be defined before the first system header file inclusion. So move alloca twiddling after the feature test definitions, but before the first "real" code. 2001-06-11 Martin Buchholz <martin@xemacs.org> * lisp.h (DECIMAL_PRINT_SIZE): Don't use floating point. Sun cc (buggily?) cannot use floating point computations to define a compile-time integral constant. 2001-06-10 Ben Wing <ben@xemacs.org> ------ signal-code changes ------ * data.c (init_data_very_early): * device-tty.c (init_device_tty): * emacs.c (fatal_error_signal): * emacs.c (memory_warning_signal): * floatfns.c (init_floatfns_very_early): * linuxplay.c (linux_play_data_or_file): * nas.c (*): * process-unix.c (unix_init_process): * process-unix.c (unix_create_process): * process-unix.c (unix_send_process): * process-unix.c (unix_deactivate_process): * signal.c (handle_signal_if_fatal): * signal.c (init_signals_very_early): * signal.c (init_interrupts_late): * sunplay.c (play_sound_file): * sunplay.c (play_sound_data): * sysdep.c (save_signal_handlers): * sysdep.c (restore_signal_handlers): * sysdep.c (setup_pty): * syssignal.h (EMACS_SIGNAL): use EMACS_SIGNAL everywhere instead of playing preprocessing games with signal(). * s\windowsnt.h: * s\mingw32.h: * syssignal.h: Remove mswindows signal code from s+m headers and move to syssignal.h as one of the five ways of signal handling, instead of playing preprocessing games. * fileio.c: * sysdep.c (qxe_reliable_signal): Rename sys_do_signal to qxe_reliable_signal. * signal.c (set_timeout_signal): * process-unix.c (close_safely): * profile.c (Fstart_profiling): * profile.c (Fstop_profiling): * signal.c (init_async_timeouts): * signal.c (start_async_timeouts): Create set_timeout_signal(); use instead of just EMACS_SIGNAL to establish a signal handler on a timeout signal; this does special things under Cygwin. * nt.c (init_ntproc): Eliminate term_ntproc(), which is blank; used as a SIGABRT handler, which was wrong anyway. * nt.c: * win32.c: * win32.c (sigmask): * win32.c (mswindows_sigset): * win32.c (mswindows_sighold): * win32.c (mswindows_sigrelse): * win32.c (mswindows_raise): * win32.c (setitimer_helper_proc): * win32.c (syms_of_win32): Move signal code from nt.c to win32.c, since Cygwin needs it too when dealing with timeout signals. * s\cygwin32.h: Define CYGWIN_BROKEN_SIGNALS. ------ other changes ------ * s\mingw32.h: Fix problems with NOT_C_CODE being in the wrong place and excluding defines needed when building Makefile.in.in. * filelock.c: * mule-canna.c: * mule-canna.c (Fcanna_initialize): * mule-canna.c (Fcanna_finalize): * mule-ccl.c: * mule-ccl.h: * ralloc.c: * unexalpha.c: * unexapollo.c: * unexcw.c: * unexelfsgi.c: * unexnt.c: * unexsni.c: * s\aix3-1.h: * s\bsd4-1.h: * s\bsd4-2.h: * s\bsd4-3.h: * s\cxux.h: * s\cygwin32.h: * s\dgux.h: * s\dgux5-4r2.h: * s\dgux5-4r3.h: * s\dgux5-4r4.h: * s\ewsux5r4.h: * s\gnu.h: * s\hpux.h: * s\iris3-5.h: * s\iris3-6.h: * s\irix3-3.h: * s\linux.h: * s\mingw32.h: * s\newsos5.h: * s\nextstep.h: * s\ptx.h: * s\riscix1-1.h: * s\riscix1-2.h: * s\rtu.h: * s\sco4.h: * s\sco5.h: * s\template.h: * s\ultrix.h: * s\umax.h: * s\umips.h: * s\unipl5-0.h: * s\unipl5-2.h: * s\usg5-0.h: * s\usg5-2-2.h: * s\usg5-2.h: * s\usg5-3.h: * s\usg5-4.h: * s\windowsnt.h: * s\xenix.h: Rename 'GNU Emacs' to XEmacs in the copyright and comments. * nas.c (NAS_LITTLE_ENDIAN): * nas.c (XTOOLKIT): * nas.c (nas_play_sound_file): * nas.c (nas_play_sound_data): * nas.c (CatchIoErrorAndJump): * nas.c (DataReadS): * nas.c (DataReadL): * nas.c (readChunk): * nas.c (WaveOpenDataForReading): Stylistic cleanup. Avoid preprocessing games with names such as play_sound_file. 2001-06-08 Ben Wing <ben@xemacs.org> ------ gc-in-window-procedure fixes ------ * alloc.c: * alloc.c (struct post_gc_action): * alloc.c (register_post_gc_action): * alloc.c (run_post_gc_actions): * alloc.c (garbage_collect_1): Create "post-gc actions", to avoid those dreaded "GC during window procedure" problems. * event-msw.c: Abort, clean and simple, when GC in window procedure. We want to flush these puppies out. * glyphs-msw.c: * glyphs-msw.c (finalize_destroy_window): * glyphs-msw.c (mswindows_finalize_image_instance): Use a post-gc action when destroying subwindows. * lisp.h: Declare register_post_gc_action(). * scrollbar-msw.c: * scrollbar-msw.c (unshow_that_mofo): Use a post-gc action when unshowing scrollbar windows, if in gc. * redisplay.c (mark_redisplay): Add comment about the utter evilness of what's going down here. ------ cygwin setitimer fixes ------ * Makefile.in.in (sheap_objs): * Makefile.in.in (profile_objs): * Makefile.in.in (objs): Compile profile.c only when HAVE_SETITIMER. * nt.c (mswindows_sigset): * nt.c (mswindows_sighold): * nt.c (mswindows_sigrelse): * nt.c (mswindows_sigpause): * nt.c (mswindows_raise): * nt.c (close_file_data): Style fixes. * nt.c: Move setitimer() emulation to win32.c, because Cygwin needs it too. * profile.c: * profile.c (Fstart_profiling): * profile.c (Fstop_profiling): Make sure we don't compile if no setitimer(). Use qxe_setitimer() instead of just plain setitimer(). * signal.c: * signal.c (set_one_shot_timer): * signal.c (alarm): Define qxe_setitimer() as an encapsulation around setitimer() -- call setitimer() directly unless Cygwin or MS Win, in which case we use our simulated version in win32.c. * systime.h: * systime.h (struct itimerval): * systime.h (ITIMER_REAL): Prototype mswindows_setitimer() and qxe_setitimer(). Long comment about "qxe" and the policy regarding encapsulation. * win32.c: * win32.c (setitimer_helper_proc): * win32.c (setitimer_helper_period): * win32.c (setitimer_helper): * win32.c (mswindows_setitimer): Move setitimer() emulation here, so Cygwin can use it. Rename a couple of functions and variables to be longer and more descriptive. In setitimer_helper_proc(), send the signal using either mswindows_raise() or (on Cygwin) kill(). If for some reason we are still getting lockups, we'll change the kill() to directly invoke the signal handlers. ------ windows shell fixes ------ * callproc.c: * ntproc.c: Comments about how these two files must die. * callproc.c (init_callproc): On MS Windows, init shell-file-name from SHELL, then COMSPEC, not just COMSPEC. (more correct and closer to FSF.) Don't force a value for SHELL into the environment. (Comments added to explain why not.) * nt.c (init_user_info): Don't shove a fabricated SHELL into the environment. See above. ------ misc fixes ------ * glyphs-shared.c (read_bitmap_data): static. * glyphs-shared.c (read_bitmap_data_from_file): Style correction. 2001-06-06 Ben Wing <ben@xemacs.org> * emodules.c (emodules_load): * tooltalk.c (check_status): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): Fix warnings pointed out by Martin. * lisp.h: Correct usage of CBufbyte. * esd.c (esd_play_sound_file): * esd.c (esd_play_sound_data): indentation changes. * bytecode.c (invalid_byte_code): * eval.c (print_subr): * eval.c (build_error_data): * eval.c (signal_error): * eval.c (maybe_signal_error): * eval.c (signal_continuable_error): * eval.c (maybe_signal_continuable_error): * eval.c (signal_error_2): * eval.c (maybe_signal_error_2): * eval.c (signal_continuable_error_2): * eval.c (maybe_signal_continuable_error_2): * eval.c (signal_ferror): * eval.c (maybe_signal_ferror): * eval.c (signal_continuable_ferror): * eval.c (maybe_signal_continuable_ferror): * eval.c (signal_ferror_with_frob): * eval.c (maybe_signal_ferror_with_frob): * eval.c (signal_continuable_ferror_with_frob): * eval.c (maybe_signal_continuable_ferror_with_frob): * eval.c (syntax_error): * eval.c (syntax_error_2): * eval.c (maybe_syntax_error): * eval.c (sferror): * eval.c (sferror_2): * eval.c (maybe_sferror): * eval.c (invalid_argument): * eval.c (invalid_argument_2): * eval.c (maybe_invalid_argument): * eval.c (invalid_constant): * eval.c (invalid_constant_2): * eval.c (maybe_invalid_constant): * eval.c (invalid_operation): * eval.c (invalid_operation_2): * eval.c (maybe_invalid_operation): * eval.c (invalid_change): * eval.c (invalid_change_2): * eval.c (maybe_invalid_change): * eval.c (invalid_state): * eval.c (invalid_state_2): * eval.c (maybe_invalid_state): * eval.c (wtaerror): * eval.c (stack_overflow): * eval.c (out_of_memory): * eval.c (printing_unreadable_object): * eval.c (caught_a_squirmer): * eval.c (eval_in_buffer_trapping_errors): * eval.c (run_hook_trapping_errors): * eval.c (safe_run_hook_trapping_errors): * eval.c (call0_trapping_errors): * eval.c (call1_trapping_errors): * eval.c (call2_trapping_errors): * eval.c (warn_when_safe): * fileio.c (report_file_type_error): * fileio.c (report_error_with_errno): * fileio.c (report_file_error): Use CBufbyte instead of char for error/warning functions. * linuxplay.c: * linuxplay.c (DONT_ENCAPSULATE): * miscplay.c: * miscplay.c (DONT_ENCAPSULATE): * sgiplay.c: * sgiplay.c (DONT_ENCAPSULATE): * sunplay.c: * sunplay.c (DONT_ENCAPSULATE): Define DONT_ENCAPSULATE. (All encapsulation is removed in my pending Mule workspace.) * sgiplay.c (play_sound_data): * sgiplay.c (play_internal): Put back #include <audio.h> accidentally removed. Make play_sound_data return an int, like all other such functions in *play.c. * sound.c: Fix up documentation of `play-sound'. * sysfile.h: Don't include sys/fcntl.h, as per Martin's advice. 2001-06-04 William M. Perry <wmperry@gnu.org> * gpmevent.c (KG_CTRL): Just define these unconditionally. The linux headers are so lame that they do not expose these to userland programs and you cannot gracefully include the kernel headers. 2001-06-03 William M. Perry <wmperry@gnu.org> * scrollbar-gtk.c (gtk_create_scrollbar_instance): Make calling of gtk_size_request unconditional. 2001-06-02 William M. Perry <wmperry@gnu.org> * emacs-marshals.c: Regenerated. 2001-06-01 William M. Perry <wmperry@gnu.org> * glyphs-shared.c (read_bitmap_data): Common definition of read_bitmap_data_from_file added. This does not attempt to use the Xmu based code at all - lets us be consistent across platforms. * glyphs-gtk.c: Removed definition of read_bitmap_data_from_file - this is now in glyphs-shared.c * glyphs-msw.c: Ditto. * glyphs-x.c: Ditto. 2001-06-01 Ben Wing <ben@xemacs.org> * Makefile.in.in (ldflags): eliminate that pesky "defaulting to 00401000" warning. * nt.h: eliminate warnings. 2001-06-01 Ben Wing <ben@xemacs.org> * nt.c (mswindows_utime): * nt.c (close_file_data): fix off-by-one-indirection error. 2001-06-01 Ben Wing <ben@xemacs.org> * event-msw.c (debug_mswin_messages): conditionalize the messages that were causing compile errors. (if only macros could generate #ifdef statements ...) 2001-06-01 Martin Buchholz <martin@xemacs.org> * lisp.h (DECIMAL_PRINT_SIZE): New. * data.c (Fnumber_to_string): Use DECIMAL_PRINT_SIZE * print.c (print_internal): Likewise. * redisplay.c (window_line_number): Likewise. * redisplay.c (decode_mode_spec): Likewise. * tooltalk.c (tt_message_arg_ival_string): Likewise. Fix a bunch of 128-bit bugs; make code more readable && efficient. 2001-05-30 Ben Wing <ben@xemacs.org> * s\cygwin32.h: Don't unilaterally include ntplay, but only when we're compiling with native sound (look in configure now). 2001-05-30 Ben Wing <ben@xemacs.org> For 21.4: (Stephen, just take all event-msw.c patches. This includes the "iconify" fix below.) * event-msw.c: * event-msw.c (mswindows_dequeue_dispatch_event): * event-msw.c (assert): * event-msw.c (emacs_mswindows_quit_p): * event-msw.c (debug_mswin_messages): * event-msw.c (debug_output_mswin_message): * event-msw.c (vars_of_event_mswindows): Fix yet more problems with C-g handling. Implement debug-mswindows-events. For 21.5: * event-stream.c: * event-stream.c (add_low_level_timeout): * event-stream.c (event_stream_generate_wakeup): * event-stream.c (event_stream_resignal_wakeup): * event-stream.c (event_stream_disable_wakeup): * event-stream.c (event_stream_wakeup_pending_p): * events.h: * signal.c: * signal.c (handle_async_timeout_signal): * signal.c (signal_remove_async_interval_timeout): * signal.c (alarm): * signal.c (Fwaiting_for_user_input_p): * signal.c (start_interrupts): * signal.c (establish_slow_interrupt_timer): * signal.c (slow_down_interrupts): * signal.c (check_what_happened): * signal.c (alarm_signal): * signal.c (interrupt_signal): * sysdep.h: Rearrange the signal-handling code to eliminate the former spaghetti logic paths in it. Document clearly what "low-level" and "high-level" timeouts are. Rename some functions with unclear names (e.g. "...alarm...") to names that reflect what they actually do (e.g. "...async_timeout..."). Fix numerous bugs discovered in the process. * console-x.h: * event-Xt.c: * event-Xt.c (update_frame_iconify_status): * event-Xt.c (handle_map_event): * event-Xt.c (emacs_Xt_handle_magic_event): * event-Xt.c (emacs_Xt_event_pending_p): * event-msw.c: * frame-x.c: * frame-x.c (x_frame_window_state): * frame-x.c (x_frame_iconified_p): * frame-x.c (x_frame_visible_p): Hopefully make XEmacs properly maintain the "iconified" state on frames at all times. This should fix the "can't delete a frame with C-x 5 0 when there's another iconified frame out there" bug. Put a notice in of further changes that should probably be made to clean up the frame-visibility support. (especially directed at Jan Vroonhof) * lisp.h: * miscplay.c (sndcnv8S_2mono): * miscplay.c (sndcnv2monounsigned): * miscplay.c (int2ulaw): * miscplay.c (sndcnv2byteLE): * miscplay.c (sndcnv2byteBE): * miscplay.c (sndcnv2monobyteLE): * miscplay.c (sndcnv2monobyteBE): Rename SBufbyte to CBufbyte to avoid a misleading name. Eliminate UChar, which is not used anywhere and contributes no semantic info. Add a comment about the documentation-only properties of the char/unsigned char typedefs. Add SChar_Binary as an explicitly `signed' version of Char_Binary and put back the `signed' declarations in miscplay.c. * alloc.c (build_string): * alloc.c (build_ext_string): * alloc.c (build_translated_string): Use char typedefs. * console-msw.c (mswindows_lisp_error): * device-msw.c (sync_printer_with_devmode): * device-msw.c (handle_devmode_changes): * device-msw.c (Fmsprinter_select_settings): * device-msw.c (Fmswindows_printer_list): * dialog-msw.c: * dialog-msw.c (ALIGN_TEMPLATE): * dialog-msw.c (handle_question_dialog_box): * editfns.c (user_login_name): * fileio.c (Ffile_readable_p): * glyphs-eimage.c (tiff_memory_seek): * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar-msw.c (populate_menu_add_item): * ntplay.c: * ntplay.c (DONT_ENCAPSULATE): * ntplay.c (play_sound_file): * ntplay.c (play_sound_data_1): * objects-msw.c (initialize_font_instance): * objects-msw.c (mswindows_list_fonts): * realpath.c (cygwin_readlink): * redisplay-msw.c (mswindows_text_width_single_run): * select-msw.c (symbol_to_ms_cf): * select-msw.c (mswindows_register_selection_data_type): * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): * syswindows.h (WIN32_TO_LOCAL_FILE_FORMAT): * win32.c (Fmswindows_shell_execute): Eliminate numerous C++ errors. * frame-msw.c (mswindows_set_title_from_bufbyte): Eliminate numerous C++ errors and Mule-ize. * glyphs-msw.c (convert_EImage_to_DIBitmap): * glyphs-msw.c (mswindows_init_image_instance_from_eimage): * glyphs-msw.c (set_mono_pixel): * glyphs-msw.c (mswindows_initialize_image_instance_mask): * glyphs-msw.c (xpm_to_eimage): * glyphs-msw.c (mswindows_xpm_instantiate): * glyphs-msw.c (read_bitmap_data): * glyphs-msw.c (read_bitmap_data_from_file): * glyphs-msw.c (xbm_create_bitmap_from_data): * glyphs-msw.c (init_image_instance_from_xbm_inline): * glyphs-msw.c (xbm_instantiate_1): * glyphs-msw.c (mswindows_xbm_instantiate): * glyphs-msw.c (mswindows_xface_instantiate): Eliminate numerous C++ errors and use char typedefs. 2001-05-29 Adrian Aichner <adrian@xemacs.org> * fileio.c: Include nt.h. Remove lisp_string_set_file_times() because set_file_times() now takes Lisp_Object path, instead of char*. * nt.c: Include buffer.h. * nt.c (convert_from_time_t): New. * nt.c (mswindows_utime): New. Use utime, since SetFileTime does not set mtime correctly. * nt.h: Declare mswindows_utime(). * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object path, instead of char*. * systime.h: Include <sys/utime.h> on WIN32_NATIVE. 2001-05-30 William M. Perry <wmperry@gnu.org> * emacs-marshals.c: Regenerated from lisp. * emacs-widget-accessors.c: Regenerated from lisp. * event-gtk.c (gtk_event_to_emacs_event): Buttons are now modifiers, so selection with the mouse works again. 2001-05-24 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * redisplay.c (redisplay_device): Allow preemption on redisplay. * event-msw.c (WM_DROPFILES): Use correct type for OLE characters. 2001-05-29 Mike Alexander <mta@arbortext.com> * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT 2001-05-26 Ben Wing <ben@xemacs.org> * buffer.c: * buffer.c (syms_of_buffer): * data.c: * data.c (init_errors_once_early): move text-conversion-error into data.c, along with other errors. 2001-05-26 Martin Buchholz <martin@xemacs.org> * print.c (print_internal): Fix compile error. 2001-05-25 Ben Wing <ben@xemacs.org> * device-msw.c (msprinter_default_printer): * eldap.c (Fldap_open): * emodules.c (emodules_load): * hpplay.c (player_error_internal): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): * sound.h (sound_perror): * sound.h (sound_warn): * tooltalk.c (check_status): * win32.c (tstr_to_local_file_format): Revert Martin's attempted compile-warnings fix. It does fix the warnings, but not the right way. We are trying to eliminate the raw use of `char' and `unsigned char' absolutely everywhere. There is never an occasion to reintroduce these. * buffer.h (DFC_C_STRING_ALLOCA_USE_CONVERTED_DATA): * buffer.h (DFC_C_STRING_MALLOC_USE_CONVERTED_DATA): Instead, we fix these macros so they don't care about the type of their lvalues. We already do this for the non-C-string equivalents of these, and it's correct because it should be OK to pass in an SBufbyte *, for example. In any case, we do not need any type-correctness checking here -- errors will be caught for sure as soon as we remove the -Wno-sign-compare switch. * mule-charset.c (Fmake_charset): Use invalid_argument, not generic signal_error (Qerror, ). * alloc.c: * chartab.c (check_valid_char_table_value): * chartab.c (chartab_type_validate): * chartab.c (chartab_data_validate): * console-gtk.c (gtk_device_to_console_connection): * console-gtk.c (gtk_semi_canonicalize_console_connection): * console-gtk.c (gtk_canonicalize_console_connection): * console-gtk.c (gtk_semi_canonicalize_device_connection): * console-gtk.c (gtk_canonicalize_device_connection): * console-msw.c (mswindows_canonicalize_console_connection): * console-msw.c (mswindows_canonicalize_device_connection): * console-msw.c (msprinter_canonicalize_console_connection): * console-msw.c (msprinter_canonicalize_device_connection): * console-stream.c (stream_semi_canonicalize_console_connection): * console-stream.c (stream_canonicalize_console_connection): * console-stream.c (stream_semi_canonicalize_device_connection): * console-stream.c (stream_canonicalize_device_connection): * console-stream.h: * console-tty.c (tty_semi_canonicalize_console_connection): * console-tty.c (tty_canonicalize_console_connection): * console-tty.c (tty_semi_canonicalize_device_connection): * console-tty.c (tty_canonicalize_device_connection): * console-tty.h: * console-x.c (x_device_to_console_connection): * console-x.c (x_semi_canonicalize_console_connection): * console-x.c (x_canonicalize_console_connection): * console-x.c (x_semi_canonicalize_device_connection): * console-x.c (x_canonicalize_device_connection): * console.c (decode_console_type): * console.c (semi_canonicalize_console_connection): * console.c (canonicalize_console_connection): * console.h: * console.h (struct console_methods): * device-x.c (Fx_get_resource): * device.c (semi_canonicalize_device_connection): * device.c (canonicalize_device_connection): * elhash.c (hash_table_size_validate): * elhash.c (hash_table_weakness_validate): * elhash.c (hash_table_test_validate): * elhash.c (hash_table_rehash_size_validate): * elhash.c (hash_table_rehash_threshold_validate): * elhash.c (hash_table_data_validate): * eval.c: * eval.c (call_with_suspended_errors): * eval.c (maybe_signal_error_1): * eval.c (maybe_signal_continuable_error_1): * eval.c (maybe_signal_error): * eval.c (maybe_signal_continuable_error): * eval.c (maybe_signal_error_2): * eval.c (maybe_signal_continuable_error_2): * eval.c (maybe_signal_ferror): * eval.c (maybe_signal_continuable_ferror): * eval.c (maybe_signal_ferror_with_frob): * eval.c (maybe_signal_continuable_ferror_with_frob): * eval.c (maybe_syntax_error): * eval.c (maybe_sferror): * eval.c (maybe_invalid_argument): * eval.c (maybe_invalid_constant): * eval.c (maybe_invalid_operation): * eval.c (maybe_invalid_change): * eval.c (maybe_invalid_state): * faces.c (face_name_validate): * faces.c (face_validate): * faces.c (face_property_matching_instance): * faces.h: * fns.c (bad_bad_bunny): * fns.c (bad_bad_turtle): * fns.c (advance_plist_pointers): * fns.c (external_plist_get): * fns.c (external_plist_put): * fns.c (external_remprop): * glyphs.c (decode_device_ii_format): * glyphs.c (decode_image_instantiator_format): * glyphs.c (decode_image_instance_type): * glyphs.c (decode_error_behavior_flag): * glyphs.c (encode_error_behavior_flag): * glyphs.c (Fmake_image_instance): * glyphs.c (decode_glyph_type): * glyphs.c (glyph_image_instance): * glyphs.h: * gui.c (gui_item_add_keyval_pair): * gui.c (make_gui_item_from_keywords_internal): * gui.h: * lisp.h: * lisp.h (error_behavior): * lisp.h (_error_behavior_struct_): * lisp.h (struct structure_keyword_entry): * lisp.h (struct structure_type): * lread.c (define_structure_type): * lread.c (define_structure_type_keyword): * nt.c (tty_semi_canonicalize_console_connection): * nt.c (tty_canonicalize_console_connection): * nt.c (tty_semi_canonicalize_device_connection): * nt.c (tty_canonicalize_device_connection): * objects-gtk.c (gtk_parse_nearest_color): * objects-gtk.c (gtk_initialize_color_instance): * objects-gtk.c (gtk_initialize_font_instance): * objects-gtk.c (gtk_font_instance_truename): * objects-gtk.h: * objects-msw.c (mswindows_initialize_color_instance): * objects-msw.c (initialize_font_instance): * objects-msw.c (mswindows_initialize_font_instance): * objects-msw.c (msprinter_initialize_font_instance): * objects-msw.c (mswindows_font_instance_truename): * objects-tty.c (tty_initialize_color_instance): * objects-tty.c (tty_initialize_font_instance): * objects-x.c (x_parse_nearest_color): * objects-x.c (x_initialize_color_instance): * objects-x.c (x_initialize_font_instance): * objects-x.c (x_font_instance_truename): * objects.c: * objects.c (Fmake_font_instance): * objects.c (font_instance_truename_internal): * process-unix.c (get_internet_address): * rangetab.c (rangetab_data_validate): * search.c (compile_pattern_1): * search.c (compile_pattern): * search.c (fast_string_match): * specifier.c (decode_specifier_type): * specifier.c (check_valid_instantiator): * specifier.c (check_valid_inst_list): * specifier.c (check_valid_spec_list): * specifier.c (check_valid_specifier_matchspec): * specifier.c (specifier_instance_from_inst_list): * specifier.c (specifier_instance): * specifier.c (specifier_instance_no_quit): * toolbar.c (check_toolbar_button_keywords): * toolbar.c (Fcheck_toolbar_button_syntax): * window.c (window_scroll): * window.h: Rename Error_behavior to Error_Behavior, to be consistent with general naming practices (Lisp_Object, Char_Binary, etc.). 2001-05-24 Hrvoje Niksic <hniksic@arsdigita.com> * doprnt.c (emacs_doprnt_1): long_to_string doesn't return a value. * print.c (long_to_string): New, faster implementation. Revert change from 2000-11-22. 2001-05-25 Martin Buchholz <martin@xemacs.org> * process-unix.c (unix_canonicalize_host_name): Fix compile warnings. (unix_open_network_stream): Likewise. * sound.h (sound_perror): Likewise. (sound_warn): Likewise. * emodules.c (emodules_load): Likewise. * fns.c (base64_conversion_error): Likewise. * tooltalk.c (check_status): Likewise. * eldap.c (Fldap_open): Likewise. * hpplay.c (player_error_internal): Likewise. * win32.c (tstr_to_local_file_format): Likewise. * realpath.c: This file doesn't deal with internal representation. Define DONT_ENCAPSULATE. Fixes crash in test suite. * print.c (print_internal): Fix compile error. * miscplay.c (waverequire): Don't inline. Gcc can't inline functions that call alloca. 2001-05-24 Yoshiki Hayashi <yoshiki@xemacs.org> * gui.c (gui_error_2): New function. * lisp.h (gui_error_2): Declare it. 2001-05-24 Norbert Koch <nk@LF.net> * doprnt.c (emacs_doprnt_1): forgotten sons of Ben's error patch 2001-05-06 Karl M. Hegbloom <karlheg@hegbloom.net> * config.h.in: HAVE_MKSTEMP 2001-05-24 Yoshiki Hayashi <yoshiki@xemacs.org> * mule-ccl.c (Qccl_error): New error * mule-ccl.c (syms_of_mule_ccl): Initialize Qccl_error. * mule-charset.c (Fmake_charset): Call signal_error. 2001-05-24 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.c (Qtext_conversion_error): Moved from file-coding.c so that --with-file-coding=no will compile corectly. * buffer.c (syms_of_buffer): Define Qtext_conversion_error. Also moved from file-coding.c * file-coding.c (Qtext_conversion_error): Moved to buffer.c * file-coding.c (syms_of_file_coding): Moved Qtext_conversion_error initialization to buffer.c * emodules.c (Qdll_error): New error. * emodules.c (syms_of_module): Declare Qdll_error. * esd.c (esd_play_sound_data): sound_warn accepts only one arg. * miscplay.c (sndcnv8S_2mono): * miscplay.c (sndcnv2monounsigned): * miscplay.c (int2ulaw): * miscplay.c (sndcnv2byteLE): * miscplay.c (sndcnv2byteBE): * miscplay.c (sndcnv2monobyteLE): * miscplay.c (sndcnv2monobyteBE): Replace signed Char_Binary with Char_Binary. There's no type called signed char in C. Also remove audio: from error message. sound_warn and sound_perror prepends them. 2001-05-19 Ben Wing <ben@xemacs.org> * glyphs-shared.c: New. Try just a bit to start eliminating the massive code duplication in *-gtk.c. 2001-05-16 Ben Wing <ben@xemacs.org> * abbrev.c (syms_of_abbrev): * alloc.c (memory_full): * alloc.c (Fmake_byte_code): * alloc.c (garbage_collect_1): * buffer.c: * buffer.c (print_buffer): * buffer.c (nsberror): * buffer.c (Fget_buffer_create): * buffer.c (Fset_buffer): * buffer.c (Fbury_buffer): * buffer.c (syms_of_buffer): * bytecode.c: * bytecode.c (execute_optimized_program): * bytecode.c (invalid_byte_code): * bytecode.c (check_opcode): * bytecode.c (check_constants_index): * bytecode.c (READ_INSTRUCTION_CHAR): * bytecode.c (optimize_byte_code): * bytecode.c (Ffetch_bytecode): * bytecode.c (syms_of_bytecode): * callint.c (check_mark): * callint.c (Fcall_interactively): * callint.c (syms_of_callint): * callproc.c: * callproc.c (Fold_call_process_internal): * callproc.c (child_setup): * casetab.c (print_case_table): * casetab.c (Fget_case_table): * casetab.c (Fput_case_table): * casetab.c (syms_of_casetab): * chartab.c (symbol_to_char_table_type): * chartab.c (decode_char_table_range): * chartab.c (check_valid_char_table_value): * chartab.c (chartab_data_validate): * chartab.c (check_category_char): * chartab.c (syms_of_chartab): * cmdloop.c (command_loop_3): * cmdloop.c (syms_of_cmdloop): * cmds.c (Fdelete_char): * cmds.c (Fself_insert_command): * cmds.c (syms_of_cmds): * console-msw.c: * console-msw.c (mswindows_canonicalize_console_connection): * console-msw.c (Fmswindows_message_box): * console-msw.c (mswindows_output_last_error): * console-msw.c (msprinter_canonicalize_console_connection): * console-msw.c (syms_of_console_mswindows): * console-msw.h: * console-stream.c (stream_init_console): * console-stream.c (stream_init_frame_1): * console-tty.c (tty_init_console): * console-tty.c (syms_of_console_tty): * console-x.c (get_display_arg_connection): * console.c (print_console): * console.c (decode_console_type): * console.c (Fselect_console): * console.c (Fget_console): * console.c (delete_console_internal): * console.c (syms_of_console): * data.c: * data.c (dead_wrong_type_argument): * data.c (c_write_error): * data.c (lisp_write_error): * data.c (args_out_of_range): * data.c (args_out_of_range_3): * data.c (print_weak_list): * data.c (decode_weak_list_type): * data.c (arith_error): * data.c (init_errors_once_early): * data.c (syms_of_data): * database.c (CHECK_LIVE_DATABASE): * database.c (print_database): * database.c (finalize_database): * database.c (Fopen_database): * database.c (syms_of_database): * debug.c (Fadd_debug_class_to_check): * debug.c (Fdelete_debug_class_to_check): * debug.c (Fset_debug_classes_to_check): * debug.c (Fset_debug_class_types_to_check): * debug.c (Fdebug_types_being_checked): * debug.c (syms_of_debug): * device-gtk.c (gtk_init_device): * device-gtk.c (Fgtk_display_visual_class): * device-gtk.c (Fgtk_keysym_on_keyboard_p): * device-gtk.c (syms_of_device_gtk): * device-msw.c (handle_devmode_changes): * device-msw.c (mswindows_handle_print_dialog_box): * device-msw.c (mswindows_handle_page_setup_dialog_box): * device-msw.c (Fmsprinter_select_settings): * device-msw.c (Fmsprinter_apply_settings): * device-msw.c (print_devmode): * device-tty.c (tty_init_device): * device-tty.c (syms_of_device_tty): * device-x.c (sanity_check_geometry_resource): * device-x.c (x_init_device): * device-x.c (x_get_resource_prefix): * device-x.c (Fx_get_resource): * device-x.c (Fx_put_resource): * device-x.c (Fx_display_visual_class): * device-x.c (Fx_keysym_hash_table): * device-x.c (Fx_keysym_on_keyboard_p): * device-x.c (Fx_get_font_path): * device-x.c (syms_of_device_x): * device.c (print_device): * device.c (Fselect_device): * device.c (Fset_device_selected_frame): * device.c (Fget_device): * device.c (Fmake_device): * device.c (Fset_device_class): * device.c (Fdevice_system_metric): * device.c (Fdomain_device_type): * device.c (syms_of_device): * dialog-gtk.c (syms_of_dialog_gtk): * dialog-msw.c (handle_file_dialog_box): * dialog-msw.c (handle_question_dialog_box): * dialog-msw.c (mswindows_make_dialog_box_internal): * dialog-msw.c (syms_of_dialog_mswindows): * dialog-x.c (dbox_descriptor_to_widget_value): * dialog-x.c (x_make_dialog_box_internal): * dialog.c (Fmake_dialog_box_internal): * dired-msw.c (mswindows_get_files): * dired-msw.c (syms_of_dired_mswindows): * dired.c (Fdirectory_files): * dired.c (file_name_completion): * dired.c (syms_of_dired): * doc.c (get_doc_string): * doc.c (read_doc_string): * doc.c (Fsnarf_documentation): * doprnt.c (parse_off_posnum): * doprnt.c (NEXT_ASCII_BYTE): * doprnt.c (parse_doprnt_spec): * doprnt.c (get_doprnt_args): * doprnt.c (emacs_doprnt_1): * dragdrop.c (syms_of_dragdrop): * editfns.c (Fchar_to_string): * editfns.c (region_limit): * editfns.c (Fformat_time_string): * editfns.c (Fdecode_time): * editfns.c (Fencode_time): * editfns.c (Ftranspose_regions): * editfns.c (syms_of_editfns): * eldap.c (signal_ldap_error): * eldap.c (print_ldap): * eldap.c (finalize_ldap): * eldap.c (Fldap_open): * eldap.c (Fldap_search_basic): * eldap.c (Fldap_add): * eldap.c (Fldap_modify): * eldap.c (syms_of_eldap): * eldap.h (CHECK_LIVE_LDAP): * elhash.c (hash_table_size_validate): * elhash.c (hash_table_weakness_validate): * elhash.c (decode_hash_table_weakness): * elhash.c (hash_table_test_validate): * elhash.c (decode_hash_table_test): * elhash.c (hash_table_rehash_size_validate): * elhash.c (hash_table_rehash_threshold_validate): * elhash.c (hash_table_data_validate): * elhash.c (Fmake_hash_table): * elhash.c (syms_of_elhash): * emacs-widget-accessors.c (Fgtk_adjustment_lower): * emacs-widget-accessors.c (Fgtk_adjustment_upper): * emacs-widget-accessors.c (Fgtk_adjustment_value): * emacs-widget-accessors.c (Fgtk_adjustment_step_increment): * emacs-widget-accessors.c (Fgtk_adjustment_page_increment): * emacs-widget-accessors.c (Fgtk_adjustment_page_size): * emacs-widget-accessors.c (Fgtk_widget_style): * emacs-widget-accessors.c (Fgtk_widget_window): * emacs-widget-accessors.c (Fgtk_widget_state): * emacs-widget-accessors.c (Fgtk_widget_name): * emacs-widget-accessors.c (Fgtk_widget_parent): * emacs-widget-accessors.c (Fgtk_button_child): * emacs-widget-accessors.c (Fgtk_button_in_button): * emacs-widget-accessors.c (Fgtk_button_button_down): * emacs-widget-accessors.c (Fgtk_combo_entry): * emacs-widget-accessors.c (Fgtk_combo_button): * emacs-widget-accessors.c (Fgtk_combo_popup): * emacs-widget-accessors.c (Fgtk_combo_popwin): * emacs-widget-accessors.c (Fgtk_combo_list): * emacs-widget-accessors.c (Fgtk_gamma_curve_table): * emacs-widget-accessors.c (Fgtk_gamma_curve_curve): * emacs-widget-accessors.c (Fgtk_gamma_curve_gamma): * emacs-widget-accessors.c (Fgtk_gamma_curve_gamma_dialog): * emacs-widget-accessors.c (Fgtk_gamma_curve_gamma_text): * emacs-widget-accessors.c (Fgtk_check_menu_item_active): * emacs-widget-accessors.c (Fgtk_notebook_tab_pos): * emacs-widget-accessors.c (Fgtk_text_hadj): * emacs-widget-accessors.c (Fgtk_text_vadj): * emacs-widget-accessors.c (Fgtk_file_selection_dir_list): * emacs-widget-accessors.c (Fgtk_file_selection_file_list): * emacs-widget-accessors.c (Fgtk_file_selection_selection_entry): * emacs-widget-accessors.c (Fgtk_file_selection_selection_text): * emacs-widget-accessors.c (Fgtk_file_selection_main_vbox): * emacs-widget-accessors.c (Fgtk_file_selection_ok_button): * emacs-widget-accessors.c (Fgtk_file_selection_cancel_button): * emacs-widget-accessors.c (Fgtk_file_selection_help_button): * emacs-widget-accessors.c (Fgtk_file_selection_action_area): * emacs-widget-accessors.c (Fgtk_font_selection_dialog_fontsel): * emacs-widget-accessors.c (Fgtk_font_selection_dialog_main_vbox): * emacs-widget-accessors.c (Fgtk_font_selection_dialog_action_area): * emacs-widget-accessors.c (Fgtk_font_selection_dialog_ok_button): * emacs-widget-accessors.c (Fgtk_font_selection_dialog_apply_button): * emacs-widget-accessors.c (Fgtk_font_selection_dialog_cancel_button): * emacs-widget-accessors.c (Fgtk_color_selection_dialog_colorsel): * emacs-widget-accessors.c (Fgtk_color_selection_dialog_main_vbox): * emacs-widget-accessors.c (Fgtk_color_selection_dialog_ok_button): * emacs-widget-accessors.c (Fgtk_color_selection_dialog_reset_button): * emacs-widget-accessors.c (Fgtk_color_selection_dialog_cancel_button): * emacs-widget-accessors.c (Fgtk_color_selection_dialog_help_button): * emacs-widget-accessors.c (Fgtk_dialog_vbox): * emacs-widget-accessors.c (Fgtk_dialog_action_area): * emacs-widget-accessors.c (Fgtk_input_dialog_close_button): * emacs-widget-accessors.c (Fgtk_input_dialog_save_button): * emacs-widget-accessors.c (Fgtk_plug_socket_window): * emacs-widget-accessors.c (Fgtk_plug_same_app): * emacs-widget-accessors.c (Fgtk_object_flags): * emacs-widget-accessors.c (Fgtk_object_ref_count): * emacs-widget-accessors.c (Fgtk_paned_child1): * emacs-widget-accessors.c (Fgtk_paned_child2): * emacs-widget-accessors.c (Fgtk_paned_child1_resize): * emacs-widget-accessors.c (Fgtk_paned_child2_resize): * emacs-widget-accessors.c (Fgtk_paned_child1_shrink): * emacs-widget-accessors.c (Fgtk_paned_child2_shrink): * emacs-widget-accessors.c (Fgtk_clist_rows): * emacs-widget-accessors.c (Fgtk_clist_columns): * emacs-widget-accessors.c (Fgtk_clist_hadjustment): * emacs-widget-accessors.c (Fgtk_clist_vadjustment): * emacs-widget-accessors.c (Fgtk_clist_sort_type): * emacs-widget-accessors.c (Fgtk_clist_focus_row): * emacs-widget-accessors.c (Fgtk_clist_sort_column): * emacs-widget-accessors.c (Fgtk_list_children): * emacs-widget-accessors.c (Fgtk_list_selection): * emacs-widget-accessors.c (Fgtk_tree_children): * emacs-widget-accessors.c (Fgtk_tree_root_tree): * emacs-widget-accessors.c (Fgtk_tree_tree_owner): * emacs-widget-accessors.c (Fgtk_tree_selection): * emacs-widget-accessors.c (Fgtk_tree_item_subtree): * emacs-widget-accessors.c (Fgtk_scrolled_window_hscrollbar): * emacs-widget-accessors.c (Fgtk_scrolled_window_vscrollbar): * emacs-widget-accessors.c (Fgtk_scrolled_window_hscrollbar_visible): * emacs-widget-accessors.c (Fgtk_scrolled_window_vscrollbar_visible): * emacs.c (main_1): * emacs.c (Fsplit_path): * emacs.c (syms_of_emacs): * emodules.c (emodules_load): * esd.c: * esd.c (esd_play_sound_file): * esd.c (esd_play_sound_data): * eval.c: * eval.c (print_subr): * eval.c (FletX): * eval.c (Flet): * eval.c (Fdefvar): * eval.c (Fdefconst): * eval.c (condition_case_3): * eval.c (return_from_signal): * eval.c (signal_error_1): * eval.c (maybe_signal_error_1): * eval.c (maybe_signal_continuable_error_1): * eval.c (signal_error): * eval.c (maybe_signal_error): * eval.c (signal_continuable_error): * eval.c (maybe_signal_continuable_error): * eval.c (signal_error_2): * eval.c (maybe_signal_error_2): * eval.c (signal_continuable_error_2): * eval.c (maybe_signal_continuable_error_2): * eval.c (signal_ferror): * eval.c (maybe_signal_ferror): * eval.c (signal_continuable_ferror): * eval.c (maybe_signal_continuable_ferror): * eval.c (signal_ferror_with_frob): * eval.c (maybe_signal_ferror_with_frob): * eval.c (signal_continuable_ferror_with_frob): * eval.c (maybe_signal_continuable_ferror_with_frob): * eval.c (signal_quit): * eval.c (signal_invalid_function_error): * eval.c (signal_wrong_number_of_arguments_error): * eval.c (signal_malformed_list_error): * eval.c (signal_malformed_property_list_error): * eval.c (signal_circular_list_error): * eval.c (signal_circular_property_list_error): * eval.c (syntax_error): * eval.c (syntax_error_2): * eval.c (maybe_syntax_error): * eval.c (sferror): * eval.c (sferror_2): * eval.c (maybe_sferror): * eval.c (invalid_argument): * eval.c (invalid_argument_2): * eval.c (maybe_invalid_argument): * eval.c (invalid_constant): * eval.c (invalid_constant_2): * eval.c (maybe_invalid_constant): * eval.c (invalid_operation): * eval.c (invalid_operation_2): * eval.c (maybe_invalid_operation): * eval.c (invalid_change): * eval.c (invalid_change_2): * eval.c (maybe_invalid_change): * eval.c (invalid_state): * eval.c (invalid_state_2): * eval.c (maybe_invalid_state): * eval.c (stack_overflow): * eval.c (out_of_memory): * eval.c (printing_unreadable_object): * eval.c (do_autoload): * eval.c (Feval): * eval.c (Ffuncall): * eval.c (grow_specpdl): * eval.c (syms_of_eval): * event-Xt.c (syms_of_event_Xt): * event-gtk.c (syms_of_event_gtk): * event-msw.c (mswindows_need_event_in_modal_loop): * event-msw.c (emacs_mswindows_select_process): * event-stream.c: * event-stream.c (check_event_stream_ok): * event-stream.c (lisp_number_to_milliseconds): * event-stream.c (Fnext_event): * event-stream.c (munge_keymap_translate): * event-stream.c (Fset_recent_keys_ring_size): * event-stream.c (execute_command_event): * event-stream.c (syms_of_event_stream): * events.c (print_event): * events.c (Fmake_event): * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): * events.c (Fdeallocate_event): * events.c (Fcopy_event): * events.c (character_to_event): * events.c (syms_of_events): * extents.c (print_extent): * extents.c (Fset_extent_parent): * extents.c (decode_map_extents_flags): * extents.c (decode_extent_at_flag): * extents.c (symbol_to_glyph_layout): * extents.c (Fset_extent_property): * extents.c (syms_of_extents): * faces.c (face_validate): * faces.c (Fget_face): * faces.c (syms_of_faces): * file-coding.c: * file-coding.c (print_coding_system): * file-coding.c (symbol_to_eol_type): * file-coding.c (Fget_coding_system): * file-coding.c (parse_charset_conversion_specs): * file-coding.c (Fmake_coding_system): * file-coding.c (Fcoding_system_aliasee): * file-coding.c (Fdefine_coding_system_alias): * file-coding.c (Fcoding_system_property): * file-coding.c (decode_coding_category): * file-coding.c (Fset_coding_priority_list): * file-coding.c (syms_of_file_coding): * fileio.c: * fileio.c (report_file_type_error): * fileio.c (report_error_with_errno): * fileio.c (report_file_error): * fileio.c (Fmake_temp_name): * fileio.c (Ffile_truename): * fileio.c (Fmake_directory_internal): * fileio.c (Fdelete_directory): * fileio.c (Fdelete_file): * fileio.c (Fset_file_modes): * fileio.c (syms_of_fileio): * filelock.c (syms_of_filelock): * floatfns.c (float_error): * fns.c: * fns.c (check_losing_bytecode): * fns.c (safe_copy_tree): * fns.c (Fget): * fns.c (Fput): * fns.c (Fremprop): * fns.c (Fobject_plist): * fns.c (internal_equal): * fns.c (internal_old_equal): * fns.c (Fload_average): * fns.c (Frequire): * fns.c (base64_conversion_error): * fns.c (base64_decode_1): * fns.c (syms_of_fns): * font-lock.c (syms_of_font_lock): * frame-gtk.c (gtk_create_widgets): * frame-gtk.c (gtk_init_frame_1): * frame-gtk.c (gtk_cant_notify_wm_error): * frame-gtk.c (syms_of_frame_gtk): * frame-x.c (x_create_widgets): * frame-x.c (x_init_frame_1): * frame-x.c (x_cant_notify_wm_error): * frame-x.c (syms_of_frame_x): * frame.c (print_frame): * frame.c (setup_frame_without_minibuffer): * frame.c (Fmake_frame): * frame.c (selected_frame): * frame.c (device_selected_frame): * frame.c (Fset_frame_selected_window): * frame.c (delete_frame_internal): * frame.c (Fmake_frame_invisible): * frame.c (store_minibuf_frame_prop): * frame.c (syms_of_frame): * general-slots.h: * glade.c (Fglade_xml_textdomain): * glyphs-gtk.c: * glyphs-gtk.c (check_pointer_sizes): * glyphs-gtk.c (init_image_instance_from_gdk_image): * glyphs-gtk.c (image_instance_add_gdk_image): * glyphs-gtk.c (init_image_instance_from_xbm_inline): * glyphs-gtk.c (write_lisp_string_to_temp_file): * glyphs-gtk.c (gtk_xpm_instantiate): * glyphs-gtk.c (gtk_xface_instantiate): * glyphs-gtk.c (gtk_resource_validate): * glyphs-gtk.c (gtk_resource_normalize): * glyphs-gtk.c (gtk_resource_instantiate): * glyphs-gtk.c (check_valid_resource_symbol): * glyphs-gtk.c (check_valid_resource_id): * glyphs-gtk.c (font_instantiate): * glyphs-gtk.c (cursor_font_instantiate): * glyphs-gtk.c (gtk_subwindow_instantiate): * glyphs-gtk.c (syms_of_glyphs_gtk): * glyphs-msw.c: * glyphs-msw.c (console_type_create_glyphs_mswindows): * glyphs-msw.c (init_image_instance_from_dibitmap): * glyphs-msw.c (image_instance_add_dibitmap): * glyphs-msw.c (mswindows_init_image_instance_from_eimage): * glyphs-msw.c (xpm_to_eimage): * glyphs-msw.c (mswindows_xpm_instantiate): * glyphs-msw.c (mswindows_resource_validate): * glyphs-msw.c (mswindows_resource_normalize): * glyphs-msw.c (resource_name_to_resource): * glyphs-msw.c (mswindows_resource_instantiate): * glyphs-msw.c (check_valid_resource_symbol): * glyphs-msw.c (check_valid_resource_id): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (mswindows_subwindow_instantiate): * glyphs-msw.c (mswindows_widget_instantiate): * glyphs-msw.c (add_tree_item): * glyphs-msw.c (add_tab_item): * glyphs-msw.c (mswindows_combo_box_instantiate): * glyphs-msw.c (syms_of_glyphs_mswindows): * glyphs-widget.c (check_valid_orientation): * glyphs-widget.c (check_valid_tab_orientation): * glyphs-widget.c (check_valid_justification): * glyphs-widget.c (widget_validate): * glyphs-widget.c (combo_box_validate): * glyphs-x.c (write_lisp_string_to_temp_file): * glyphs-x.c (check_pointer_sizes): * glyphs-x.c (init_image_instance_from_x_image): * glyphs-x.c (image_instance_add_x_image): * glyphs-x.c (init_image_instance_from_xbm_inline): * glyphs-x.c (x_xpm_instantiate): * glyphs-x.c (x_xface_instantiate): * glyphs-x.c (font_instantiate): * glyphs-x.c (cursor_font_instantiate): * glyphs-x.c (x_redisplay_widget): * glyphs-x.c (x_subwindow_instantiate): * glyphs-x.c (x_widget_instantiate): * glyphs.c: * glyphs.c (decode_device_ii_format): * glyphs.c (process_image_string_instantiator): * glyphs.c (if): * glyphs.c (file_or_data_must_be_present): * glyphs.c (data_must_be_present): * glyphs.c (face_must_be_present): * glyphs.c (get_image_instantiator_governing_domain): * glyphs.c (instantiate_image_instantiator): * glyphs.c (print_image_instance): * glyphs.c (decode_image_instance_type): * glyphs.c (incompatible_image_types): * glyphs.c (make_image_instance_1): * glyphs.c (signal_image_error): * glyphs.c (signal_image_error_2): * glyphs.c (signal_double_image_error_2): * glyphs.c (simple_image_type_normalize): * glyphs.c (check_valid_xbm_inline): * glyphs.c (bitmap_to_lisp_data): * glyphs.c (xbm_normalize): * glyphs.c (xface_normalize): * glyphs.c (pixmap_to_lisp_data): * glyphs.c (check_valid_xpm_color_symbols): * glyphs.c (evaluate_xpm_color_symbols): * glyphs.c (xpm_normalize): * glyphs.c (image_instantiate): * glyphs.c (image_validate): * glyphs.c (print_glyph): * glyphs.c (decode_glyph_type): * glyphs.c (subwindow_instantiate): * glyphs.c (syms_of_glyphs): * glyphs.h: * gpmevent.c (Fgpm_enable): * gui-gtk.c (syms_of_gui_gtk): * gui-x.c (button_item_to_widget_value): * gui-x.c (gui_items_to_widget_values_1): * gui-x.c (gui_items_to_widget_values): * gui.c: * gui.c (gui_item_add_keyval_pair): * gui.c (make_gui_item_from_keywords_internal): * gui.c (widget_gui_parse_item_keywords): * gui.c (update_gui_item_keywords): * gui.c (signal_too_long_error): * gui.c (print_gui_item): * gui.c (parse_gui_item_tree_item): * gui.c (syms_of_gui): * gutter.c (decode_gutter_position): * gutter.c (gutter_validate): * gutter.c (gutter_size_validate): * gutter.c (gutter_visible_validate): * gutter.c (syms_of_gutter): * hpplay.c: * hpplay.c (player_error_internal): * hpplay.c (myHandler): * hpplay.c (play_bucket_internal): * hpplay.c (play_sound_file): * hpplay.c (play_sound_data): * hpplay.c (vars_of_hpplay): * indent.c (Findent_to): * indent.c (syms_of_indent): * input-method-xlib.c (Fx_open_xim): * input-method-xlib.c (Fx_close_xim): * input-method-xlib.c (syms_of_input_method_xlib): * insdel.c (get_buffer_range_char): * insdel.c (get_string_range_char): * insdel.c (make_gap): * insdel.c (buffer_insert_string_1): * intl.c (syms_of_intl): * keymap.c (print_keymap): * keymap.c (traverse_keymaps): * keymap.c (check_keymap_definition_loop): * keymap.c (define_key_check_and_coerce_keysym): * keymap.c (define_key_parser): * keymap.c (key_desc_list_to_event): * keymap.c (ensure_meta_prefix_char_keymapp): * keymap.c (Fdefine_key): * keymap.c (Fsingle_key_description): * keymap.c (Ftext_char_description): * libsst.c: * libsst.c (dial;): * libsst.h: * libsst.h (sst_dtmf): * linuxplay.c: * linuxplay.c (audio_init): * linuxplay.c (linux_play_data_or_file): * linuxplay.c (play_sound_file): * linuxplay.c (play_sound_data): * lisp.h: * lread.c (read_syntax_error): * lread.c (continuable_read_syntax_error): * lread.c (readchar): * lread.c (pas_de_lache_ici): * lread.c (load_force_doc_string_unwind): * lread.c (Fload_internal): * lread.c (decode_mode_1): * lread.c (readevalloop): * lread.c (Feval_buffer): * lread.c (read_escape): * lread.c (FSF_LOSSAGE): * lread.c (read_atom_0): * lread.c (reader_nextchar): * lread.c (read_list_conser): * lread.c (syms_of_lread): * lread.c (vars_of_lread): * lstream.c (Lstream_internal_error): * macros.c (Fstart_kbd_macro): * macros.c (Fend_kbd_macro): * macros.c (pop_kbd_macro_event): * macros.c (Fcall_last_kbd_macro): * macros.c (Fexecute_kbd_macro): * macros.c (syms_of_macros): * marker.c (print_marker): * marker.c (set_marker_internal): * marker.c (bi_marker_position): * marker.c (marker_position): * marker.c (set_bi_marker_position): * marker.c (set_marker_position): * md5.c (md5_coding_system): * menubar-gtk.c (menu_convert): * menubar-gtk.c (menu_descriptor_to_widget_1): * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar-msw.c (populate_menu_add_item): * menubar-msw.c (populate_or_checksum_helper): * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): * menubar-msw.c (mswindows_popup_menu): * menubar-x.c (menu_item_descriptor_to_widget_value_1): * menubar-x.c (x_popup_menu): * menubar-x.c (Faccelerate_menu): * menubar.c (syms_of_menubar): * menubar.c (vars_of_menubar): * minibuf.c (Ftry_completion): * minibuf.c (syms_of_minibuf): * miscplay.c: * miscplay.c (parse_wave_complete): * miscplay.c (waverequire): * miscplay.c (parsewave): * miscplay.c (parsesundecaudio): * miscplay.c (sndcnv8U_2mono): * miscplay.c (sndcnv8S_2mono): * miscplay.c (sndcnv2monounsigned): * miscplay.c (sndcnv2unsigned): * miscplay.c (int2ulaw): * miscplay.c (sndcnvULaw_2linear): * miscplay.c (sndcnvULaw_2mono): * miscplay.c (sndcnv16_2monoLE): * miscplay.c (sndcnv16_2monoBE): * miscplay.c (sndcnv2byteLE): * miscplay.c (sndcnv2byteBE): * miscplay.c (sndcnv2monobyteLE): * miscplay.c (sndcnv2monobyteBE): * miscplay.c (analyze_format): * miscplay.h: * miscplay.h (HEADERSZ): * miscplay.h (parse_wave_complete): * mule-ccl.c (Fccl_execute): * mule-ccl.c (vars_of_mule_ccl): * mule-charset.c (print_charset): * mule-charset.c (get_unallocated_leading_byte): * mule-charset.c (Fget_charset): * mule-charset.c (Fmake_charset): * mule-charset.c (Fcharset_from_attributes): * mule-charset.c (Fcharset_property): * mule-charset.c (Fset_charset_ccl_program): * mule-charset.c (Fmake_char): * mule-charset.c (Fchar_octet): * mule-charset.c (lookup_composite_char): * mule-charset.c (syms_of_mule_charset): * mule-wnnfns.c (Fwnn_set_param): * mule-wnnfns.c (syms_of_mule_wnn): * mule.c (Fdefine_word_pattern): * nas.c: * nas.c (XTOOLKIT): * nas.c (play_sound_file): * nas.c (close_down_play): * nas.c (do_caching_play): * nas.c (play_sound_data): * nas.c (CatchIoErrorAndJump): * nas.c (NameFromData): * nas.c (SndOpenDataForReading): * nas.c (cmpID): * nas.c (dread): * nas.c (dgetc): * nas.c (readChunk): * nas.c (WaveOpenDataForReading): * nas.c (SoundOpenDataForReading): * ntplay.c: * ntplay.c (play_sound_file): * ntplay.c (play_sound_data_1): * ntplay.c (play_sound_data): * ntproc.c: * ntproc.c (prepare_standard_handles): * ntproc.c (vars_of_ntproc): * objects-gtk.c (gtk_parse_nearest_color): * objects-gtk.c (gtk_initialize_font_instance): * objects-msw.c (mswindows_initialize_color_instance): * objects-msw.c (initialize_font_instance): * objects-x.c (x_parse_nearest_color): * objects-x.c (x_initialize_font_instance): * objects-x.c (x_font_instance_truename): * objects.c (finalose): * objects.c (print_color_instance): * objects.c (print_font_instance): * objects.c (font_instance_truename_internal): * objects.c (color_instantiate): * objects.c (color_validate): * objects.c (font_validate): * objects.c (face_boolean_instantiate): * objects.c (face_boolean_validate): * objects.c (syms_of_objects): * postgresql.c (CHECK_LIVE_CONNECTION): * postgresql.c (print_pgconn): * postgresql.c (finalize_pgconn): * postgresql.c (print_pgresult): * postgresql.c (finalize_pgresult): * postgresql.c (Fpq_connectdb): * postgresql.c (Fpq_connect_start): * postgresql.c (Fpq_connect_poll): * postgresql.c (Fpq_set_client_encoding): * postgresql.c (Fpq_reset_start): * postgresql.c (Fpq_reset_poll): * postgresql.c (Fpq_pgconn): * postgresql.c (Fpq_exec): * postgresql.c (Fpq_send_query): * postgresql.c (Fpq_get_result): * postgresql.c (Fpq_result_status): * postgresql.c (Fpq_make_empty_pgresult): * postgresql.c (syms_of_postgresql): * print.c: * print.c (print_error_message): * print.c (print_cons): * print.c (default_object_printer): * print.c (Fexternal_debugging_output): * print.c (Fopen_termscript): * print.c (syms_of_print): * process-nt.c: * process-nt.c (validate_signal_number): * process-nt.c (mswindows_report_process_error): * process-nt.c (mswindows_report_winsock_error): * process-nt.c (nt_create_process): * process-nt.c (get_internet_address): * process-nt.c (nt_canonicalize_host_name): * process-nt.c (nt_open_network_stream): * process-unix.c (get_internet_address): * process-unix.c (unix_create_process): * process-unix.c (unix_send_process): * process-unix.c (unix_kill_child_process): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): * process-unix.c (unix_open_multicast_group): * process.c: * process.c (print_process): * process.c (get_process): * process.c (report_process_error): * process.c (init_process_io_handles): * process.c (Fstart_process_internal): * process.c (send_process): * process.c (decode_signal): * process.c (process_send_signal): * process.c (Fkill_process): * process.c (Fquit_process): * process.c (Fstop_process): * process.c (Fcontinue_process): * process.c (Fprocess_send_eof): * process.c (syms_of_process): * ralloc.c (syms_of_ralloc): * rangetab.c (Fput_range_table): * rangetab.c (rangetab_data_validate): * rangetab.c (syms_of_rangetab): * redisplay.c (syms_of_redisplay): * scrollbar.c (syms_of_scrollbar): * search.c (matcher_overflow): * search.c (compile_pattern_1): * search.c (skip_chars): * search.c (search_command): * search.c (Freplace_match): * search.c (Fmatch_data): * search.c (syms_of_search): * select-gtk.c (gtk_get_foreign_selection): * select-gtk.c (gtk_get_window_property_as_lisp_data): * select-gtk.c (lisp_data_to_selection_data): * select-x.c (motif_clipboard_cb): * select-x.c (x_reply_selection_request): * select-x.c (copy_multiple_data): * select-x.c (x_get_foreign_selection): * select-x.c (x_get_window_property_as_lisp_data): * select-x.c (lisp_data_to_selection_data): * select-x.c (CHECK_CUTBUFFER): * select-x.c (Fx_get_cutbuffer_internal): * select-x.c (syms_of_select_x): * select.c (Fown_selection_internal): * select.c (syms_of_select): * sgiplay.c: * sgiplay.c (play_sound_file): * sgiplay.c (play_sound_data): * sgiplay.c (audio_initialize): * sgiplay.c (play_internal): * sgiplay.c (write_mulaw_8_chunk): * sgiplay.c (write_linear_chunk): * sgiplay.c (initialize_audio_port): * sgiplay.c (open_audio_port): * sgiplay.c (set_channels): * sgiplay.c (set_output_format): * sgiplay.c (struct): * sgiplay.c (parse_snd_header): * sheap.c (sheap_adjust_h): * sound.c: * sound.c (report_sound_error): * sound.c (Fplay_sound_file): * sound.c (Fplay_sound): * sound.c (Fding): * sound.c (init_nas_sound): * sound.c (init_native_sound): * sound.c (syms_of_sound): * specifier.c: * specifier.c (print_specifier): * specifier.c (decode_specifier_type): * specifier.c (check_valid_locale_or_locale_type): * specifier.c (decode_locale): * specifier.c (decode_locale_type): * specifier.c (check_valid_domain): * specifier.c (decode_specifier_tag_set): * specifier.c (Fcanonicalize_tag_set): * specifier.c (Fdefine_specifier_tag): * specifier.c (Fspecifier_tag_predicate): * specifier.c (check_valid_inst_list): * specifier.c (check_valid_spec_list): * specifier.c (decode_how_to_add_specification): * specifier.c (check_modifiable_specifier): * specifier.c (Fcopy_specifier): * specifier.c (check_valid_specifier_matchspec): * specifier.c (specifier_instance): * specifier.c (boolean_validate): * specifier.c (syms_of_specifier): * sunplay.c: * sunplay.c (init_device): * sunplay.c (play_sound_file): * sunplay.c (play_sound_data): * symbols.c (oblookup): * symbols.c (reject_constant_symbols): * symbols.c (verify_ok_for_buffer_local): * symbols.c (Fset): * symbols.c (decode_magic_handler_type): * symbols.c (handler_type_from_function_symbol): * symbols.c (Fdefvaralias): * symbols.c (init_symbols_once_early): * symeval.h: * symsinit.h: * syntax.c (scan_lists): * syntax.c (scan_sexps_forward): * syntax.c (syms_of_syntax): * sysdep.c (stuff_char): * sysdep.c (sys_subshell): * sysdep.c (dup2): * toolbar-msw.c (mswindows_output_toolbar): * toolbar.c (decode_toolbar_position): * toolbar.c (compute_frame_toolbar_buttons): * toolbar.c (CTB_ERROR): * toolbar.c (check_toolbar_button_keywords): * toolbar.c (toolbar_validate): * toolbar.c (syms_of_toolbar): * tooltalk.c (print_tooltalk_message): * tooltalk.c (print_tooltalk_pattern): * tooltalk.c (check_status): * tooltalk.c (Ftooltalk_open_connection): * tooltalk.c (syms_of_tooltalk): * ui-byhand.c (Fgtk_box_query_child_packing): * ui-byhand.c (Fgtk_button_box_get_child_size): * ui-byhand.c (Fgtk_calendar_get_date): * ui-byhand.c (Fgtk_clist_get_text): * ui-byhand.c (Fgtk_clist_get_selection): * ui-byhand.c (Fgtk_clist_get_pixmap): * ui-byhand.c (Fgtk_clist_get_pixtext): * ui-byhand.c (Fgtk_color_selection_get_color): * ui-byhand.c (Fgtk_editable_insert_text): * ui-byhand.c (Fgtk_pixmap_get): * ui-byhand.c (Fgtk_curve_get_vector): * ui-byhand.c (Fgtk_curve_set_vector): * ui-byhand.c (Fgtk_label_get): * ui-byhand.c (Fgtk_notebook_query_tab_label_packing): * ui-byhand.c (Fgtk_widget_get_pointer): * ui-byhand.c (generic_toolbar_insert_item): * ui-gtk.c (Fdll_load): * ui-gtk.c (ffi_object_printer): * ui-gtk.c (Fgtk_import_variable_internal): * ui-gtk.c (Fgtk_import_function_internal): * ui-gtk.c (Fgtk_call_function): * ui-gtk.c (emacs_gtk_object_printer): * ui-gtk.c (object_getprop): * ui-gtk.c (object_putprop): * ui-gtk.c (emacs_gtk_object_finalizer): * ui-gtk.c (emacs_gtk_boxed_printer): * ui-gtk.c (Fgtk_fundamental_type): * ui-gtk.c (Fgtk_describe_type): * ui-gtk.c (syms_of_ui_gtk): * ui-gtk.c (lisp_to_gtk_type): * ui-gtk.c (symbol_to_enum): * ui-gtk.c (enum_to_symbol): * undo.c (Fprimitive_undo): * undo.c (syms_of_undo): * unexaix.c (report_error): * unexaix.c (report_error_1): * unexapollo.c (unexec): * unexapollo.c (CopyData): * unexconvex.c (report_error): * unexconvex.c (a2;): * unexec.c (report_error): * unexec.c (report_error_1): * widget.c (syms_of_widget): * win32.c (Fmswindows_shell_execute): * window.c (print_window): * window.c (Fdelete_window): * window.c (Fdelete_other_windows): * window.c (Fset_window_buffer): * window.c (Fselect_window): * window.c (Fsplit_window): * window.c (change_window_height): * window.c (window_scroll): * window.c (Fother_window_for_scrolling): * window.c (print_window_config): * window.c (syms_of_window): -- defsymbol -> DEFSYMBOL. -- add an error type to all errors. -- eliminate the error functions in eval.c that let you just use Qerror as the type. -- redo the error API to be more consistent, sensibly named, and easier to use. -- redo the error hierarchy somewhat. create new errors: structure-formation-error, gui-error, invalid-constant, stack-overflow, out-of-memory, process-error, network-error, sound-error, printing-unreadable-object, base64-conversion- error; coding-system-error renamed to text-conversion error; some others. -- fix Mule problems in error strings in emodules.c, tooltalk.c. -- fix error handling in mswin open-network-stream. -- Mule-ize all sound files and clean up the headers. -- nativesound.h -> sound.h and used for all sound files. -- move some shared stuff into glyphs-shared.c: first attempt at eliminating some of the massive GTK code duplication. 2001-05-23 Ben Wing <ben@xemacs.org> * event-msw.c (winsock_writer): * event-msw.c (winsock_closer): prior kludgy code was clobbering the buffer, thinking it was "unused" space to store an unneeded return value; instead, use the variable we've already got staring us in the face. 2001-05-23 Ben Wing <ben@xemacs.org> for 21.5: * s\cygwin32.h: * s\cygwin32.h (C_SWITCH_SYSTEM): * s\cygwin32.h (BROKEN_SIGIO): * s\mingw32.h (C_SWITCH_SYSTEM): * s\mingw32.h (TEXT_START): remove support for way old beta versions of cygwin. don't put -Wno-sign-compare in the system switches; this isn't a system issue. define BROKEN_SIGIO for cygwin to get C-g support. 2001-05-23 Ben Wing <ben@xemacs.org> for 21.4: * device-msw.c (msprinter_init_device): signal an error rather than crash with an unavailable network printer (from Mike Alexander). * event-msw.c: * event-msw.c (struct winsock_stream): * event-msw.c (winsock_writer): * event-msw.c (winsock_closer): * event-msw.c (make_winsock_stream_1): cleanup headers. fix (hopefully) an error with data corruption when sending to a network connection. * fileio.c (Fexpand_file_name): Fix evil code that attempts to handle the ~user prefix by (a) always assuming we're referencing ourselves and not even verifying the user -- hence any file with a tilde as its first char is invalid! (b) if there wasn't a slash following the filename, the pointer was set *past* the end of file and we started reading from uninitialized memory. Now we simply treat these as files, always. optionally for 21.4 (doc fix): * lread.c (pas_de_holgazan_ici): * lread.c (load_force_doc_string_unwind): cambia de pas_de_lache_ici -- al minimo usa la palabra certa. for 21.5: * frame.c (restore_frame_list_to_its_unbesmirched_state): fix warnings. * emacs.c (make_arg_list_1): * nt.c (win32_get_long_filename): * nt.c (init_environment): * nt.c (GetCachedVolumeInformation): * nt.c (get_volume_info): * nt.c (map_win32_filename): * nt.c (sys_rename): * nt.c (generate_inode_val): * ntproc.c (Fwin32_short_file_name): * ntproc.c (Fwin32_long_file_name): * process-nt.c (nt_create_process): * realpath.c (win32_readlink): * unexnt.c: * unexnt.c (_start): * unexnt.c (unexec): * unexnt.c (get_bss_info_from_map_file): rename MAX_PATH to standard PATH_MAX. * process-nt.c: * realpath.c: cleanup headers. * process-unix.c (get_internet_address): * sysdep.c (init_system_name): * systime.h: * syswindows.h: kill BROKEN_CYGWIN and support for way old beta versions of cygwin. * sysfile.h: use _MAX_PATH (Windows) preferentially for PATH_MAX if defined. include io.h on Cygwin (we need get_osfhandle()). include sys/fcntl.h always, since we were including it in various header files anyway. * unexcw.c: * unexcw.c (DONT_ENCAPSULATE): * unexcw.c (CHECK_AOUT_POS): * unexcw.c (unexec): * unexcw.c (get_section_info): * unexcw.c (copy_executable_and_dump_data_section): * unexcw.c (dup_file_area): * unexcw.c (write_int_to_bss): fix up style to conform to standard. remove duplicate definition of PERROR. * buffer.c (common_init_complex_vars_of_buffer): comment change. * database.c: * debug.h (struct debug_classes): * device-tty.c: * dired-msw.c: * dired-msw.c (mswindows_sortby): * glyphs-msw.c: header cleanups (remove places that directly include a system header file, because we have our own layer to do this more cleanly and portably); indentation fixes. 2001-05-22 Martin Buchholz <martin@xemacs.org> * config.h.in (SYSTEM_TYPE): Allow configure to set this. * s/darwin.h: New. Add support for MacOS X. 2001-05-20 Mike Alexander <mta@arbortext.com> * device-msw.c (msprinter_init_device): Don't assert out if the printer isn't reachable on the net. 2001-05-21 Martin Buchholz <martin@xemacs.org> * gui-x.c (sanity_check_lwlib): Remove. 2001-05-14 Martin Buchholz <martin@xemacs.org> realloc() was being called with a null pointer, causing a crash in etags running `make TAGS' on SunOS 4. The realloc bug should be handled in the config infrastructure, not the regular code. It's actually a feature to make the regular code less defensive, since we *want* it to crash faster. * s/sunos4.h (realloc_accepting_nullptr): Safe version of realloc. * s/sunos4.h (realloc): Re-#define realloc to realloc_accepting_nullptr. * regex.c (RETALLOC_IF): Remove. Use RETALLOC instead. * regex.c (RETALLOC): Code as if realloc() is ANSI-compliant. * alloc.c (xrealloc): Code as if realloc() is ANSI-compliant. * gmalloc.c: Undef functions to be defined here, in case system header files or the config infrastructure have #define'd them. * tparam.c: Likewise. * tparam.c: Assume standard C header files. 2001-05-12 Craig Lanning <CraigL@Knology.net> * s\mingw32.h: Properly find MinGW's <process.h> inside Cygwin's restructured include directories. Don't try to include <cygwin/version.h> since we are dropping support for MinGW in versions of Cygwin earlier than b21. 2001-05-12 Craig Lanning <CraigL@Knology.net> * nt.c: Drop support for MinGW in versions of Cygwin before b21. * sysdep.c: Properly find MinGW's <process.h> inside Cygwin's restructured include directories. * syswindows.h: Drop support for MinGW in versions of Cygwin before b21. * unexcw.c: Even though a.out.h is no longer detected by configure, allow MinGW to use it until we figure out how to do the job with Win32. 2001-05-19 Ben Wing <ben@xemacs.org> * console-msw.h: * scrollbar-msw.c (mswindows_create_scrollbar_instance): * scrollbar-msw.c (mswindows_handle_scrollbar_event): * event-msw.c: * event-msw.c (mswindows_find_frame): we might receive scrollbar events on windows without scrollbars (e.g. holding down and moving the wheel button). * dired.c (user_name_completion): win9x support. * eval.c: doc comment about gcpro'ing in record_unwind_protect. * frame-msw.c (msprinter_init_frame_3): typo. * frame.c: * frame.c (restore_frame_list_to_its_unbesmirched_state): * frame.c (Fmake_frame): avoid problems with errors during init_frame_3. * process-nt.c: * process-nt.c (vars_of_process_nt): remove unused mswindows-quote-process-args. rec for 21.4. * unexcw.c (PERROR): use do/while. 2001-05-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * lisp.h: (dump_add_opaque): make varaddress parameter const. * dumper.c (struct pdump_opaque): make varaddress const. (dump_add_opaque): make varaddress parameter const. (pdump_load_finish): override const when copying into info.varaddress. 2001-05-02 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * console.h (struct console_methods): Added flags member. (CONSOLE_IMPLEMENTATION_FLAGS): Defined. (CONMETH_IMPL_FLAG): (CONSOLE_IMPL_FLAG): Macro to check implememntation flags. Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY. * device.c (window_system_pixelated_geometry): Use the above macros. * device.h (DEVICE_IMPL_FLAG): Macro to check a device implememntation flag. * device.h (DEVICE_DISPLAY_P): Use it. * frame.c (delete_frame_internal): Use the above macro. * redisplay.c (redisplay_device): Use it. (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY. (redisplay_frame): Ditto. * device-msw.c (mswindows_device_implementation_flags): Removed. (msprinter_device_implementation_flags): Removed. (console_type_create_device_mswindows): Removed references to implementation_flags methods, set implementation flags here. (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT. * device-gtk.c (gtk_device_implementation_flags): Removed method. (console_type_create_device_gtk): Removed method declaration. Added commented out statement which semantically matches the commented out statement in the above removed method. 2001-05-17 Stephen J. Turnbull <stephen@xemacs.org> * regex.c (DECLARE_NOTHING): Define if !emacs && REGEX_MALLOC. 2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org> * lisp.h (EMACS_INT_MAX): This should be one bit less since EMACS_INT is signed. 2001-05-13 Mike Alexander <mta@arbortext.com> * frame-msw.c (mswindows_make_frame_visible): Call SetActiveWindow to make the frame the active window. 2001-05-11 Martin Buchholz <martin@xemacs.org> Eliminate the need to define HAVE_PTYS in s&m files. * config.h.in: * event-msw.c (emacs_mswindows_create_stream_pair): * event-stream.c (execute_internal_event): * event-unixoid.c (event_stream_unixoid_create_stream_pair): * process-unix.c: * process-unix.c (unix_create_process): * sysdep.c: * sysdep.c (set_descriptor_non_blocking): * sysdep.c (setup_pty): Delete ancient FIONBIO code. * systty.h: * s/aix3-1.h: * s/bsd4-1.h: * s/bsd4-2.h: * s/cxux.h: * s/dgux.h: * s/cygwin32.h: * s/esix.h: * s/hpux.h: * s/iris3-5.h: * s/iris3-6.h: * s/irix3-3.h: * s/isc2-2.h: * s/linux.h: * s/ptx.h: * s/rtu.h: * s/sco4.h: * s/sco5.h: * s/template.h: * s/umax.h: * s/umips.h: * s/unipl5-0.h: * s/unipl5-2.h: * s/usg5-0.h: * s/usg5-3.h: * s/usg5-4.h: * s/windowsnt.h: * s/xenix.h: * m/7300.h: * m/delta.h: * m/delta88k.h: * m/dpx2.h: * m/hp800.h: * m/ibmps2-aix.h: * m/ibmrt-aix.h: * m/mips.h: * m/pfa50.h: * m/sps7.h: * m/stride.h: * m/tad68k.h: * m/tekxd88.h: * m/wicat.h: Nuke all references to HAVE_PTYS, SYSV_PTYS, NEED_BSDTTY. All current Unix systems have ptys, and even on systems without ptys, the basic functionality has been sufficiently autoconfiscated that everything should just work anyways. 2001-05-11 Mike Alexander <mta@arbortext.com> * event-msw.c (mswindows_need_event_in_modal_loop): (mswindows_need_event): Fix indentation. 2001-05-12 Ben Wing <ben@xemacs.org> * .cvsignore: add xemacs.opt, a VC-generated file. 2001-05-12 Ben Wing <ben@xemacs.org> * event-msw.c (mswindows_dde_callback): * event-msw.c (mswindows_wnd_proc): eliminate cygwin warnings. * dired.c: * dired.c (user_name_completion): * syswindows.h: * win32.c: * win32.c (init_potentially_nonexistent_functions): find the Net* functions the hard way to avoid errors on win 9x. 2001-05-10 Ben Wing <ben@xemacs.org> * dired.c: * dired.c (user_name_completion_unwind): * dired.c (user_name_completion): * dired.c (syms_of_dired): implement user-name-all-completions under Windows. * emacs.c: * emacs.c (syms_of_emacs): create new function force-debugging-signal (only when DEBUG_XEMACS) to breakpoint or abort to the debugger. * file-coding.c: * file-coding.c (syms_of_file_coding): * file-coding.h: * lisp.h: move coding-system-charset to lisp to avoid doc warning. 2001-05-09 William M. Perry <wmperry@gnu.org> * scrollbar-gtk.c (gtk_create_scrollbar_instance): Fix the disappearing GTK scrollbar problem. 2001-05-09 Ben Wing <ben@xemacs.org> * regex.c (regex_compile): fix error compiling regexps with back-references in them. 2001-05-09 Martin Buchholz <martin@xemacs.org> * XEmacs 21.5.1 "anise" is released. 2001-05-08 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.c (Vcase_fold_search): Remove obsolete comment about non ASCII case-fold-search. This bug has been fixed by case-table changes. 2001-05-08 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> * mule-charset.c (Fmake_charset): Add missing else. 2001-05-07 Martin Buchholz <martin@xemacs.org> * s/bsd386.h: Use NOT_C_CODE instead of `emacs' to protect Makefiles 2001-05-08 Martin Buchholz <martin@xemacs.org> * s/bsdos4.h: Protect C code with #ifndef NOT_C_CODE. 2000-04-22 zhaoway <zw@debian.org> * event-stream.c (is_scrollbar_event): Return 0 when XEmacs is compiled without scrollbars. 2001-05-05 Martin Buchholz <martin@xemacs.org> TTY configury portability improvements. Support systems which use OXTABS instead of TAB3, without any s&m. * s/bsd386.h: Remove definitions for system symbols TABDLY and OXTABS. * s/freebsd.h: Likewise. * s/gnu.h: Likewise. * s/netbsd.h: Likewise. * s/nextstep.h: Remove definitions for TAB3 and BSD_TERMIOS. * systty.h: Fix up (unused) tty tab delay/expansion code. Better preprocessor symbol hygiene. Remove BSD_TERMIOS cruft. * sysdep.c (child_setup_tty): More careful code. Check for OXTABS. * sysdep.c (tty_init_sys_modes_on_device): Tab expansion disabling code was buggy. So I fixed it. But it shouldn't have been done at all. So I also #if 0'ed it. 2001-05-06 Ben Wing <ben@xemacs.org> * console-msw.h: * device-msw.c: * device-msw.c (print_dialog_worker): * device-msw.c (mswindows_handle_print_dialog_box): * device-msw.c (syms_of_device_mswindows): * dialog-msw.c (mswindows_make_dialog_box_internal): * general-slots.h: implement printing the selection when it's selected. unrelated: * mule-charset.c (Fset_charset_ccl_program): * mule-charset.c (invalidate_charset_font_caches): force redisplay when set-charset-ccl-program called. 2001-05-04 Martin Buchholz <martin@xemacs.org> * s/bsdos4.h (openpty): Add declaration, missing from system headers. 2001-05-05 Martin Buchholz <martin@xemacs.org> * search.c (warn_about_possibly_incompatible_back_references): Target of a DEFVAR_INT should be a Fixnum, not int. 2001-05-05 Ben Wing <ben@xemacs.org> * console-msw.h: * device-msw.c: * device-msw.c (mswindows_get_default_margin): * frame-msw.c (mswindows_size_frame_internal): * frame-msw.c (msprinter_init_frame_1): * frame-msw.c (vars_of_frame_mswindows): Change top/bottom margin defaults to 0.5 inches. 2001-04-23 Ben Wing <ben@xemacs.org> ------------ notable bug fix: Windows event code -------------- * event-msw.c (FAKE_MOD_QUIT): * event-msw.c (mswindows_dequeue_dispatch_event): * event-msw.c (mswindows_wnd_proc): * event-msw.c (emacs_mswindows_quit_p): Get critical quit working. ------------ notable bug fix and new feature: regex code -------------- * lisp.h: * regex.c: * regex.c (enum): * regex.c (print_compiled_pattern): * regex.c (INIT_REG_TRANSLATE_SIZE): * regex.c (regex_compile): * regex.c (re_match_2_internal): * regex.h: * regex.h (RE_SYNTAX_AWK): * regex.h (RE_SYNTAX_GREP): * regex.h (RE_SYNTAX_EGREP): * regex.h (RE_SYNTAX_POSIX_EGREP): * regex.h (_RE_SYNTAX_POSIX_COMMON): * regex.h (struct re_pattern_buffer): * search.c: * search.c (vars_of_search): Shy groups were implemented in a horrible, half-assed way that would cause them to screw up regex searching in most cases. Fixed to work correctly. Also extended back-reference syntax past 9. Only is recognized as such if there are at least that many non-shy groups; and optionally will warn about such uses, to catch old code that might be using them differently. (Added variable to control this in search.c -- `warn-about-possibly-incompatible-back- references', on by default for the moment. Declared in lisp.h. ---------------- process/SIGIO improvements ------------------- * process-unix.c: * process-unix.c (get_internet_address): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): * process-unix.c (unix_open_multicast_group): define USE_GETADDRINFO to replace more complex conditional, and use it. the code conditionalized on this in unix_open_network_stream had *serious* problems handling errors. it's now fixed, and major amounts of duplicate code between the two versions were combined. don't disable SIGIO and other interrupts unless CONNECT_NEEDS_SLOWED_INTERRUPTS is defined -- don't penalize OS's without bugs. similarly for a freebsd bug that was affecting all OS's. * s\ultrix.h: define CONNECT_NEEDS_SLOWED_INTERRUPTS, since that's the OS mentioned as having a kernel bug. * sysdep.c (request_sigio_on_device): * sysdep.c (unrequest_sigio_on_device): fix SIGIO problems on Linux. add check for O_ASYNC in case it's defined and FASYNC isn't. add comment about other ways to do SIGIO on Linux. * callproc.c (Fold_call_process_internal): * process.c (Fstart_process_internal): Deal with the possibility that `default-directory' doesn't have terminating slash. Correct comments about vfork. ---------------- Miscellaneous bug fixes/cleanup ------------------- * callint.c (Finteractive): Add lots of documentation -- exactly what the Lisp equivalents of all the interactive specs are. * console.h (struct console): change type of quit_char to Emchar. * event-msw.c (lstream_type_create_mswindows_selectable): spacing change. * event-Xt.c: * event-msw.c: * event-stream.c: * events-mod.h: * events.c: * events.h: * frame-x.c: * gpmevent.c: * keymap.c: Eliminate events-mod.h and combine into events.h. * emacs.c: * emacs.c (make_arg_list_1): * emacs.c (main_1): A couple of char->Extbyte changes, add a comment. * glyphs-msw.c (mswindows_resource_instantiate): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (mswindows_subwindow_instantiate): * glyphs-msw.c (mswindows_widget_instantiate): * glyphs-msw.c (mswindows_native_layout_instantiate): * glyphs-msw.c (mswindows_button_instantiate): * glyphs-msw.c (mswindows_edit_field_instantiate): * glyphs-msw.c (mswindows_progress_gauge_instantiate): * glyphs-msw.c (mswindows_tree_view_instantiate): * glyphs-msw.c (mswindows_tab_control_instantiate): * glyphs-msw.c (mswindows_label_instantiate): * glyphs-msw.c (mswindows_scrollbar_instantiate): * glyphs-msw.c (mswindows_combo_box_instantiate): Correct indentation of function defns to not exceed 80 cols. Try (sort of) to fix some code that sets the colors of the progress gauge. (Commented out) * keymap.c (syms_of_keymap): use DEFSYMBOL. * process.c (read_process_output): No need to fiddle with zmacs_region_stays, now that bogus clearing of it (see below) is removed. * search.c (Freplace_match): warning fix. 2001-05-03 Martin Buchholz <martin@xemacs.org> * s/aix4.h: Fix crash with xlc -O3. Improve comment explaining how -O3 works. 2001-05-02 Jerry James <james@xemacs.org> * faces.h (SET_FACE_PROPERTY): pass parameters to Fadd_spec_to_specifier in the correct order. 2001-05-01 Martin Buchholz <martin@xemacs.org> Fix link error with gcc 3.0 on Linux. * terminfo.c (UP): Remove. * terminfo.c (BC): Remove. * terminfo.c (PC): Remove. They weren't used, and in any case, these symbols should be defined in the *library*. 2001-04-30 Martin Buchholz <martin@xemacs.org> Make string hashing more efficient. Makes intern much faster. Makes hash tables containing strings faster. * symbols.c (hash_string): A much better hash function. Change prototype to return unsigned value. (init_symbols_once_early): Use unsigned type for hash value. (oblookup): Use unsigned type for hash value. 2001-04-04 Martin Buchholz <martin@xemacs.org> * keymap.c (Fmap_keymap): Revert to previous implementation, since elisp_maphash is now safe. * elhash.c: Remove erroneously added comment. * elhash.c (copy_compress_hentries): New. (Fmaphash): Use copy_compress_hentries. (elisp_maphash): Use copy_compress_hentries. (elisp_map_remhash): Use copy_compress_hentries. (elisp_maphash_unsafe): New. * elhash.h: Add prototype for elisp_maphash_unsafe. * elhash.c (Fmaphash): Avoid crashes/unpredictable behavior if a hash table is modified during a mapping function, perhaps indirectly via gc. (free_hentries): New. Avoid crash if a pdumped hash table is collected. (maphash_unwind): New. * tests.c: Add C-level hash table tests. 2001-04-28 Ben Wing <ben@xemacs.org> * buffer.c (Ferase_buffer): * editfns.c (buffer_insert1): * editfns.c (Finsert_before_markers): * editfns.c (Finsert_string): * editfns.c (Finsert_char): * editfns.c (Fdelete_region): * editfns.c (Fwiden): * editfns.c (Fnarrow_to_region): remove bogus lines setting zmacs_region_stays to 0. * scrollbar-msw.c (mswindows_handle_mousewheel_event): remove debug lines. 2001-03-08 Mike Alexander <mta@arbortext.com> * event-msw.c (mswindows_need_event_in_modal_loop): Don't dispatch a message if we didn't get one. (mswindows_need_event): Terminate the correct process when one exits instead of the first one on Vprocess_list and look for process termination when in mswindows_protect_modal_loop. 2001-04-20 Ben Wing <ben@xemacs.org> * .cvsignore: Added stuff for Windows. 2001-04-15 Ben Wing <ben@xemacs.org> * cmdloop.c (call_command_loop): Fix braino in bit-rotting code. * event-stream.c: * event-stream.c (Fnext_event): * event-stream.c (is_scrollbar_event): * event-stream.c (execute_command_event): Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a crash' problem. His fix introduces other problems. We filter out scrollbar events specifically, making them somewhat invisible to command-building, and not appearing in `this-command-keys'. More work is still needed (see comments in event-stream.c), but this fixes all the major problems. 2001-04-15 Gunnar Evermann <ge204@eng.cam.ac.uk> * process-unix.c (unix_open_network_stream): If connect() fails invalidate file descriptor after closing it. 2001-04-18 Martin Buchholz <martin@xemacs.org> * XEmacs 21.5.0 "alfalfa" is released. 2001-03-31 Mike Sperber <mike@xemacs.org> * search.c (Freplace_match): [Again] support FSF-style specification of match subexpression when applied to a buffer. 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com> * extents.c (Fset_extent_endpoints): Force creation of extent info in buffer_or_string. 2001-04-07 Hrvoje Niksic <hniksic@arsdigita.com> * extents.c (process_extents_for_insertion_mapper): Correctly check for open-open zero-length extents. 2001-04-02 Jan Vroonhof <jan@xemacs.org> * redisplay.c (add_bufbyte_string_runes): Update data->bytepos 2001-04-03 Mike Sperber <mike@xemacs.org> * search.c: Revert previous patch due because of release. 2001-03-30 Ben Wing <ben@xemacs.org> * s\cygwin32.h: Add missing killpg prototype. * elhash.c: Add a comment about fixing problems when a new entry is added while mapping. * frame-msw.c (mswindows_init_frame_1): Fix compile warnings. * menubar.c (vars_of_menubar): Provide `menu-accelerator-support' to indicate that we Properly support %_ in menu specifications, so that package code can conditionalize on this (and remove %_ from menu specifications on older versions). * event-msw.c: * scrollbar-msw.c: * scrollbar-msw.c (can_scroll): * scrollbar-msw.h: Fix handling of mouse wheel under Windows to follow standards -- now scrolls window under pointer, not selected window. 2001-03-31 Mike Sperber <mike@xemacs.org> * search.c (Freplace_match): Support FSF-style specification of match subexpression when applied to a buffer. 2001-03-15 Martin Buchholz <martin@xemacs.org> * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping function to modify KEYMAP, so map over a copy of the hash table. 2001-03-21 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.46 "Urania" is released. 2001-03-20 Dan Holmsand <dan@eyebee.com> * realpath.c (xrealpath): Make file-truename work with symlinks to /cygdrive paths on cygwin. Always lowercase drive-letters on native windows. (cygwin_readlink): Don't try to find canonical filename unless file exists. 2001-03-15 Stephen J. Turnbull <stephen@xemacs.org> * ChangeLog: Log GTK merge. * dumper.c: * select-x.c: * specifier.c: * symeval.h: Revert gratuitous whitespace changes from GTK merge. * emacs.c: Document end of complex #ifdef @ l. 1495. 2001-03-12 Andy Piper <andy@xemacs.org> * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we have to do likewise. 2001-03-12 Andy Piper <andy@xemacs.org> * sysdep.c: we only support mingw now. 2001-03-09 Andy Piper <andy@xemacs.org> * unexcw.c (copy_executable_and_dump_data_section): making approx overrun a warning only. 2001-03-10 William M. Perry <wmperry@aventail.com> * faces.c (complex_vars_of_faces): Rewrote the font mucking to satisfy Stephen's identical-after-cpp plea. 2001-03-02 Ben Wing <ben@xemacs.org> * cmds.c: * cmds.c (Fforward_char): * syntax.c: * window.c: Augment documentation of the most common motion commands to make note of the shifted-motion support. 2001-03-02 Ben Wing <ben@xemacs.org> * nt.c (mswindows_fstat): * nt.c (mswindows_stat): * search.c (boyer_moore): Fix compile warnings under Windows. * sysdep.c (sys_readdir): Fix buggy filename-conversion code under Mule. 2001-03-09 William M. Perry <wmperry@aventail.com> * Makefile.in.in: * config.h.in: * console.c: * console.h: * device.c: * device.h: * dragdrop.c: * emacs.c: * event-stream.c: * events.c: * events.h: * faces.c: * frame.h: * general-slots.h: * glyphs.c: * gutter.c: * inline.c: * lisp.h: * lrecord.h: * make-src-depend: * redisplay-output.c: * redisplay.c: * symsinit.h: * sysfile.h: * toolbar.c: * window.c: The Great GTK Merge. * ChangeLog.GTK: * console-gtk.c: * console-gtk.h: * device-gtk.c: * emacs-marshals.c: * emacs-widget-accessors.c: * event-gtk.c: * frame-gtk.c: * gccache-gtk.c: * gccache-gtk.h: * glade.c: * glyphs-gtk.c: * glyphs-gtk.h: * gtk-glue.c: * gtk-xemacs.c: * gtk-xemacs.h: * gui-gtk.c: * gui-gtk.h: * menubar-gtk.c: * native-gtk-toolbar.c: * objects-gtk.c: * objects-gtk.h: * redisplay-gtk.c: * scrollbar-gtk.c: * scrollbar-gtk.h: * select-gtk.c: * toolbar-gtk.c: * ui-byhand.c: * ui-gtk.c: * ui-gtk.h: The Great GTK Merge: new files. 2001-02-26 Ben Wing <ben@xemacs.org> Reapplied Lstream change. 2001-02-26 Ben Wing <ben@xemacs.org> Undid the last change, since it is more controversial than I thought. It should be back in at some point soon. 2001-02-25 Ben Wing <ben@xemacs.org> * buffer.c: * callproc.c (Fold_call_process_internal): * event-msw.c (ntpipe_slurp_reader): * event-msw.c (ntpipe_shove_writer): * event-msw.c (winsock_reader): * event-msw.c (winsock_writer): * file-coding.c: * file-coding.c (detect_eol_type): * file-coding.c (detect_coding_type): * file-coding.c (determine_real_coding_system): * file-coding.c (Fdetect_coding_region): * file-coding.c (decoding_reader): * file-coding.c (decoding_writer): * file-coding.c (mule_decode): * file-coding.c (Fdecode_coding_region): * file-coding.c (encoding_reader): * file-coding.c (encoding_writer): * file-coding.c (mule_encode): * file-coding.c (Fencode_coding_region): * file-coding.c (detect_coding_sjis): * file-coding.c (decode_coding_sjis): * file-coding.c (encode_coding_sjis): * file-coding.c (detect_coding_big5): * file-coding.c (decode_coding_big5): * file-coding.c (encode_coding_big5): * file-coding.c (detect_coding_ucs4): * file-coding.c (decode_coding_ucs4): * file-coding.c (encode_coding_ucs4): * file-coding.c (detect_coding_utf8): * file-coding.c (decode_coding_utf8): * file-coding.c (encode_coding_utf8): * file-coding.c (detect_coding_iso2022): * file-coding.c (decode_coding_iso2022): * file-coding.c (encode_coding_iso2022): * file-coding.c (decode_coding_no_conversion): * file-coding.c (encode_coding_no_conversion): * glyphs-x.c (write_lisp_string_to_temp_file): * gpmevent.c (tty_get_foreign_selection): * lisp.h: * lstream.c: * lstream.c (Lstream_flush_out): * lstream.c (Lstream_adding): * lstream.c (Lstream_write_1): * lstream.c (Lstream_write): * lstream.c (Lstream_raw_read): * lstream.c (Lstream_read_more): * lstream.c (Lstream_read): * lstream.c (Lstream_unread): * lstream.c (Lstream_fputc): * lstream.c (stdio_reader): * lstream.c (stdio_writer): * lstream.c (filedesc_reader): * lstream.c (filedesc_writer): * lstream.c (lisp_string_reader): * lstream.c (struct fixed_buffer_stream): * lstream.c (make_fixed_buffer_input_stream): * lstream.c (make_fixed_buffer_output_stream): * lstream.c (fixed_buffer_reader): * lstream.c (fixed_buffer_writer): * lstream.c (struct resizing_buffer_stream): * lstream.c (resizing_buffer_writer): * lstream.c (dynarr_writer): * lstream.c (lisp_buffer_reader): * lstream.c (lisp_buffer_writer): * lstream.h: * lstream.h (lstream_implementation): * lstream.h (struct lstream): * md5.c (Fmd5): * process-nt.c (nt_send_process): * process-unix.c (unix_send_process): Correct Lstream lossage due to mixing of signed and unsigned quantities. All Lstream uses of size_t and ssize_t are now a single signed data type Lstream_data_count. This fixes problems under Windows with sending large quantities of data to a process, and may well fix other subtle bugs. 2001-02-23 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.45 "Thelxepeia" is released. 2001-02-21 Martin Buchholz <martin@xemacs.org> * lisp-union.h (XSETINT): (XSETCHAR): (XSETOBJ): Reverse previous change of 2001-02-06. 2001-02-20 Matt Tucker <tuck@whistlingfish.net> Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed buffers. * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR): * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR): Add `BI_BUF_BEGV' to bytepos before calculating bufpos. * regex.c (POS_AS_IN_BUFFER): removed * regex.c (re_search_2): * regex.c (re_match_2): Don't use an offset of 1 when calculating buffer positions, since `BI_BUF_BEGV' does it already. 2001-02-18 Wim Dumon <wim@easics.be> * insdel.c (prepare_to_modify_buffer): Also check for supersession when clash-detection is enabled. 2001-02-17 Matt Tucker <tuck@whistlingfish.net> * regex.c (re_match_2_internal): Convert temp characters from 'const unsigned char' to 're_char'. Fix crashing bug with extended characters under mule. * syntax.c (Qsyntax_table): Moved from vars_of_syntax to syms_of_syntax. Use defsymbol to define. Fixes hanging bug with font-lock, pdump, and new syntax-table code. * syntax.c (find_start_of_comment): (find_end_of_comment): (forward-comment): Fix crashing bugs involving moving beyond end of buffer. * syntax.c (find_start_of_comment): Fixed logic to allow proper detection of cases where the same character is used to end both a two-char comment start and a two-char comment end sequence. Fixes `(forward-comment -1)'. * syntax.c (find_start_of_comment): Return position just past last comment-end character for all cases (previously was only done for two-char comment-end sequences). * syntax.c (forward-comment): Take value returned from `find_end_of_comment', rather than incrementing it. * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR): Properly deal with BUFFERP (syntax_cache.object) 2001-02-17 Martin Buchholz <martin@xemacs.org> * alloc.c (Fgarbage_collect): * alloc.c (make_bit_vector_from_byte_vector): -Wsign-compare-correctness. 2001-02-16 Martin Buchholz <martin@xemacs.org> * lisp-union.h (XSETINT): Eliminate unnecessary temp var. (XSETCHAR): Likewise. (XSETOBJ): Likewise. 2001-02-15 Martin Buchholz <martin@xemacs.org> * mule-canna.c (canna-func-delete_previous): Rename to canna-func-delete-previous. 2001-02-14 Martin Buchholz <martin@xemacs.org> * mule-ccl.c (ccl_driver): Warning suppression. Use countof. 2001-02-13 Matt Tucker <tuck@whistlingfish.net> * font-lock.c (find_context): Fix C++ compile errors introduced by recent patch 2001-02-13 Martin Buchholz <martin@xemacs.org> * s/aix4.h: Later versions of IBM C compiler need a bug workaround pragma, but earlier ones barf on the same pragma. 2001-02-06 Mike Sperber <mike@xemacs.org> * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and `configure-mule-lisp-directory'. 2001-02-12 Martin Buchholz <martin@xemacs.org> Make sure dump-id.c is compiled in the same way as other .c's. Fixes pdump compilation failure with HP's cc, which defaults to K&R. * dump-id.h: Remove. * emacs.c: Move dump-id.h into dumper.h. * dumper.h: Move dump-id.h into dumper.h. * Makefile.in.in: Use standard .c.o rule for building dump-id.o. Remove preprocessor flags from link command. Add dump-id.o to ${otherobjs} if PDUMP. 2001-02-07 Matt Tucker <tuck@whistlingfish.net> Port FSF 20.7 syntax table improvements. * syntax.c. * syntax.h. Fixups for new syntax table stuff. * dired.c: Include syntax.c. (Fdirectory_files): Initialize regex_match_object and regex_emacs_buffer. * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change, and Fget_char_property. Use ported FSF 20.7 syntax table improvements. * font-lock.c. * regex.c. * search.c. 2001-02-09 Martin Buchholz <martin@xemacs.org> * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with Unixware's enum boolean from sys/types.h. 2001-02-10 Martin Buchholz <martin@xemacs.org> Fix support for building with latest Purify. * Makefile.in.in (PURIFY_LIBS): Remove thread flags. (PURIFY_FLAGS): Likewise. 2001-02-09 Martin Buchholz <martin@xemacs.org> * fileio.c (lisp_string_set_file_times): New. * fileio.c (Fcopy_file): Use it. Fixes bug: (copy-file filename non-ascii-filename t t) ==> No such file or directory, non-ascii-filename 2001-02-10 Martin Buchholz <martin@xemacs.org> * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning. USHRT_MAX seems clearer than ~0 anyways. 2001-02-09 Martin Buchholz <martin@xemacs.org> dumper improvements. Inspired by Olivier. * dumper.c (pdump_max_align): New. * dumper.c (pdump_add_entry): Use pdump_max_align. * dumper.c (pdump_get_entry_list): Likewise. * dumper.c (pdump_scan_by_alignment): Likewise. Don't iterate through unnecessary alignments. * dumper.c (pdump_file_get): No need to align result of malloc(). * dumper.c (pdump_mallocadr): Remove. The result of malloc() is guaranteed to be maximally aligned. * dumper.c: s/elmt/elt/g; * dumper.c (pdump_object_table): Allocate dynamically, not statically. * dumper.c (pdump_alert_undump_object): Likewise. * dumper.c (pdump_align_table): Don't support alignments > 64. Store ALIGNOF's, not shift counts, in table. 2001-02-09 Martin Buchholz <martin@xemacs.org> * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove. * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove. * systime.h: Use HAVE_UTIME. * sysdep.c (struct utimbuf): Remove. * sysdep.c (set_file_times): Prefer utime() to utimes(). * config.h.in (HAVE_UTIME): New. * config.h.in (HAVE_UTIME_H): Remove. * config.h.in (HAVE_STRUCT_UTIMBUF): Remove. 2001-02-09 Martin Buchholz <martin@xemacs.org> * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE. 2001-02-08 Martin Buchholz <martin@xemacs.org> * s/irix6-0.h: Use the standard system memmove, not bcopy. 2001-02-08 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.44 "Thalia" is released. 2001-02-06 Martin Buchholz <martin@xemacs.org> Fixes crashes in kill-emacs on some systems. * process-unix.c (unix_kill_child_process): It's OK for kill() to fail with ESRCH. 2001-02-07 Martin Buchholz <martin@xemacs.org> Contortions to make .gdbinit tricks work on most systems. * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info. * alloc.c (dbg_valmask): Make non-const. * alloc.c (dbg_typemask): Make non-const. * alloc.c (dbg_USE_UNION_TYPE): Make non-const. * alloc.c (dbg_valbits): Make non-const. * alloc.c (dbg_gctypebits): Make non-const. * .gdbinit (decode_object): Make it work with AIX cc. 2001-02-06 Martin Buchholz <martin@xemacs.org> * elhash.c (make_general_lisp_hash_table): Use simpler and more efficient calloc to clear entries. 2001-02-07 Martin Buchholz <martin@xemacs.org> * window.c (window_scroll): Work around an AIX C compiler bug. Fixes 'scroll-up' does nothing problem with xlC. 2001-02-05 Martin Buchholz <martin@xemacs.org> * .gdbinit: Remove obsolete comment. 2001-01-31 Mike Alexander <mta@arbortext.com> * select.c (Fown_selection_internal): Set owned_p for device method correctly. 2001-02-01 Martin Buchholz <martin@xemacs.org> Port to g++ 2.97. "not" cannot be used as a macro name as it is an operator in C++ * config.h.in: Stop #defining `not'. * chartab.c (check_category_char): not ==> not_p * chartab.h: Likewise. * regex.c (re_match_2_internal): Likewise. 2001-02-02 Martin Buchholz <martin@xemacs.org> * lisp-disunion.h: Fix up comments. 2001-01-31 Martin Buchholz <martin@xemacs.org> * keymap.c (define_key_check_and_coerce_keysym): (syms_of_keymap): Support mouse-6 and mouse-7 bindings in the obvious way. 2001-02-01 Martin Buchholz <martin@xemacs.org> * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD. 2001-01-30 Martin Buchholz <martin@xemacs.org> Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete. Previous patch missed DEFVAR_INT_MAGIC. Make sure future DEFVAR_foo use correct types. * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New. * (DEFVAR_SYMVAL_FWD_INT): Add type checking. * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking. * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM. * (DEFVAR_INT): Likewise. * redisplay.c (vertical_clip): Should be of type Fixnum. * redisplay.c (horizontal_clip): Likewise. * lisp.h (dump_add_opaque_int): New. (dump_add_opaque_fixnum): New. 2001-01-29 Andy Piper <andy@xemacs.org> * glyphs-widget.c (check_valid_int_or_function): allow symbols since they can be eval'ed 2001-01-29 Martin Buchholz <martin@xemacs.org> * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers. Oops, XEmacs redefines `class'. Use `typename' instead. 2001-01-28 Martin Buchholz <martin@xemacs.org> * dumper.c: Fix C++ compile errors. 2001-01-29 Martin Buchholz <martin@xemacs.org> * tparam.c: Use correct prototypes. 2001-01-28 Martin Buchholz <martin@xemacs.org> * sysproc.h: #include util.h for NetBSD's openpty. 2001-01-27 Martin Buchholz <martin@xemacs.org> More 64-bit correctness. The C value of a DEFVAR_INT should be of type EMACS_INT, not int. Use a typedef `fixnum' for the type used for DEFVAR_INT. Fix up comments. This finally finishes the 64-bit SGI port. Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...). * symbols.c: Fix up comments and type casts. * symbols.c (do_symval_forwarding): s/int/Fixnum/g * symbols.c (store_symval_forwarding): s/int/Fixnum/g * symeval.h (Fixnum): New type. * symeval.h (symbol_value_type): Fix up comment. * commands.h: * nt.c: * emacs.c: * data.c: * redisplay.c: * abbrev.c: * dired-msw.c: * event-Xt.c: * eldap.c: * window.c: * sound.c: * event-stream.c: * eval.c: * buffer.c: * mule-canna.c: A million DEFVAR_INTs here... * mule-canna.c (count_char): s/int */Fixnum */g in arglist. * extents.c: * cmdloop.c: * lisp.h: * select-x.c: * console-x.h: * event-msw.c: * mule-wnnfns.c: * hpplay.c: * ralloc.c: * alloc.c: * keymap.c: * profile.c: s/int/Fixnum/g in DEFVAR_INT declarations. 2001-01-26 Martin Buchholz <martin@xemacs.org> Port pdump to SGI alignment-sensitive environment. Lisp Object sizeof methods now return aligned sizes. Rely on that. Eliminate is_lrecord since Lisp_Objects sizeof methods are now all properly aligned. Define and use aligned reading and writing macros. Use buffered stdio instead of posix i/o for faster dumping. Eliminate kludgy 256 byte space for header. Read and write from dump file using structs for alignment safety. * dumper.c (pdump_align_stream): New. * dumper.c (PDUMP_ALIGN_OUTPUT): New. * dumper.c (PDUMP_READ_ALIGNED): New. * dumper.c (PDUMP_WRITE_ALIGNED): New. * dumper.c (pdump_static_Lisp_Object): New struct. * dumper.c (pdump_static_pointer): New struct. * dumper.c (pdump_entry_list_element): Remove is_lrecord member. * dumper.c (pdump_add_entry): Remove is_lrecord parameter. * dumper.c (pdump_dump_data): Rely on sizeof method alignment. * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment. * dumper.c (pdump_backtrace): * dumper.c (pdump_get_indirect_count): * dumper.c (pdump_register_object): * dumper.c (pdump_register_struct): * dumper.c (pdump_reloc_one): * dumper.c (pdump_scan_by_alignment): * dumper.c (pdump_dump_from_root_struct_ptrs): * dumper.c (pdump_dump_opaques): * dumper.c (pdump_dump_rtables): * dumper.c (pdump_dump_from_root_objects): * dumper.c (pdump): * dumper.c (pdump_load_finish): Use aligned reading and writing. * dumper.c (pdump_free): Make static. * dumper.c (pdump_hFile): Likewise. * dumper.c (pdump_hMap): Likewise. 2001-01-26 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.43 "Terspichore" is released. 2001-01-25 Martin Buchholz <martin@xemacs.org> Type fiddling for window_config.saved_windows_count * window.c (struct window_config): Make saved_windows_count member unsigned. * window.c (sizeof_window_config_for_n_windows): Make parameter unsigned. * window.c (mark_window_config): * window.c (window_config_equal): * window.c (free_window_configuration): * window.c (Fset_window_configuration): * window.c (count_windows): * window.c (Fcurrent_window_configuration): * window.c (reinit_vars_of_window): Update all callers and users. 2001-01-25 Martin Buchholz <martin@xemacs.org> Alignment correctness for flexible arrays. * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Make alignment-correct. Add interesting comments. * alloc.c (size_vector): * alloc.c (make_vector_internal): * alloc.c (make_bit_vector_internal): * alloc.c (sweep_bit_vectors_1): * fns.c (size_bit_vector): Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg. * window.c (sizeof_window_config_for_n_windows): Use FLEXIBLE_ARRAY_STRUCT_SIZEOF. 2001-01-24 Martin Buchholz <martin@xemacs.org> * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h 2001-01-23 Andy Piper <andy@xemacs.org> * select.c (Fown_selection_internal): pass owned_p * select-msw.c (mswindows_own_selection): New Signature. * console.h (struct console_methods): add owned_p to _own_selection. * select-x.c (x_own_selection): pass owned_p (hack_motif_clipboard_selection): use owned_p (vars_of_select_x): new variable - x_selection_strict_motif_ownership. 2001-01-23 Martin Buchholz <martin@xemacs.org> * specifier.h (specifier_data_offset): Remove pointless parens. * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise. 2001-01-24 Martin Buchholz <martin@xemacs.org> Make Lisp_Object sizeof methods be alignment-correct. pdump must restore objects to the same alignment as the C compiler assumes. It really matters on SGIs. * lstream.c (aligned_sizeof_lstream): New. (sizeof_lstream): Use aligned_sizeof_lstream. (Lstream_new): Likewise. * opaque.c (aligned_sizeof_opaque): New. (sizeof_opaque): Use aligned_sizeof_opaque. (make_opaque): Likewise. * specifier.c (aligned_sizeof_specifier): New. (sizeof_specifier): Use aligned_sizeof_specifier. (make_specifier_internal): Likewise. 2001-01-23 Martin Buchholz <martin@xemacs.org> * lstream.h (struct lstream): Use max_align_t for trailing data. * specifier.h (struct Lisp_Specifier): Likewise. 2001-01-22 Martin Buchholz <martin@xemacs.org> * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention. (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings. (CCL_SUSPEND): Likewise. (CCL_INVALID_CMD): Likewise. (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise. (ccl_driver): Likewise. (CCL_WRITE_CHAR): Macro hygiene. (CCL_WRITE_STRING): Macro hygiene. 2001-01-22 Martin Buchholz <martin@xemacs.org> Port "portable" dumper to SunOS 4 and HP-UX. * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere. * emacs.c (main): PDUMP implies no RUN_TIME_REMAP. * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined. 2001-01-22 Martin Buchholz <martin@xemacs.org> * lisp.h (ALIGNOF): A better definition for C++. 2001-01-20 Martin Buchholz <martin@xemacs.org> Macro hygiene. Fix printf warnings: int format, long int arg. * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING. (PUSH_FAILURE_POINT): Use correct printf formats. (POP_FAILURE_POINT): Use correct printf formats. Use do {...} while (0) 2001-01-20 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.42 "Poseidon" is released. 2001-01-20 Martin Buchholz <martin@xemacs.org> * console-x.h: typo fix du jour. Remove #if 0'ed code. 2001-01-19 Martin Buchholz <martin@xemacs.org> De-kludgify FIXED_TYPE free list frobbing. Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13. * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free. * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions. * alloc.c (Lisp_Free): New pseudo lisp object definition. * alloc.c (LRECORD_FREE_P): New. * alloc.c (MARK_LRECORD_AS_FREE): New. * alloc.c (MARK_LRECORD_AS_NOT_FREE): New. * alloc.c (STRUCT_FREE_P): Deleted. * alloc.c (MARK_STRUCT_AS_FREE): Deleted. * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted. * alloc.c (STRING_CHARS_FREE_P): New. * alloc.c (MARK_STRING_CHARS_AS_FREE): New. * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions. * alloc.c (FREE_FIXED_TYPE): Use new definitions. * alloc.c (STRING_CHARS_FREE_P): Use new definitions. * alloc.c (resize_string): Use new definitions. * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions. * alloc.c (verify_string_chars_integrity): Use new definitions. * alloc.c (compact_string_chars): Use new definitions. * alloc.c: Update monster comments. * lrecord.h (lrecord_type): Add some new lrecord types for alloc.c's use. 2001-01-18 Martin Buchholz <martin@xemacs.org> Improve alignment hackery. * lisp.h (ALIGNOF): Better definition for the non-gcc case. (max_align_t): Moved from opaque.h - general purpose. (ALIGN_PTR): Use size_t, not long. * opaque.h (max_align_t): Move to lisp.h. 2001-01-18 Norbert Koch <nk@LF.net> * gui.h: Fix and add prototypes to fix build problems. 2001-01-18 Martin Buchholz <martin@xemacs.org> temacs is going away, so `dump-temacs' is now a bad name. * .dbxrc (dump-temacs): Rename to `dmp'. * .gdbinit (dump-temacs): Rename to `dmp'. 2001-01-17 Andy Piper <andy@xemacs.org> * glyphs.c (print_image_instance): comment to make martin happy. * glyphs-x.c (x_redisplay_widget): update faces after a frame change. * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with activation. (mswindows_tab_control_redisplay): warning suppression. * glyphs-widget.c (widget_update): re-write to cope with updated items. (widget_instantiate): use new gui_item functions. (tab_control_update): deleted. (progress_gauge_update): deleted. (image_instantiator_progress_guage): take out update reference. (image_instantiator_tree_view): ditto. (image_instantiator_tab_control): ditto. * gui.c (widget_gui_parse_item_keywords): new function. Do things Right the new way. (gui_item_add_keyval_pair): re-write to cope with descriptors and return whether anything was changed. (update_gui_item_keywords): as it sounds. * gui.h: declare widget_gui_parse_item_keywords. * fns.c (safe_copy_tree): new function taken from Fcopy_tree. (Fcopy_tree): use it. Stops infloop death in bogus instantiators. 2001-01-17 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.41 "Polyhymnia" is released. 2001-01-16 Didier Verna <didier@xemacs.org> * glyphs.c (image_instantiate): don't use fallbacks when instantiating a face's background pixmap by inheritance. 2001-01-14 Mike Sperber <mike@xemacs.org> * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK. Conditionalize accordingly. 2001-01-16 Martin Buchholz <martin@xemacs.org> * dumper.c (pdump_file_get): Fix a compiler warning. 2001-01-15 Martin Buchholz <martin@xemacs.org> Make Purify happy when pdumping. * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by iniitalizing all bits of new lisp object memory. * symbols.c (Fmake_local_variable): Likewise. * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise. * symbols.c (Fdefvaralias): Likewise. * mule-charset.c (vars_of_mule_charset): Likewise. 2001-01-15 Martin Buchholz <martin@xemacs.org> Add the `-nd' flag when running pre-dump operations under the debugger. * .dbxrc (run-temacs): Add `-nd'. * .dbxrc (update-elc): Likewise. * .dbxrc (dump-temacs): Likewise. * .gdbinit (run-temacs): Likewise. * .gdbinit (check-temacs): Likewise. * .gdbinit (update-elc): Likewise. * .gdbinit (dump-temacs): Likewise. 2001-01-14 Martin Buchholz <martin@xemacs.org> Allow building 64-bit executables on AIX with GNU malloc, e.g. export OBJECT_MODE=64 configure --pdump --use-union-type=no * m/ibmrs6000.h (DATA_START): Define for 64-bit world. * gmalloc.c (__default_morecore): Remove pre-ANSI cruft. * miscplay.c (sndcnv8U_2mono): Avoid two uses of `++' in the same expression. Suppresses a GCC warning. 2001-01-13 Martin Buchholz <martin@xemacs.org> Make sure future compilers don't miscompile alloc.c. * alloc.c: (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant. (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant. 2001-01-12 Martin Buchholz <martin@xemacs.org> * dumper.c: A little post-pdump-rename comment fixup. 2001-01-09 Jerry James <james@eecs.ku.edu> * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use. 2001-01-13 Martin Buchholz <martin@xemacs.org> * *.[ch]: Globally rename symbols using the following `pdump-rename' script: #!/bin/sh replace_symbol () { (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g' } replace_symbol pdump_wire_lists pdump_weak_object_chains replace_symbol pdump_wire_list dump_add_weak_object_chain replace_symbol pdump_wires pdump_root_objects replace_symbol pdump_wire dump_add_root_object replace_symbol pdump_dump_wired pdump_dump_from_root_objects replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs replace_symbol dumpstructinfos pdump_root_struct_ptrs replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr replace_symbol dumpstructinfo pdump_root_struct_ptr replace_symbol dumpstruct dump_add_root_struct_ptr replace_symbol dumpopaque dump_add_opaque replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr replace_symbol dumpopaqueinfos pdump_opaques replace_symbol dumpopaqueinfo pdump_opaque replace_symbol nb_structdump nb_root_struct_ptrs replace_symbol nb_opaquedump nb_opaques replace_symbol align_table pdump_align_table replace_symbol dump_header pdump_header replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE 2001-01-12 Martin Buchholz <martin@xemacs.org> * s/aix4.h: Keep the C for AIX compiler from overaggressively optimizing bytecount_to_charcount(). 2001-01-06 Golubev I. N. <gin@mo.msk.ru> * config.h.in: (HAVE_DLFCN_H): Removed. * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H. 2001-01-06 Martin Buchholz <martin@xemacs.org> Portable dumper maintainability improvements. * alloc.c (staticpro): * alloc.c (staticpro_nodump): * alloc.c (garbage_collect_1): * alloc.c (reinit_alloc_once_early): * alloc.c (init_alloc_once_early): * alloc.c: Move dumper functions to alloc.c. * dumper.c (pdump_backtrace): * dumper.c (pdump_dump_structs): * dumper.c (pdump_dump_opaques): * dumper.c (pdump_dump_rtables): * dumper.c (pdump_dump_wired): * dumper.c (pdump): * dumper.c (pdump_load_check): * dumper.c (pdump_load_finish): * dumper.c (pdump_file_unmap): * dumper.c (pdump_file_get): * dumper.c (pdump_resource_free): * dumper.c (pdump_resource_get): * dumper.c (pdump_file_free): * dumper.c (pdump_file_try): * dumper.c (pdump_load): Remove fixed size limits on staticpro(), staticpro_nodump(), dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays. Remove custom code for dumping lrecord_implementations_table - use dumpopaque instead. Remove (most of the) custom code for dumping staticpros - dump it like any other dynarr. * alloc.h: Removed. No longer useful, since dumper now more self-contained. * dumper.c: Moved functions from alloc.c. * alloc.c (dumpstruct): Moved to dumper.c. * alloc.c (dumpopaque): Likewise. * alloc.c (pdump_wire): Likewise. * alloc.c (pdump_wire_list): Likewise. * lisp.h (Dynarr_sizeof): New. * lisp.h (Dynarr_begin): New. Very slightly C++oid. * lisp.h (Dynarr_end): New. Very slightly C++oid. * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros. * lisp.h (dumpstruct): Define to nothing if not PDUMPing. * lisp.h (dumpopaque): ditto. * lisp.h (pdump_wire): ditto. * lisp.h (pdump_wire_list): ditto. 2001-01-09 Martin Buchholz <martin@xemacs.org> * make-src-depend (PrintPatternDeps): Use `sort' to make output independent of perl version. 2001-01-08 Martin Buchholz <martin@xemacs.org> Port to Netbsd 1.5. * unexelf.c: Remove (never used) bogus Netbsd-specific cruft. * s/netbsd.c: Use unexelf.o if __ELF__ is defined. 2001-01-03 Didier Verna <didier@xemacs.org> * event-stream.c (emacs_handle_focus_change_preliminary): ensure that `focus_frame' is alive before thinking of calling `redisplay_redraw_cursor' on it. 2001-01-08 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.40 is released. 2001-01-06 Golubev I. N. <gin@mo.msk.ru> * regex.c: Replace PREFETCH with REGEX_PREFETCH. 2001-01-06 Martin Buchholz <martin@xemacs.org> * alloc.c (dbg_valmask): Make const. * alloc.c (dbg_typemask): Make const. * alloc.c (dbg_USE_UNION_TYPE): Make const. * alloc.c (dbg_valbits): Make const. * alloc.c (dbg_gctypebits): Make const. 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org> * redisplay-x.c (x_bevel_area): redisplay.h (struct rune): Typo fixes in comments. 2001-01-05 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_redisplay_widget): use size changed for offset adjustment. * menubar.c (menubar_visible_p_changed): don't mark frame changed. 2001-01-05 Martin Buchholz <martin@xemacs.org> * alloc.c (pure-bytes-used): Remove unused mendacious variable. * mule-ccl.c (stack_idx_of_map_multiple): Non const global data must not be initialized! Found by MIYASHITA Hisashi. 2001-01-02 Andy Piper <andy@xemacs.org> * frame.c (change_frame_size): make sure frame size is always marked as changed. * glyphs.c (image_instance_layout): minor code reuse. * window.c (Fcurrent_window_configuration): revert previous change. 2001-01-02 Martin Buchholz <martin@xemacs.org> * glyphs.h: * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes. 2000-12-31 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame when widget gets unmapped. * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new function. Make sure widgets losing focus don't just drop it. (handle_focus_event_1): record the widget with focus. 2000-12-31 Andy Piper <andy@xemacs.org> * window.c (allocate_window): use make_image_instance_cache_hash_table. (make_dummy_parent): ditto. (Fset_window_configuration): ditto. * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions. * glyphs.c (process_image_string_instantiator): use INSTANTIATOR_TYPE. (get_image_instantiator_governing_domain): ditto. (normalize_image_instantiator): ditto. (instantiate_image_instantiator): ditto. (make_image_instance_1): ditto. (image_instantiate): ditto. Key on glyph *and* instantiator type. (instantiator_eq_equal): new function for use with instance hash tables. (instantiator_eq_hash): ditto. (make_image_instance_cache_hash_table): create a suitable hash table for storing image instances. * elhash.h (hash_table_weakness): new internal weakness type HASH_TABLE_KEY_CAR_VALUE_WEAK. declare new functions. * elhash.c (finish_marking_weak_hash_tables): introduce yet another weakness type for glyphs. (make_standard_lisp_hash_table): new function split out from make_general_lisp_hash_table. (make_lisp_hash_table): call make_standard_lisp_hash_table. (hash_table_instantiate): ditto. (Fmake_hash_table): ditto. 2000-12-31 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.39 is released. 2000-12-29 Andy Piper <andy@xemacs.org> * menubar.c (menubar_visible_p_changed): signal the frame changed. * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if the frame has changed so that we pick up geometry changes such as menubar visibility. 2000-12-28 Andy Piper <andy@xemacs.org> * lastfile.c (my_ebss): make a char array so we can pad the bss. Fixes cygwin unexec. * unexcw.c: invert BROKEN_GDB to NO_DEBUG. 2000-12-26 Andy Piper <andy@xemacs.org> * event-Xt.c (emacs_Xt_force_event_pending): add some verbose comments and try and be more precise about a non-/SIGIO world. (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non SIGIO. * redisplay-output.c (redisplay_normalize_glyph_area): make sure we don't normalize to zero width or height. 2000-12-24 Andy Piper <andy@xemacs.org> * Makefile.in.in (ldflags): add -mwindows when appropriate. 2000-08-18 Golubev I. N. <gin@mo.msk.ru> * s/sco5.h: SCO 5 has pty support. 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org> * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET. input-method-xlib.c contains whole contents of input-method-xfs.c, so we can use input-method-xlib.c's code for USE_XFONTSET using #ifdefs. * input-method-xfs.c: removed. 2000-12-20 Stephen Turnbull <stephen@xemacs.org> * file-coding.h (enum coding_category_type): reorder enumerators to make autodetection safer. Make CODING_CATEGORY_LAST an enumerator (now one greater than largest real coding_category_type enumerator). * file-coding.c (coding_category_symbol, coding_category_by_priority, coding_category_system, fcd_descriptihon_1, decode_coding_category, Fcoding_category_list, Fset_coding_priority_list, Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region, vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST. 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org> * redisplay-output.c (redisplay_clear_top_of_window): Remove static. * redisplay-output.c (redisplay_output_window): Clear top of window when face is changed. * redisplay-x.c (x_redraw_exposed_window): Call redisplay_clear_top_of_window. * redisplay.h: Publish redisplay_clear_top_of_window. 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.c (Fkill_buffer): Map over all devices. * window.c (window_loop): Remove UNSHOW_BUFFER code. (list_windows): New function. (list_all_windows): Ditto. (Freplace_buffer_in_windows): Use them. 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp> * database.c (berkdb_subtype): Recognize new subtype `queue'. (Fopen_database): Use `db_create' instead of `db_open'. (syms_of_database): Initialize Qqueue. 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.c (common_init_complex_vars_of_buffer): Initialize buffer_local_face_property. * buffer.h (struct buffer): New member buffer_local_face_property. * window.c (Fset_window_buffer): Mark window's face as changed when buffer has buffer local face. * window.h (MARK_WINDOW_FACES_CHANGED): New macro. * objects.c (color_after_change): Set buffer_local_face_property when locale of face specifier is buffer. * objects.c (font_after_change): Ditto. * objects.c (face_boolean_after_change): Ditto. * glyphs.c (image_after_change): Ditto. 2000-12-09 Dan Holmsand <dan@eyebee.com> * nt.c (mswindows_fstat): Report file permissions, volume serial number, etc. Code adapted from FSF Emacs 20.7. 2000-12-09 Dan Holmsand <dan@eyebee.com> * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead of stat when we don't have symbolic links, to make sure mswindows_stat is called on mswindows. 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org> * alloca.c: Define malloc to xmalloc only when built with XEmacs. 2000-12-12 Martin Buchholz <martin@xemacs.org> * doprnt.c (emacs_doprnt_1): More printing fixes. Make printing of numbers compatible with libc and FSF Emacs. BUG was: (format "%6.3f" 1.2) ==>"1.200000" Use the system printf to do most of the hard work of formatting, instead of doprnt_1(). Calculate memory to allocate for format string. Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14) (doprnt_1): Cleaner code and documentation. 2000-12-01 Jerry James <james@eecs.ukans.edu> * Makefile.in.in: Use the loop variable to install headers. 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org> * window.c (Fsplit_window): Don't invalidate face cache. 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org> * minibuf.c (Fall_completions): Undo the previous change which removed checking elements start with space. 2000-12-06 Stephen Turnbull <stephen@xemacs.org> * mule-canna.c: Didier suppression. 2000-12-06 Stephen Turnbull <stephen@xemacs.org> * mule-canna.c: rename static unsigned char buf[] to key_buffer (warning suppression). Add English comment translations. 2000-12-05 Martin Buchholz <martin@xemacs.org> * unexelfsgi.c (unexec): Better test for mmap failure. 2000-12-05 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.38 is released. 2000-12-05 Martin Buchholz <martin@xemacs.org> * redisplay.c (bar-cursor): Make a user variable. * symsinit.h: Add init_postgresql_from_environment. 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org> * regex.c: Convert to clean C. 2000-12-05 Dan Holmsand <dan@eyebee.com> * realpath.c: Don't #include sysfile.h. Revert to duplicating PATH_MAX initialization. (sys_readlink): renamed to system_readlink to avoid conflict with the other sys_readlink. 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp> * dumper.c (pdump_file_get): Correct uses of pdump_fd. 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org> * postgresql.c (init_postgresql_from_environment): new function. (vars_of_postgresql): Move code initializing Lisp variables out and into init_postgresql_from_environment. emacs.c (main_1): Call init_postgresql_from_environment if and only if running a dumped XEmacs. 2000-08-31 Dan Holmsand <dan@eyebee.com> * buffer.c: Make find-file-compare-truenames default to true on windows. * realpath.c (win32_abs_start): (cygwin_readlink): (win32_readlink): New functions. (xrealpath): Return really real filenames on windows. * fileio.c (Ffile_truename): Make file-truename work on windows. 2000-11-29 Didier Verna <didier@xemacs.org> * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro. * faces.c (update_face_cachel_data): use it. * faces.c (add_face_cachel): use it. Complete background pixmap frobbing in face cache if `update_face_cachel_data' has not done so. 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org> * search.c (string_match_1): Don't set last_thing_searched when search failed. 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.c: Include casetab.h (common_init_complex_vars_of_buffer): Use new case-table object. * buffer.h: Include casetab.h * buffer.h (MAKE_TRT_TABLE): Use generic char-table. (DOWNCASE_TABLE_OF): Ditto. * bufslots.h: Remove char-tables and add case-table. * casetab.c: Include casetab.h (CASE_TABLE_P): Removed. (mark_case_table): New function. (allocate_case_table): New function. (Fcase_table_p): Use new case-table. (case_table_char): New function. (Fget_case_table): Ditto. (Fput_case_table): Ditto. (Fput_case_table_pair): Ditto. (Fcopy_case_table): Ditto. (Fcurrent_case_table): Return case-table. (Fstandard_case_table): Return case-table. (Fset_case_table): Fix doc-string. (set_case_table): Use case-table (syms_of_casetab): DEFSUBR new functions. (complex_vars_of_casetab): Set up standard case-table. * casetab.h: New file. * editfns.c: Include casetab.h (Fcompare_buffer_substrings): Use case-table. * inline.c: Include casetab.h * lisp.h: Remove bogus extern. * lrecord.h (lrecord_type): Add lrecord_type_case_table. * search.c: Include casetab.h (TRANSLATE_ASCII): Removed. (TRANSLATE): Unconditionally translate character. (looking_at_1): Use case-table. (string_match_1): Ditto. (fast_string_match): Ditto. (search_command): Ditto. (search_buffer): Separate boyer_moore. Check whether boyer_moore is possible. (simple_search): New function. (boyer_moore): Separated from search_buffer. Translate char. 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org> * regex.c (RE_TR_ASCII): Removed. (RE_TRANSLATE): Unconditionally use TRT_TABLE. (PATFETCH): Call PATFETCH_RAW. (PATFETCH_RAW): Fetch Emchar. (PATUNFETCH): Decrement charptr. (GET_BUFFER_SPACE): Rename b to buf_end. (BUF_PUSH): Ditto. (BUF_PUSH_2): Ditto. (BUF_PUSH_3): Ditto. (EXTEND_BUFFER): Ditto. (SET_LIST_BIT): Ditto. (regex_compile): Ditto. Translate non ASCII char. (compile_range): Ditto. (re_search_2): Ditto. (re_match_2_internal): Compare Emchar. (bcmp_translate): Ditto. 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org> * lisp.h (basic char/int typedefs): comment improvement. 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org> * emacs.c (main_1): unconditional pdump unstomping; don't save and unstomp inhibit_site_lisp. Improve comments. 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org> * mule-charset.c (Fcharset_property): improve type checking, comments. 2000-11-28 Andy Piper <andy@xemacs.org> * redisplay-output.c (redisplay_output_subwindow): make sure we do clipped display for windows in the gutter also. (redisplay_display_boxes_in_window_p): change semantics of return codes to be more intuitive. * gutter.h: declare display_boxes_in_gutter_p. * gutter.c (display_boxes_in_gutter_p): new function for redisplay. 2000-11-22 Andy Piper <andy@xemacs.org> * glyphs-x.c (image_instantiator_format_create_glyphs_x): change autodetect domain. 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org> * callproc.c (Fold_call_process_internal): * gpm.c (Freceive_gpm_event): (tty_get_foreign_selection): Might be just warning supression. * fileio.c (Fwrite_region_internal): (Fset_visited_file_modtime): * keymap.c (event_matches_key_specifier_p): Initialize GCPROed variable. * menubar-x.c (command_builder_find_menu_accelerator): Initialize before use. 2000-11-23 Andy Piper <andy@xemacs.org> * unexcw.c (unexec): make the resulting executable executable. 2000-11-21 Martin Buchholz <martin@xemacs.org> * doc.c (get_doc_string): Use size_t, not int, for result of XSTRING_LENGTH. * cmds.c (Fdelete_char): * cmds.c (Fpoint_at_eol): * cmds.c (Fself_insert_command): Use EMACS_INT, not int, for result of XINT. Someday, someone will want to insert more than 2**31 identical characters. * cmds.c (Fdelete_char): * cmds.c (Fdelete_backward_char): * syntax.c (Fforward_word): * syntax.c (Fforward_comment): Make COUNT argument optional, for consistency with forward-char et al. 2000-11-22 Martin Buchholz <martin@xemacs.org> * lisp.h: * print.c (long_to_string): Return a useful value: the pointer at end of data written. * doprnt.c: Use `static const char * const' for constant strings. (union printf_arg): Delete `i', `ui' members. (get_doprnt_args): (emacs_doprnt_1): Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1" Do all printf-ing via the `l' specifier. Use EMACS_INT instead of int. Optimize. 2000-11-20 Didier Verna <didier@xemacs.org> * faces.c (update_face_cachel_data): don't frob the background pixmap when the window is being created. The face is needed but does not exist yet. 2000-11-20 Andy Piper <andy@xemacs.org> * unexcw.c (copy_executable_and_dump_data_section): Only do bss messing with a debug environment. 2000-11-20 Martin Buchholz <martin@xemacs.org> * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype. 2000-11-20 Martin Buchholz <martin@xemacs.org> * casetab.c (Fcase_table_p): Fix compile error and crash. 2000-11-18 Philip Aston <philipa@mail.com> * s/cygwin32.h: Cygwin has SVR4-like pty support. 2000-11-18 Martin Buchholz <martin@xemacs.org> * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'. * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars! 2000-11-17 Martin Buchholz <martin@xemacs.org> * config.h.in: Define HAVE_ELF_H if elf.h exists. * unexelf.c: Use HAVE_ELF_H. * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working. I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it. Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested. Greg Harrington <greg_harrington@hotmail.com> provided a machine for testing. So this is an unexelfsgi.c from a different line of development. 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org> * regex.c (RE_TR_ASCII): New function. (RE_TRANSLATE): Call it. 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.h (TRT_TABLE_OF): Remove assert. (IN_TRT_TABLE_DOMAIN): Removed. 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk> * free-hook.c (log_gcpro): (show_gcprohist): Add support for GCPRO5. 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org> * emacs.c (main_1): Improve -sd error message when --pdump=no. 2000-11-16 Olivier Galibert <galibert@xemacs.org> * symeval.h: Declare flush_all_buffer_local_cache. * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs. (flush_buffer_local_cache): Added. (flush_all_buffer_local_cache): Added. * lrecord.h: Remove unused XD_LO_RESET_NIL. * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL. (pdump_dump_data): Ditto. (pdump_reloc_one): Ditto. (pdump): Remove unused pdump_qnil. Flush buffer local caches before dumping. 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.c: Remove if 0'ed entry. * buffer.h: Rewrite TRT to use char-table. * bufslots.h: Remove mirror tables. * casetab.c: Remove mirror tables. (CASE_TABLE_P): New macro. (Fcase_table_p): Element of a case table is string or char-table. (make_mirror_trt_table): Removed. (set_case_table): Setup char-table from strings for backward compatibility. * dired.c (Fdirectory_files): * dired-msw.c: (mswindows_get_files): * lisp.h: Change prototype of re_pattern_buffer. * regex.c: (RE_TRANSLATE): New macro. (TRANSLATE_P): Ditto. Change translate to type RE_TRANSLATE_TYPE. * regex.h: Define RE_TRANSLATE_TYPE * search.c (TRANSLATE): New macro. (TRANSLATE_ASCII): New macro. Translate table is changed to Lisp_Object. (signal_failure): Inhibit return. 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org> * device-msw.c: * eldap.c: * event-Xt.c: * event-stream.c: * print.c: Do UNGCPRO before return. 2000-11-14 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.37 is released. 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org> * fileio.c (Finsert_file_contents_internal): UNGCPRO before return. Add comments about discarded return value. 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org> * callint.c: * event-stream.c: Fix comments. Remove some #if 0'ed part. 2000-10-27 Andy Piper <andy@xemacs.org> * gutter.c (Fset_default_gutter_position): default left and right gutters to visible. (calculate_gutter_size): calculate resonable heuristic for left and right gutter sizes. (specifier_vars_of_gutter): change left and right gutter sizes to autodetect. (calculate_gutter_size_from_display_lines): new function. (output_gutter): check for resizing on left and right gutters. (clear_gutter): don't special case top and left gutters. (specifier_vars_of_gutter): use new signature for set_specifier_caching. * glyphs-x.c (x_redisplay_widget): spelling fix. * glyphs.c (specifier_vars_of_glyphs): * menubar.c (specifier_vars_of_menubar): * redisplay.c (specifier_vars_of_redisplay): * toolbar.c (specifier_vars_of_toolbar): * window.c (specifier_vars_of_window): * scrollbar.c (specifier_vars_of_scrollbar): (complex_vars_of_scrollbar): use new signature for set_specifier_caching. * specifier.c (set_specifier_caching): include recompute flag. (recompute_one_cached_specifier_in_window): always recompute if flag set. (recompute_one_cached_specifier_in_frame): ditto. * specifier.h (struct specifier_caching): add recompute flag. 2000-10-24 Andy Piper <andy@xemacs.org> * unexcw.c (copy_executable_and_dump_data_section): add new BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb 5.0 happy. 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org> * console-x.h (x_device): New member modifier_release_time. * event-Xt.c (x_handle_sticky_modifiers): Bound interval modifier keys are sticky. * event-stream.c (Vmodifier_keys_sticky_time): New variable. * events.h: extern it. 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org> * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue. 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org> * event-stream.c (execute_command_event): Preserve current_events and the like when event is misc-user-event. Inhibit quit during the call to maybe_echo_keys. 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org> * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a symlink when buffer is killed. (inhibit_clash_detection): New variable. 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org> * console.c (Fset_input_method): Trigger redisplay on tty. 2000-11-07 Martin Buchholz <martin@xemacs.org> * process.c (Fprocess_status): Revert to previous behavior: (process-status "nosuchprocess") ==> nil 2000-11-06 Martin Buchholz <martin@xemacs.org> * mule-charset.h (CHARSET_BY_LEADING_BYTE): Work around another GCC 2.95.2 optimizer bug. 2000-11-02 Martin Buchholz <martin@xemacs.org> * process.c (Fget_process): Use LIST_LOOP_2. (kill_buffer_processes): Use LIST_LOOP_2. * minibuf.c (Fall_completions): Delete old non-functional code for FSF fourth argument. * frame.c (frame_matches_frame_spec): Renamed from `frame_matches_frametype'. Update all callers. (device_matches_device_spec): Renamed from 'device_matches_console_spec'. Update all callers. * doc.c (Fsubstitute_command_keys): Remove buffer overflow crash. Small code cleanups. * casetab.c (check_case_table): Simpler code. * window.c (Freplace_buffer_in_windows): Give this the same WHICH-FRAMES and WHICH-DEVICES parameters (and similar implementation) as Fdelete_windows_on. Update all callers. * alloc.c (Fmake_list): * alloc.c (make_vector): * alloc.c (Fmake_vector): * alloc.c (make_bit_vector): * alloc.c (Fmake_bit_vector): * alloc.c (Fbit_vector): * alloc.c (Fmake_string): * alloc.c (Fpurecopy): * alloc.c (Fmemory_limit): * buffer.c: * buffer.c (Fget_buffer): * buffer.c (Fkill_buffer): * buffer.c (complex_vars_of_buffer): * bytecode.c (Fcompiled_function_stack_depth): * callint.c (Fprefix_numeric_value): * event-stream.c: * event-stream.c (Fread_key_sequence): * casetab.c: * casetab.c (Fcase_table_p): * casetab.c (check_case_table): * casetab.c (Fset_case_table): * casetab.c (Fset_standard_case_table): * chartab.c: * chartab.c (Fchar_table_type): * chartab.c (Freset_char_table): * chartab.c (Fget_char_table): * chartab.c (Fget_range_char_table): * chartab.c (Fput_char_table): * chartab.c (Fmap_char_table): * chartab.c (Fcategory_table_p): * chartab.c (Fcheck_category_at): * chartab.c (Fchar_in_category_p): * chartab.c (Fcategory_table): * chartab.c (Fcopy_category_table): * chartab.c (Fset_category_table): * chartab.c (Fcategory_designator_p): * chartab.c (Fcategory_table_value_p): * cmds.c (Fdelete_char): * cmds.c (Fdelete_backward_char): * cmds.c (Fself_insert_command): * cmds.c (Fself_insert_internal): * console.c (Fvalid_console_type_p): * console.c (Fcdfw_console): * console.c (Fconsole_type): * console.c (Fconsole_name): * console.c (Fconsole_device_list): * console.c (Fconsole_on_window_system_p): * data.c: * data.c (Feq): * data.c (Fold_eq): * data.c (Fsubr_interactive): * data.c (Fchar_to_int): * data.c (Fint_to_char): * data.c (Fsetcar): * data.c (Fsetcdr): * data.c (Fnumber_to_string): * data.c (Fstring_to_number): * data.c (Frem): * database.c (mark_database): * database.c (finalize_database): * database.c (Fdatabase_live_p): * database.c (Fdatabasep): * device-x.c (Fx_get_resource): * device.c (Fdfw_device): * dired.c: * dired.c (Ffile_name_completion): * dired.c (Ffile_name_all_completions): * dired.c (Fuser_name_completion): * dired.c (Fuser_name_completion_1): * dired.c (Fuser_name_all_completions): * doc.c (Fdocumentation): * doc.c (Fdocumentation_property): * doc.c (Fsubstitute_command_keys): * editfns.c: * editfns.c (Fchar_to_string): * editfns.c (Fstring_to_char): * editfns.c (Ftemp_directory): * editfns.c (Finsert_char): * editfns.c (Fbuffer_substring_no_properties): * editfns.c (Fnarrow_to_region): * editfns.c (Fchar_equal): * editfns.c (Fchar_Equal): * editfns.c (Ftranspose_regions): * emacs.c (Fdump_emacs): * eval.c (Fthrow): * eval.c (Fcommand_execute): * eval.c (Fautoload): * eval.c (Fbacktrace): * eval.c (Fbacktrace_frame): * events.c: * events.c (Fcopy_event): * events.c (Fcharacter_to_event): * events.c (Fevent_button): * events.c (Fevent_process): * extents.c: * extents.c (Fnext_extent_change): * extents.c (Fextent_property): * faces.c (Ffacep): * faces.c (Fmake_face): * file-coding.c: * file-coding.c (Fencode_shift_jis_char): * file-coding.c (Fencode_big5_char): * fileio.c (Ffile_name_directory): * fileio.c (Ffile_name_nondirectory): * fileio.c (Ffile_name_as_directory): * fileio.c (Fdirectory_file_name): * fileio.c (Ffile_truename): * fileio.c (Fsubstitute_in_file_name): * fileio.c (Ffile_modes): * fileio.c (Fset_file_modes): * fileio.c (Fset_default_file_modes): * fileio.c (Fverify_visited_file_modtime): * floatfns.c (Facos): * floatfns.c (Fasin): * floatfns.c (Fatan): * floatfns.c (Fcos): * floatfns.c (Fsin): * floatfns.c (Ftan): * floatfns.c (Fbessel_j0): * floatfns.c (Fbessel_j1): * floatfns.c (Fbessel_jn): * floatfns.c (Fbessel_y0): * floatfns.c (Fbessel_y1): * floatfns.c (Fbessel_yn): * floatfns.c (Ferf): * floatfns.c (Ferfc): * floatfns.c (Flog_gamma): * floatfns.c (Fexp): * floatfns.c (Fexpt): * floatfns.c (Flog): * floatfns.c (Flog10): * floatfns.c (Fsqrt): * floatfns.c (Fcube_root): * floatfns.c (Facosh): * floatfns.c (Fasinh): * floatfns.c (Fatanh): * floatfns.c (Fcosh): * floatfns.c (Fsinh): * floatfns.c (Ftanh): * floatfns.c (Fabs): * floatfns.c (Ffloat): * floatfns.c (Flogb): * floatfns.c (Fceiling): * floatfns.c (Ffloor): * floatfns.c (Fround): * floatfns.c (Ftruncate): * floatfns.c (Ffceiling): * floatfns.c (Fffloor): * floatfns.c (Ffround): * floatfns.c (Fftruncate): * fns.c (Fstring_equal): * fns.c (Fstring_lessp): * fns.c (concat2): * fns.c (concat3): * fns.c (vconcat2): * fns.c (vconcat3): * fns.c (Fsubstring): * fns.c (Fassoc): * fns.c (Fold_assoc): * fns.c (assoc_no_quit): * fns.c (Fassq): * fns.c (Fold_assq): * fns.c (assq_no_quit): * fns.c (Frassoc): * fns.c (Fold_rassoc): * fns.c (Frassq): * fns.c (Fold_rassq): * fns.c (rassq_no_quit): * fns.c (Fremassoc): * fns.c (remassoc_no_quit): * fns.c (Fremassq): * fns.c (remassq_no_quit): * fns.c (Fremrassoc): * fns.c (Fremrassq): * fns.c (remrassq_no_quit): * fns.c (Fsort): * fns.c (Fplist_get): * fns.c (Fplist_put): * fns.c (Fplist_remprop): * fns.c (Fplist_member): * fns.c (Flax_plist_get): * fns.c (Flax_plist_put): * fns.c (Flax_plist_remprop): * fns.c (Flax_plist_member): * fns.c (Fequal): * fns.c (Fold_equal): * fns.c (Frequire): * fns.c (Fbase64_encode_region): * fns.c (Fbase64_encode_string): * fns.c (Fbase64_decode_region): * frame.c: * frame.c (frame_matches_frame_spec): * frame.c (device_matches_device_spec): * frame.c (next_frame): * frame.c (previous_frame): * frame.c (Fnext_frame): * frame.c (Fprevious_frame): * frame.c (Fframe_property): * frame.c (Fset_frame_height): * frame.c (Fset_frame_size): * frame.h: * glyphs.c: * glyphs.c (if): * glyphs.c (decode_error_behavior_flag): * glyphs.c (Fmake_image_instance): * indent.c (Findent_to): * intl.c (Fignore_defer_gettext): * keymap.c (Fkeymapp): * keymap.c (Flookup_key): * lread.c: * lread.c (Fload_internal): * lread.c (Feval_buffer): * lread.c (Feval_region): * macros.c (Fexecute_kbd_macro): * marker.c (set_marker_internal): * marker.c (Fset_marker): * marker.c (set_marker_restricted): * marker.c (Fcopy_marker): * marker.c (noseeum_copy_marker): * menubar.c: * menubar.c (Fpopup_menu): * minibuf.c: * mule-charset.c (Fcharset_name): * mule-charset.c (Fchar_charset): * mule-charset.c (Fchar_octet): * mule-charset.c (Fsplit_char): * mule-wnnfns.c (Fwnn_open): * mule-wnnfns.c (Fwnn_dict_comment): * mule-wnnfns.c (Fwnn_quit_henkan): * mule-wnnfns.c (Fwnn_word_toroku): * mule-wnnfns.c (Fwnn_word_sakujo): * mule-wnnfns.c (Fwnn_word_use): * mule-wnnfns.c (Fwnn_hindo_set): * objects.c: * objects.c (Fmake_color_instance): * objects.c (Fmake_font_instance): * print.c (Fwrite_char): * process.c: * process.c (mark_process): * process.c (print_process): * process.c (get_process_from_usid): * process.c (Fprocessp): * process.c (Fprocess_live_p): * process.c (Fget_process): * process.c (Fget_buffer_process): * process.c (get_process): * process.c (Fprocess_id): * process.c (Fprocess_name): * process.c (Fprocess_command): * process.c (init_process_io_handles): * process.c (start_process_unwind): * process.c (Fstart_process_internal): * process.c (Fopen_multicast_group_internal): * process.c (Fset_process_window_size): * process.c (read_process_output): * process.c (send_process): * process.c (Fprocess_tty_name): * process.c (Fset_process_buffer): * process.c (Fprocess_buffer): * process.c (Fprocess_mark): * process.c (set_process_filter): * process.c (Fset_process_filter): * process.c (Fprocess_filter): * process.c (Fprocess_send_region): * process.c (Fprocess_send_string): * process.c (exec_sentinel): * process.c (Fset_process_sentinel): * process.c (Fprocess_sentinel): * process.c (status_notify): * process.c (Fprocess_status): * process.c (Fprocess_exit_status): * process.c (process_send_signal): * process.c (Fprocess_send_eof): * process.c (deactivate_process): * process.c (remove_process): * process.c (Fdelete_process): * process.c (kill_buffer_processes): * process.c (Fprocess_kill_without_query): * process.c (Fprocess_kill_without_query_p): * rangetab.c: * rangetab.c (Fget_range_table): * rangetab.c (Fput_range_table): * rangetab.c (Fremove_range_table): * rangetab.c (Fclear_range_table): * search.c: * search.c (Fskip_chars_forward): * search.c (Fskip_chars_backward): * search.c (Fskip_syntax_forward): * search.c (Fskip_syntax_backward): * search.c (search_command): * search.c (Freplace_match): * search.c (Fregexp_quote): * select.c (Fown_selection_internal): * select.c (Fselection_owner_p): * select.c (Fselection_exists_p): * select.c (Fget_selection_internal): * specifier.c: * symbols.c: * symbols.c (Fintern): * symbols.c (Fintern_soft): * symbols.c (Funintern): * symbols.c (Fapropos_internal): * symbols.c (Fset_default): * syntax.c: * syntax.c (Fsyntax_table_p): * syntax.c (Fcopy_syntax_table): * syntax.c (Fset_syntax_table): * syntax.c (Fchar_syntax): * syntax.c (syntax_match): * syntax.c (Fmatching_paren): * syntax.c (Fforward_word): * syntax.c (scan_lists): * syntax.c (Fscan_lists): * syntax.c (Fscan_sexps): * syntax.c (Fparse_partial_sexp): * toolbar.c (Fcheck_toolbar_button_syntax): * tooltalk.doc: * window.c: * window.c (Fwindowp): * window.c (Fwindow_live_p): * window.c (Fwindow_point): * window.c (Fdelete_window): * window.c (Fnext_window): * window.c (Fprevious_window): * window.c (Fother_window): * window.c (window_loop): * window.c (Fget_lru_window): * window.c (Fsplit_window): * window.c (Fenlarge_window): * window.c (Fenlarge_window_pixels): * window.c (Fshrink_window): * window.c (Fshrink_window_pixels): * window.c (change_window_height): * window.c (Fwindow_configuration_p): * window.c (Fcurrent_window_configuration): * window.h: * casefiddle.c (casify_object): * casefiddle.c (Fupcase): * casefiddle.c (Fdowncase): * casefiddle.c (Fcapitalize): * casefiddle.c (Fupcase_initials): * casefiddle.c (casify_region_internal): * casefiddle.c (casify_region): * casefiddle.c (Fupcase_region): * casefiddle.c (Fdowncase_region): * casefiddle.c (Fcapitalize_region): * casefiddle.c (Fupcase_initials_region): * casefiddle.c (Fupcase_word): * casefiddle.c (Fdowncase_word): * casefiddle.c (Fcapitalize_word): Docstring arglist/Texinfo fixes. See man/ChangeLog for details. Replace 0 with '\0' when working with bytes. Replace initial "(" with "\(" in docstrings. 2000-11-01 Martin Buchholz <martin@xemacs.org> * config.h.in: Handle alloca with Compaq C on Alpha Linux. * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux. 2000-10-31 Martin Buchholz <martin@xemacs.org> * eldap.c (print_ldap): 64-bit cleaner. Fixes warning. 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org> * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10) correctly. 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org> * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el. (inhibit_auto_save_session): New variable. (vars_of_fileio): Declare and initialize them. * fileio.c (Fdo_auto_save): Don't create session file if Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil. 2000-10-31 Martin Buchholz <martin@xemacs.org> * sgiplay.c (play_internal): C++ compilability. * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'. * callproc.c (Fold_call_process_internal): Remove unused vars `env', `first'. * scrollbar.c (update_scrollbar_instance): #### unused var `current_window'. * redisplay-tty.c: Put currently unused vars insert_mode_on, etc. within #ifdef NOT_YET. * emacs.c: #### unused vars `initial_argc', `initial_argv'. * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'. * specifier.c (specifier_instance): #### unused var `tag'. Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion. 2000-10-27 Martin Buchholz <martin@xemacs.org> * fns.c (Fbutlast): * fns.c (list_sort): * fns.c (Ffillarray): * fns.c (bytecode_nconc2): * fns.c (Fnconc): * fns.c (mapcar1): * fns.c (Fmapconcat): Be pedantically 64-bit correct. For the time when someone will want to have a list with length > 2**32. * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6): Work around MIPSpro compiler bug. * process-unix.c (unix_kill_child_process): Add snarky comment. * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `==' * config.h.in: Oops, _getpt ==> _getpty 2000-10-26 Martin Buchholz <martin@xemacs.org> * config.h.in: * regex.c: Use void*, not char*, as return type of alloca(). * alloc.c (free_marker): Side effect inside assert expression! 2000-10-16 MIYASHITA Hisashi <himi@m17n.org> * mule-charset.c (Fset_charset_ccl_program): To check if the given ccl program is valid, use setup_ccl_program() instead of CHECK_VECTOR(). (Fmake_charset): Likewise. 2000-10-20 Golubev I. N. <gin@mo.msk.ru> * faces.c (get_extent_fragment_face_cache_index): Fix cachel.merged_faces memory leak. 2000-10-14 MIYASHITA Hisashi <himi@m17n.org> * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>: Reset MSB of octets obtained by DECODE_SJIS because of the incompatibility with Emacs. (ccl_driver)<CCL_ENCODE_SJIS>: Set MSB of octets before passing them to ENCODE_SJIS because of the incompatibility with Emacs. 2000-10-18 Daiki Ueno <ueno@unixuser.org> * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish. (DECLARE_LRECORD): Undo the last change. (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff. 2000-10-17 Daiki Ueno <ueno@unixuser.org> * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect the implementation to lrecord_implementations_table. 2000-10-14 Daiki Ueno <ueno@unixuser.org> * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the initial value of `lrecord_type_##c_name' and `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier. (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro. [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro. [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it. [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it. 2000-10-17 Martin Buchholz <martin@xemacs.org> * miscplay.c (sndcnv8S_2mono): (sndcnv2monounsigned): (sndcnvULaw_2linear): (sndcnv16swap): Remove implementation-defined behavior. 2000-10-12 Martin Buchholz <martin@xemacs.org> * input-method-xlib.c: Warning suppression. 2000-10-05 MIYASHITA Hisashi <himi@m17n.org> * mule-ccl.c: Sync up with Emacs 21.0.90. (ccl_driver)<CCL_TranslateCharacter>: Disabled. Do nothing. (ccl_driver)<CCL_TranslateCharacterConstTbl>: Likewise. (ccl_driver[WriteMultibyteChar2]): Bug fix. Use MAX_LEADING_BYTE_OFFICIAL_2 instead of MIN_LEADING_BYTE_OFFICIAL_2 to check whether the leading char belongs to official 2-dimensional charset. (CCL_WRITE_CHAR): When CCL_MODE_ENCODING, write the given character as is. Otherwise, if it is a multibyte char, convert it by non_ascii_set_charptr_emchar, then write it. (CCL_WRITE_STRING): Likewise. (ccl_get_compiled_code): New function. (setup_ccl_program): When ccl_prog is invalid, return -1. (Fregister_code_conversion_map): New function. (syms_of_mule_ccl): defsubr Fregister_code_conversion_map. * mule-ccl.h: Sync up with Emacs 21.0.90. (Fregister_ccl_program): export it. * redisplay-msw.c (separate_textual_runs): If ccl program is not valid, don't do ccl conversion. * redisplay-x.c (separate_textual_runs): Ditto. * file-coding.c (Fmake_coding_system): When type is ccl and value is vector, register it with a proper symbol. And checks whether the given ccl program is valid. (mule_decode): When calling ccl_driver, if src indicates NULL pointer, set an empty string instead. (mule_encode): Likewise. 2000-10-11 Martin Buchholz <martin@xemacs.org> The following large batch of changes gets us back to a state of C++ compilability. Extbyte is now a char, which means that Extbyte * and Bufbyte * cannot be freely interchanged - a win! * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness. * sound.c (Fplay_sound): Type correctness. * select-x.c (hack_motif_clipboard_selection): Type correctness. (x_get_window_property): Type correctness. (receive_incremental_selection): unsigned char ==> Extbyte (selection_data_to_lisp_data): unsigned char ==> Extbyte (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte (Fx_store_cutbuffer_internal): Type correctness. * process-unix.c (try_to_initialize_subtty): Type correctness. * objects-x.c (x_print_color_instance): Type correctness. (x_print_font_instance): Type correctness. (x_list_fonts): SExtbyte ==> Extbyte. (valid_x_font_name_p): SExtbyte ==> Extbyte. (x_find_charset_font): SExtbyte ==> Extbyte. Use TO_INTERNAL_FORMAT. build_string ==> make_string. (truename_via_XListFonts): SExtbyte ==> Extbyte. (x_font_instance_properties): Use TO_INTERNAL_FORMAT. Use bufbyte_strcmp. * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast. (BYTE_ASCII_P): Use bit ops for char-signedness safety. (BYTE_C0_P): Use bit ops for char-signedness safety. (BYTE_C1_P): Use bit ops for char-signedness safety. (CHARSET_BY_LEADING_BYTE): (CHARSET_BY_ATTRIBUTES): Always use inline function. Use type_checking_assert. Hide chlook. * mule-charset.c (non_ascii_charptr_copy_char): Modify to work with both ASCII and non-ASCII characters. Improve docs and variable names. Replace over-clever fall-through switch with a simple loop. (Lstream_get_emchar_1): Replace over-clever fall-through switch with a simple loop. * menubar-x.c (menu_item_descriptor_to_widget_value_1): Warning suppression. * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on the return value of Lstream_getc, which could be EOF as well. * lstream.c (Lstream_raw_read): Now returns ssize_t, not int. * lisp.h: Make Extbyte a char, not unsigned char, so that external APIs can be used on Extbytes without casts. Risky! (SExtbyte): Remove. (UExtbyte): Remove. * input-method-xlib.c (XIM_init_device): Use Xlib.h instead of IntrinsicP.h. Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6, which will break in X11R7. Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE, to call XRegisterIMInstantiateCallback with correct types. * gui-x.c (button_item_to_widget_value): Type correctness. * glyphs.c (bitmap_to_lisp_data): Type correctness. * glyphs-x.c (pixmap_from_xbm_inline): Type correctness. (xbm_instantiate_1): Type correctness. (BUILD_GLYPH_INST): Type correctness. * fileio.c (Fsubstitute_in_file_name): Type correctness. * file-coding.c: (decode_coding_sjis): (decode_coding_big5): (decode_coding_ucs4): (decode_coding_utf8): (decode_coding_iso2022): (decode_coding_no_conversion): Make all decoding functions take an Extbyte * arg. (encode_coding_sjis): (encode_coding_big5): (encode_coding_ucs4): (encode_coding_utf8): (encode_coding_iso2022): (encode_coding_no_conversion): Make all encoding functions take a Bufbyte * arg. Use size_t instead of unsigned int for memory sizes. Only cast to unsigned char whenever dereferencing Extbyte *. * doc.c (unparesseuxify_doc_string): Type correctness. * console-x.c (split_up_display_spec): Rewrite without using details of internal string representation. (x_semi_canonicalize_device_connection): Type correctness. * config.h.in: (HAVE_XREGISTERIMINSTANTIATECALLBACK): New. (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New. (HAVE_XFREE386): Removed. * buffer.h (DEC_CHARPTR): `const' correctness. (bufbyte_strcmp): New. (bufbyte_memcmp): New. * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte * buffer.h (XCHAR_OR_CHAR_INT): Always use inline function. Remove redundant type checking assert() - XINT will abort quite nicely. 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org> * search.c (Freplace_match): Set newtext to an empty string. 2000-10-10 Martin Buchholz <martin@xemacs.org> * s/decosf1-3.h: Remove #include of stropts.h * s/ptx.h: Remove #include of stropts.h * s/usg5-4.h: Remove #include of stropts.h * sysproc.h: * config.h.in: Use stropts.h, not sys/stropts.h. Use strtio.h, not sys/strtio.h. 2000-10-04 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.36 is released. 2000-09-21 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_redisplay_widget): make sure non-structural changes still involve copying the widget tree. (update_widget_face): make sure a change is register in the widget tree. Call update_tab_widget_face appropriately. (update_tab_widget_face): ditto. (x_tab_control_redisplay): make sure non-structural changes still involve copying the widget tree. 2000-08-31 Daiki Ueno <ueno@unixuser.org> * lread.c (locate_file): Check the path element is non-nil. 2000-10-02 Martin Buchholz <martin@xemacs.org> * lisp.h: Warning suppression for SCO compilers. * redisplay-tty.c (reset_tty_modes): Fix crash. E.g. from xemacs running on X: (delete-device (make-device 'tty nil)) 2000-09-27 Martin Buchholz <martin@xemacs.org> Big signal/process handling overhaul. Bugs fixed: M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and M-x comint-kill-subjob should work for both values nil and t of process-connection-type. It was broken on most platforms. Testing on Irix and Cygwin still needed. Other plaforms tested. * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t. * process-unix.c: Signal/Process handling overhaul. (pty_name): make 64 bytes, as `expect' does, for paranoia. (allocate_pty): Use all available modern methods of allocating ptys, falling back to old style BSD allocation as a last resort. Use allegedly more secure Unix98 pty allocation by default. (allocate_pty_the_old_fashioned_way): New. the last resort. (unix_create_process): Push ptem, ldterm, ttcompat where available. Autoconfiscate. (try_to_initialize_subtty): New. (unix_kill_child_process): Proper signal handling for ptys on most platforms, using special knowledge of AIX, BSD, etc... (unix_create_process): Always disconnect_controlling_terminal() for subprocesses, whether using ptys or not. * process.h: Remove old getpt-dependent PTY code. * process.c (Fprocess_send_signal): New, obvious generic function. (decode_signal): New. (Finterrupt_process): (Fkill_process): (Fquit_process): (Fstop_process): (Fcontinue_process): (Fsignal_process): Use decode_signal. (process_send_signal): Many docstring corrections. Allow any signal to be sent to a process object. * config.h.in: Add symbols for big signal/process overhaul. * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'. * sysproc.h: Include process-related headers, where available: sys/stropts.h sys/strtio.h pty.h libutil.h * s/irix4-0.h: * s/irix5-0.h: * s/cygwin32.h: * s/gnu.h: * s/linux.h: * s/hpux.h: * s/aix3-1.h: Remove old S&M pty stuff. * console-tty.c (tty_init_console): Use pid_t, not int, for pids. * systty.h: Simplify cpp hackery, improve comments. Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp(). * editfns.c (Fformat_time_string): Be a little more paranoid with the return value of ctime. * fileio.c (check_executable): (check_writable): Use symbolic constants X_OK, W_OK. * console-x.c (split_up_display_spec): Fix a warning. 2000-10-02 Martin Buchholz <martin@xemacs.org> * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH * ntproc.c (sys_spawnve): make_string ==> build_string Small clarity improvements. 2000-09-30 Martin Buchholz <martin@xemacs.org> * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal. * s/windowsnt.h (HAVE_STRCASECMP): Remove. * config.h.in (HAVE_STRCASECMP): Remove. 2000-09-29 Martin Buchholz <martin@xemacs.org> * redisplay-output.c (redisplay_output_pixmap): Cleaner and possibly more 64-bit correct code. 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org> * dumper.c (pdump_load_finish): move restoration of `noninteractive1' to emacs.c (main_1). * emacs.c (main_1): protect LISP-visible command-line flags from pdump_load(). 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org> * Makefile.in.in (versionclean): Use EXE_TARGET and DUMP_TARGET instead of literal program names. 2000-09-20 Martin Buchholz <martin@xemacs.org> * Makefile.in.in: Recent purify's require absolute paths for cache-dir. 2000-09-19 Martin Buchholz <martin@xemacs.org> * *: Spelling mega-patch 2000-09-19 Martin Buchholz <martin@xemacs.org> * fns.c (bad_bad_turtle): Delete "Eek!" comment, since we fixed the bug to which it refers. 2000-09-16 Martin Buchholz <martin@xemacs.org> * alloca.c: Replace REGISTER with register. 2000-09-16 Daiki Ueno <ueno@unixuser.org> * file-coding.c (ucs_to_char): Use countof. 2000-09-16 Martin Buchholz <martin@xemacs.org> * file-coding.c: (ucs_to_char): (complex_vars_of_file_coding): Use countof instead of sizeof. Use CHECK_NATNUM instead of CHECK_INT. * sysdep.c (strcasecmp): Remove. * device-x.c (ascii_strcasecmp): New. * device-x.c (Fx_get_resource): Use ascii_strcasecmp. Avoid using non-standard non-portable strcasecmp. 2000-09-16 Martin Buchholz <martin@xemacs.org> * Makefile.in.in (mostlyclean): remove reference to prefix-args. * font-lock.c: remove reference to emacsfns.h. * search.c: small doc improvement. * event-Xt.c: correct file names in comments. * console-x.h Correct file names in comments. * frame.c: Correct file names in comments. * event-stream.c: remove Energize from comments. 2000-09-15 Martin Buchholz <martin@xemacs.org> * symeval.h (DEFERROR_STANDARD): (DEFERROR): (DEFSYMBOL): (DEFSYMBOL_NO_DUMP): (DEFSYMBOL_MULTIWORD_PREDICATE): (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP): (DEFKEYWORD): The construct &##name is not sensible C. Fixes compilation errors with Unixware native compiler. 2000-09-14 Martin Buchholz <martin@xemacs.org> * frame.c (device_matches_console_spec): no longer takes a `frame' arg (next_frame_internal): Removed. We now just have next_frame. (next_frame): Write a simpler and cleaner one-pass algorithm. Remove called_from_delete_device arg and #ifdefed-out code. (previous_frame): Renamed from prev_frame. Update callers. Cleaned up to have an analogous implementation to next_frame. (other_visible_frames_internal): Remove the called_from_delete_device bogus arg, and hence, remove this function. Just use other_visible_frames(). * window.c (Fnext_window): Prettify docstring. Since next_frame() is guaranteed to return a frame, remove check for nil inserted in previous patch. (Fprevious_window): Prettify docstring. Make code look more like Fnext_window. (window_loop): Respect the `console' arg when iterating through windows. Fixes bug: (get-buffer-window buffer t device) not respecting the `device' arg. This function needs more work, as others have pointed out. * frame.h: Rename prev_frame to previous_frame. device_matches_console_spec no longer takes a `frame' arg. * s/gnu.h: * s/linux.h: * s/hpux.h: Use EMACS_BLOCK_SIGNAL instead of sigblock. From "Golubev I. N." <gin@mo.msk.ru>. * make-src-depend: Fix typo. 2000-09-13 Martin Buchholz <martin@xemacs.org> * window.c (Fnext_window): next_frame() might return nil, not a frame. Fixes this crash: (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))' * frame.c (next_frame_internal): We've passed a frame if we've passed its device. Fixes this crash: (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))' Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame) 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk> * menubar-msw.c (mswindows_translate_menu_or_dialog_item): Allow option to suppress accelerators in menu/dialog items. (populate_or_checksum_helper): Pass dialog title through above. 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk> * event-msw.c (mswindows_key_to_emacs_keysym): Add "pause" key, fix "menu" key. 2000-09-09 Martin Buchholz <martin@xemacs.org> * eval.c (reinit_vars_of_eval): Increase max_lisp_eval_depth to 1000, required for thai-xtis.el to byte-compile under some circumstances. 2000-09-04 Martin Buchholz <martin@xemacs.org> * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513. From Kenichi Handa. 2000-09-01 Martin Buchholz <martin@xemacs.org> * make-src-depend: Make the generated Makefiles smaller. * s/hpux.h (SETUP_SLAVE_PTY): Provide a %d in the format string for the errno argument. * editfns.c (Ftemp_directory): Warning fix. Avoid buffer overrun on very long file name. * input-method-xlib.c (XIM_init_device): 6th parameter of XRegisterIMInstantiateCallback has different pointer types on different OSes, so simply cast to (void *). * unexhp9k800.c: Warning fixes. Fiddly changes. * sysdll.c (dll_open): shl_load will hang hard if passed a NULL filename. Simply return NULL for compatibility with dlopen. * sysdll.c: Conform to XEmacs coding standards. * sysdep.c (get_pty_max_bytes): Support pty input lines longer than 512 bytes on HP-UX 10.20. 2000-08-31 Martin Buchholz <martin@xemacs.org> * tooltalk.c: Add #include <syssignal.h> 2000-08-12 Alexandre Oliva <aoliva@redhat.com> * s/hpux.h: Don't use undefined function sigunblock(). 2000-08-31 Martin Buchholz <martin@xemacs.org> * config.h.in: Add HAVE_BALLOON_HELP. * emacs.c: Use HAVE_BALLOON_HELP. * Makefile.in.in (x_objs): Make Balloon Help conditional on finding shape.h. 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org> * syntax.c (regex_emacs_buffer_p): New variable. * syntax.h (regex_emacs_buffer_p): extern. * search.c (looking_at_1): (string_match_1): (fast_string_match): (search_buffer): Set regex_emacs_buffer_p. * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p when before_dot, at_dot, after_dot. 2000-08-23 Andy Piper <andy@xemacs.org> * gui-x.c (popup_selection_callback): Only set action_occurred when we really have an image instance. * gui-msw.c (mswindows_handle_gui_wm_command): ditto. 2000-08-23 Andy Piper <andy@xemacs.org> * gui-msw.c (mswindows_handle_gui_wm_command): set action_occurred. * gui-x.c (popup_selection_callback): ditto. * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor. (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto. (struct Lisp_Image_Instance): add action_occurred flag. * glyphs.c (redisplay_subwindow): use action_occurred flag. (image_instance_changed): ditto. (reset_frame_subwindow_instance_cache): only unmap windows - do not remove them from the cache also. * glyphs-widget.c (tab_control_update): better debug. (progress_gauge_update): ditto. (layout_update): ditto. (layout_instantiate): ditto. (tab_control_order_only_changed): cope with null pending items. * glyphs-msw.c (mswindows_tab_control_redisplay): add better debug. Force selection of an item when an action occurred. Cope with null pending_items. (mswindows_progress_gauge_redisplay): better debug. * glyphs-x.c (x_tab_control_redisplay): ditto. * redisplay.c (redisplay_frame): reset the frame cache if the frame is garbaged. * window.c (Fset_window_configuration): potentially re-enable frame cache reset. (window_unmap_subwindows): need to finalize instances here since it is only used in mark_window_as_deleted. 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org> * nas.c (SndOpenDataForReading): nas.c (WaveOpenDataForReading): nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN. Somehow escaped from the 2000-08-14 patch. 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org> * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5. 2000-08-21 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_map_subwindow): Minor optimization - only map the window if it is not already displayed. * glyphs-msw.c (mswindows_map_subwindow): only map the window if it is not already displayed. * window.c (Fset_window_configuration): don't reset the frame cache. * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove instances from the frame cache if we are actually finalizing them. (reset_frame_subwindow_instance_cache): reset frame cache only after unmapping everything. (map_subwindow): set displayed flag after mapping. 2000-08-21 Martin Buchholz <martin@xemacs.org> * data.c (indirect_function): Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP. * eval.c (function_argcount): Use original function when signaling errors. 2000-08-18 Andy Piper <andy@xemacs.org> * frame.c (delete_frame_internal): use new free_frame_subwindow_instances name. * glyphs-msw.c (mswindows_tab_control_instantiate): verify index. (add_tab_item): make return type correct. (mswindows_tab_control_instantiate): assert index of tab. (mswindows_tab_control_redisplay): Re-code to use gui_item_equal_sans_selected and gui_item_list_find_selected. * glyphs-widget.c (tab_control_update): Correct comment. * window.c (window_unmap_subwindows): use new unmap_subwindow_instance_cache_mapper. (window_unmap_subwindows_cache_mapper): deleted. (Fset_window_configuration): comparisons should now be with EQ. Preserve the subwindow instance cache across configuration changes. (allocate_window): ditto. (make_dummy_parent): ditto. * glyphs.c (free_frame_subwindow_instances): rename from free_frame_subwindow_instance_cache. finalize all instances rather than just those in the display cache. (finalize_all_subwindow_instances): walk windows unmapping and finalizing subwindows. (unmap_subwindow_instance_cache_mapper): moved from window.c. Allow finalization as well as unmapping. * gui.c (gui_item_list_find_selected): new function. * gui.h (gui_item_list_find_selected): declare. * glyphs-x.c (x_tab_control_redisplay): pick tab explicitly. Re-code to use gui_item_equal_sans_selected and gui_item_list_find_selected. * glyphs-x.h: add lwlib-utils.h * buffer.c (Frecord_buffer): undo previous change. 2000-08-09 Vin Shelton <acs@xemacs.org> * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if possible. Create temporary files more securely. The patch was generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html for details. 2000-08-07 Ben Wing <ben@xemacs.org> * getloadavg.c: remove duplicate (and windows-breaking) includes of fcntl.h and sys/file.h. * nt.c: remove duplicate getloadavg() definition. * sysdll.h (Qdll_filename_encoding): add missing stand-in encodings. 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk> * eval.c (function_argcount): If function needs to be autoloaded actually use the loaded definition. GCPRO function. 2000-08-05 Ben Wing <ben@xemacs.org> * getloadavg.c: add prototype for getloadavg(). remove duplicate WIN32_NATIVE/CYGWIN code (already in the middle of the code). remove duplicate header includes. * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY. * s\cygwin32.h, s\mingw32.h, m\windowsnt.h: don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no useful load average. * alloc.c (reinit_alloc_once_early): removed references to VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free. the lisp vars are the only things referencing the malloc_sbrk_* vars, and they were already if 0'd out. these vars only exist in the older malloc.c, which is basically unused, and they're only for informational purposes. * m\*.h: removed useless VIRT_ADDR_VARIES. * m\powerpc.h: removed stray NO_ARG_ARRAY. 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org> * redisplay-msw.c (mswindows_output_dibitmap): Set foreground color if the image is a mono pixmap. 2000-07-30 Ben Wing <ben@xemacs.org> * Makefile.in.in (release): Remove stray @. * buffer.c (directory_is_current_directory): * dired-msw.c (mswindows_get_files): * dired.c: * dired.c (Fdirectory_files): * dired.c (file_name_completion_stat): * dired.c (Ffile_attributes): [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty preprocessor tricks, to avoid problems on some machines (e.g. SCO). * callproc.c (egetenv): GC docs. * console-msw.h: * console-msw.h (struct mswindows_dialog_id): * lrecord.h (lrecord_type): New object for use with MSW dialogs. * console.h (struct console_methods): New enable/disable frame methods, for proper modal dialogs. * device-msw.c (msprinter_default_printer): Fix to follow proper Mule conventions. * device-msw.c: * device-msw.c (signal_open_printer_error): * device-msw.c (msprinter_init_device): * device-msw.c (ensure_not_printing): * device-msw.c (plist_get_margin): * device-msw.c (Fmsprinter_select_settings): * device-msw.c (finalize_devmode): * device-msw.c (Fmsprinter_settings_despecialize): * device-msw.c (signal_enum_priner_error): * extents.c (decode_extent): * extents.c (decode_map_extents_flags): * extents.c (decode_extent_at_flag): * extents.c (Fextent_at): * extents.c (Fextents_at): * extents.c (symbol_to_glyph_layout): [[[[2]]]] Use structured errors. * dialog-msw.c: * dialog-msw.c (mswindows_is_dialog_msg): * dialog-msw.c (mark_mswindows_dialog_id): * dialog-msw.c (dialog_proc): * dialog-msw.c (handle_question_dialog_box): * dialog-msw.c (syms_of_dialog_mswindows): Define new object to clean up marking; use it as a dialog identifier. Call new delete-dialog-box-hook. * dialog-x.c (dbox_selection_callback): * dialog-x.c (dbox_descriptor_to_widget_value): * dialog-x.c (x_make_dialog_box_internal): Call new delete-dialog-box-hook. Return an id. * dialog.c: * dialog.c (syms_of_dialog): * dialog.c (vars_of_dialog): Define new delete-dialog-box-hook, for use w/modal dialog boxes. * eval.c: * eval.c (signal_call_debugger): when noninteractive, output stack traces on the console instead of in a (never-seen) buffer. * eval.c (signal_type_error): * eval.c (invalid_argument_2): * lisp.h: new funs for use w/structured errors. * event-Xt.c: * event-Xt.c (x_to_emacs_keysym): * event-Xt.c (describe_event): * event-Xt.c (emacs_Xt_event_handler): * event-Xt.c (vars_of_event_Xt): * event-msw.c: * event-msw.c (mswindows_wnd_proc): * event-msw.c (vars_of_event_mswindows): rename {x,mswindows}-debug-events to debug-{}-events for consistency with other debug-foo variables. * event-stream.c: document next-event more clearly. * fileio.c (Ffile_name_directory): * fileio.c (Ffile_name_nondirectory): * fileio.c (Funhandled_file_name_directory): * fileio.c (file_name_as_directory): * fileio.c (Ffile_name_as_directory): * fileio.c (directory_file_name): * fileio.c (Fdirectory_file_name): * fileio.c (Fmake_temp_name): * fileio.c (Ffile_truename): * fileio.c (Fsubstitute_in_file_name): * fileio.c (expand_and_dir_to_file): * fileio.c (barf_or_query_if_file_exists): * fileio.c (check_executable): * fileio.c (Ffile_exists_p): * fileio.c (Ffile_writable_p): * fileio.c (Ffile_directory_p): * fileio.c (Ffile_regular_p): * fileio.c (Ffile_modes): * fileio.c (Ffile_newer_than_file_p): * fileio.c (Fverify_visited_file_modtime): * fileio.c (Fset_visited_file_modtime): * fileio.c (auto_save_1): (1). (2). fix up gcpro's. * frame-msw.c: * frame-msw.c (mswindows_init_frame_1): * frame-msw.c (mswindows_enable_frame): * frame-msw.c (error_frame_unsizable): * frame-msw.c (msprinter_init_frame_1): * frame-msw.c (msprinter_init_frame_3): * frame-msw.c (console_type_create_frame_mswindows): (2). implement new enable/disable frame methods. * frame-x.c: * frame-x.c (x_enable_frame): * frame-x.c (console_type_create_frame_x): implement new enable/disable frame methods. * frame.c: * frame.c (Fdisable_frame): * frame.c (syms_of_frame): * frame.h (struct frame): implement new enable/disable frame methods/functions. * general-slots.h: add initial-focus. * glyphs-msw.c (mswindows_widget_instantiate): comment that initial-focus should be implemented. * glyphs-widget.c: * glyphs-widget.c (check_valid_instantiator): * glyphs-widget.c (check_valid_orientation): * glyphs-widget.c (check_valid_tab_orientation): * glyphs-widget.c (check_valid_justification): * glyphs-widget.c (check_valid_border): * glyphs-widget.c (check_valid_callback): * glyphs-widget.c (check_valid_int_or_function): * glyphs-widget.c (check_valid_string_or_vector): * glyphs-widget.c (check_valid_item_list_1): * glyphs-widget.c (widget_validate): * glyphs-widget.c (combo_box_validate): * glyphs-widget.c (widget_instantiate): * glyphs-widget.c (syms_of_glyphs_widget): * glyphs-widget.c (VALID_WIDGET_KEYWORDS): * glyphs-widget.c (image_instantiator_combo_box): * glyphs-widget.c (image_instantiator_scrollbar): * glyphs-widget.c (image_instantiator_tab_control): * glyphs-widget.c (VALID_LAYOUT_KEYWORDS): (2). support (unimplemented) keyword initial-focus. reindent long macros. * glyphs-x.c (x_redisplay_widget): * glyphs-x.c (x_button_instantiate): * glyphs-x.c (x_button_redisplay): * glyphs-x.c (x_progress_gauge_instantiate): * glyphs-x.c (x_edit_field_instantiate): * glyphs-x.c (x_combo_box_instantiate): * glyphs-x.c (x_tab_control_instantiate): * glyphs-x.c (x_label_instantiate): * gui-x.c: * gui-x.c (button_item_to_widget_value): * gui-x.c (gui_items_to_widget_values_1): * gui-x.c (gui_item_children_to_widget_values): * gui-x.c (gui_items_to_widget_values): * gui-x.h: * menubar-x.c (menu_item_descriptor_to_widget_value_1): add new flag to gui-parsing routines to indicate whether accelerator specs should be supported. * glyphs.c (syms_of_glyphs): use DEFSYMBOL. * glyphs.h (struct Lisp_Image_Instance): * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS): add initial-focus flag. * gui.c: * gui.c (syms_of_gui): * gui.c (vars_of_gui): clean up menu-no-selection-hook. * gui.h: support delete-dialog-box-hook. * lread.c (Fload_internal): * lread.c (locate_file_in_directory_mapper): (1). * lrecord.h: * lrecord.h (struct toolbar_button): * lrecord.h (syms_of_toolbar): document how to create a new object. * menubar-msw.c (mswindows_char_is_accelerator): may be called on frames w/o menus. * menubar.c (vars_of_menubar): clean up :filter docs. * nt.c (readdir): * ntproc.c: (1). * process-nt.c: * process-nt.c (validate_signal_number): * process-nt.c (signal_cannot_launch): * process-nt.c (nt_create_process): * process-nt.c (nt_send_process): * process-nt.c (nt_kill_child_process): * process-nt.c (nt_open_network_stream): * process-nt.c (syms_of_process_nt): (2). delete quote-handling. call new lisp code that does it better. * process-unix.c (connect_to_file_descriptor): * process-unix.c (allocate_pty): * process-unix.c (unix_send_process): * process-unix.c (unix_kill_child_process): * process-unix.c (unix_open_network_stream): * process-unix.c (unix_open_multicast_group): (1). (2). * process.c: * process.c (Fstart_process_internal): (2). need to canonicalize process path even if absolute. * select-msw.c (symbol_to_ms_cf): * select-msw.c (ms_cf_to_symbol): * select-msw.c (cf_is_autofreed): * select-msw.c (mswindows_destroy_selection): * select.c: * select.c (syms_of_select): * select.h: support dibv5, fix bugs. (from Mike Alexander) * select.c (Fget_selection_internal): * select.c (select_convert_out): * sysdep.c: * sysdep.c (xemacs_stat): renamed. * sysdep.c (mkdir): * sysdep.c (rmdir): but keep original stat() here because we provide encapsulation around these funs. * sysfile.h: * sysfile.h (fstat): remove stat garbage. * syswindows.h: fix X/MSW conflict. don't include tchar.h. it's inappropriate because it makes compile-time distinctions when we want runtime distinctions. (we provide our own tchar replacements) * toolbar.c: use default object printer for toolbar-button. * unexcw.c: make sure we don't encapsulate. * window.c (vars_of_window): emphasize that temp-buffer-show-hook is obsolete. 2000-08-05 Martin Buchholz <martin@xemacs.org> * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args. (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg. * events.c (Fevent_timestamp_lessp): Not 64-bit clean. Use EMACS_INT, not int. 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu> * lrecord.h (lrecord_types): Changed lrecord_type_count to an unsigned int and changed the last enum to lrecord_type_last_built_in_type. (lrecord_implementations_table): changed prototype to know how long the array is supposed to be. (lrecord_type_count): new unsigned int to keep track of the current number of lisp lrecord types. (DEFINE_EXTERNAL_LRECORD): (DECLARE_EXTERNAL_LRECORD): Added these two for external dynamic-modules to declare new lisp types. They are the same as the non-EXTERNAL forms, but declare an lrecord_type unsigned int for each new type, and increment lrecord_type_count by 1. * alloc.c (lrecord_implementations_table): Changed to reference lrecord_type_last_built_in_type for the size of the array. Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h. 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org> * glyphs.h (check_valid_item_list): Renamed from check_valid_item_list_1. 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net> * select.c (Qselect_coerce): New. * select.c (Vselection_coercion_alist): New. * select.c (syms_of_select): Declare. * select.c (get-selection-internal): Use it. Use the new select-coerce functionality. * select.c (select_coerce): New. * select.h (select_coerce): Declare. New function to coerce one type of data into another. 2000-08-03 Martin Buchholz <martin@xemacs.org> * callproc.c (Fcall_process_internal): (Fcall_process_internal): * process-unix.c (unix_create_process): Save and restore the value of errno, so that error messages are accurate. 2000-08-01 Martin Buchholz <martin@xemacs.org> * elhash.c (print_hash_table): Fix printing of hash tables to also use `key-and-value' instead of `t'. Prettify docstrings and indentation. 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org> * window.c (Fwindow_pixel_edges): Subtract frame border and gutter size. 2000-07-31 Andy Piper <andy@xemacs.org> * buffer.c (Frecord_buffer): make absolutely sure that redisplay will acknowledge the change. * glyphs.h: declare tab_control_order_only_changed. * glyphs-x.c (x_tab_control_redisplay): use tab_control_order_only_changed. * glyphs-widget.c (tab_control_order_only_changed): new function. * glyphs-msw.c (mswindows_tab_control_redisplay): use tab_control_order_only_changed. * gui.c (gui_item_equal_sans_selected): new function. (gui_item_equal): use it. * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate :properties in favor of :items.. * glyphs-widget.c (check_valid_item_list): rename from check_valid_item_list_1. (check_valid_item_list_1): renamed. (combo_box_validate): deprecate :properties in favor of :items. (widget_instantiate): ditto. (tab_control_update): ditto. (image_instantiator_combo_box): ditto. (image_instantiator_tree_view): ditto. (image_instantiator_tab_control): ditto. (layout_post_instantiate): remove dead code. * print.c (debug_print_no_newline): only write to debugger if in WIN32_NATIVE. * elhash.c (Fmake_hash_table): update doc string. * event-msw.c (mswindows_wnd_proc): don't allow processing of messages whilst in GC. This at least stops XEmacs crashing but has the potential for wierd behaviour. 2000-07-31 Martin Buchholz <martin@xemacs.org> * config.h.in: Make existence of s&m files optional. * s/bsd386.h: Remove HAVE_GETLOADAVG. * s/freebsd.h: Remove HAVE_GETLOADAVG. * s/gnu.h: Remove HAVE_GETLOADAVG. * s/netbsd.h: Remove HAVE_GETLOADAVG. * s/sol2.h: Remove HAVE_GETLOADAVG. * lisp.h: Remove getloadavg() declaration. * fns.c: Include <sys/loadavg.h> if available. Don't declare our own getloadavg() if HAVE_GETLOADAVG. * config.h.in: Group together getloadavg()-related macros. Use only configure-time tests to detect getloadavg(). 2000-07-30 Martin Buchholz <martin@xemacs.org> * Makefile.in.in (TransientEmacsShell.o): Fix race condition. 2000-07-25 Andy Piper <andy@xemacs.org> * syswindows.h: add tchar.h for native builds. * frame.c (syms_of_frame): remove set-glyph-image. * general-slots.h: add Qset_glyph_image. * glyphs-widget.c (layout_update): add domain arg to set-glyph-image. (syms_of_glyphs_widget): remove set-glyph-image. 2000-07-23 Ben Wing <ben@xemacs.org> * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro Vpopup_frame_list. 2000-07-22 Andy Piper <andy@xemacs.org> * symsinit.h: add syms_of_win32(). * gui-msw.c (syms_of_gui_mswindows): remove Fmswindows_shell_execute. (Fmswindows_shell_execute): moved to win32.c. * emacs.c (main_1): add syms_of_win32 (). * win32.c (init_potentially_nonexistent_functions): rewrite in compiler-friendly terms. (Fmswindows_shell_execute): move here from gui-msw.c. (syms_of_win32): new. * device-msw.c (Fmswindows_printer_list): clean up args to EnumPrinters. Don't include tchar under cygwin or mingw. (msprinter_default_printer): make cygwin-friendly. 2000-07-21 Andy Piper <andy@xemacs.org> * glyphs-widget.c (image_instantiator_tree_view): use tab control's update function. (layout_property): new function. Retrieve items. * glyphs-msw.c (mswindows_tree_view_redisplay): new function. Re-populate the tree view from the pending items. * glyphs.c (instantiate_image_instantiator): Make sure the domain is designated the parent if the domain is an image instance. This is needed so that dirtiness can be cascade up the hierarchy and thus for layout children to be redisplayed correctly. (allocate_image_instance): rename glyph -> parent. * redisplay.h: change redisplay_output_layout signature. * redisplay-msw.c (mswindows_output_display_block): use domain arg. * redisplay-x.c (x_output_display_block): use domain arg. 2000-07-10 Andy Piper <andy@xemacs.org> * window.c (Fset_window_configuration): add comment. * redisplay-output.c (compare_runes): (redisplay_output_subwindow): redisplay rather than update subwindow. (redisplay_output_layout): ditto. * redisplay-msw.c (mswindows_frame_output_end): (mswindows_frame_output_end): make defer window pos optional. * lisp.h: add Flast. * glyphs.h (struct image_instantiator_methods): add dest_mask top normalize method. Change update method to be for changed instantiators. Add redisplay method. Change signature of layout method. (struct Lisp_Image_Instance): add instantiator. (IMAGE_INSTANCE_INSTANTIATOR): new. (IMAGE_INSTANCE_SUBWINDOW_FACE): new. (XIMAGE_INSTANCE_INSTANTIATOR): new. (XIMAGE_INSTANCE_SUBWINDOW_FACE): new. * glyphs.c: (find_instantiator_differences): new function. (Fset_instantiator_property): new convenience function. (check_image_instance_structure): strictly check for vector instantiators. (normalize_image_instantiator): make non-static. (instantiate_image_instantiator): pass on dest_mask and use new signatures for image_instance_layout and friends. (mark_image_instance): mark the instantiator. Mark the subwindow face not the widget face. (image_instance_equal): add instantiator. (image_instance_hash): ditto. (allocate_image_instance): ditto. (Fset_image_instance_property): removed. (Fimage_instance_file_name): ditto. (Fcolorize_image_instance): ditto. (image_instance_layout): add offsets to be set. (update_image_instance): new function. update an image instance from its changed instantiator. (inherit_normalize): add dest_mask. (xbm_normalize): ditto. (xface_normalize): ditto. (xpm_normalize): ditto. (text_update): set_property -> update. (image_instantiate): use the glyph identity as a hash key, not the instantiator. (glyph_width): use new image_instance_layout signature. (glyph_ascent): ditto. (glyph_descent): ditto. (glyph_height): ditto. (glyph_query_geometry): ressurrect. (glyph_layout): ditto. (redisplay_subwindow): update -> redisplay. (syms_of_glyphs): add Fset_instantiator_property. (image_instantiator_format_create): set_property -> update. * glyphs-x.c: (autodetect_normalize): add dest_maks to signature. (x_redisplay_subwindow): update -> redisplay. (x_redisplay_widget): ditto. (x_button_redisplay): ditto. (x_progress_gauge_redisplay): ditto. (x_tab_control_redisplay): ditto. Rewrite to cope with changed stacking order. (console_type_create_glyphs_x): update -> redisplay. (image_instantiator_format_create_glyphs_x): ditto. * glyphs-widget.c: (check_valid_instantiator): disallow glyphs in the instantiator, they must now be vectors. (check_valid_instantiator_list): ditto. (glyph_instantiator_to_glyph): use internal symbol rather than intern. (widget_update): renamed from widget_set_property. Call cascaded update methods. (redisplay_widget): renamed from update_widget. (widget_layout): image_instance_layout now takes position as well as size. (widget_normalize): ditto. (widget_instantiate): ditto. (tab_control_query_geometry) ditto.: (tab_control_update): renamed from tab_control_set_property. (progress_gauge_update): set_property -> update. (layout_normalize): rewrite so that child instantiators are normalized also. (layout_update): new function. Create glyphs from the normalized children and cope with any other layout keywords. We do not instantiate children here that will be take care of by redisplay_output_layout. (layout_instantiate): call layout_update and not much else. (layout_post_instantiate): not sure whether this is needed anymore. (layout_query_geometry): query glyph geometry rather than image_instance geometry. (layout_layout): set offsets from pass in parameters. Use glyph geometry and layout functions rather than image instance ones. (native_layout_layout): ditto. (syms_of_glyphs_widget): add make-glyph and set-glyph-image. (image_instantiator_widget): set_property -> update. (image_instantiator_buttons): ditto. (image_instantiator_progress_guage): ditto. (image_instantiator_tab_control): ditto. (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors. (image_instantiator_layout): add update method. * glyphs-msw.c (bmp_normalize): (mswindows_resource_normalize): add dest_mask so that it can be proprogated by layout_normalize. (begin_defer_window_pos): make optional because it may not be the right thing to do and it introduces differences with X. (mswindows_unmap_subwindow): ditto. (mswindows_map_subwindow): ditto. (mswindows_redisplay_subwindow): renamed from mswindows_update_subwindow. (mswindows_redisplay_widget): ditto. (mswindows_button_redisplay): renamed from mswindows_button_update. Update is now what the instantiation function does for a changed instantiator. (mswindows_progress_gauge_instantiate): set the progress value here if appropriate. (mswindows_tab_control_redisplay): cope with re-ordering of the members of the tab widget by simply selecting the new top widget. This makes things appear ok if you click on a tab. (mswindows_combo_box_instantiate): image_instance_layout now takes position as well as size. (mswindows_progress_gauge_redisplay): renamed from mswindows_progress_gauge_update. (console_type_create_glyphs_mswindows): fix update -> redisplay. (image_instantiator_format_create_glyphs_mswindows): ditto. * glyphs-eimage.c (jpeg_normalize): (gif_normalize): (png_normalize): (tiff_normalize): add dest_mask so that it can be proprogated by layout_normalize. * elhash.c: (print_hash_table): (hash_table_weakness_validate): (decode_hash_table_weakness): (Fhash_table_weakness): (Fhash_table_type): (syms_of_elhash): use Ben's naming scheme for hashtable types.. * console.h (struct console_methods): move update_* to redisplay_*. 2000-07-20 Ben Wing <ben@xemacs.org> * *.[ch] (XSETOBJ): remove unused middle argument. lisp-disunion.h: correct wrap_object() to one argument. 2000-07-15 Ben Wing <ben@xemacs.org> * s/cygwin32.h: * s/cygwin32.h (CYGWIN_CONV_PATH): Add missing logb prototype for v1.1. Use post-b20 names and alias to pre-b20 names when pre-b20. * s/windowsnt.h: [5]. 2000-07-15 Ben Wing <ben@xemacs.org> * Makefile.in.in (x_objs): * Makefile.in.in (sheap_objs): * Makefile.in.in (objs): added win32.o, cosmetic cleanups. * alloc.c (Fmake_byte_code): [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP, etc. macros which declare their own args now. * alloc.c (syms_of_alloc): [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends. * buffer.c: Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp. * buffer.c (Fget_file_buffer): Fixed GCPRO problem. * glyphs-msw.c (bmp_normalize): (mswindows_resource_normalize): add dest_mask so that it can be proprogated by layout_normalize. (begin_defer_window_pos): make optional because it may not be the right thing to do and it introduces differences with X. (mswindows_unmap_subwindow): ditto. (mswindows_map_subwindow): ditto. (mswindows_redisplay_subwindow): renamed from mswindows_update_subwindow. (mswindows_redisplay_widget): ditto. (mswindows_button_redisplay): renamed from mswindows_button_update. Update is now what the instantiation function does for a changed instantiator. (mswindows_progress_gauge_instantiate): set the progress value here if appropriate. (mswindows_tab_control_redisplay): cope with re-ordering of the members of the tab widget by simply selecting the new top widget. This makes things appear ok if you click on a tab. (mswindows_combo_box_instantiate): image_instance_layout now takes position as well as size. (mswindows_progress_gauge_redisplay): renamed from mswindows_progress_gauge_update. (console_type_create_glyphs_mswindows): fix update -> redisplay. (image_instantiator_format_create_glyphs_mswindows): ditto. * glyphs-eimage.c (jpeg_normalize): (gif_normalize): (png_normalize): (tiff_normalize): add dest_mask so that it can be proprogated by layout_normalize. * elhash.c: (print_hash_table): (hash_table_weakness_validate): (decode_hash_table_weakness): (Fhash_table_weakness): (Fhash_table_type): (syms_of_elhash): use Ben's naming scheme for hashtable types.. * console.h (struct console_methods): move update_* to redisplay_*. 2000-07-20 Ben Wing <ben@xemacs.org> * *.[ch] (XSETOBJ): remove unused middle argument. lisp-disunion.h: correct wrap_object() to one argument. 2000-07-15 Ben Wing <ben@xemacs.org> * s/cygwin32.h: * s/cygwin32.h (CYGWIN_CONV_PATH): Add missing logb prototype for v1.1. Use post-b20 names and alias to pre-b20 names when pre-b20. * s/windowsnt.h: [5]. 2000-07-15 Ben Wing <ben@xemacs.org> * Makefile.in.in (x_objs): * Makefile.in.in (sheap_objs): * Makefile.in.in (objs): added win32.o, cosmetic cleanups. * alloc.c (Fmake_byte_code): [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP, etc. macros which declare their own args now. * alloc.c (syms_of_alloc): [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends. * buffer.c: Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp. * buffer.c (Fget_file_buffer): Fixed GCPRO problem. * buffer.c (get_truename_buffer): Fixed comment about GC checking. * buffer.c (syms_of_buffer): Undeclared those dedicated frame funs. [2]. * buffer.h: Define convenience macros for internal/external conversions. [[[3]]]: Define codesys aliases Qcommand_argument_encoding and Qenvironment_variable_encoding for cleaner code. * bufslots.h: Remove dedicated-frame; in lisp. * bytecode.c (funcall_compiled_function): [1]. * bytecode.c (syms_of_bytecode): [2]. * console-msw.c: * console-msw.c (mswindows_show_console): Rewrote. * console-msw.c (Fmswindows_debugging_output): New. Sends to OutputDebugString (special MSWin debugger interface). * console-msw.c (Fmswindows_message_box): Fixed stupid bugs so it works when called from kill-emacs. * console-msw.c (syms_of_console_mswindows): Declare Fmswindows_debugging_output. * console-msw.h: New MSWin prototypes. * console-msw.h (struct mswindows_frame): New entry last-click-mods for improved button-modifier support. * console-msw.h (FRAME_MSWINDOWS_POPUP): New struct entry `popup' with corresponding accessor. * console-x.c: * console-x.c (split_up_display_spec): * console-x.c (get_display_arg_connection): * console-x.c (x_semi_canonicalize_console_connection): * console-x.c (x_canonicalize_device_connection): [[[6]]]: Change char to more specific type. [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4]; * console-x.c (x_semi_canonicalize_console_connection): * console-x.c (x_canonicalize_device_connection): [[[9]]]: Fix up error signalling to use new structured error system. * console-x.h: [[[4]]]: Define codesys aliases: Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding, Qx_color_name_encoding, Qx_display_name_encoding. * console.h (struct console_methods): New method make_dialog_box_internal supersedes older popup_dialog_box method. * data.c: Define many new errors, part of new structured errors. * data.c (init_errors_once_early): * data.c (syms_of_data): [2]. * device-msw.c (mswindows_init_device): [[[5]]]: Cleanup to support NT 3.51. * device-msw.c (decode_devmode): Cleanup. * device-msw.c (mswindows_handle_print_setup_dialog_box): * device-msw.c (mswindows_handle_print_dialog_box): * device-msw.c (mswindows_handle_page_setup_dialog_box): * device-msw.c (syms_of_device_mswindows): Delete the dialog box primitives recently introduced by Kirill and instead interface to general dialog box interface. * device-x.c: * device-x.c (compute_x_app_name): * device-x.c (x_init_device): * device-x.c (Fx_valid_keysym_name_p): * device-x.c (Fx_set_font_path): [6]. [7]. * device.h (wrap_device): New. First of its kind; meant to replace XSETDEVICE. * dialog-msw.c: Many file-dialog symbols. * dialog-msw.c (mswindows_register_popup_frame): New. * dialog-msw.c (mswindows_is_dialog_msg): New. For supporting kbd traversal in dialog boxes. * dialog-msw.c (dialog_proc): Support hitting ESC in dialogs. * dialog-msw.c (struct): Common dialog box errors. * dialog-msw.c (handle_file_dialog_box): New. Add file dialog code. * dialog-msw.c (handle_question_dialog_box): Redo existing code to support new question dialog syntax. * dialog-msw.c (console_type_create_dialog_mswindows): We support new dialog console method. * dialog-msw.c (syms_of_dialog_mswindows): * dialog-msw.c (vars_of_dialog_mswindows): New file dialog symbols, vars. * dialog-x.c: * dialog-x.c (maybe_run_dbox_text_callback): * dialog-x.c (dbox_descriptor_to_widget_value): * dialog-x.c (x_make_dialog_box_internal): * dialog-x.c (console_type_create_dialog_x): Mule-ize entire file. Redo to support question dialog syntax. [6]. * dialog.c: * dialog.c (Fmake_dialog_box_internal): * dialog.c (syms_of_dialog): Kill old popup-dialog-box, replace with new primitive. Just call device method or signal error. * eldap.c (Fldap_open): * eldap.c (Fldap_search_basic): * eldap.c (Fldap_add): * eldap.c (Fldap_modify): [1]. [7]. * emacs.c: * emacs.c (make_arg_list_1): * emacs.c (make_arg_list): Mule-ize call to dll_init(). [6]. [8]. * emacs.c (make_argc_argv): * emacs.c (free_argc_argv): * emacs.c (init_cmdargs): * emacs.c (main_1): * emacs.c (Fkill_emacs): * emacs.c (Fdump_emacs): Update comments about what can be used in syms_* etc. Call init_win32() when necessary. Fix up MS Win dialog box in kill-buffer to actually work right. [7]. * eval.c: * eval.c (For): * eval.c (Fand): * eval.c (Fprogn): * eval.c (Fprog1): * eval.c (Fprog2): * eval.c (FletX): * eval.c (Flet): * eval.c (condition_case_3): * eval.c (Feval): * eval.c (function_argcount): * eval.c (funcall_lambda): [1]. * eval.c (type_error): New. * eval.c (maybe_type_error): New. * eval.c (continuable_type_error): New. * eval.c (maybe_continuable_type_error): New. * eval.c (type_error_with_frob): New. * eval.c (maybe_type_error_with_frob): New. * eval.c (continuable_type_error_with_frob): New. * eval.c (maybe_continuable_type_error_with_frob): New. New functions for use with structured errors. * event-Xt.c: * event-Xt.c (x_event_to_emacs_event): Buttons are now modifiers too. * event-Xt.c (emacs_Xt_current_event_timestamp): Implement new event method. * event-Xt.c (reinit_vars_of_event_Xt): Set it. * event-msw.c: * event-msw.c (ntpipe_shove_writer): [5]. * event-msw.c (mswindows_enqueue_mouse_button_event): * event-msw.c (mswindows_drain_windows_queue): * event-msw.c (mswindows_wnd_proc): [7]. * event-msw.c (mswindows_current_layout_has_AltGr): [5]. * event-msw.c (mswindows_modifier_state): Throughout: support new button modifiers. * event-msw.c (emacs_mswindows_current_event_timestamp): Implement new event method. * event-msw.c (reinit_vars_of_event_mswindows): Set it. * event-stream.c: * event-stream.c (event_stream_current_event_timestamp): New. * event-stream.c (maybe_kbd_translate): New functionality. * event-stream.c (vars_of_event_stream): Document new kbd-translate-table functionality. * event-stream.c (Fcurrent_event_timestamp): New. New primitive for use in fabricated events. * event-stream.c (syms_of_event_stream): [2]. Declare new primitive. * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers. * events.c: * events.c (Fmake_event): * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): [1]. [9]. * events.c (format_event_object): fix gcc warnings. * events.c (Fevent_timestamp): Document new primitives. * events.c (TIMESTAMP_HALFSPACE): New. * events.c (Fevent_timestamp_lessp): New. New primitive for comparing timestamps correctly (half-space algorithm). * events.c (Fevent_modifier_bits): Doc fix. * buffer.c (get_truename_buffer): Fixed comment about GC checking. * events.c (Fevent_modifiers): Major doc addition. * events.c (event_x_y_pixel_internal): Typo fix. * events.c (syms_of_events): Declare new primitives. * buffer.c (syms_of_buffer): Undeclared those dedicated frame funs. [2]. * buffer.h: Define convenience macros for internal/external conversions. [[[3]]]: Define codesys aliases Qcommand_argument_encoding and Qenvironment_variable_encoding for cleaner code. * bufslots.h: Remove dedicated-frame; in lisp. * bytecode.c (funcall_compiled_function): [1]. * bytecode.c (syms_of_bytecode): [2]. * console-msw.c: * console-msw.c (mswindows_show_console): Rewrote. * console-msw.c (Fmswindows_debugging_output): New. Sends to OutputDebugString (special MSWin debugger interface). * console-msw.c (Fmswindows_message_box): Fixed stupid bugs so it works when called from kill-emacs. * console-msw.c (syms_of_console_mswindows): Declare Fmswindows_debugging_output. * console-msw.h: New MSWin prototypes. * console-msw.h (struct mswindows_frame): New entry last-click-mods for improved button-modifier support. * console-msw.h (FRAME_MSWINDOWS_POPUP): New struct entry `popup' with corresponding accessor. * console-x.c: * console-x.c (split_up_display_spec): * console-x.c (get_display_arg_connection): * console-x.c (x_semi_canonicalize_console_connection): * console-x.c (x_canonicalize_device_connection): [[[6]]]: Change char to more specific type. [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4]; * console-x.c (x_semi_canonicalize_console_connection): * console-x.c (x_canonicalize_device_connection): [[[9]]]: Fix up error signalling to use new structured error system. * console-x.h: [[[4]]]: Define codesys aliases: Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding, Qx_color_name_encoding, Qx_display_name_encoding. * console.h (struct console_methods): New method make_dialog_box_internal supersedes older popup_dialog_box method. * data.c: Define many new errors, part of new structured errors. * data.c (init_errors_once_early): * data.c (syms_of_data): [2]. * device-msw.c (mswindows_init_device): [[[5]]]: Cleanup to support NT 3.51. * device-msw.c (decode_devmode): Cleanup. * device-msw.c (mswindows_handle_print_setup_dialog_box): * device-msw.c (mswindows_handle_print_dialog_box): * device-msw.c (mswindows_handle_page_setup_dialog_box): * device-msw.c (syms_of_device_mswindows): Delete the dialog box primitives recently introduced by Kirill and instead interface to general dialog box interface. * device-x.c: * device-x.c (compute_x_app_name): * device-x.c (x_init_device): * device-x.c (Fx_valid_keysym_name_p): * device-x.c (Fx_set_font_path): [6]. [7]. First of its kind; meant to replace XSETDEVICE. * dialog-msw.c: Many file-dialog symbols. * dialog-msw.c (mswindows_register_popup_frame): New. * dialog-msw.c (mswindows_is_dialog_msg): New. For supporting kbd traversal in dialog boxes. * dialog-msw.c (dialog_proc): Support hitting ESC in dialogs. * dialog-msw.c (struct): Common dialog box errors. * dialog-msw.c (handle_file_dialog_box): New. Add file dialog code. * dialog-msw.c (handle_question_dialog_box): Redo existing code to support new question dialog syntax. * dialog-msw.c (console_type_create_dialog_mswindows): We support new dialog console method. * dialog-msw.c (syms_of_dialog_mswindows): * dialog-msw.c (vars_of_dialog_mswindows): New file dialog symbols, vars. * dialog-x.c: * dialog-x.c (maybe_run_dbox_text_callback): * dialog-x.c (dbox_descriptor_to_widget_value): * dialog-x.c (x_make_dialog_box_internal): * dialog-x.c (console_type_create_dialog_x): Mule-ize entire file. Redo to support question dialog syntax. [6]. * dialog.c: * dialog.c (Fmake_dialog_box_internal): * dialog.c (syms_of_dialog): Kill old popup-dialog-box, replace with new primitive. Just call device method or signal error. * eldap.c (Fldap_open): * eldap.c (Fldap_search_basic): * eldap.c (Fldap_add): * eldap.c (Fldap_modify): [1]. [7]. * emacs.c: * emacs.c (make_arg_list_1): * emacs.c (make_arg_list): Mule-ize call to dll_init(). [6]. [8]. * emacs.c (make_argc_argv): * emacs.c (free_argc_argv): * emacs.c (init_cmdargs): * emacs.c (main_1): * emacs.c (Fkill_emacs): * emacs.c (Fdump_emacs): Update comments about what can be used in syms_* etc. Call init_win32() when necessary. Fix up MS Win dialog box in kill-buffer to actually work right. [7]. * eval.c: * eval.c (For): * eval.c (Fand): * eval.c (Fprogn): * eval.c (Fprog1): * eval.c (Fprog2): * eval.c (FletX): * eval.c (Flet): * eval.c (condition_case_3): * eval.c (Feval): * eval.c (function_argcount): * eval.c (funcall_lambda): [1]. * eval.c (type_error): New. * eval.c (maybe_type_error): New. * eval.c (continuable_type_error): New. * eval.c (maybe_continuable_type_error): New. * eval.c (type_error_with_frob): New. * eval.c (maybe_type_error_with_frob): New. * eval.c (continuable_type_error_with_frob): New. * eval.c (maybe_continuable_type_error_with_frob): New. New functions for use with structured errors. * event-Xt.c: * event-Xt.c (x_event_to_emacs_event): Buttons are now modifiers too. * event-Xt.c (emacs_Xt_current_event_timestamp): Implement new event method. * event-Xt.c (reinit_vars_of_event_Xt): Set it. * event-msw.c: * event-msw.c (ntpipe_shove_writer): [5]. * event-msw.c (mswindows_enqueue_mouse_button_event): * event-msw.c (mswindows_drain_windows_queue): * event-msw.c (mswindows_wnd_proc): [7]. * event-msw.c (mswindows_current_layout_has_AltGr): [5]. * event-msw.c (mswindows_modifier_state): Throughout: support new button modifiers. * event-msw.c (emacs_mswindows_current_event_timestamp): Implement new event method. * event-msw.c (reinit_vars_of_event_mswindows): Set it. * event-stream.c: * event-stream.c (event_stream_current_event_timestamp): New. * event-stream.c (maybe_kbd_translate): New functionality. * event-stream.c (vars_of_event_stream): Document new kbd-translate-table functionality. * event-stream.c (Fcurrent_event_timestamp): New. New primitive for use in fabricated events. * event-stream.c (syms_of_event_stream): [2]. Declare new primitive. * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers. * events.c: * events.c (Fmake_event): * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): [1]. [9]. * events.c (format_event_object): fix gcc warnings. * events.c (Fevent_timestamp): Document new primitives. * events.c (TIMESTAMP_HALFSPACE): New. * events.c (Fevent_timestamp_lessp): New. New primitive for comparing timestamps correctly (half-space algorithm). * events.c (Fevent_modifier_bits): Doc fix. * events.c (Fevent_modifiers): Major doc addition. * events.c (event_x_y_pixel_internal): Typo fix. * events.c (syms_of_events): Declare new primitives. * events.h: Update long comment for button modifiers, timestamps. * events.h (struct event_stream): New current_event_timestamp method. * extents.c: * extents.c (extent_in_region_p): * extents.c (decode_extent): * extents.c (Fset_extent_parent): * extents.c (decode_map_extents_flags): Fix gcc warnings. [9]. * extents.c (struct extent_at_arg): * extents.c (decode_extent_at_flag): * extents.c (extent_at_mapper): * extents.c (extent_at_bytind): * extents.c (Fextent_at): Adapt to new lower-level interface. [9]. * extents.c (Fextents_at): New primitive. [9]. * extents.c (symbol_to_glyph_layout): [9]. Support new primitive `extents-at'. * extents.c (get_text_property_bytind): extent_at_bytind has another arg. [9]. * extents.c (syms_of_extents): New primitive. * file-coding.c (Fmake_coding_system): [1]. * file-coding.c (subsidiary_coding_system): fix gcc warning * file-coding.c (syms_of_file_coding): [2]. * fileio.c (Fexpand_file_name): * fileio.c (Fsysnetunam): * fileio.c (Ffile_exists_p): * fileio.c (Ffile_executable_p): * fileio.c (Fverify_visited_file_modtime): Clean up GCPROing. * fileio.c (syms_of_fileio): [2]. * filelock.c (lock_file_1): * filelock.c (current_lock_owner): * filelock.c (lock_if_free): * filelock.c (lock_file): * filelock.c (unlock_file): Clean up GCPROing. * fns.c (concat): Fix gcc warning. * fns.c (Fmember): * fns.c (Fold_member): * fns.c (Fmemq): * fns.c (Fold_memq): * fns.c (memq_no_quit): * fns.c (Fassoc): * fns.c (Fold_assoc): * fns.c (Fassq): * fns.c (Fold_assq): * fns.c (assq_no_quit): * fns.c (Frassoc): * fns.c (Fold_rassoc): * fns.c (Frassq): * fns.c (Fold_rassq): * fns.c (rassq_no_quit): * fns.c (Fdelete): * fns.c (Fold_delete): * fns.c (Fdelq): * fns.c (Fold_delq): * fns.c (delq_no_quit): * fns.c (Fremassoc): * fns.c (Fremassq): * fns.c (remassq_no_quit): * fns.c (Fremrassoc): * fns.c (Fremrassq): * fns.c (remrassq_no_quit): * fns.c (Freverse): * fns.c (mapcar1): [1]. * frame-msw.c (mswindows_init_frame_1): * frame-msw.c (mswindows_delete_frame): Register popups with dialog code so keyboard traversing works. * frame-tty.c (tty_raise_frame_no_select): [1]. * frame-x.c: * frame-x.c (x_set_frame_text_value): * frame-x.c (x_set_frame_properties): * frame-x.c (x_create_widgets): [7]. * frame.c: * frame.c (Fmouse_pixel_position): Minor doc fixes. Macro like wrap_device. * general.c: * general.c (SYMBOL): * general.c (syms_of_general): Major reorg. This is now just a wrapper and symbols themselves are listed in general-slots.h. * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning. * glyphs-msw.c (mswindows_resource_instantiate): [5]. * glyphs-msw.c (mswindows_native_layout_instantiate): Add DS_CONTROL so keyboard traversal will work. * glyphs-widget.c: * glyphs-widget.c (syms_of_glyphs_widget): Move some symbols to general-slots.h. * glyphs-x.c: * glyphs-x.c (xbm_instantiate_1): * glyphs-x.c (x_xbm_instantiate): * glyphs-x.c (x_xface_instantiate): * glyphs-x.c (autodetect_instantiate): * glyphs-x.c (cursor_font_instantiate): * glyphs-x.c (x_update_widget): * glyphs-x.c (x_widget_instantiate): * glyphs.c (bitmap_to_lisp_data): * glyphs.c (pixmap_to_lisp_data): [7]. * glyphs.c (syms_of_glyphs): [2]. * gui-x.c: * gui-x.c (print_widget_value): * gui-x.c (menu_separator_style_and_to_external): * gui-x.c (add_accel_and_to_external): * gui-x.c (button_item_to_widget_value): * gui-x.c (gui_items_to_widget_values_1): * gui-x.c (gui_items_to_widget_values): * gui-x.c (syms_of_gui_x): * gui-x.c (vars_of_gui_x): Mule-ize entire file. Move menu-no-selection-hook to gui.c. [9]. * gui-x.h: Muleize, prototype changes matching gui-x.c. * gui.c: * gui.c (separator_string_p): * gui.c (gui_item_add_keyval_pair): * gui.c (make_gui_item_from_keywords_internal): * gui.c (signal_too_long_error): * gui.c (parse_gui_item_tree_item): * gui.c (syms_of_gui): * gui.c (vars_of_gui): * gui.h: menu-no-selection-hook moved here (used by MSWin). Move some symbols to general-slots.h. [6]. [9]. * insdel.c (get_buffer_pos_char): * insdel.c (get_buffer_range_char): Add GC comments. * keymap.c (keymap_lookup_directly): * keymap.c (keymap_store): * keymap.c (ensure_meta_prefix_char_keymapp): * keymap.c (describe_map): * keymap.h: Support new button modifiers. * lisp-disunion.h (XSETOBJ): Rename make_obj to wrap_object. * lisp-union.h: * lisp-union.h (make_int): * lisp-union.h (make_char): Support wrap_object. * lisp.h: * lisp.h (LIST_LOOP): * lisp.h (EXTERNAL_LIST_LOOP): * lisp.h (LIST_LOOP_2): * lisp.h (EXTERNAL_LIST_LOOP_1): * lisp.h (EXTERNAL_LIST_LOOP_2): * lisp.h (EXTERNAL_LIST_LOOP_3): * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE): * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6): * lisp.h (GET_EXTERNAL_LIST_LENGTH): * lisp.h (EXTERNAL_ALIST_LOOP_5): * lisp.h (EXTERNAL_ALIST_LOOP_6): * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE): * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE): * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7): * lisp.h (struct Lisp_Symbol): * lisp.h (maybe_continuable_error_with_frob): Fix up section comments. Add new types for char to indicate usage. Delete symbols auto-generated from general-slots.h. Add prototypes for structured error functions. Add long comments describing looping macros and change interface so that lvalues are automatically declared. * events.h: Update long comment for button modifiers, timestamps. * events.h (struct event_stream): New current_event_timestamp method. * extents.c: * extents.c (extent_in_region_p): * extents.c (decode_extent): * extents.c (Fset_extent_parent): * extents.c (decode_map_extents_flags): Fix gcc warnings. [9]. * extents.c (struct extent_at_arg): * extents.c (decode_extent_at_flag): * extents.c (extent_at_mapper): * extents.c (extent_at_bytind): * extents.c (Fextent_at): Adapt to new lower-level interface. [9]. * extents.c (Fextents_at): New primitive. [9]. * extents.c (symbol_to_glyph_layout): [9]. Support new primitive `extents-at'. * extents.c (get_text_property_bytind): extent_at_bytind has another arg. [9]. * extents.c (syms_of_extents): New primitive. * file-coding.c (Fmake_coding_system): [1]. * file-coding.c (subsidiary_coding_system): fix gcc warning * file-coding.c (syms_of_file_coding): [2]. * fileio.c (Fexpand_file_name): * fileio.c (Fsysnetunam): * fileio.c (Ffile_exists_p): * fileio.c (Ffile_executable_p): * fileio.c (Fverify_visited_file_modtime): Clean up GCPROing. * fileio.c (syms_of_fileio): [2]. * filelock.c (lock_file_1): * filelock.c (current_lock_owner): * filelock.c (lock_if_free): * filelock.c (lock_file): * filelock.c (unlock_file): Clean up GCPROing. * fns.c (concat): Fix gcc warning. * fns.c (Fmember): * fns.c (Fold_member): * fns.c (Fmemq): * fns.c (Fold_memq): * fns.c (memq_no_quit): * fns.c (Fassoc): * fns.c (Fold_assoc): * fns.c (Fassq): * fns.c (Fold_assq): * fns.c (assq_no_quit): * fns.c (Frassoc): * fns.c (Fold_rassoc): * fns.c (Frassq): * fns.c (Fold_rassq): * fns.c (rassq_no_quit): * fns.c (Fdelete): * fns.c (Fold_delete): * fns.c (Fdelq): * fns.c (Fold_delq): * fns.c (delq_no_quit): * fns.c (Fremassoc): * fns.c (Fremassq): * fns.c (remassq_no_quit): * fns.c (Fremrassoc): * fns.c (Fremrassq): * fns.c (remrassq_no_quit): * fns.c (Freverse): * fns.c (mapcar1): [1]. * frame-msw.c (mswindows_init_frame_1): * frame-msw.c (mswindows_delete_frame): Register popups with dialog code so keyboard traversing works. * frame-tty.c (tty_raise_frame_no_select): [1]. * frame-x.c: * frame-x.c (x_set_frame_text_value): * frame-x.c (x_set_frame_properties): * frame-x.c (x_create_widgets): [7]. * frame.c: * frame.c (Fmouse_pixel_position): Minor doc fixes. * frame.h (wrap_frame): New. Macro like wrap_device. * general.c: * general.c (SYMBOL): * general.c (syms_of_general): Major reorg. This is now just a wrapper and symbols themselves are listed in general-slots.h. * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning. * glyphs-msw.c (mswindows_resource_instantiate): [5]. * glyphs-msw.c (mswindows_native_layout_instantiate): Add DS_CONTROL so keyboard traversal will work. * glyphs-widget.c: * glyphs-widget.c (syms_of_glyphs_widget): Move some symbols to general-slots.h. * glyphs-x.c: * glyphs-x.c (xbm_instantiate_1): * glyphs-x.c (x_xbm_instantiate): * glyphs-x.c (x_xface_instantiate): * glyphs-x.c (autodetect_instantiate): * glyphs-x.c (cursor_font_instantiate): * glyphs-x.c (x_update_widget): * glyphs-x.c (x_widget_instantiate): * glyphs.c (bitmap_to_lisp_data): * glyphs.c (pixmap_to_lisp_data): [7]. * glyphs.c (syms_of_glyphs): [2]. * gui-x.c: * gui-x.c (print_widget_value): * gui-x.c (menu_separator_style_and_to_external): * gui-x.c (add_accel_and_to_external): * gui-x.c (button_item_to_widget_value): * gui-x.c (gui_items_to_widget_values_1): * gui-x.c (gui_items_to_widget_values): * gui-x.c (syms_of_gui_x): * gui-x.c (vars_of_gui_x): Mule-ize entire file. Move menu-no-selection-hook to gui.c. [9]. * gui-x.h: Muleize, prototype changes matching gui-x.c. * gui.c: * gui.c (separator_string_p): * gui.c (gui_item_add_keyval_pair): * gui.c (make_gui_item_from_keywords_internal): * gui.c (signal_too_long_error): * gui.c (parse_gui_item_tree_item): * gui.c (syms_of_gui): * gui.c (vars_of_gui): * gui.h: menu-no-selection-hook moved here (used by MSWin). Move some symbols to general-slots.h. [6]. [9]. * insdel.c (get_buffer_pos_char): * insdel.c (get_buffer_range_char): Add GC comments. * keymap.c (keymap_lookup_directly): * keymap.c (keymap_store): * keymap.c (ensure_meta_prefix_char_keymapp): * keymap.c (describe_map): * keymap.h: Support new button modifiers. * lisp-disunion.h (wrap_object): * lisp-disunion.h (XSETOBJ): Rename make_obj to wrap_object. * lisp-union.h: * lisp-union.h (make_int): * lisp-union.h (make_char): Support wrap_object. * lisp.h: * lisp.h (LIST_LOOP): * lisp.h (EXTERNAL_LIST_LOOP): * lisp.h (LIST_LOOP_2): * lisp.h (EXTERNAL_LIST_LOOP_1): * lisp.h (EXTERNAL_LIST_LOOP_2): * lisp.h (EXTERNAL_LIST_LOOP_3): * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE): * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6): * lisp.h (GET_EXTERNAL_LIST_LENGTH): * lisp.h (EXTERNAL_ALIST_LOOP_5): * lisp.h (EXTERNAL_ALIST_LOOP_6): * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE): * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE): * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7): * lisp.h (struct Lisp_Symbol): * lisp.h (maybe_continuable_error_with_frob): Fix up section comments. Add new types for char to indicate usage. Delete symbols auto-generated from general-slots.h. Add prototypes for structured error functions. Add long comments describing looping macros and change interface so that lvalues are automatically declared. Add NO_DECLARE macro in case callers want to declare lvalues themselves. * lread.c (read_syntax_error): * lread.c (continuable_read_syntax_error): * lread.c (read_structure): * lread.c (sequence_reader): * lread.c (read_list_conser): * lread.c (read_compiled_function): Rename syntax_error and continuable_syntax_error to avoid clash with same-named structured error functions. * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar-msw.c (populate_menu_add_item): * menubar-msw.c (populate_or_checksum_helper): [5]. [9]. * menubar-x.c: * menubar-x.c (menu_item_descriptor_to_widget_value_1): Mule-ize whole file. * menubar.c (Fnormalize_menu_item_name): Add optimization. * mule-charset.c (Fmake_charset): * mule-wnnfns.c (Fwnn_set_param): [1]. * ntproc.c (create_child): * ntproc.c (Fwin32_set_current_locale): Add comments portending doom. * objects-msw.c: * objects-msw.c (old_font_enum_callback_2): * objects-msw.c (font_enum_callback_1): * objects-msw.c (mswindows_enumerate_fonts): [5]. * objects-x.c: * objects-x.c (allocate_nearest_color): * objects-x.c (x_parse_nearest_color): * objects-x.c (x_initialize_color_instance): * objects-x.c (x_print_color_instance): * objects-x.c (x_finalize_color_instance): * objects-x.c (x_valid_color_name_p): * objects-x.c (x_initialize_font_instance): * objects-x.c (x_print_font_instance): * objects-x.c (valid_x_font_name_p): * objects-x.c (truename_via_FONT_prop): * objects-x.c (truename_via_random_props): * objects-x.c (truename_via_XListFonts): * objects-x.c (x_font_truename): * objects-x.c (x_font_instance_truename): * objects-x.c (x_font_instance_properties): * objects-x.c (x_list_fonts): * objects-x.c (x_find_charset_font): Mule-ize entire file. [7]. * objects-x.h: Mule-verify. * print.c: * print.c (std_handle_out_external): * print.c (debug_print_no_newline): * print.c (syms_of_print): Output to all debugger kinds in debug-print. Fix console-output code under MSWin to actually work. * process-nt.c (send_signal): * process-nt.c (nt_create_process): Use newer Unicode macros. * process-unix.c (unix_create_process): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): [7]. * scrollbar-x.c: Mule-verify. * search.c (syms_of_search): [2]. * select-msw.c (mswindows_destroy_selection): Use LIST_LOOP_2. * select-x.c (symbol_to_x_atom): [7]. * select.c (syms_of_select): [2]. * sound.c (Fplay_sound_file): [7]. * specifier.c: * specifier.c (decode_specifier_type): * specifier.c (Fvalid_specifier_locale_type_p): * specifier.c (check_valid_locale_or_locale_type): * specifier.c (decode_locale): * specifier.c (decode_locale_type): * specifier.c (decode_locale_list): * specifier.c (check_valid_domain): * specifier.c (decode_specifier_tag_set): * specifier.c (Fcanonicalize_tag_set): * specifier.c (Fdefine_specifier_tag): * specifier.c (Fspecifier_tag_predicate): * specifier.c (check_valid_inst_list): * specifier.c (check_valid_spec_list): * specifier.c (decode_how_to_add_specification): * specifier.c (check_modifiable_specifier): * specifier.c (specifier_add_spec): * specifier.c (boolean_validate): * specifier.c (display_table_validate): [9]. * specifier.c (syms_of_specifier): Move some symbols to general-slots.h. [2]. * symbols.c: * symbols.c (Fmapatoms): * symbols.c (Fapropos_internal): Add GCPROs. * symbols.c (set_default_buffer_slot_variable): * symbols.c (set_default_console_slot_variable): [1]. * symbols.c (defsymbol_massage_name_1): * symbols.c (defkeyword_massage_name): * symbols.c (deferror_1): * symbols.c (deferror): * symbols.c (deferror_massage_name_and_message): * symeval.h: * symeval.h (DEFSYMBOL): Support DEFSYMBOL*, DEFKEYWORD, DEFERROR * symbols.c (syms_of_symbols): [2]. * symsinit.h: * symsinit.h (init_win32): New. Also new is syms_of_dialog_mswindows. * syswindows.h: Add new Unicode macros, missing Cygwin wide-char functions, convenience conversion macros for Qmswindows_tstr, macros for encapsulating required MSWin <-> Cygwin filename conversions, prototype for dynamically-extracted (not in NT 3.51) functions. * toolbar-x.c: Mule-verify. * tooltalk.c (Fadd_tooltalk_message_arg): * tooltalk.c (Fadd_tooltalk_pattern_attribute): * tooltalk.c (Fadd_tooltalk_pattern_arg): [7]. * tooltalk.c (syms_of_tooltalk): [2]. * unexnt.c: * unexnt.c (unexec): Fix up headers, declaration of unexec() to be more standard. 2000-07-20 Martin Buchholz <martin@xemacs.org> * offix.h: Revert change to guard macros - they're used in offix.c! 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * lisp.h: Defsubred Fdelete. * console-msw.h: (msprinter_default_printer): Added. * console-msw.c (msprinter_canonicalize_console_connection): (msprinter_canonicalize_device_connection): Added. * device-msw.c (msprinter_default_printer): (Fmswingows_get_default_printer): (signal_enum_priner_error): (Fmswingows_printer_list): Added. 2000-07-19 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.35 is released. 2000-07-19 Martin Buchholz <martin@xemacs.org> * select-x.c (x_handle_selection_request): Text selected in xemacs and pasted into xterm failed to appear. Spelling fixes and cosmetic changes. 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * event-msw.c (mswindows_drain_windows_queue): Correctly check for XEmacs frame (fix for doubling chars in dialog boxes). 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net> * select.c (select_convert_in, select_convert_out): Don't call intern() every time. * select.c (Qselect_convert_in, Qselect_convert_out): New. * select.c (vars_of_select): Initialise them. 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net> * select.c (selection-coercible-types): New. * select.c (own-selection-internal): * select.c (get-selection-internal): MULE bug fix - these should default to COMPOUND_TEXT and not STRING for MULE. I think. * select.c (select_convert_out): Use selection-coercible-types to find types that we can attempt to perform coercions on. 2000-07-18 Martin Buchholz <martin@xemacs.org> * mule-wnnfns.c: * mule-canna.c: Add coding: cookie to identify encoding. * mule-canna.c (CANNA_mode_keys): make static. Use proper prototypes, even for functions of no arguments. RemOve external prototype for Fding(). * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn. * select.c (syms_of_select): Add missing DEFSUBR. 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net> * select.c (get_selection_internal, own_selection_internal): Make the type default to STRING, rather than placing a nil type into Vselection_alist. 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net> * gpmevent.c (tty_selection_exists_p): * gpmevent.c (tty_own_selection): Updated parameter lists. 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net> * select.h (selection-alist): Removed declaration. * select.h (get_local_selection): * select.c (get_local_selection): Made static. * select.h (convert_selection): Removed declaration. * select.c (convert_selection): Removed. This function belongs in Lisp. * select.h (select_convert_in): Declare. * select.h (select_convert_out): Declare. * select.c (select_convert_in): New. * select.c (select_convert_out): New. New conversion functions for other files to call. * select.h (select_notify_buffer_kill): Declare. * select.c (select_notify_buffer_kill): New. New functions that get called from kill-buffer. * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than X-specific lisp code. * select.h: Declare some of the lisp-visible functions for external use. * select.c (clean_local_selection_data): Removed. This was a disgusting function, and previously should have been in select-x.c in any case. The functionality is now provided in select-convert-from-integer (select.el). * select.c (available-selection-types): Fixed stupidity where INTEGER and ATOM got added twice. Also add STRING when we see an extent. * select.c (get-selection-internal): Removed symbol stripping. No longer causes conversion when data comes from the internal cache. * select.c (syms_of_select): Added new functions. * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote error checking - previously this called abort! * select-x.c (x_own_selection): Changed comment. * select-x.c (x_handle_selection_request): Use select_convert_out. Don't mess with selection-alist; it's an internal variable of select.c. * select-x.c (x_get_foreign_selection): Use select_convert_in. * select-x.c (x_handle_selection_clear): Use get-selection-timestamp, rather than messing with selection-alist. * select-msw.c (mswindows_get_foreign_selection): Use TO_INTERNAL_FORMAT rather than hacking. 2000-07-14 Martin Buchholz <martin@xemacs.org> * process-unix.c (unix_open_multicast_group): (unix_open_multicast_group): Remove useless casts. 2000-07-13 Martin Buchholz <martin@xemacs.org> * sound.c (Fplay_sound): Fix `unused variable' warning. * emacs.c (main): Use correct type for _environ on SCO5. 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net> * console.h (own_selection_method): * console.h (selection_exists_p_method): * console.h (available_selection_types_method): New. * console.h (register_selection_data_type_method): New. * console.h (selection_data_type_name): New. * console-msw.h (mswindows_destroy_selection): Declare it. New function & alist to track GlobalAlloc()'d handles that need releasing when the clipboard data gets replaced or emptied. * event-msw.c (mswindows_wnd_proc): Call it. * lisp.h, general.c (Qappend): New symbol representing a `how-to-add' mode. * select.c (own-selection-internal): * select.c (selection-exists-p): * select.c (available-selection-types): New. * select.c (register-selection-data-type): New. * select.c (selection-data-type-name): New. New functions to deal with device-specific selection data formats. * select.c (selection-converter-out-alist): Renamed. * select.c (selection-converter-in-alist): New. * select.c (selection-appender-alist): New. Added new alists. * select.c (syms_of_select, vars_of_select): Added new symbols & variables. * select.c (get_local_selection): Split. * select.c: Removed spurious type checking - selections may now be of any type, not just strings. * select.c (own-selection-internal): * select.h, select.c (convert_selection): New. Created convert_selection() function based on get_local_selection(). * select.h, select.c (QCF_*): New symbols representing mswindows clipboard formats. * select.h, select.c (Qreplace_all, Qreplace_existing): New symbols representing `how-to-add' modes. * select-msw.c (x_sym_p): New. * select-msw.c (symbol_to_ms_cf): New. * select-msw.c (ms_cf_to_symbol): New. New functions to deal with symbols & clipboard formats. Can also handle string names. * select-msw.c (mswindows_own_selection): * select-msw.c (mswindows_selection_exists_p): Added `data-type' parameter. Use it. * select-msw.c (mswindows_available_selection_types): New. * select-msw.c (mswindows_register_selection_data_type): New. * select-msw.c (mswindows_selection_data_type_name): New. * select-msw.c (mswindows_own_selection): * select-msw.c (mswindows_get_foreign_selection): * select-msw.c (mswindows_selection_exists_p): Rewrote. * select-msw.c (console_create_select_mswindows): Added new methods. * select-msw.c (mswindows_destroy_selection): New. * select-msw.c (Vhandle_alist): New list. * select-msw.c (mswindows_own_selection): * select-x.c (x_own_selection): * select-x.c (x_selection_exists_p): * select-x.c: Added some comments about maybe using new functionality. * select-x.c (x_own_selection): * specifier.c: Remove definition of Qappend (now in general.c) * specifier.c (syms_of_specifier): Remove Qappend. 2000-07-12 Martin Buchholz <martin@xemacs.org> * config.h.in: Add socklen_t. * s/decosf4-0.h: No special compiler flags needed or desired. In particular, undefine _BSD for DEC OSF 4.0. 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * redisplay-msw.c (msprinter_frame_output_end): Added. (console_type_create_redisplay_mswindows): Referred the above. * frame.c (setup_frame_without_minibuffer): Do not create a default minibuffer frame on a printer device. * frame-msw.c (apply_dc_geometry): Added. (msprinter_start_page): (msprinter_init_frame_3): (msprinter_eject_page): Use it. * console-msw.h (struct msprinter_frame): Added pix_left and top, and removed residual duplex and orientation properties. 2000-07-11 Martin Buchholz <martin@xemacs.org> * eval.c (function_argcount): Work around a DEC CC compiler bug. * unexalpha.c: Remove system prototypes from C sources! 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com> * eval.c: Remove references to M-x edit-options in DEFUNs for `defvar' and `defconst'. 2000-07-09 Martin Buchholz <martin@xemacs.org> * config.h.in: Remove SMART_INCLUDE hackery. PostgreSQL hacking: * config.h.in: Don't use SMART_INCLUDE. * postgresql.h: Include libpq-fe.h here. Fix typo. * inline.c: Simply #include "postgresql.h" * postgresql.c: - Don't use SMART_INCLUDE - Use simply "const". - Use standard doc string conventions. - Use correct type for result of PQstatus. 2000-07-09 Martin Buchholz <martin@xemacs.org> * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings. C++ compilation changes. * config.h.in (EXTERN_C): Define. * config.h.in (not): This is also a C++ keyword. * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation. * cm.c: Use EXTERN_C. * redisplay-tty.c: Use EXTERN_C. * sysdep.c: Use EXTERN_C. Remove Gould support. 2000-07-09 Martin Buchholz <martin@xemacs.org> * general.c: Remove duplicate definition for Qfunction. 2000-07-08 Ben Wing <ben@xemacs.org> * device-msw.c (msprinter_init_device): * device-msw.c (sync_printer_with_devmode): * device-msw.c (handle_devmode_changes): * device-msw.c (print_dialog_worker): * device-msw.c (Fmsprinter_apply_settings): * device-msw.c (hash_devmode): * device-msw.c (Fmsprinter_settings_despecialize): use Qmswindows_tstr, not Qctext. * vm-limit.c (check_memory_limits): avoid infinite loop printing warning messages. 2000-07-05 Craig Lanning <lanning@scra.org> * Makefile.in.in: Add support for including the Windows resources when building with the cygwin and mingw targets. * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either not set or not correct. (directory_is_current_directory): Don't compile for WIN32_NATIVE. (init_initial_directory): Don't try to use $PWD on the WIN32_NATIVE target. * s\cygwin32.h: [[Add -mwindows to eliminate console window.]] not required --ben (HAVE_NATIVE_SOUND): removed; now handled by configure. (MAIL_USE_POP): removed; now handled by configure. * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in C_SWITCH_SYSTEM or it will affect lib-src progs. --ben (HAVE_NATIVE_SOUND): removed; now handled by configure. (MAIL_USE_POP): removed; now handled by configure. (ENCAPSULATE_STAT): from Dan Holmsand, added. (ENCAPSULATE_FSTAT): from Dan Holmsand, added. (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of constant string. (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked up from <winsock.h> via systime.h. (HAVE_GETPAGESIZE): from Dan Holmsand, added. (getpagesize): from Dan Holmsand, added. Added #endif which was left dangling by Ben's mega patch; added comment to help prevent this in the future. * sysdll.c: added #include <windows.h> for WIN32_NATIVE case. 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * console-msw.h (struct mswindows_device): Removed unnecessary cached device geometry values. Added update_tick and an accessor macro. (Lisp_Devmode): Added lrecord declaration. (struct msprinter_device): Contain devmode as a Lisp object. Added mswindows_get_selected_frame_hwnd(); * console.h (struct console_methods): Indentation nitpicking. * device-msw.c (mswindows_init_device): Do not initialize geometry cache. Initialize update tick. (mswindows_device_system_metrics): Ask the device for its geometry. (global_free_2_maybe): (devmode_to_hglobal): (handle_printer_changes): (ensure_not_printing): (print_dialog_worker): (Fmsprinter_print_setup_dialog): (Fmsprinter_print_dialog): (plist_get_margin): (plist_set_margin): (Fmsprinter_page_setup_dialog): Added functions. (sync_printer_with_devmode): (handle_devmode_changes): (Fmsprinter_get_settings): (Fmsprinter_select_settings): (Fmsprinter_apply_settings): (allocate_devmode): (Fmsprinter_settings_copy): (Fmsprinter_settings_despecialize): (print_devmode): (finalize_devmode): (equal_devmode): (hash_devmode): Added functions (syms_of_device_mswindows): Init devmode lrecord class. * device.h: Added an exfun for find-device. * event-msw.c (mswindows_wnd_proc): Do not update the cached geometry; although, recreate the device compatible DC. * frame-msw.c (mswindows_get_selected_frame_hwnd): Added. (msprinter_init_frame_3): (msprinter_frame_property): (msprinter_internal_frame_property_p): (msprinter_frame_properties): (msprinter_set_frame_properties): Removed 'orientation and 'duplex print job properties (will move to device settings). * lisp.h: Added symbols. * general.c (syms_of_general): Declared them. * hash.c (string_hash): Added. * lrecord.h (lrecord_type): Added devmode lrecord type. 2000-07-02 Mike Sperber <mike@xemacs.org> * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on FreeBSD 4.0. 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp> * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative integer. 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org> * data.c (Fstring_to_number): Don't recognize floating point if base is not 10. 2000-06-22 Martin Buchholz <martin@xemacs.org> * glyphs-widget.c (tab_control_query_geometry): (widget_query_geometry): (button_query_geometry): * glyphs.c (text_query_geometry): Enforce type correctness. 2000-06-18 Martin Buchholz <martin@xemacs.org> * s/decosf4-0.h (_etext): Use portable _etext instead of etext. * s/decosf4-0.h (_edata): Use portable _edata instead of edata. 2000-06-17 Martin Buchholz <martin@xemacs.org> * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this conflicts with gcc's fixincluded version of FOO.h. * glyphs.h (image_instance_geometry): Remove trailing `,' 2000-06-08 Mike Alexander <mta@arbortext.com> (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size (shove_thread): Don't write the same output twice (make_ntpipe_output_stream): Increase priority of shove thread (ntpipe_shove_writer): Call SwitchToThread to give shove thread a chance to run (ntpipe_shove_closer): Don't delete the pipe until we're done with it. 2000-06-12 Ben Wing <ben@xemacs.org> * s\mingw32.h (sigset): * s\windowsnt.h (sigset): rename msw_ to mswindows_ for consistency with general convention. 2000-06-12 Ben Wing <ben@xemacs.org> * console-msw.c: * console-msw.c (mswindows_get_console_hwnd): * console-msw.c (mswindows_ensure_console_allocated): * console-msw.c (mswindows_hide_console): * console-msw.c (mswindows_show_console): * console-msw.c (mswindows_ensure_console_buffered): * console-msw.c (mswindows_output_console_string): * console-msw.c (mswindows_windows9x_p): * console-msw.h: * device-msw.c (mswindows_get_workspace_coords): * device-msw.c (mswindows_device_system_metrics): * dialog-msw.c (mswindows_popup_dialog_box): * event-msw.c (mswindows_wnd_proc): * frame-msw.c (mswindows_size_frame_internal): * menubar-msw.c (mswindows_translate_menu_or_dialog_item): * menubar-msw.c (displayable_menu_item): * menubar-msw.c (mswindows_char_is_accelerator): * nt.c: * nt.c (mswindows_sigset): * nt.c (mswindows_sigrelse): * nt.c (mswindows_sigpause): * nt.c (mswindows_raise): * nt.c (timer_proc): * ntproc.c: * ntproc.c (find_child_console): * ntproc.c (sys_kill): * print.c: * print.c (std_handle_out_external): * process-nt.c (find_child_console): * process-nt.c (send_signal_the_95_way): * process-nt.c (ensure_console_window_exists): * process-nt.c (nt_create_process): * syssignal.h: rename msw_ to mswindows_ for consistency with general convention. * emacs.c: * dumper.c: include nt.h, not syswindows.h. * nt.c (mswindows_fstat): * nt.c (mswindows_stat): prefix mswindows_ instead of attempting to directly override the library functions. fix declarations. * nt.h: include syswindows.h. move some sysdep.h stuff here. * ntheap.h: include syswindows.h, not <windows.h>. * ntplay.c: clean up headers. * sysdep.c: clean up headers. * sysdep.c (sys_fstat): * sysdep.c (sys_stat): call mswindows versions when appropriate. * sysdep.h: move mswin decls to nt.h. * syswindows.h: add long comment describing appropriate use of the various windows headers. 2000-06-11 Ben Wing <ben@xemacs.org> * device-x.c: Correct doc string for sixth arg of x-get-resource. 2000-06-10 Ben Wing <ben@xemacs.org> * Makefile.in.in (release): Correction to make sure xemacs.exe always dumped when correct. * alloca.c: * balloon_help.c: [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT. * buffer.c (set_buffer_internal): [[[[2]]]]: Remove HAVE_FEP code. * buffer.c (init_initial_directory): [3]. * bytecode.c: [[[[4]]]]: limits.h standardly included in lisp.h; remove from individual files. * callproc.c: * callproc.c (call_process_cleanup): * callproc.c (Fold_call_process_internal): * callproc.c (child_setup): * callproc.c (getenv_internal): * callproc.c (init_callproc): * callproc.c (vars_of_callproc): [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE. __CYGWIN32__ -> CYGWIN. DOS_NT -> WIN32_NATIVE. Remove MSDOS support/references, converting to WIN32_NATIVE where correct. __MINGW32__ -> MINGW. Fix windows.h includes. Remove bogus HAVE_NTGUI. * config.h.in: [2]. * console-msw.c: mswindows_message_outputted added for use in allowing startup errors on the console to be seen. * console-msw.c (msw_ensure_console_allocated): * console-msw.c (msw_output_console_string): * console-msw.c (DHEADER): * console-msw.c (DOPAQUE_DATA): * console-msw.c (DEVENT): * console-msw.c (DCONS): * console-msw.c (DCONSCDR): * console-msw.c (DSTRING): * console-msw.c (DVECTOR): * console-msw.c (DSYMBOL): * console-msw.c (DSYMNAME): Fix warnings. * console-stream.c (stream_init_console): Fix text/binary problems. * device-msw.c: * device-msw.c (mswindows_finish_init_device): * device-msw.c (mswindows_delete_device): [1]. * device.c (handle_asynch_device_change): [3]. * dgif_lib.c: * dgif_lib.c (DGifOpenFileName): * dgif_lib.c (DGifOpenFileHandle): * dgif_lib.c (DGifGetLine): * dgif_lib.c (DGifGetPixel): Added config.h/lisp.h, fix up includes. [1]. * dired-msw.c: [4]. * dired.c: * dired.c (file_name_completion): * dired.c (Ffile_attributes): * dired.c (syms_of_dired): [1]. * dumper.c: * dumper.c (pdump_file_unmap): * dumper.c (pdump_load): [1]. * editfns.c: * editfns.c (Ftemp_directory): * editfns.c (user_login_name): * editfns.c (Fuser_real_login_name): * editfns.c (get_home_directory): [1]. * elhash.c (finish_marking_weak_hash_tables): [[[[5]]]]: Fix GCC warnings. * emacs.c: * emacs.c (mswindows_handle_hardware_exceptions): * emacs.c (make_arg_list_1): * emacs.c (main_1): * emacs.c (Fkill_emacs): * emacs.c (Fdump_emacs): [1]. Fix problems with nested crashes, add long comment. * event-Xt.c (init_event_Xt_late): [1]. * event-msw.c: * event-msw.c (mswindows_dde_callback): * event-msw.c (mswindows_handle_sticky_modifiers): * event-msw.c (mswindows_wnd_proc): [1]. [5]. * events.c (character_to_event): [1]. * fileio.c: * fileio.c (Ffile_name_directory): * fileio.c (Ffile_name_nondirectory): * fileio.c (directory_file_name): * fileio.c (Fexpand_file_name): * fileio.c (Fsubstitute_in_file_name): * fileio.c (Ffile_name_absolute_p): * fileio.c (check_executable): * fileio.c (Ffile_readable_p): * fileio.c (Ffile_accessible_directory_p): * fileio.c (Ffile_modes): * fileio.c (Funix_sync): * fileio.c (vars_of_fileio): [1]. [4]. [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h. Expand getdefdir defn. Fix bogus rename() comment. [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt to use standard XEmacs include files, e.g. sysfile.h, rather than system-specific includes. * fns.c: * fns.c (Fsubseq): [5]. [6]. * frame.c (vars_of_frame): [1]. * getloadavg.c: * getloadavg.c (getloadavg): [1]. [6]. #ifdef XEMACS not defined on Cygwin. Remove this; no need for it. (We don't use it elsewhere in the code; just add a comment.) * gif_io.c: [6]. Add config.h. * glyphs-msw.c: * glyphs-msw.c (mswindows_resource_instantiate): [1]. * glyphs-x.c (x_native_layout_instantiate): [5]. * gui-msw.c (Fmswindows_shell_execute): [1]. * insdel.c: [4]. * lisp.h: [4]. [5]. * lread.c (locate_file_in_directory_mapper): [1]. * lstream.c: [4]. * mem-limits.h: * mem-limits.h (get_lim_data): [1]. * menubar-msw.c: [4]. * ndir.h: [1]. * nt.c: * nt.c (getwd): * nt.c (closedir): * nt.c (rva_to_section): * nt.c (mswindows_executable_type): [1]. [6]. Fix closedir() defn. * nt.h: [[[[8]]]]: *_OK defs moved to sysfile.h. * ntproc.c: [6]. [7]. * objects-x.c: [4]. * print.c: * print.c (std_handle_out_external): [1]. [4]. * process-nt.c: * process-nt.c (nt_create_process): [6]. try to fix process quoting somewhat. * process-unix.c (unix_create_process): [1]. * process.c: * process.c (vars_of_process): Add Vnull_device. * process.h: [1]. * realpath.c: * realpath.c (xrealpath): [1]. * redisplay-tty.c (init_tty_for_redisplay): [3]. * redisplay.c: [4]. [6]. * scrollbar-msw.c: [4]. * sheap.c: * sheap.c (more_static_core): * sheap.c (report_sheap_usage): [5]. [6]. * signal.c: * signal.c (alarm_signal): [1]. [6]. * sound.c: [6]. * strftime.c: * strftime.c (zone_name): [1]. [5]. * symsinit.h (init_sunpro): [1]. * syscommctrl.h: commctrl.h not in Cygwin b20.1. * sysdep.c: * sysdep.c (endif): * sysdep.c (sys_subshell): * sysdep.c (init_baud_rate): * sysdep.c (emacs_get_tty): * sysdep.c (emacs_set_tty): * sysdep.c (tty_init_sys_modes_on_device): * sysdep.c (init_system_name): * sysdep.c (sys_open): * sysdep.c (interruptible_open): * sysdep.c (sys_fopen): * sysdep.c (sys_mkdir): * sysdep.c (sys_rename): * sysdep.c (get_process_times_1): [1]. [6]. * sysdep.h: [1]. * sysdir.h: * sysdir.h (DIRENTRY_NONEMPTY): [1]. [6]. * sysdll.c (dll_init): * sysdll.h: [1]. * sysfile.h: [1]. [6]. [8]. added text/binary defs. * sysfloat.h: [1]. * sysproc.h: * sysproc.h (EDESTADDRREQ): * sysproc.h (poll_fds_for_input): [1]. [6]. * syspwd.h: [6]. * syssignal.h: [1]. * systime.h: [1]. [6]. * systty.h: [1]. * syswindows.h: [1]. Always define WIN32_LEAN_AND_MEAN. * unexcw.c (unexec): [5]. * unexec.c: * unexec.c (copy_text_and_data): * unexec.c (adjust_lnnoptrs): [1]. * unexnt.c: * unexnt.c (_start): [1]. 2000-06-07 Ben Wing <ben@xemacs.org> * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that was used only as a model. We've long since extracted any useful logic or code out of this. (I just did an exhaustive search.) * s\msdos.h: Removed. * s\windows95.h: Removed. 2000-06-10 Ben Wing <ben@xemacs.org> * s\cygwin32.h: [1]. [5]. Don't use extern with fun defs. * s\mingw32.h: [1]. [7]. Remove nt\inc include. Remove getdisk, getdefdir. (The former is unused, the latter expanded in fileio.h.) * s\windowsnt.h: * s\windowsnt.h (WIN32_NATIVE): * s\windowsnt.h (HAVE_STRCASECMP): [1]. [7]. Add long comment about preprocessor changes. Remove getdisk, getdefdir. (The former is unused, the latter expanded in fileio.h.) 2000-06-10 Ben Wing <ben@xemacs.org> * m\arm.h: * m\delta.h: * m\intel386.h: * m\sequent.h: * m\template.h: * m\windowsnt.h: [1]. Remove bogus/unused NO_SOCK_SIGIO. 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr> * lisp.h (set_string_char): Call set_string_byte with a Bufbyte, not an Emchar. 2000-06-04 Mike Sperber <mike@xemacs.org> * casetab.c (set_case_table): For `set-standard-case-table', actually deposit the new case tables where the rest of XEmacs can see them. 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org> * data.c (Faset): Don't cast XCHAR() to unsigned char. 2000-06-05 Ben Wing <ben@xemacs.org> * callproc.c (child_setup): Don't do close_load_descs() under MS Windows. Put in a comment explaining why. 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com> * process-nt.c: Reverting patch "Fixing nt_create_process for MKS Toolkit shell" which breaks `kill-compilation' on Windows NT native, retaining STDERR handling improvements. 2000-06-01 Andreas Jaeger <aj@suse.de> * s/s390.h: Support for S390, based on a patch by Martin Schwidefsky <schwidefsky@de.ibm.com>. 2000-05-30 Andy Piper <andy@xemacs.org> * window.c (allocate_window): (make_dummy_parent): (Fset_window_configuration): use new hashtable type. * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY): (struct image_instantiator_methods): (struct Lisp_Image_Instance): make instance geometry signed. * glyphs.c (instantiate_image_instantiator): (image_instance_query_geometry): (image_instance_layout): (image_instance_layout): (query_string_geometry): (text_query_geometry): (image_instantiate): (image_instantiate): (cache_subwindow_instance_in_frame_maybe): (subwindow_query_geometry): make instance geometry signed. * glyphs-widget.c (widget_query_geometry): (widget_layout): (button_query_geometry): (tree_view_query_geometry): (tab_control_query_geometry): (layout_query_geometry): (layout_layout): (native_layout_layout): make instance geometry signed. 2000-05-29 Olivier Galibert <galibert@pobox.com> * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC constant. * general.c (syms_of_general): Add Qfull_assoc symbol. * data.c (finish_marking_weak_lists): Mark full-assoc lists correctly. (decode_weak_list_type): Decode full-assoc type. (encode_weak_list_type): Encode full-assoc type. (Fmake_weak_list): Update doc string. 2000-05-30 Andy Piper <andy@xemacs.org> * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable. * elhash.c (print_hash_table): new KEY_VALUE weak hashtable. (decode_hash_table_weakness): ditto. (Fhash_table_weakness): ditto. (Fhash_table_type): ditto. (finish_marking_weak_hash_tables): ditto. (hash_table_weakness_validate): ditto. (syms_of_elhash): ditto. 2000-05-28 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.34 is released. 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch> * redisplay.c (VERTICAL_CLIP): No longer reset when updating line start cache. (updating_line_start_cache): Gone. (regenerate_window): Replace resetting of VERTICAL_CLIP by generic code to force a minimum of 1 line laid out in the CMOTION_DISP case. 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch> * glyphs.c (instantiate_image_instantiator): Check for initialized height & width no longer special cases IMAGE_NOTHING. (nothing_instantiate): Set height and width of instance. 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org> * unexelf.c (unexec): Search for ".data" section. Initialize new_data2_offset from old_data_index. Remove redundant check for ElfW. 2000-05-23 Andy Piper <andy@xemacs.org> * glyphs.c (get_image_instantiator_governing_domain): allow more specific domains as the governing domain rather than expecting an exact match. This fixes problems with layouts. 2000-05-22 Andy Piper <andy@xemacs.org> * redisplay-output.c (compare_runes): check for non-images * glyphs.c (set_glyph_dirty_p): ditto. (update_glyph_cachel_data): ditto. * glyphs-widget.c (layout_post_instantiate): ditto. (layout_post_instantiate): ditto. * event-msw.c (mswindows_wnd_proc): warning removal. 2000-05-12 Craig Lanning <CraigL@DyCon.com> * s\mingw32.h: Added #undef for CLASH_DETECTION. * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h. * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h. * nt.c (rva_to_section): mingw32 needs rva_to_section. (mswindows_executable_type): mingw32 now has enough headers for this to work. 2000-05-20 Andy Piper <andy@xemacs.org> * console-msw.c (mswindows_output_last_error): ; -> , 2000-05-12 Andy Piper <andy@xemacs.org> * console-msw.c (FROB): compare ints with ints. 2000-05-11 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_finalize_image_instance): make minimal build happy. 2000-05-20 Ben Wing <ben@xemacs.org> * event-Xt.c: * event-Xt.c (vars_of_event_Xt): move modifier-keys-are-sticky to event-stream.c. * event-msw.c: * event-msw.c (mswindows_enqueue_mouse_button_event): * event-msw.c (key_needs_default_processing_p): * event-msw.c (XEMSW_LCONTROL): * event-msw.c (mswindows_handle_sticky_modifiers): * event-msw.c (FROB): * event-msw.c (clear_sticky_modifiers): * event-msw.c (output_modifier_keyboard_state): * event-msw.c (output_alt_keyboard_state): * event-msw.c (mswindows_wnd_proc): * event-msw.c (mswindows_modifier_state): * event-msw.c (emacs_mswindows_handle_magic_event): implement sticky modifiers. * event-stream.c: * event-stream.c (vars_of_event_stream): move modifier-keys-are-sticky here. * lisp.h: add CHECK_FUNCTION. * rangetab.c: implement map-range-table. 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org> * redisplay-tty.c (reset_tty_modes): (tty_redisplay_shutdown): Adjust argument type to tty_frame_output_end. 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org> * eval.c (Fbacktrace): Don't output a line with only right parenthesis. 2000-05-17 Kenji Itoh <keit@tpj.co.jp> * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'. (Fpq_reset_poll): Ditto. 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org> * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end. 2000-05-16 Ben Wing <ben@xemacs.org> * buffer.c: * buffer.c (dfc_convert_to/from_internal_format): * buffer.c (reinit_vars_of_buffer): Fix conversion functions to allow reentrancy. * console-msw.c: * console-msw.c (mswindows_output_last_error): New fun, generally useful -- output a human-readable version of GetLastError() on the console. * console-msw.h: * console-msw.h (struct mswindows_frame): Changes for DeferWindowPos. Declare mswindows_output_last_error(). * console-stream.c (stream_output_begin): * console-stream.c (stream_output_end): * console-stream.c (stream_output_vertical_divider): * console-stream.c (stream_clear_region): * console-stream.c (stream_flash): * console-stream.c (console_type_create_stream): Delete blank stream methods, not needed. * console.h (struct console_methods): Split begin/end methods into window and frame. * event-msw.c: * event-msw.c (mswindows_handle_paint): * event-msw.c (output_alt_keyboard_state): * event-msw.c (mswindows_wnd_proc): * event-msw.c (vars_of_event_mswindows): Comment about problems with ignored-expose. Define mswindows-debug-events; not really implemented. * frame-msw.c (mswindows_init_frame_1): random cleanups. * glyphs-msw.c: * glyphs-msw.c (begin_defer_window_pos): * glyphs-msw.c (mswindows_unmap_subwindow): * glyphs-msw.c (mswindows_map_subwindow): * glyphs-msw.c (mswindows_resize_subwindow): Use DeferWindowPos to reduce flashing when mapping/unmapping. * glyphs.c (make_image_instance_1): Fix crash. * gutter.c (Fredisplay_gutter_area): Use new begin/end methods. * lisp.h (Dynarr_new2): New creation fun. * redisplay-msw.c: * redisplay-msw.c (mswindows_frame_output_begin): * redisplay-msw.c (mswindows_frame_output_end): * redisplay-msw.c (console_type_create_redisplay_mswindows): New begin/end methods -- handle DeferWindowPos. * redisplay-output.c (redisplay_move_cursor): * redisplay-output.c (redraw_cursor_in_window): * redisplay-output.c (redisplay_update_line): * redisplay-output.c (redisplay_output_window): New begin/end methods. * redisplay-tty.c: * redisplay-tty.c (tty_frame_output_begin): * redisplay-tty.c (tty_frame_output_end): * redisplay-tty.c (console_type_create_redisplay_tty): New begin/end methods. * redisplay-x.c: * redisplay-x.c (x_window_output_begin): * redisplay-x.c (x_window_output_end): * redisplay-x.c (console_type_create_redisplay_x): New begin/end methods. * redisplay.c (redisplay_frame): * redisplay.c (Fredisplay_echo_area): New begin/end methods. use MAYBE_DEVMETH for clear_frame; it may not exist. * window.h (WINDOW_XFRAME): WINDOW_XFOO macros -- get locale and decode struct pointer. 2000-05-12 Ben Wing <ben@xemacs.org> * emacs.c: * emacs.c (ensure_no_quitting_from_now_on): * emacs.c (fatal_error_signal): * emacs.c (mswindows_handle_hardware_exceptions): * emacs.c (main): * emacs.c (Fkill_emacs): * emacs.c (shut_down_emacs): * emacs.c (assert_failed): various improvements in fatal error handling. * eval.c: move preparing_for_armageddon to emacs.c. * lisp.h: declare fatal_error_in_progress. * print.c: * print.c (std_handle_out_external): * print.c (std_handle_out_va): * print.c (stderr_out): * print.c (stdout_out): use console under mswin when no standard output. don't do code conversion during fatal error. * scrollbar.c (Fscrollbar_page_up): * scrollbar.c (Fscrollbar_page_down): fix missing else. reindent. 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch> Emergency fix. * glyphs.h (GLYPH_CACHEL_DESCENT): (GLYPH_CACHEL_DESCENT): (GLYPH_CACHEL_DESCENT): * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables used in case these are inline functions. Use more absurd values to error check. include window.h for error check functions. 2000-05-11 Ben Wing <ben@xemacs.org> * cmdloop.c (Freally_early_error_handler): Display message box under windows; otherwise, message will disappear before it can be viewed. * console-msw.c: * console-msw.c (Fmswindows_message_box): * console-msw.c (FROB): * console-msw.c (syms_of_console_mswindows): Define new fun `mswindows-message-box'. #### I will merge this into `popup-dialog-box'; just give me a bit of time. * general.c: * general.c (syms_of_general): Some new symbols used in `mswindows-message-box'. * glyphs.c: * glyphs.c (Fset_image_instance_property): put warning in this fun. * glyphs.h: * glyphs.h (GLYPH_CACHEL_WIDTH): * glyphs.h (GLYPH_CACHEL_ASCENT): * glyphs.h (GLYPH_CACHEL): * glyphs.h (GLYPH_CACHEL_GLYPH): define error-checking versions to try to catch a bug i've seen -- redisplay gets in an infinite loop because the glyph width of the continuation glyph is 65535. * lisp.h: Extern message-box stuff. * window.c (allocate_window): * window.c (make_dummy_parent): * window.c (Fset_window_configuration): Use EQUAL not EQ for subwindow caches to make them work a bit better. (Something is still very broken.) 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org> * glyphs.c (image_instantiate): Suppress gcc warnings. (Fmake_image_instance): Fix doc string. * specifier.c (Fmake_specifier): Ditto. 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org> * paths.h.in (PATH_LOCK): Removed. * config.h.in (LOCKDIR_USER_DEFINED): Removed. * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory. 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org> * fns.c (Ffeaturep): Update e-mail address in doc-string. Document (featurep '(and xemacs 21.02)). 2000-05-09 Ben Wing <ben@xemacs.org> * buffer.c (complex_vars_of_buffer): update modeline-format doc. * device.h: comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE. * emacs.c: timeline of all released versions of Emacs, for use in creating authorship comments and in synching up. * glyphs-widget.c (image_instantiator_buttons): * glyphs-widget.c (image_instantiator_edit_fields): * glyphs-widget.c (image_instantiator_combo_box): * glyphs-widget.c (image_instantiator_scrollbar): * glyphs-widget.c (image_instantiator_progress_guage): * glyphs-widget.c (image_instantiator_tree_view): * glyphs-widget.c (image_instantiator_tab_control): * glyphs-widget.c (image_instantiator_labels): * glyphs-widget.c (image_instantiator_layout): * glyphs-widget.c (image_instantiator_native_layout): rename decode_domain method to governing_domain. * glyphs.c: * glyphs.c (Fvalid_image_instantiator_format_p): doc update. * glyphs.c (add_entry_to_device_ii_format_list): make sure we don't put an entry more than once into the list. * glyphs.c (check_instance_cache_mapper): ************************************************************* allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE HAVE BEEN GETTING. ************************************************************* * glyphs.c (get_image_instantiator_governing_domain): clean up, expand on new concept of governing domain. * glyphs.c (instantiate_image_instantiator): * glyphs.c (allocate_image_instance): use governing_domain instead of cache_domain in naming. * glyphs.c (Fvalid_image_instance_type_p): fix docs. * glyphs.c (make_image_instance_1): * glyphs.c (Fmake_image_instance): allow for any domain (not just device), and process the governing domain correctly. very big doc fix. * glyphs.c (Fimage_instance_domain): new primitive, to retrieve the governing domain of an image instance. * glyphs.c (image_instantiate): use new governing_domain stuff. this fixes a crash you could get by instantiating certain widget glyphs in frame locales. (should signal an error instead of crashing.) * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier. * glyphs.c (Fglyphp): clean up doc. * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain. * glyphs.c (syms_of_glyphs): declare Fimage_instance_domain, remove unused Qlayout_image_instance_p. * glyphs.c (image_instantiator_format_create): add some comments about bogus code. * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string for current-display-table. (Apparently Hrjove implemented in 1998 a design I wrote up in 1996, but didn't update the doc string.) * glyphs.h: clean up a doc string. * glyphs.h (governing_domain): * glyphs.h (struct image_instantiator_methods): changes for governing_domain stuff. * gutter.c: * gutter.c (Fgutter_specifier_p): * gutter.c (Fgutter_size_specifier_p): * gutter.c (Fgutter_visible_specifier_p): * objects.c: * objects.c (Fcolor_specifier_p): * objects.c (Ffont_specifier_p): * objects.c (Fface_boolean_specifier_p): doc strings moved to make-*-specifier. * redisplay.c (add_disp_table_entry_runes_1): * redisplay.c (generate_fstring_runes): * redisplay.c (screen): add random comments and doc strings. * specifier.c: * specifier.c (Fmake_specifier): major overhaul of this doc string. * specifier.c (Fvalid_specifier_domain_p): comment about the bogosity of image instances being domains. * specifier.c (decode_domain): now non-static, used in glyphs.c. * specifier.c (specifier_instance): comment about the bogosity of image instances being domains. * specifier.c (Fgeneric_specifier_p): move doc string to make-generic-specifier. * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P): rebackslashify. * specifier.h: * specifier.h (DOMAIN_FRAME): * specifier.h (DOMAIN_LIVE_P): * specifier.h (DOMAIN_XDEVICE): rebackslashify. add comments about problems with these macros. prototype for decode_domain. * toolbar.c: * toolbar.c (Ftoolbar_specifier_p): move doc string to `make-toolbar-specifier'. * window.c (window_unmap_subwindows_cache_mapper): ************************************************************* allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE HAVE BEEN GETTING. ************************************************************* 2000-05-09 Andy Piper <andy@xemacs.org> * glyphs.h: declare reset_frame_subwindow_instance_cache. * window.c (Fset_window_configuration): reset the frame subwindow cache and re-initialize the window subwindow caches. * glyphs.c (reset_frame_subwindow_instance_cache): new function. 2000-05-09 Ben Wing <ben@xemacs.org> * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to DWORD. 2000-04-26 Mike Woolley <mike@bulsara.com> * ntheap.c: Changed recreate_heap to limit the amount reserved for the heap to that which is actually available. Also now displays a message box (with some dignostics) in the event that it still can't start. 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch> * callproc.c (Fold_call_process_internal): GCPRO path 2000-05-08 Jan Vroonhof <jan@xemacs.org> Patch by Bill Perry. * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call back data instead of #ifdef. (Fscrollbar_page_down): ditto. 2000-05-07 Ben Wing <ben@xemacs.org> * buffer.h: Kludge for defining Qmswindows_tstr. * nt.c: * nt.c (open_input_file): * nt.c (open_output_file): * nt.c (rva_to_section): * nt.c (mswindows_executable_type): Move all memory-mapped-file routines here (some were in unexnt.c, which is bad because they are used by process-nt.c, and unexnt won't be around when portable dumping). Synched the above routines with FSF 20.6. * nt.h: Removed ifdef'd out bogus code. Fixed some prototypes. * nt.h (file_data): * nt.h (OFFSET_TO_RVA): * nt.h (RVA_TO_OFFSET): * nt.h (RVA_TO_PTR): Moved the memory-mapped-file structures, macros and prototypes here, to parallel nt.c. ntheap.h should really be removed entirely, and it's a non-portable-dumper specific file. * ntheap.h (round_to_next): Moved the memory-mapped-file structures, macros and prototypes to nt.h. * ntproc.c (compare_env): Moved rva_to_section and mswindows_executable_type to nt.c. Moved compare_env to process-nt.c. ntproc.c will die, one day. * ntproc.c (sys_spawnve): Account for win32_ -> mswindows_. * process-nt.c: * process-nt.c (struct nt_process_data): * process-nt.c (ensure_console_window_exists): * process-nt.c (compare_env): * process-nt.c (nt_create_process): * process-nt.c (nt_kill_process_by_pid): * process-nt.c (syms_of_process_nt): * process-nt.c (vars_of_process_nt): Introduce variable `mswindows-quote-process-args', from FSF 20.6. Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization changes). Eliminate our old `nt-quote-process-args' mechanism. Synch up nt_create_process with FSF 20.6 sys_spawnve. Move compare_env here from ntproc.c. * process.c (Fprocess_send_region): Takes an optional fourth argument, BUFFER, which should fix some problems with call-process. * syscommctrl.h: Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning. * syswindows.h: Move ICC_BAR_CLASSES to syscommctrl.h. Add preliminary macros for MSWindows/Mule. More to come. * unexnt.c: * unexnt.c (unexec): open_output_file moved to nt.c. 2000-05-05 Andy Piper <andy@xemacs.org> * window.c (window_unmap_subwindows_cache_mapper): remove the dead instance from the frame cache also since GC may catch up too late to make frame deletion sane. 2000-05-04 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks. (x_finalize_image_instance): ungcpro on deletion. * glyphs.c (image_instantiator_format_create): give pointers a query geometry method so that the geometry is at least set. * glyphs-x.c (image_instantiator_format_create_glyphs_x): only initialize layouts if using widgets. 2000-05-03 Andy Piper <andy@xemacs.org> * nt.c: remove bogus reference to sysmmsystem.h * gui-x.c (popup_selection_callback): fix no selection abort. 2000-05-02 Andy Piper <andy@xemacs.org> * glyphs-msw.c (mswindows_update_widget): cope with nil text. (mswindows_widget_instantiate): ditto. * glyphs-widget.c (initialize_widget_image_instance): initialize children correctly. (widget_instantiate): cope with children and items in the same instance. * glyphs.c (mark_image_instance): cope with children as a first class member. (image_instance_equal): ditto. (image_instance_hash): ditto. (image_instance_changed): ditto. 2000-04-30 Andy Piper <andy@xemacs.org> * glyphs.c (subwindow_query_geometry): new function. Return some defaults. (subwindow_instantiate): don't assign dimensions if none have been given. (image_instantiator_format_create): add subwindow_query_geometry. (print_image_instance): cope with layouts as widgets. 2000-04-29 Andy Piper <andy@xemacs.org> * frame.c (delete_frame_internal): call free_frame_subwindow_instance_cache so that all subwindows are finalized before their parent. (mark_frame): remove subwindow_cachels. (Fmake_frame): remove subwindow_cachel manipulation. (allocate_frame_core): subwindow_instance_cache is a weak list. (delete_frame_internal): set subwindow_instance_cache to nil. * glyphs-msw.c (mswindows_finalize_image_instance): make double finalization safe. (mswindows_finalize_image_instance): use the device not the domain as the domain may have died already. * glyphs-x.c (x_finalize_image_instance): ditto. (x_subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT. * redisplay-output.c (redisplay_unmap_subwindows): update for subwindow instance cache as a weak list. (redisplay_unmap_subwindows_maybe): ditto. (redisplay_unmap_subwindows_except_us): ditto. * glyphs.c (unmap_subwindow): error checking will check the domain so don't deal with it here. Don't use cachels anymore. (map_subwindow): ditto. (update_subwindow_cachel_data): remove old accessor names. (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT. (Fresize_subwindow): don't update cachel. (mark_subwindow_cachels): (update_subwindow_cachel_data): (add_subwindow_cachel): (get_subwindow_cachel_index): (update_subwindow_cachel): (reset_subwindow_cachels): (mark_subwindow_cachels_as_not_updated): deleted. (cache_subwindow_instance_in_frame_maybe): new function. Add a subwindow instance to the frame cache. (find_matching_subwindow): update for subwindow instance cache as a weak list. (update_widget_instances): ditto. (image_instance_type_to_mask):inlined. (free_frame_subwindow_instance_cache): new function. finalize all subwindows that are instantiated. * glyphs.h (struct Lisp_Image_Instance): add display_data instead of cachel information. (IMAGE_INSTANCE_DISPLAY_X): (IMAGE_INSTANCE_DISPLAY_Y): (IMAGE_INSTANCE_DISPLAY_WIDTH): (IMAGE_INSTANCE_DISPLAY_HEIGHT): (XIMAGE_INSTANCE_DISPLAY_X): (XIMAGE_INSTANCE_DISPLAY_Y): (XIMAGE_INSTANCE_DISPLAY_WIDTH): (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors. remove subwindow_cachel structure and function references. (image_instance_type_to_mask): inline from glyphs.c * redisplay.c (redisplay_frame): remove subwindow_cachel references. * frame.h (struct frame): remove subwindow_cachels. (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache. * frameslots.h: add subwindow_instance_cache. * window.c (replace_window): check subwindow cache of replacement. (window_unmap_subwindows_cache_mapper): (window_unmap_subwindows): new functions. Unmap all subwindows cached on this window. (mark_window_as_deleted): unmap all subwindows. 2000-04-27 Andy Piper <andy@xemacs.org> * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths. * glyphs-widget.c (widget_layout): return something. (layout_layout): return something. Fail if not initialized. (layout_query_geometry): ditto. (image_instantiator_native_layout): new function. Initialized the native layout type. (widget_instantiate): don't do layout stuff here. * glyphs.c (instantiate_image_instantiator): reorded calling or instantiate and post_instantiate with layout in between. (image_instance_layout): be more selective about deciding whether the layout has been done or not. * glyphs.h (struct image_instantiator_methods): return a value from layout_method. 2000-04-26 Andy Piper <andy@xemacs.org> * glyphs.c (allocate_image_instance): make initial width and height unspecified. Set initialized to 0. * syscommctrl.h new file. Encapsulates commctrl.h. * syswindows.h new file. Encapsulates windows.h. * ntplay.c: use new syswindows.h and syscommctrl.h header. * nt.c: ditto. * console-msw.h: ditto. * redisplay-tty.c (tty_output_display_block): remove layout references. * glyphs-msw.c (mswindows_widget_instantiate): use the domain window handle rather than just the frame. * glyphs.c (mark_image_instance): remove layout references. (print_image_instance): ditto. (image_instance_equal): ditto. (image_instance_hash): ditto. (decode_image_instance_type): ditto. (encode_image_instance_type): ditto. (image_instantiate): ditto. (allocate_glyph): ditto. (Fimage_instance_height): ditto. (Fimage_instance_width): ditto. (update_subwindow): ditto. * redisplay-x.c (x_output_display_block): recode for layouts as widgets. * redisplay-output.c (redisplay_output_layout): recode for layouts as widgets. (compare_runes): remove layout references. * redisplay-msw.c (mswindows_output_display_block): recode for layouts as widgets. * glyphs-widget.c (image_instantiator_layout): remove layout_possible_dest_types. (layout_possible_dest_types): deleted. * glyphs.h (image_instance_type): remove layout references. (struct Lisp_Image_Instance): ditto. Add initialized flag. (IMAGE_INSTANCE_INITIALIZED): new accessor. (XIMAGE_INSTANCE_INITIALIZED): ditto. 2000-04-25 Andy Piper <andy@xemacs.org> * glyphs-widget.c (image_instantiator_buttons): (image_instantiator_edit_fields): (image_instantiator_combo_box): (image_instantiator_scrollbar): (image_instantiator_progress_guage): (image_instantiator_tree_view): (image_instantiator_tab_control): (image_instantiator_labels): (image_instantiator_layout): call default post_instantiate method. (widget_post_instantiate): new function. Simply lays out the widgets. * glyphs.h (struct image_instantiator_methods): add post_instantiate method. * glyphs.c (instantiate_image_instantiator): add post_instantiate method calls. 2000-04-23 Andy Piper <andy@xemacs.org> * glyphs.h (struct image_instantiator_methods): add decode_domain_method. (struct Lisp_Image_Instance): remove subwindow frame - it can be derived from the domain. (IMAGE_INSTANCE_FRAME): new accessor. (XIMAGE_INSTANCE_FRAME): ditto. * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME instead of _SUBWINDOW_FRAME. (finalize_image_instance): ditto. (Fimage_instance_foreground): ditto. (Fimage_instance_background): ditto. (image_instantiate): ditto. (update_subwindow_cachel): ditto. (update_subwindow): ditto. (unmap_subwindow): ditto. (map_subwindow): ditto (subwindow_instantiate): ditto. * glyphs-msw.c (mswindows_update_widget): ditto. (mswindows_progress_gauge_instantiate): ditto. (mswindows_tab_control_update): ditto. * glyphs-x.c (x_update_widget): ditto. (x_widget_instantiate): ditto. (x_tab_control_instantiate): ditto. (x_tab_control_update): ditto. * event-msw.c (mswindows_wnd_proc): ditto * glyphs-widget.c (image_instantiator_layout): use subwindow_decode_domain. (image_instantiator_buttons): ditto. (image_instantiator_edit_fields): ditto. (image_instantiator_combo_box): ditto. (image_instantiator_scrollbar): ditto. (image_instantiator_progress_guage): ditto. (image_instantiator_tree_view): ditto. (image_instantiator_tab_control): ditto. (image_instantiator_labels): ditto. (image_instantiator_layout): ditto. * glyphs.c: add instance error checking to many functions. (instantiate_image_instantiator): decode device from cache_domain. (image_instantiate): partially rewrite by using decode_image_instantiator_domain to determine what domain the instance needs to be cached in. (decode_image_instantiator_domain): new function. Determine what domain the image needs to be cached in. (check_window_subwindow_cache): new error checking function. (check_instance_cache_mapper): ditto. (check_image_instance_structure): ditto. (subwindow_decode_domain): new function. Encodes a window as a subwindow's cache domain. (image_instantiator_format_create): use it for text and subwindows. 2000-04-21 Andy Piper <andy@xemacs.org> * glyphs.c (image_instance_device): new function. (image_instance_frame): new function. (image_instance_window): new function. (image_instance_live_p): new function. * window.c (mark_window_as_deleted): reset the subwindow_instance_ cache to nil. * glyphs.h (struct Lisp_Image_Instance): device->domain. (IMAGE_INSTANCE_DOMAIN): new accessor. (XIMAGE_INSTANCE_DOMAIN): ditto. * glyphs-x.c (x_finalize_image_instance): device->domain. * glyphs-msw.c (init_image_instance_geometry): device->domain. (mswindows_finalize_image_instance): ditto. * glyphs-eimage.c (jpeg_instantiate): device->domain. (gif_instantiate): ditto. (png_instantiate): ditto. (tiff_instantiate): ditto. * glyphs.c (instantiate_image_instantiator): use domain rather than device. (mark_image_instance): device -> domain. (print_image_instance): ditto. (finalize_image_instance): ditto. (image_instance_equal): ditto. (allocate_image_instance): ditto. (Fcolorize_image_instance): ditto. (query_string_geometry): ditto. (image_instantiate): ditto (query_string_font): ditto. (image_instantiate): ditto. (update_subwindow): ditto. (unmap_subwindow): ditto. (map_subwindow): ditto. (subwindow_instantiate): ditto. * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder. (DOMAIN_FRAME): ditto. (DOMAIN_WINDOW): ditto. (DOMAIN_LIVE_P): ditto. (XDOMAIN_DEVICE): ditto. (XDOMAIN_FRAME): ditto. (XDOMAIN_WINDOW): ditto. * specifier.c (Fvalid_specifier_domain_p): add image instances as a valid specifier domain. 2000-04-19 Andy Piper <andy@xemacs.org> * glyphs-widget.c (syms_of_glyphs_widget): remove widget-callback-current-channel. (vars_of_glyphs_widget): ditto. * glyphs.h: ditto * gui.c (get_gui_callback): revert to previous behaviour. 2000-04-18 Andy Piper <andy@xemacs.org> * glyphs.h (struct Lisp_Image_Instance): add margin_width. (IMAGE_INSTANCE_MARGIN_WIDTH): new. (XIMAGE_INSTANCE_MARGIN_WIDTH): new. * glyphs.c (image_instance_equal): add margin_width. (image_instance_hash): ditto. * glyphs-widget.c (widget_instantiate): deal with margin-width. (layout_query_geometry): ditto. (layout_layout): ditto. (syms_of_glyphs_widget): add margin-width. (image_instantiator_layout): allow margin-width. * glyphs.c (update_widget_instances): make a normal function. (syms_of_glyphs): remove Qupdate_widget_instances. * glyphs.h: ditto. * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event so that we don't corrupt ideas about the last event or command. Remove widget-callback-current-channel fiddling. * gui-msw.c (mswindows_handle_gui_wm_command): ditto. 2000-05-01 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.33 is released. 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org> * make-src-depend: Allow dots in header file name. 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org> * mule-charset.h (struct charset_lookup): Add next_allocated_1_byte_leading_byte and next_allocated_2_byte_leading_byte. * mule-charset.c: Move above two variables so that those values will be dumped. 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org> * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii when string length is zero. (find_charsets_in_emchar_string): Ditto. 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se> * lisp.h: extern Qdialog and Qmenubar. * gui-x.c: added events.h. also fixed typo which made the file uncompilable. * general.c: Added Qmenubar and Qdialog 2000-04-28 Ben Wing <ben@xemacs.org> * frame-msw.c (mswindows_init_frame_1): * frame-msw.c (mswindows_mark_frame): * event-msw.c (mswindows_enqueue_dispatch_event): * console-msw.h: * console-msw.h (struct mswindows_frame): * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1): there are now three hash tables for callbacks. mswindows_enqueue_dispatch_event is no longer static. * dialog-x.c (maybe_run_dbox_text_callback): * dialog-x.c (dbox_descriptor_to_widget_value): switch to new cons3 form for callbacks. * glyphs-msw.c (mswindows_register_gui_item): * glyphs-msw.c (mswindows_widget_instantiate): * glyphs-msw.c (add_tree_item): * glyphs-msw.c (add_tab_item): new image instance parameter, so it can be passed to callback-ex. respect :callback-ex as well as :callback. * glyphs-widget.c (VALID_GUI_KEYWORDS): add :callback-ex. * glyphs.c (print_image_instance): prettify, e.g. now prints widget type. * gui-x.h: certain funs have new image instance parameter. * gui.c: * gui.c (get_gui_callback): * gui.c (gui_item_add_keyval_pair): * gui.c (gui_item_init): * gui.c (gui_add_item_keywords_to_plist): * gui.c (mark_gui_item): * gui.c (gui_item_hash): * gui.c (gui_item_equal): * gui.c (copy_gui_item): * gui.c (syms_of_gui): recognize callback-ex in a number of places. also, fix the annoying "can't get out of yes-no dialog" bug. * gui.h: * gui.h (struct Lisp_Gui_Item): recognize callback-ex in a number of places. * menubar-x.c (menu_item_descriptor_to_widget_value_1): new parameter in button_item_to_widget_value. * glyphs-x.c (x_update_widget): * glyphs-x.c (x_button_instantiate): * glyphs-x.c (x_button_update): * glyphs-x.c (x_progress_gauge_instantiate): * glyphs-x.c (x_edit_field_instantiate): * glyphs-x.c (x_combo_box_instantiate): * glyphs-x.c (x_tab_control_instantiate): * glyphs-x.c (x_label_instantiate): new image instance parameter in various places. * event-Xt.c: * event-Xt.c (enqueue_Xt_dispatch_event): this fun gets exported. * gui-msw.c: * gui-msw.c (mswindows_handle_gui_wm_command): handle both :callback and :callback-ex, and generate our own event because it's one of the callback-ex arguments. * gui-x.c: * gui-x.c (popup_selection_callback): handle both :callback and :callback-ex, and generate our own event because it's one of the callback-ex arguments. * gui-x.c (button_item_to_widget_value): * gui-x.c (gui_items_to_widget_values_1): * gui-x.c (gui_item_children_to_widget_values): * gui-x.c (gui_items_to_widget_values): new image instance parameter in various places. * fns.c (Freplace_list): fix small typo in doc string. * lisp.h: declare enqueue_Xt_dispatch_event. 2000-04-28 Ben Wing <ben@xemacs.org> * buffer.c: * buffer.c (Frecord_buffer): * buffer.c (syms_of_buffer): delete record-buffer-hook. * fns.c: * fns.c (Freplace_list): * fns.c (syms_of_fns): new primitive replace-list. * frameslots.h: slot for old buffer-alist. * lisp.h: exfun replace-list. * redisplay.c: * redisplay.c (redisplay_frame): * redisplay.c (syms_of_redisplay): * redisplay.c (vars_of_redisplay): new hook buffer-list-changed-hook. call it. 2000-04-27 Ben Wing <ben@xemacs.org> * extents.h: extern in_modeline_generation. * redisplay.c (generate_formatted_string_db): set in_modeline_generation. * extents.c (extent_changed_for_redisplay): don't mark redisplay flags if in modeline generation. otherwise frame-modified-tick is ticked far too often. Declare in_modeline_generation. 2000-04-26 Ben Wing <ben@xemacs.org> * emacs.c (vars_of_emacs): document quick-build "error-checking" option. (vars_of_emacs): add quick-build as an error-checking option. A bit kludgy, but there doesn't seem much point in creating a real var for this. * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE. 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org> * redisplay.h (struct display_line): Add a new variable, line_continuation. * redisplay.c (create_text_block): Set dl->line_continuation if the line continues. (create_string_text_block): Ditto. (regenerate_window_incrementally): Use line_continuation instead of searching continuation glyph. (add_margin_runes): Call add_glyph_rune. (add_glyph_rune): Handle margin glyph. 2000-04-20 Martin Buchholz <martin@xemacs.org> * filelock.c (fill_in_lock_file_name): ANSIfy. Check for IS_ANY_SEP instead of '/'. (lock_file_1): Avoid generating gratuitous garbage. Call user_login_name() directly. Never check errno without first seeing that system call failed. (unlock_file): Add GCPRO. (Flock_buffer): Fix docstring. (Ffile_locked_p): Fix docstring. Add GCPRO. 2000-04-19 Martin Buchholz <martin@xemacs.org> * sysdep.c (get_pty_max_bytes): Fix hangs on DEC OSF 4.0 when (process-send-string) sends strings longer than 252 bytes. * md5.c: Unconditionally include ANSI header <limits.h> * glyphs-x.c (convert_EImage_to_XImage): * lisp-union.h (union Lisp_Object): Use consistently the syntax #ifdef FEATURE, not #if FEATURE. 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org> * filelock.c (current_lock_owner): Remove unused variable o, p. 2000-04-17 Norbert Koch <n.koch@eai-delta.de> * callint.c: Remove multiply defined symbol Qlet (syms_of_callint): ditto. 2000-04-14 Andy Piper <andy@xemacs.org> * general.c (syms_of_general): add last-command, this-command, let and funcall. * lisp.h: declare various symbols. * glyphs.h: declare Qwidget_callback_current_channel; * glyphs-widget.c (syms_of_glyphs_widget): add Qgui_callback_current_channel. (vars_of_glyphs_widget): add Vgui_callback_current_channel. * gui-msw.c (mswindows_handle_gui_wm_command): bind widget-callback-current-channel when invoking the interactive arg. Also bind last-command and next-command when invoking the widget updates. * gui-x.c (popup_selection_callback): ditto. * gui.c (get_gui_callback): massage args so that we are always calling eval. This allows us to add our own variable bindings outside. * glyphs-x.c (x_button_instantiate): use gui_items_to_widget_values since this is GC safe. (x_progress_gauge_instantiate): ditto. (x_edit_field_instantiate): ditto. (x_label_instantiate): ditto. * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs. (emacs_Xt_event_widget_focus_out): new function (emacs_Xt_event_widget_focus_in): new function. Set the keyboard focus. (emacs_Xt_event_add_widget_actions): new function. add focus functions as actions. (init_event_Xt_late): use it. 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr> * event-stream.c (Fdispatch_event): Doc fix. 2000-03-29 SL Baur <steve@musashimaru.m17n.org> * postgresql.c: Remove all references to PQsetenv*. * postgresql.h: Remove references to PGsetenvHandler object. * lrecord.h (lrecord_type): Ditto. 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * glyphs-msw.h (struct mswindows_image_instance_data): Added real_heigh and real_width members, and accessor macros for these. * glyphs-msw.c (init_image_instance_geometry): New function. (init_image_instance_from_dibitmap): Use it. (mswindows_resource_instantiate): Use it. (init_image_instance_from_xbm_inline): Use it. (mswindows_initialize_image_instance_mask): Use real bitmap geometry. (mswindows_create_resized_bitmap): Ditto. (mswindows_create_resized_mask): Ditto. * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask and bitmap to their surface size. 2000-04-11 Jan Vroonhof <jan@xemacs.org> * process-unix.c (unix_send_process): Guard against process MIA after Faccept_process_output. 2000-04-11 Ben Wing <ben@xemacs.org> * eval.c (unbind_to_hairy): fix brokenness introduced by nanosecond speed improvements. 2000-04-07 Raymond Toy <toy@rtp.ericsson.se> * sunplay.c (init_device): To play sounds correctly, the device apparently needs to be initialized at least once by XEmacs. Make it so. 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org> * redisplay.c (add_margin_runes): Add text image glyph handling. 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org> * lisp.h (DOESNT_RETURN): Don't declare as volatile when gcc is newer than 2.5. 2000-04-06 Colin Rafferty <colin@xemacs.org> * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created. * fns.c (size_bit_vector): * alloc.c (size_vector): (make_vector_internal): (make_bit_vector_internal): (sweep_bit_vectors_1): Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro. 2000-04-06 Andy Piper <andy@xemacs.org> * gmalloc.c (malloc): undo previous change. (malloc): ditto. (free): ditto. (realloc): ditto. 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org> * line-number.c (buffer_line_number): Revert to former version. 2000-04-06 Andy Piper <andy@xemacs.org> * gmalloc.c (malloc): add error checking. (malloc): ditto. (free): ditto. (realloc): ditto. * dialog-x.c (dbox_descriptor_to_widget_value): add extra button_item_to_widget_value arg. * glyphs-x.c (x_button_instantiate): add extra button_item_to_widget_value arg. (x_progress_gauge_instantiate): ditto. (x_edit_field_instantiate): ditto. (x_label_instantiate): ditto. * gui-x.c (gui_items_to_widget_values_1): add extra button_item_to_widget_value arg. (button_item_to_widget_value): add extra menu_item_p arg. * gui-x.h: change signature of button_item_to_widget_value. * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra button_item_to_widget_value arg. 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org> * buffer.h (struct buffer): auto_save_modified should be long. 2000-04-05 Andy Piper <andy@xemacs.org> * glyphs-widget.c (widget_instantiate): pixwidth != pixheight type. (button_query_geometry): give a little more room so that athena buttons fit. 2000-04-05 Andy Piper <andy@xemacs.org> * faces.c (complex_vars_of_faces): The widget face should inherit the font of the gui-element face. 2000-04-04 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_button_update): new function. unconditionally update a button's state when the instance is dirty. (image_instantiator_format_create_glyphs_x): add x_button_update. (x_widget_instantiate): remove old resize cruft. 2000-04-02 Andy Piper <andy@xemacs.org> * frame.c (change_frame_size_1): The introduction of gutters means that we need to allow 0 as a potential frame dimension. 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org> * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text image glyph if allow_cursor. (add_hscroll_rune): Don't allow cursor to border glyph. (create_text_block): Ditto. * redisplay-output.c (redisplay_move_cursor): Do nothing even if text not in buffer. (redisplay_output_layout): Call ensure_face_cachel_complete for text image glyph. 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org> * redisplay.c (add_glyph_rune): Adding text image as text runes. * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text not in buffer * redisplay-tty.c (tty_output_display_block): Delete the routine for text image glyph * redisplay-x.c (x_output_display_block): ditto * redisplay-msw.c (mswindows_output_display_block): ditto 2000-02-02 Mike Alexander <mta@arbortext.com> Note: Some of these were committed by accident as part of other patches. * regex.c (regex_compile): Avoid compiler warnings. * ntproc.c (sys_spawnve): Avoid compiler warnings. * nt.h: Declare term_ntproc correctly. * nt.c: Remove incorrect declaration of get_home_directory which is declared correctly in lisp.h. * keymap.c (get_keyelt): Avoid compiler warnings. (raw_lookup_key_mapper): Avoid compiler warnings. * gutter.c (gutter_was_visible): Add return statement to avoid warning. * glyphs-eimage.c (png_instantiate): Avoid compiler warnings. * filemode.c (mode_string): Avoid compiler warnings. * file-coding.c (Fcoding_system_aliasee): Add return statement to avoid warning. * events-mod.h: Undef some things that winuser.h defines differently. * data.c (Faset): Avoid compiler warnings. * alloc.c (Fmake_byte_code): Avoid compiler warnings. 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch> * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts. Fall through to simple beep on error. Replace "extern" by real header file. * linuxplay.c: Use nativesound.h (play_sound_data): Return error code. Be less verbose on error. * sunplay.c: Use nativesound.h (play_sound_data): Return error code. Be less verbose on error. * ntplay.c: Use nativesound.h (play_sound_data): Return fake error code * sgiplay.c: Use nativesound.h (play_sound_data): Return error code * hpplay.c: Use nativesound.h, partially implement new error code. Break compilation until finished. (play_sound_data): error code. * nativesound.h (play_sound_file): (play_sound_data): Prototype in new header. 2000-03-31 Andy Piper <andy@xemacs.org> * glyphs-widget.c: (button_query_geometry): new function. Adjust for toggle and radio buttons. (image_instantiator_buttons): use it. 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch> * scrollbar-x.c (x_update_vertical_scrollbar_callback): (x_update_horizontal_scrollbar_callback): Return if no mirror was found. Scrollbar event probably belonged to some old config. 2000-03-31 Andy Piper <andy@xemacs.org> * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather than 1. (initialize_widget_image_instance): default layout to LAYOUT_HORIZONTAL rather than 0. (widget_instantiate): reverse the item list at the end rather than every iteration. (layout_layout): re-code for the border text at the front of the item list rather than at the end. (layout_query_geometry): ditto. Pick up fixed and dynamic sizes provided by the user. (widget_query_geometry): comment. 2000-03-30 Andy Piper <andy@xemacs.org> * glyphs-widget.c (image_instantiator_layout): allow standard widget keywords in layouts. * gutter.c (output_gutter): cope with nil gutter contents. * frame.c (Fset_frame_properties): add gutter docs. 2000-03-29 Andy Piper <andy@xemacs.org> * toolbar-msw.c (TBSTYLE_FLAT): add. (mswindows_output_toolbar): minor fiddling. 2000-03-29 Andy Piper <andy@xemacs.org> * gutter.c (output_gutter): force gutter size recalculation if what we are trying to display won't fit. (update_gutter_geometry): new function. A per-gutter version of update_frame_gutter_geometry. (update_frame_gutter_geometry): use it. (redraw_exposed_gutter): add extra debugging output. 2000-03-28 Mike Alexander <mta@arbortext.com> * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only) (pdump_file_unmap): Implement it on Windows (pdump_file_get): Save alocated handles for pdump_file_unmap 2000-03-28 Andy Piper <andy@xemacs.org> * gui.c (get_gui_callback): treat Quit specially. 2000-03-27 Andy Piper <andy@xemacs.org> * glyphs.c (image_instantiate): be careful to check in the same way we assigned. 2000-03-27 Didier Verna <didier@xemacs.org> * config.h.in: define the proper SMART_INCLUDE macro. handle renaming of `foo_h_path' to `foo_h_file'. * database.c: ditto. * emacs.c: ditto. * linuxplay.c: ditto. * terminfo.c: ditto. * tooltalk.h: ditto. 2000-03-27 Andy Piper <andy@xemacs.org> * glyphs-msw.c (mswindows_update_widget): make sure the widget gets updated whenever the face might have changed. 2000-03-26 Mike Alexander <mta@arbortext.com> * dumper.c (pdump_resource_free): Fix the comment. 2000-03-21 Olivier Galibert <galibert@pobox.com> * input-method-xlib.c (XIM_init_frame): Remove painful warning. 2000-03-22 Mike Alexander <mta@arbortext.com> * dumper.c: Include Windows headers on Windows (pdump_resource_free): Add a body to the function (pdump_load): exe_name -> exe_path and add some comments. 2000-03-25 Mike Alexander <mta@arbortext.com> * gui.c (copy_gui_item_tree): Return a value in all cases 2000-03-21 Didier Verna <didier@xemacs.org> * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from lwlib/config.h.in. (SMART_INCLUDE): new macro. (POSTGRES_INCLUDE): new macro to include postgresql headers from the proper location. * postgresql.c: use it. * inline.c: ditto. 2000-03-24 Andy Piper <andy@xemacs.org> * gutter.c (redraw_exposed_gutters): must be "in display" when we do this. 2000-03-24 Andy Piper <andy@xemacs.org> * redisplay-output.c (compare_runes): use image_instance_changed to detect changes. Do not depend on glyphs_changed, only depend on dirtiness. (redisplay_output_layout): add debug messages. (compare_runes): ditto. * glyphs.h: declare new functions. (struct Lisp_Image_Instance): remove percent and associated accessors. * gui.h: declare new copying functions. * gui.c (copy_gui_item_tree): new function. (copy_gui_item): new function. (gui_item_id_hash): revert to standard hash. (gui_item_hash): ditto. (gui_item_hash_internal): deleted. (mark_gui_item): mark value. (gui_item_add_keyval_pair): add value. (gui_item_init): ditto. (gui_add_item_keywords_to_plist): ditto. (gui_item_equal): ditto. (syms_of_gui): add Q_value. * glyphs-x.c (x_progress_gauge_update): use pending items and value for setting the state. (x_update_widget): don't set items from pending here. * glyphs-widget.c (update_widget): update items here. (progress_gauge_set_property): use items for storing value. Put new value in pending items. * glyphs-msw.c (mswindows_progress_gauge_update): use pending items for new value. Convert percent -> value. (mswindows_tab_control_update): don't update items here. * glyphs.c (Fupdate_widget_instances): use image_instance_changed. (update_subwindow): ditto. (image_instance_changed): new function. Compare hash values and past and present widget items. (image_instantiate): We more careful about where we instantiate things. (image_instantiate): add error checking. * gutter.c (syms_of_gutter): use -hook. 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org> * console-tty.c (Fset_console_tty_input_coding_system): Use Qkeyboard. (Fset_console_tty_output_coding_system): Use Qterminal. (tty_init_console): Use Qkeyboard and Qterminal. 2000-03-21 Ben Wing <ben@xemacs.org> * ntproc.c (create_child): remove bogus HAVE_NTGUI's. From Mike Alexander <mta@arbortext.com>. 2000-03-21 Ben Wing <ben@xemacs.org> * event-msw.c (mswindows_need_event): Horrible kludge to fix process brokenness. Proper implementation to come. * callproc.c: Rename call-process-internal to old-call-process-internal. New impl. in process.el. 2000-03-21 Martin Buchholz <martin@xemacs.org> * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments. 2000-03-20 Andy Piper <andy@xemacs.org> * glyphs.c (full_list_hash): make hashes of the same elements in different orders return different values. 2000-03-20 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.32 is released. 2000-03-20 Martin Buchholz <martin@xemacs.org> * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA): (DFC_MALLOC_USE_CONVERTED_DATA): Add aliasing-safe casts to allow use with char* or unsigned char* lvalues. * eldap.c (Fldap_open): (Fldap_search_basic): (Fldap_add): (Fldap_modify): Make C++-compilable. Make sure GCPRO'ed variables are initialized. Use temp variables to avoid repeated calls to Flength. 2000-03-16 Martin Buchholz <martin@xemacs.org> * sysfile.h: Make sure PATH_MAX is always defined. Include limits.h for PATH_MAX. Deprecate use of MAXPATHLEN. 2000-03-10 Martin Buchholz <martin@xemacs.org> * emacs.c: Add reinit_vars_of_fileio. * symsinit.h: Add reinit_vars_of_fileio. * fileio.c (reinit_vars_of_fileio): New. * fileio.c (Fmake_temp_name): Initialize temp_name random number from microseconds to make collisions even less likely. Initialize always at process startup time. (make-temp-name) used to return the same file name twice in a row when PDUMP. Random stylistic fiddling. Comment fixes. 2000-03-20 Andy Piper <andy@xemacs.org> * glyphs.c (image_instantiate): allow text glyphs to be instantiated in the minibuffer window. 2000-03-19 Andy Piper <andy@xemacs.org> * glyphs.c (image_instance_hash): be careful about which items we hash on. * glyphs-widget.c (tab_control_set_property): record into pending items rather than the actual items. * glyphs-x.c (x_update_widget): use pending items to update with. * glyphs-msw.c (mswindows_tab_control_update): use pending items to update with. * glyphs.c (mark_image_instance): mark pending items. * window.c (Fset_window_configuration): record the buffer. (Fselect_window): totally revert previous change which breaks many things. 2000-03-18 Andy Piper <andy@xemacs.org> * glyphs-msw.c (mswindows_tab_control_update): force selected item. * glyphs.c (image_instantiate): don't allow the minibuffer as a window domain cache, otherwise we get inconsistencies at startup. There is something fishy at startup which can lead to the minibuffer being the selected window when the gutter content is instantiated. * gui.c (parse_gui_item_tree_list): add probably unnecessary gcpros. (parse_gui_item_tree_children): ditto. (parse_gui_item_tree_item): ditto. * glyphs.c (Fupdate_widget_instances): return something. 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org> * window.c (Fselect_window): Undo 2000-03-17 change. 2000-03-17 SL Baur <steve@musashimaru.m17n.org> * postgresql.c (Fpq_setenv): Remove this turkey when linking against v7.0 libraries. Insta-coredump city until the postgres folks fix it. 2000-03-17 Andy Piper <andy@xemacs.org> * faces.c (complex_vars_of_faces): don't give the widget face an inherited background pixmap. * glyphs-msw.c (mswindows_tab_control_instantiate): select the selected item. * event-stream.c (Fdispatch_non_command_events): return something. * gutter.c (output_gutter): use widget face. (clear_gutter): ditto. * NEWS: adjust again. * window.c (Fselect_window): make sure this runs to completion to avoid oddities with Fset_window_configuration. (Fcurrent_window_configuration): in general do not save the minibuffer as the selected window. * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase. 2000-03-16 Olivier Galibert <galibert@pobox.com> * emacs.c (Frunning_temacs_p): Revert previous patch. (main_1): Reinitialize running_temacs_argc if pdump_load succeeds. 2000-03-16 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_tab_control_update): if no widget values then return. * NEWS: update for new features. * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a synthetic event to the native system. (reinit_vars_of_event_Xt): set force_event_pending to emacs_Xt_force_event_pending. * events.h (struct event_stream): add force_event_pending. * specifier.c (recompute_one_cached_specifier_in_window): add comment. * redisplay.c (redisplay_frame): don't call update_frame_subwindows. Reset subwindow cachels when subwindows_changed, removing this was an optimization too far. * redisplay-output.c (compare_runes): reorganize so that we catch glyph changes when we want them. Set optimize_output when this would help layouts. (redisplay_output_layout): remove frame_really_changed, use optimize_output instead. * redisplay-msw.c (mswindows_output_display_block): reset optimize_output after outputting a glyph. * redisplay-x.c (x_output_display_block): ditto. * redisplay-tty.c (tty_output_display_block): ditto. * gutter.c: (specifier_vars_of_gutter): use new spec changed functions. (gutter_specs_changed): do specific gutter positions. (top_gutter_specs_changed): new function. Only update the specified gutter specs. (bottom_gutter_specs_changed): ditto. (left_gutter_specs_changed): ditto. (right_gutter_specs_changed): ditto. * gui.c (gui_item_hash_internal): new function, does a real hash. (gui_item_id_hash): use it. (gui_item_hash): hash the eval'ed gui_item. * gui-x.c (popup_selection_callback): send an eval event to call Fupdate_widget_instances. * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event to call Fupdate_widget_instances. * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag. (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it. * glyphs.c: (update_frame_subwindows): deleted. (Fupdate_widget_instances): new function for updating the dirty state of widgets that might have changed. (syms_of_glyphs): add Qupdate_widget_instances. (full_list_hash): hash a list completely. (image_instance_hash): use it for items and properties. * frame-msw.c (mswindows_size_frame_internal): remove unused variable. * faces.h (struct face_cachel): fix comment. * event-stream.c (Fdispatch_non_command_events): new function. Process non-command events, forcing an event cycle beforehand. (syms_of_event_stream): declare. (event_stream_force_event_pending): new function. Force an event on the native event queue so that an event cycle will occur next time we check. * event-msw.c: (struct ntpipe_shove_stream): (mswindows_enqueue_dispatch_event): (mswindows_dequeue_dispatch_event): (mswindows_cancel_dispatch_event): (mswindows_pump_outstanding_events): (mswindows_drain_windows_queue): (mswindows_handle_paint): (mswindows_wnd_proc): (mswindows_key_to_emacs_keysym): (get_process_input_waitable): (emacs_mswindows_delete_stream_pair): re-indent file. (mswindows_need_event): do not process further fds if the windows fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This fixes the 100% cpu problem. (reinit_vars_of_event_mswindows): set force_event_pending to 0. 2000-03-15 Olivier Galibert <galibert@pobox.com> * alloc.h: New. * dumper.h: New. * dumper.c: New. * emacs.c: Moved dump file searching to dumper.c. (Frunning_temacs_p): Fixed. * alloc.c: Moved everything pdump-related to dumper.c. Removed last_lrecord_type_index_assigned. 2000-02-20 Olivier Galibert <galibert@pobox.com> * symsinit.h: Added reinit parameter to init_console_stream declaration. * lisp.h: Added file parameter to pdump_load declaration. * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id support. Added dump file searching. * config.h.in: Added EMACS_PROGNAME. * console-stream.c (init_console_stream): Fix reinitialisation when running from temacs. * alloc.c (pdump): Add id support. (pdump_load): Add file parameter and signature/id support. * Makefile.in.in: Add full pdump support. 2000-03-15 SL Baur <steve@musashimaru.m17n.org> * postgresql.c: Update documentation to reflect latest code status. (print_result): Show tuple counts in printed representation when appropriate. (Fpq_put_nbytes): MULE-ize. (Fpq_get_line_async): Ditto. 2000-03-14 SL Baur <steve@musashimaru.m17n.org> * postgresql.c (Fpq_lo_import): Fix return value. Suggested by: Kenji Itoh <keit@tpj.co.jp>. 2000-03-13 Ben Wing <ben@xemacs.org> * alloc.c (pdump_load): Fix compile warning under mswin. 2000-03-14 SL Baur <steve@musashimaru.m17n.org> * postgresql.c: Mule-ization, bug fixes. Use PG_CODING to encapsulate coding system name changes. Backport a version of TO_EXTERNAL format for 21.1/InfoDock. (pg-coding-system): Create. (Fpq_conn_defaults): Mule-ize. (Fpq_connectdb): Mule-ize & bug fix. (Fpq_connect_start): Mule-ize. (Fpq_set_client_encoding): Mule-ize. (Fpq_finish): Document `DEAD' connection status. (Fpq_clear): Ditto. (Fpq_pgconn): Mule-ize. (Fpq_exec): Mule-ize & bug fix. (Fpq_send_query): Ditto. (Fpq_get_result): Ditto. (Fpq_res_status): Mule-ize. (Fpq_result_error_message): Mule-ize. (Fpq_ntuples): fix comments. (Fpq_fname): Mule-ize. (Fpq_fnumber): Mule-ize. (Fpq_ftype): fix comments. (Fpq_get_value): Mule-ize. (Fpq_cmd_status): Ditto. (Fpq_cmd_tuples): Ditto. (Fpq_oid_value): Ditto. (Fpq_notifies): Ditto. (Fpq_lo_import): Ditto. (Fpq_lo_export): Ditto. (Fpq_get_line): Ditto. (Fpq_put_line): Mule-ize and bug fix. (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system. 2000-03-10 SL Baur <steve@musashimaru.m17n.org> * postgresql.c (vars_of_postgresql): Mule-ize. (Fpq_conn_defaults): Ditto. 2000-03-12 Ben Wing <ben@xemacs.org> * alloc.c (Fmake_byte_code): * alloc.c (debug_string_purity_print): * alloc.c (pdump_backtrace): * alloc.c (pdump_get_indirect_count): * alloc.c (pdump_register_sub): * alloc.c (pdump_register_object): * alloc.c (pdump_register_struct): * alloc.c (pdump_dump_data): * alloc.c (pdump_reloc_one): Minor cleanups. * console-msw.c: * console-msw.c (GetConsoleHwnd): * console-msw.c (msw_hide_console): * console-msw.c (msw_show_console): * console-msw.c (msw_ensure_console_buffered): * console-msw.c (msw_output_console_string): * console-msw.c (console_type_create_mswindows): a) Added functions to manipulate the console window for use with shell support. b) Added support for writing text to the console, which is now used under Windows when xemacs is not being run non-interactively, to write text that would otherwise be destined for stdout because under these circumstances, text written to stdout tends to disappear and not be seen. * console-msw.h: * event-Xt.c: * event-Xt.c (x_event_to_emacs_event): * event-Xt.c (describe_event_window): * events-mod.h (XEMACS_MOD_CONTROL): * events.c: * events.c (Fmake_event): * events.c (character_to_event): * events.c (event_to_character): * events.c (format_event_object): * events.c (Fevent_modifiers): * events.h: * events.h (struct key_data): * events.h (struct button_data): * events.h (struct misc_user_data): * frame-x.c (Fcde_start_drag_internal): * frame-x.c (Foffix_start_drag_internal): * gpmevent.c (Freceive_gpm_event): * keymap.c: * keymap.c (bucky_sym_to_bucky_bit): * keymap.c (control_meta_superify): * keymap.c (make_key_description): * keymap.c (keymap_lookup_directly): * keymap.c (create_bucky_submap): * keymap.c (keymap_store): * keymap.c (define_key_check_and_coerce_keysym): * keymap.c (define_key_parser): * keymap.c (define_key_alternate_name): * keymap.c (Fdefine_key): * keymap.c (raw_lookup_key_mapper): * keymap.c (struct map_keymap_unsorted_closure): * keymap.c (map_keymap_unsorted_mapper): * keymap.c (map_keymap_sort_predicate): * keymap.c (map_keymap_sorted): * keymap.c (accessible_keymaps_mapper_1): * keymap.c (where_is_recursive_mapper): * keymap.c (describe_map_mapper): * keymap.c (describe_map_sort_predicate): * keymap.c (describe_map): * keymap.c (complex_vars_of_keymap): And a number of other files, the key modifier preprocessor constants that xemacs uses have names that conflict with constants defined under MS Windows for other purposes, so they were renamed to begin with the prefix XEMACS_. The variables that hold such modifiers were changed to consistently be of type int to fix various compile warnings. * console.c (complex_vars_of_console): * device.c: * device-msw.c: * device-msw.c (mswindows_finish_init_device): * device-msw.c (msw_get_workspace_coords): * device-msw.c (mswindows_device_system_metrics): and various other files, added support for a new device property called offset-workspace which returns the position of the upper left corner of the workspace area and goes along with the existing size-workspace property. * dialog-msw.c: * dialog-msw.c (push_bufbyte_string_as_unicode): * dialog-msw.c (mswindows_popup_dialog_box): Added support for XEmacs-style accelerator specifications in button text. Note: I didn't add support for this under X Windows, and somebody needs to do this. * dialog.c: * dialog.c (Fpopup_dialog_box): Documented the support for accelerators that was just mentioned. editfns.c (get_home_directory): Changed behavior under Windows when HOME not defined; former behavior was irretrievably broken. * emacs.c: * emacs.c (main_1): * emacs.c (main): * minibuf.c (clear_echo_area_internal): * minibuf.c (echo_area_append): * print.c: * print.c (std_handle_out_external): * print.c (std_handle_out_va): * print.c (fatal): * print.c (write_string_to_stdio_stream): * print.c (output_string): * print.c (debug_print): * print.c (debug_backtrace): * print.c (debug_short_backtrace): Cleaned up the code that prints text to stdout so that this can be changed to output into a console window instead under MS Windows, as described above. * eval.c: * eval.c (DEFEND_AGAINST_THROW_RECURSION): * eval.c (internal_catch): * eval.c (unwind_to_catch): * eval.c (throw_or_bomb_out): * eval.c (condition_case_1): * eval.c (signal_1): * eval.c (check_error_state_sanity): * eval.c (call_with_suspended_errors_1): * eval.c (call_with_suspended_errors): * eval.c (reinit_vars_of_eval): Added code to catch throw loops and check for a pesky bug that may be gone now. * event-msw.c: * event-msw.c (key_needs_default_processing_p): * event-msw.c (mswindows_wnd_proc): * event-msw.c (mswindows_modifier_state): * event-msw.c (emacs_mswindows_quit_p): * event-msw.c (vars_of_event_mswindows): a) Added support for using the alt key to select menu items as is standard under MS Windows. This is controlled using the variable menu-accelerator-enabled, just like under X Windows. There is an option on the options menu to turn this support on. I really think that it should be on by default under Windows, but I'm not going to make this change yet. b) Added support for dynamic display size changes under Windows. * event-stream.c: * event-stream.c (maybe_echo_keys): * event-stream.c (Fnext_event): * event-stream.c (command_builder_find_leaf): * event-stream.c (lookup_command_event): * event-stream.c (execute_command_event): * event-stream.c (pre_command_hook): * event-stream.c (post_command_hook): * event-stream.c (syms_of_event_stream): * event-stream.c (vars_of_event_stream): * event-stream.c (complex_vars_of_event_stream): * events.h (struct command_builder): a) Tried to clean up a little bit the horribly written x-specific accelerator code that crept into this file. I moved this code into menubar-x.c where it belongs. I also needed to move the command builder structure into the file events.h because it is accessed directly by this accelerator code. What I didn't do, but which should be done at some point, is to properly abstract this code using device methods instead of the kludgy way that it currently hooks into the event code. b) Added the lisp variables this-command-properties and last-command- properties, which should be used to synchronize two adjacent commands in preference to playing games with the variable this-command, which is typically what happens. c) Added some slightly nasty code to hook into the lisp support for shifted- motion-key selection. This is actually necessary for somewhat complicated reasons, which are described in simple.el. (NB: I think the proper thing would be to have the code that calls the pre and post command hooks also call out to generic lisp functions in simple.el, where all built-in stuff could be added. I will think about this more.) * event-unixoid.c (poll_fds_for_input): * lread.c (readchar): * redisplay-tty.c (tty_clear_frame): * redisplay-x.c (x_get_gc): * signal.c (interrupt_signal): And a whole bunch of other files: fixed up places that printed directly to stderr to instead call the function stderr_out so that the changes I made under Windows work correctly. * filemode.c (mode_string): Warning fixes. * frame-msw.c: * frame-msw.c (mswindows_size_frame_internal): Fixed the computation of frame size and position to keep the frame within the workspace area, rather than within the physical dimensions of the screen, so that the frame doesn't overlap window manager decorations, such as the start menu and toolbar, typically at the bottom of the screen. * frame.c (vars_of_frame): Changed the default frame title format under MS Windows to consist of buffername-XEmacs, which is standard under MS Windows. I think it might be a good idea to change this everywhere because I think it is superior to the current frame title format, but this is the kind of change that is likely to cause some people to get annoyed, so I'm not making it. * glyphs-eimage.c (png_instantiate): Fixed some compile warnings. * gui-msw.c (mswindows_handle_gui_wm_command): Fixed compile warnings. * gui-x.c: * gui-x.c (strdup_and_add_accel): * gui-x.c (button_item_to_widget_value): * gui-x.h: Added code to automatically put an accelerator onto the beginning of menu items that don't have one as is now the standard, and is described more later. Also fixed things so that the menu item name can be an evaluated expression, again a new standard. * gui.c: * gui.c (gui_item_add_keyval_pair): * gui.c (make_gui_item_from_keywords_internal): * gui.c (gui_add_item_keywords_to_plist): * gui.c (gui_item_accelerator): * gui.c (gui_name_accelerator): * gui.c (gui_item_included_p): * gui.c (gui_item_display_flush_left): * gui.c (gui_item_display_flush_right): * gui.c (parse_gui_item_tree_item): * gui.c (parse_gui_item_tree_children): * gui.c (parse_gui_item_tree_list): Mule-ized. Cleanup. GCPRO addition. * line-number.c (buffer_line_number): * lisp.h: * lisp.h (EMACS_INT_MAX): Added the manifest constant EMACS_INT_MIN corresponding to the existing constant EMACS_INT_MAX. This is partially to fix compile warnings under Windows, and partly for cleanliness. * menubar-msw.c: * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH): * menubar-msw.c (msw_translate_menu_or_dialog_item): * menubar-msw.c (displayable_menu_item): * menubar-msw.c (populate_menu_add_item): * menubar-msw.c (populate_or_checksum_helper): * menubar-msw.c (populate_menu): * menubar-msw.c (update_frame_menubar_maybe): * menubar-msw.c (prune_menubar): * menubar-msw.c (msw_char_is_accelerator): * menubar-msw.c (unsafe_handle_wm_initmenu_1): * menubar-msw.c (mswindows_handle_wm_command): * menubar-msw.c (mswindows_handle_wm_initmenupopup): * menubar-msw.c (mswindows_handle_wm_initmenu): * menubar-msw.c (mswindows_update_frame_menubars): * menubar-msw.c (mswindows_free_frame_menubars): * menubar-msw.c (mswindows_popup_menu): Fixed a bug in handling accelerators where an extra character would be displayed in the menu item. Also generalized the function displayable_menu_item because it is now used by the dialog box code as well. And finally, added code in the functions that create the menubar to extract a list of accelerators for the top level menubar, which is used in the event code to determine whether a particular alt-key combination should be used to invoke a menu item, or should be passed through to access the standard XEmacs keymap binding for this key combination. Much needed GCPROing. * menubar-x.c: * menubar-x.c (menu_item_descriptor_to_widget_value_1): * menubar-x.c (menu_item_descriptor_to_widget_value): * menubar-x.c (restore_in_menu_callback): * menubar-x.c (x_popup_menu): * menubar-x.c (menu_move_up): * menubar-x.c (menu_move_down): * menubar-x.c (menu_move_left): * menubar-x.c (menu_move_right): * menubar-x.c (menu_select_item): * menubar-x.c (command_builder_operate_menu_accelerator): * menubar-x.c (menu_accelerator_junk_on_error): * menubar-x.c (command_builder_find_menu_accelerator): * menubar-x.c (Faccelerate_menu): * menubar.h: Moved a whole bunch of code here that was previously in event-stream.c as described above. There is also code connected to the new standard of adding an accelerator to the beginning of menu items that don't have one as described above and below. * menubar.c: * menubar.c (menu_parse_submenu_keywords): * menubar.c (Fmenu_find_real_submenu): * menubar.c (Fnormalize_menu_item_name): * menubar.c (syms_of_menubar): * menubar.c (vars_of_menubar): * menubar.c (complex_vars_of_menubar): a) Cleaned up a bunch of documentation and improved it. b) XEmacs now automatically adds an accelerator onto the beginning of any menu items that don't have one. I did this because there will inevitably be some menu items on the main menubar that don't have accelerators on them because the package that adds that particular menu item hasn't yet been fixed up to have accelerators in them and it looked rather strange to have some items with and some items without accelerators, especially since even in items without accelerators, you can, at least under windows, still access the item through an accelerator corresponding to the first character in the item's name. If people don't like this behavior, I can add a variable to turn it off optionally, but I'm not sure this is a good idea because we really do need to have accelerators on all of the menu items, and if a package doesn't like the accelerators being put on the first character, then it should put the accelerators where they belong. c) I made a behavior change, which is that the descriptor that specifies the text of the menu item, which formerly was just a string, can now also be an evaluated expression. This makes this descriptor parallel with all of the others, which could also be evaluated expressions. This also obviates the need for the keyword :label, which was previously listed in the documentation as unimplemented, and which was for the same purpose. d) GCPROing. * ntproc.c: * ntproc.c (new_child): * ntproc.c (sys_spawnve): * ntproc.c (find_child_console): * ntproc.c (sys_kill): Fixed compile warnings. By the way, this file should really go away entirely, and this will happen as soon as Kirill makes his final round of process cleanups, which affect the function call-process. * process-nt.c: * process-nt.c (struct nt_process_data): * process-nt.c (find_process_from_pid): * process-nt.c (send_signal_the_nt_way): * process-nt.c (enable_child_signals): * process-nt.c (find_child_console): * process-nt.c (send_signal_the_95_way): * process-nt.c (nt_finalize_process_data): * process-nt.c (ensure_console_window_exists): * process-nt.c (nt_create_process): * process-nt.c (nt_kill_child_process): * process-nt.c (nt_kill_process_by_pid): * process-nt.c (nt_open_network_stream): * process-nt.c (vars_of_process_nt): Copied over code from Emacs 20.5 to correctly send signals to sub- processes under Windows 95. Also added code to automatically create and hide console window when a sub-process is created under Windows 95, which obviates the need for the separate runemacs.exe executable, and finally implemented some variables that were implemented in Emacs 20.5, but previously not in XEmacs. These include mswindows- start-process-share-console and mswindows-start-process-inherit-error-mode. (Both of these only apply to Windows 95.) * regex.c (regex_compile): Fixed a compile warning. * select-msw.c: * select-msw.c (mswindows_own_selection): * select-msw.c (mswindows_get_foreign_selection): * select-msw.c (mswindows_disown_selection): * select-msw.c (console_type_create_select_mswindows): * select-msw.c (syms_of_select_mswindows): Cleaned up the file and implemented the device method selection_exists_p, which had accidentally been left out. Also removed four lisp functions that were remnants from before the time when the selection code was properly device abstracted. These functions are no longer needed because there are generic equivalents, and because they were added recently and don't exist in FSF Emacs, I don't think there's any problem with just deleting them. * sysdep.c: * sysdep.c (sys_subshell): Fixed a compile warning, although in this case there's probably something wrong with this code, and it ought to be looked into more thoroughly by somebody who understands it. * window.c: * window.c (Fwindow_text_area_height): * window.c (Fwindow_width): * window.c (Fwindow_full_width): * window.c (Fwindow_pixel_width): * window.c (debug_print_window): * window.c (syms_of_window): Added functions window-text-area-height and window-full-width, which are functions for returning various width and height characteristics of a window. (One of these functions is necessary for making the file dialog box work correctly, and the other one was added for completeness.) Also added a table to the documentation for window-height which describes the entire scheme for accessing width and height characteristics of a window. 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * nt.c (fstat): Added a comment for another problem with non-encapsulated [f]stat(), reported by Adrian Aichner <aichner@ecf.teradyne.com>. 2000-03-11 Andy Piper <andy@xemacs.org> * window.c (make_dummy_parent): initialize subwindow instance cache. (Fset_window_configuration): zero extent_modiff. 2000-03-10 Andy Piper <andy@xemacs.org> * redisplay.c (Fredraw_frame): reset the changed_set flags so that more changes can be triggered. (Fredisplay_frame): ditto. (Fredraw_device): ditto. (Fredisplay_device): ditto. (redisplay_frame): make non-static. (redisplay_frame): call update_frame_gutter_geometry outside of display proper. * gutter.h: declare update_frame_gutter_geometry. * redisplay.h: declare redisplay_frame. * gutter.c (update_frame_gutter_geometry): move geometry changes in update_frame_gutters here. Geometry changes can only occur outside of redisplay. (update_frame_gutters): remove geometry change code. (Fredisplay_gutter_area): make sure that we are in display when we update and that we have flushed any size changes. 2000-03-11 Andy Piper <andy@xemacs.org> * alloc.c (pdump_dump_data): remove i & count shadows. 2000-02-27 Mike Alexander <mta@arbortext.com> * sysdep.h: Declare pdump_read_file * sysdep.c (pdump_read_file): New function * alloc.c (pdump_load): Call pdump_read_file to get the portable dump data 2000-03-10 SL Baur <steve@musashimaru.m17n.org> * lrecord.h: add `lrecord_type_pgsetenv'. 2000-03-08 SL Baur <steve@musashimaru.m17n.org> * symsinit.h: declare (vars|syms)_of* functions. * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'. 2000-03-06 SL Baur <steve@musashimaru.m17n.org> * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7 * inline.c: Include postgresql.h lrecord stuffs to placate buggy GCCs. * emacs.c (main_1): Call postgres initialization code. * postgresql.h: New file. PostgreSQL RDBMS support. * postgresql.c: New file. 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org> * redisplay-output.c (redisplay_output_display_block): Disable redundant code. 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org> * mule-canna.c (Fcanna_henkan_region): Translate doc-string. (Fcanna_henkan_next): Ditto. (Fcanna_bunsetu_henkou): Ditto. (Fcanna_henkan_kakutei): Ditto. (Fcanna_henkan_end): Ditto. (Fcanna_henkan_quit): Ditto. (Fcanna_henkan_next): Set retun value correctly. (c2mu): Use unsigned char instead of signed char. 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org> * emacs.c (main_1): Always call syms_of_gui. * inline.c: include gui.h 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org> * redisplay.c (Vvisible_bell): Renamed from visible_bell and converted to Lisp_Object. (Qtop_bottom): New variable. (syms_of_redisplay): Initialize it. * redisplay.h (Vvisible_bell): Ditto. * sound.c (ding): Ditto and check if Vvisible_bell is nil. * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom, only flash top and bottom. 2000-03-08 Andy Piper <andy@xemacs.org> * buffer.c (Frename_buffer): record new buffer name the right way. 2000-03-08 Andy Piper <andy@xemacs.org> * glyphs.c (update_subwindow): increase hash depth so that widget items get picked up properly. * redisplay-output.c (compare_runes): increase hash depth so that widget items get picked up properly. 2000-03-08 Andy Piper <andy@xemacs.org> * gutter.c (output_gutter): add some debug. * glyphs.h (struct Lisp_Image_Instance): add display_hash. (IMAGE_INSTANCE_DISPLAY_HASH): new macro. (XIMAGE_INSTANCE_DISPLAY_HASH): ditto. * redisplay-output.c (compare_runes): use display_hash to determine if glyphs really are not the same. * glyphs.c (update_subwindow): check display_hash to see if anything really needs to be updated. If not then do nothing. Record the display_hash after updating. (image_instance_equal): compare the image_instance face also. 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org> * redisplay.h: Fix comment style. 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk> * consle-msw.h (struct mswindows_frame): Added new member paint_pending to indicate whether a WM_PAINT magic event has been queued for this frame. * event-msw.c (mswindows_drain_windows_queue): Don't queue a WM_PAINT magic event if one is already queued. (emacs_mswindows_handle_magic_event): clear paint_pending flag. * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag. 2000-03-07 Didier Verna <didier@xemacs.org> * dired.c: #include `regex.h' after `sysfile.h'. 2000-03-06 Martin Buchholz <martin@xemacs.org> * sound.c (init_nas_sound): Fix compiler warning. * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New. (FREE_STRUCT_P): (MARK_STRUCT_AS_FREE): (MARK_STRUCT_AS_NOT_FREE): Make `gcc -fstrict-aliasing' work properly. 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk> * device-msw.c (mswindows_finish_init_device): Call CoInitialize(). (mswindows_delete_device): Call CoUnnitialize(). * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts. 2000-02-25 <CraigL@DyCon.com> * process-nt.c: MinGW now has <shellapi.h>, but still needs <errno.h>. * sysdep.c: This extern declaration for environ prevents MinGW from finding the variable in CRTDLL.DLL. * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's windows headers. (SHGFI_EXETYPE): .. (WM_MOUSEWHEEL): .. (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL definitions. (MMRESULT): Removed, now defined in cygwin's windows headers. (TIMECAPS): .. (uid_t,gid_t,pid_t,ssize_t): .. (_timeb): Removed, MinGW defines both _timeb and timeb. (HAVE_H_ERRNO): Added. (HAVE_TZNAME): Added, configure is not detecting this. 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org> * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro. * syntax.c (syntax_match): Use it. * cmds.c: Import auto-fill-chars from FSF Emacs. (Vauto_fill_chars): New variables. (internal_self_insert): Check Vauto_fill_chars. (vars_of_cmds): Declare auto-fill-chars as a Lisp variable and initialize it. 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk> * fileio.c (Fmake_symbolic_link): (Ffile_symlink_p): Run handlers even if local machine doesn't have symlinks. 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk> * event-msw.c (mswindows_drain_windows_queue): Don't generate paint magic events for non-XEmacs frames. 2000-03-05 Andy Piper <andy@xemacs.org> * redisplay.c (redisplay_frame): generate_displayable_area and friends assumes that we are not in GC, we therefore have to make sure that this doesn't happen. * gutter.c (calculate_gutter_size): generate_displayable_area assumes that we are not in GC, we therefore have to make sure that this doesn't happen. 2000-03-05 Martin Buchholz <martin@xemacs.org> * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch> * redisplay.c (regenerate_window): Make sure we set a sane value for end_pos even if we jump out of the loop. (regenerate_window): Answer Ben's question :-). (start_end_of_last_line): Add may_error argument. (start_of_last_line): (end_of_last_line): Pass may_error = 0. (end_of_last_line_may_error): New function. (pixel_to_glyph_translation): Use it, so we don't crash in event_to_glyph. 2000-03-04 Andy Piper <andy@xemacs.org> * window.h (struct window): add gutter_extent_modiff. * window.c (allocate_window): zero out gutter_extent_modiff. * redisplay.h: declare sync_display_line_structs. * redisplay.c (add_glyph_rune): add a better comment. * redisplay-output.c (sync_display_line_structs): made non-static. (compare_runes): remove unneccesary glyph cachel access. * gutter.h: declare gutter_extent_signal_changed_region_maybe. * gutter.c (output_gutter): don't output the gutter if extent changes only involve extents in buffers. use 4 sets of display lines. (gutter_extent_signal_changed_region_maybe): new function. Mark extents in gutters as changed. (update_frame_gutters): use 4 sets of display lines. (reset_gutter_display_lines): ditto. (free_frame_gutters): ditto. (redraw_exposed_gutter): force output of gutters. * frame.h (struct frame): add 4 sets of gutter display lines. * extents.c: (extent_changed_for_redisplay): signal changes to extents in strings in the gutter as well as extents in buffers. 2000-03-02 Andy Piper <andy@xemacs.org> * gutter.c (specifier_vars_of_gutter): cosmetic changes. * frame.c (Fmake_frame): make sure the gutters get initialized after the frame is visible. (set_frame_selected_window): re-arrange compilation macros a little. (change_frame_size_1): mark gutters changed. * device.c (Fset_device_class): mark gutters changed. 2000-03-01 Andy Piper <andy@xemacs.org> * window.c (window_top_frame_gutter_height): deleted. (window_bottom_frame_gutter_height): ditto. (window_left_frame_gutter_height): ditto. (window_right_frame_gutter_height): ditto. (window_top_gutter_height): don't use them. (window_bottom_gutter_height): ditto. (window_left_gutter_width): ditto. (window_right_gutter_width): ditto. (Fsplit_window): ditto. (Fwindow_pixel_edges): don't use border dimensions here. * scrollbar.c (update_scrollbar_instance): don't take gutters into account. (update_scrollbar_instance): ditto. * redisplay.c (generate_modeline): don't take gutters into account. (generate_modeline): ditto. (redisplay_frame): small gutter display optimization. * redisplay-x.c (x_output_vertical_divider): don't take gutters into account. * redisplay-msw.c (mswindows_output_vertical_divider): don't take gutters into account. * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks for window position and type. * gutter.c (get_gutter_coords): fix for frame gutters. (update_frame_gutters): update frame geometry if the gutters have changed. (init_frame_gutters): record current gutter geometries. * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused var. (mswindows_widget_instantiate): ditto. * frame.h (struct frame): add current_gutter_bounds. * frame.c (change_frame_size_1): position window and minibuffer appropriately taking into account the frame gutters. * frame-x.c: (x_initialize_frame_size): take into account the frame gutters. 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org> * emacs.c (data-directory): Xref `locate-data-file' in docstring. 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org> * alloc.c (dumpopaquevec): Increase dimension for --with-canna. 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * file-coding.c (reset_decoding_stream): Clear previous detection state when autodetect. 2000-02-29 Didier Verna <didier@xemacs.org> * extents.c (set_extent_glyph_1): don't require extents to be attached. 2000-02-27 Andy Piper <andy@xemacs.org> * gutter.c (Fset_default_gutter_position): don't default left and right gutter visibility to t. (Fset_default_gutter_position): run default-gutter-position-changed-hook. (syms_of_gutter): add default-gutter-position-changed-hook. 2000-02-26 Andy Piper <andy@xemacs.org> * specifier.c (Fmake_specifier): add gutter references. * gutter.h (RAW_WINDOW_GUTTER): new macro. * lisp.h: declare Fvalid_plist_p. * gutter.c (gutter_geometry_changed_in_window): mark the modeline as changed. (default_gutter_visible_p_changed_in_window): invalidate gutter as well as its visibility so that it gets reconstructed. (construct_window_gutter_spec): new function. Construct a string to be displayed in the gutter from a plist of strings. Take care to only use elements that are declared as visible. (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of WINDOW_GUTTER. (gutter_validate): allow plists of strings in the specifier. (gutter_specs_changed): construct the real_gutter from the gutter specs using construct_window_gutter_spec. (gutter_visible_validate): gutter-visible is a new specifier type. (Fgutter_visible_specifier_p): new function for the new specifier. (syms_of_gutter): declare gutter-visible and Fgutter_visible_specifier_p. (specifier_type_create_gutter): intitalize new gutter-visible specifier. (reinit_specifier_type_create_gutter): ditto. (specifier_vars_of_gutter): use new specifier type for gutter visibility. (init_frame_gutters): construct real_gutter correctly. (Fgutter_specifier_p): beef up documentation. (Fgutter_size_specifier_p): ditto. * winslots.h: add real_gutter slots. 2000-02-25 Andy Piper <andy@xemacs.org> * device-msw.c: Be kind to older cygwin versions. From Raymond Toy <toy@rtp.ericsson.se>. * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>. 2000-02-25 Martin Buchholz <martin@xemacs.org> * elhash.c (MARK_OBJ): Practice macro hygiene. 2000-02-24 Martin Buchholz <martin@xemacs.org> * miscplay.c: s/__inline__/inline/g; * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline (get_device_compdc): INLINE ==> static inline * *.[ch]: Change INLINE to INLINE_HEADER globally. find -name '*.h' | \ xargs global-replace \ 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g' 2000-02-25 Andy Piper <andy@xemacs.org> * window.c (window_top_frame_gutter_height): new function. (window_top_window_gutter_height): ditto. (window_top_gutter_height): use them. (window_bottom_frame_gutter_height): new function. (window_bottom_window_gutter_height): ditto. (window_bottom_gutter_height): use them. (window_left_window_gutter_width): new function. (window_left_frame_gutter_width): ditto. (window_left_gutter_width): use them. (window_right_window_gutter_width): new function. (window_right_frame_gutter_width): ditto. (window_right_gutter_width): use them. (window_pixel_height): new function. calulate window pixel height with frame gutter involvement. (Fsplit_window): calculate new sizes taking frame gutters into account. (window_char_height_to_pixel_height): don't include frame gutters. (window_char_height): use window_pixel_height. (window_pixheight): rename from window_pixel_height. (change_window_height): use it. (window_pixel_height_to_char_height): don't include frame gutters. (window_char_width_to_pixel_width): ditto. 2000-02-25 Andy Piper <andy@xemacs.org> * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash if it is. 2000-02-24 Martin Buchholz <martin@xemacs.org> * alloc.c (staticpro): (staticpro_nodump): (dumpstruct): (dumpopaque): (pdump_wire): (pdump_wire_list): (compact_string_chars): (pdump_dump_wired): Convert: if (foo) abort(); ==> assert (! foo); * eldap.c (Fldap_search_basic): (Fldap_add): (Fldap_modify): (Fldap_delete): Fix compiler warnings, and possible crashes if (random) return value were to be used. 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * device-msw.c: Workaround ResetDC failure. * frame-msw.c (msprinter_init_frame_3): Added an assertion before applying a devmode. * redisplay-msw.c (get_frame_dc): Added start_page_p. (mswindows_text_width): Do not start printer page. * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends. * glyphs-msw.c: Added image methods to msprinter console and msprinter-specific image instantiation. 2000-02-20 Mike Alexander <mta@arbortext.com> * select-msw.c (Fmswindows_set_clipboard): GC protect more things to avoid crashes when selection-sets-clipboard is on (mswindows_own_selection): ditto 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * glyphs-msw.c: * redisplay-msw.c (get_frame_dc): (get_frame_compdc): * console-msw.h: * device-msw.c (mswindows_init_device): (mswindows_delete_device): (msprinter_init_device): (msprinter_delete_device): * frame-msw.c (mswindows_init_frame_1): (mswindows_delete_frame): (msprinter_init_frame_3): (msprinter_delete_frame): Move compatible DC to device object from frame object, for both mswindows and msprinter. Only one at a time is needed, it is a real waste to have one per frame! 2000-02-23 Andy Piper <andy@xemacs.org> * glyphs.c: add dynamic width and height elements. (image_instance_equal): ditto. * glyphs-widget.c (widget_query_geometry): calculate width and height dynamically if required. (initialize_widget_image_instance): initialize dynamic dimensions. (widget_instantiate): pick-up dynamic dimensions. * glyphs.h (struct Lisp_Image_Instance): add width and height for dynamic determination. Add appropriate macros. * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer dimensions safe. (WINDOW_GUTTER_SIZE): ditto. (WINDOW_GUTTER_SIZE_INTERNAL): ditto. * redisplay-msw.c (get_frame_compdc): gcc can't cope with this inline. (get_frame_dc): ditto. * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces here. 2000-02-23 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.31 is released. 2000-02-22 Ben Wing <ben@xemacs.org> * ntheap.c (allocate_heap): Make sure `ptr' is initialized. 2000-02-22 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_widget_instantiate): don't explicitly resize here. 2000-02-21 Mike Sperber <mike@xemacs.org> * .dbxrc: * .gdbinit: * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment variables. 2000-02-21 Mike Sperber <mike@xemacs.org> * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is. 2000-02-21 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.30 is released. 2000-02-20 Martin Buchholz <martin@xemacs.org> Performance hacking. * *.c (syms_of_*): Add INIT_LRECORD_IMPLEMENTATION macros, paired with DEFINE_LRECORD_IMPLEMENTATION macros in the same file. * emacs.c (main_1): * lisp.h (DEFUN): * console.c (DEFVAR_CONSOLE_LOCAL_1): * buffer.c (DEFVAR_BUFFER_LOCAL_1): * symeval.h (DEFVAR_SYMVAL_FWD): * symbols.c (guts_of_unbound_marker): Make all c_readonly objects also lisp_readonly and marked for life. * lrecord.h (struct lrecord_implementation): Document flags better. * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS): * lrecord.h (DECLARE_LRECORD): * lrecord.h (XSETRECORD): * lrecord.h (RECORDP): * lrecord.h (RECORD_TYPEP): * lrecord.h (RECORD_MARKER): New. * lrecord.h (error_check_*): * lrecord.h (CONCHECK_NONRECORD): * lrecord.h (MAKE_LRECORD_IMPLEMENTATION): * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New. * lrecord.h (set_lheader_implementation): * lrecord.h (enum lrecord_type): New. * symeval.h (SYMBOL_VALUE_MAGIC_P): * alloc.c (disksave_object_finalization_1): * alloc.c (mark_object): * alloc.c (lrecord_type_index): * alloc.c (tick_lcrecord_stats): * alloc.c (Fgarbage_collect): * alloc.c (init_alloc_once_early): * alloc.c (pdump_load): * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New. * alloc.c (lrecord_type_index): Delete. Make lisp object type indexes be constant. Makes (byte-compile) 5% faster. Put all marker functions into their own array. Makes (garbage-collect) 5% faster. Optimize SYMBOL_VALUE_MAGIC_P. Makes (byte-compile) 2-3% faster. * config.h.in (gc_checking_assert): New. * alloc.c: Use gc_checking_assert(). * .dbxrc: Make compatible with new object type implementation. * .gdbinit: Make compatible with new object type implementation. * alloc.c: Delete all symbols defined only for debugging, such as Lisp_Type_Vector and lrecord_charset. 2000-02-21 Andy Piper <andy@xemacs.org> * gui-msw.c (Fmswindows_shell_execute): fix file location problems. * buffer.c (Fkill_buffer): remove buffer from alist buffer unshowing so that set_window_buffer doesn't undo kill_buffer_hook's hard work. * glyphs-widget.c (tab_control_query_geometry): don't count the first item when calculating geometry. * glyphs.c (map_subwindow): remove redundant code. (update_frame_subwindows): be more circumspect about when to update subwindows. * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug when items haven't changed. Update faces if faces have changed as well as just the widget face. (x_tab_control_update): Update faces if faces have changed as well as just the widget face. 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk> * device-msw.c: (mswindows_delete_device): Remove redundant DDE registration. (build_syscolor_string): Use mswindows_color_to_string to try to get a named color. (mswindows_device_system_metrics): Reverse the foreground and background colors so that they match the documentation. * objects-msw.c: (mswindows_X_color_map): tweak some values so they match the default Windows palette. (mswindows_color_to_string): New function. 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk> * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6. 2000-02-18 Olivier Galibert <galibert@pobox.com> * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS, WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND. * symbols.c (init_symbols_once_early): Removed obsolete DATA_SEG_BITS related kludge. (defvar_magic): Ditto. * malloc.c: Removed obsolete DATA_SEG_BITS * ralloc.c: Ditto. * mem-limits.h: Ditto. * Makefile.in.in: Removed obsolete HAVE_SHM * emacs.c: Ditto. 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk> * device-msw.c (mswindows_delete_device): Free DDE string handles. 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * keymap.c (get_keyelt): * unexnt.c (unexec): * vm-limit.c (memory_warnings): * ntheap.c (recreate_heap): * ntheap.h (UNINIT_PTR): * select-msw.c (Fmswindows_get_clipboard): (Fmswindows_set_clipboard): * objects-msw.h (MSWINDOWS_BAD_HFONT): * objects-msw.c: * menubar-msw.c (displayable_menu_item): * glyphs-msw.c: * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK): * sysdep.c (sys_subshell): * process-nt.c (nt_create_process): * nt.c (normalize_filename): (dostounix_filename): (unixtodos_filename): * ntproc.c (win32_executable_type): * ntplay.c (play_sound_data_1): (play_sound_file): * editfns.c (get_home_directory): * event-msw.c (struct winsock_stream): (mswindows_dde_callback): * device-msw.c (msprinter_init_device): (msprinter_get_devmode_copy): Frobbed syntax frivolities. * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to mswindows_clear_toolbar were swapped! * objects-msw.c:(colormap_t): (fontmap_t): * emacs.c (struct standard_args): Fixed const jumble. * glyphs-widget.c (update_widget): Fixed comparison notation. * event-msw.c (mswindows_dde_callback): Removed extraneous ';'. * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC __declspec(noreturn) syntax. 2000-02-19 Martin Buchholz <martin@xemacs.org> * eldap.c (Fldap_open): (Fldap_search_basic): (Fldap_add): (Fldap_modify): Use new coding system conversion macros. 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * console-tty.c (tty_init_console): Change MULE to FILE_CODING. 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch> * eldap.h (Fldap_search) Renamed from Fldap_search_internal: (Fldap_add, Fldap_modify, Fldap_delete): New functions * eldap.c (Qadd, Qreplace): New constant symbols (Fldap_open): Use the LDAP_OPT_RESTART option to avoid interruptions by XEmacs signals Remove unnecessary calls to slow_down_interrupts and speed_up_interrupts (Fldap_search_basic): Renamed from Fldap_search_internal Added new optional parameter VERBOSE that triggers the display of progress messages Remove unnecessary calls to slow_down_interrupts and speed_up_interrupts LDAP result code analysis rewritten (Fldap_add, Fldap_modify, Fldap_delete): New functions (syms_of_eldap): Define the new symbols and functions 2000-02-17 Martin Buchholz <martin@xemacs.org> * realpath.c: Determine PATH_MAX maximally portably. * insdel.c (bytecount_to_charcount): Optimize. The function used to be optimized for entirely ASCII sequences. Now it is optimized for successive characters from the same charset. This also wins big for _mostly_ ASCII sequences. * fileio.c (Ffile_truename): convert return from realpath() using Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks. - Rewrite GCPROing slightly. * sysdep.c (sys_open): Do filename conversion, like all other sys_* functions. Fixes bug: (let ((file-name-coding-system 'iso-8859-2)) (write-region x y latin2-name)) ==> writes filename using internal encoding. 2000-02-18 Martin Buchholz <martin@xemacs.org> * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const. * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const. * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const. * eval.c (lrecord_subr): Remove this_one_is_unmarkable. * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable. * symbols.c (guts_of_unbound_marker): Turn on c_readonly. * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete. (CONST_IF_NOT_DEBUG): Delete. * alloc.c (this_one_is_unmarkable): Delete. (mark_object): Don't check for this_one_is_unmarkable. Use the c_readonly flag instead. * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly. 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk> * event-msw.c (mswindows_drain_windows_queue): (emacs_mswindows_handle_magic_event): Remove attempt to optimise away redundant repaint events. 2000-02-17 Andy Piper <andy@xemacs.org> * redisplay.h: declare mark_redisplay_structs. * redisplay.c (redisplay_window): (redisplay_frame): don't check subwindows_state_changed. (mark_redisplay): mark gutters here. * glyphs.c: (instantiate_image_instantiator): always layout if we haven't done so already. (allocate_image_instance): don't mark as dirty. (update_subwindow): bind inhibit_quit. * gutter.c (mark_gutters): new function. * glyphs-x.c (x_update_widget): Always resize to get round a widget bug. * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was breaking absolutely everything. * gutter.h: declare mark_gutters. 2000-02-16 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.29 is released. 2000-02-15 Olivier Galibert <galibert@pobox.com> * fns.c (size_bit_vector): Fix computation of the size. 2000-02-15 Martin Buchholz <martin@xemacs.org> * *.[ch]: Change CONST to const globally. find -name '*.[ch]' | \ xargs global-replace \ 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g' - Remove vestigial references to CONST_IS_LOSING 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk> * event-msw.c (mswindows_drain_windows_queue): Remove hack to bailout early on quit. Enqueue WM_PAINT events as XEmacs magic events instead of dispatching them directly. (mswindows_handle_paint): New function to do repainting. (mswindows_wnd_proc): (emacs_mswindows_handle_magic_event): Call above function. 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk> * objects-msw.c (mswindows_create_font_variant): Return the new font handle. (initialize_font_instance): Get font metrics from the underlined variant of the font to cope with the case where the underlined font has a bigger descent. 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp> * gui.c (gui_item_accelerator): Return the first underlined character in item name. 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * lisp.h: Added Qprinter. * general.c (syms_of_general): Initialized it. * redisplay-msw.c (get_frame_dc): Conditionally start a new page. (get_frame_dc): (get_frame_compdc): Made inline. * console.h (struct console_methods): Added eject_page method. * frame.h: Added FRAME_DISPLAY_P and friends. Aligned backslahes in many macros in more readable fashion. Added page_number to struct frame, and an accessor macro for it. * defice.h: Added DEVICE_DISPLAY_P and friends. * device.c (Fdevice_printer_p): Used these. * frame.c (allocate_frame_core): Initialize page number. (Fprint_job_page_number): (Fprint_job_eject_page): Implemented. * frame-msw.c (msprinter_eject_page): Added method. (msprinter_start_page): Added. * window.c (Fwindow_truncated_p): Fixed docstring. (Fwindow_last_line_visible_height): Implemented. 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org> * frame.c (change_frame_size_1): Undo 2000-02-03 change. 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * syntax.c (scan_words): Always advance at least one character. 2000-02-13 Andy Piper <andy@xemacs.org> * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here to make sure the glyph is in the cachels. * glyphs.h (struct Lisp_Image_Instance): make layout_changed a global image instance flag. (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro. (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto. * glyphs.c (allocate_image_instance): set dirty bits correctly. (Fset_image_instance_property): mark layout as changed. (invalidate_glyph_geometry_maybe): mark layout as changed. (glyph_width): use new NEEDS_LAYOUT macro. (glyph_ascent): ditto. (glyph_descent): ditto. (glyph_height): ditto. (image_instance_layout): mark layout as clean after laying out. (update_subwindow): don't mark layout as clean here. * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they should no longer be needed. * glyphs-x.c (x_update_widget): sanitize asserts. (x_finalize_image_instance): sanitize assignment to widgets. * glyphs-widget.c (widget_instantiate): don't need to clear the layout flag here. 2000-02-13 Martin Buchholz <martin@xemacs.org> * sysdep.c (getcwd): Use standard prototype. * sysdep.h (getcwd): Use standard prototype. * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp (sequence, start, end). Remove redundant type checking. (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in view of `caller-protects') to avoid a crash where the real fix was found elsewhere. 2000-02-12 Martin Buchholz <martin@xemacs.org> * glyphs-x.c (x_finalize_image_instance): Compile error fixes. * s/sol2.h: Remove feature macro initialization. * alloc.c (alloc_lcrecord): Add more type checking assertions. (vector_hash): New. Code from internal_hash. * lrecord.h: Fix up allocation subsystem comments. * config.h.in: Add __EXTENSIONS__ for Solaris. * systime.h (EMACS_GETTIMEOFDAY): New. (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY. Remove Solaris-specific code. Use void* for the (ignored) second arg for gettimeofday(). * elhash.c (hash_table_hash): Implement it, finally. * elhash.c: Use hashcode_t. * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE. * sunplay.c (sighandler): Fix prototype to use SIGTYPE. * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete. * fns.c (size_bit_vector): * alloc.c (size_vector): (make_vector_internal): (make_bit_vector_internal): (sweep_bit_vectors_1): Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression. 2000-02-10 Martin Buchholz <martin@xemacs.org> * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't. Include strings.h to avoid warnings for bzero and strcasecmp. 2000-02-10 Olivier Galibert <galibert@pobox.com> * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here... * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here * fns.c (size_bit_vector): New. Declare bit vectors as a sequence. 2000-02-10 Olivier Galibert <galibert@pobox.com> * symeval.h (struct symbol_value_magic): Remove "next" kludge and use a value field instead. (symbol_value_forward_forward): Use value field. (DEFVAR_SYMVAL_FWD): Use value field. (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque. (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT. (DEFVAR_CONST_INT): Ditto. (DEFVAR_BOOL): Ditto. (DEFVAR_CONST_BOOL): Ditto. (DEFVAR_INT_MAGIC): Ditto. (DEFVAR_BOOL_MAGIC): Ditto. * symbols.c (guts_of_unbound_marker): Use value field. * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto. * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto. * lisp.h: Declare dumpopaque and noninteractive1. * alloc.c (dumpopaque): Added. (pdump_dump_opaquevec): Added. (pdump): Call pdump_dump_opaquevec to dump opaque data. (pdump_load): Reload opaque data. Sync noninteractive1 with noninteractive. 2000-02-10 Andy Piper <andy@xemacs.org> * glyphs.c (image_instance_layout): if the size changes, mark it as such. * redisplay-output.c (redisplay_output_layout): Update the subwindow here. (redisplay_output_subwindow): ditto. * glyphs.c (update_subwindow): make sure we reset flags for layouts as well as everything else. * glyphs-widget.c (layout_layout): don't need to set the instances dimensions here. 2000-02-09 Martin Buchholz <martin@xemacs.org> * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB, not HAVE_DLOPEN, which is a lower-level thing. * .cvsignore: Ignore gmon.out 2000-02-09 Hamish Macdonald <hamishm@lucent.com> * .cvsignore: Ignore portable dumper xemacs.dmp file 2000-02-09 Andy Piper <andy@xemacs.org> * redisplay-output.c (redisplay_output_layout): be more clever about when we output based on the changed flags. * glyphs.h (struct image_instantiator_methods): add update_method. (struct Lisp_Image_Instance): add changed flags. Declare new macros for manipulating them. * glyphs.c (allocate_image_instance): renamed glyph -> parent. (image_instance_parent_glyph): find an image_instance's parent glyph or image_instance. (image_instance_layout): mark the size as changed. (set_image_instance_dirty_p): new function. mark an image instance, plus all of its parents, as dirty. (Fset_image_instance_property): use it. (Fglyph_animated_timeout_handler): use it. (update_subwindow): call update_widget and device methods for update_subwindow. Mark all changed flags as clean. (Fresize_subwindow): mark size as changed. * glyphs-x.c (x_finalize_image_instance): try and detect gc failures. (x_update_subwindow): only resize subwindows here. (x_update_widget): new function. Update all changed properties of a widget. (x_resize_subwindow): deleted. (x_widget_set_property): deleted. (x_progress_gauge_set_property): deleted. (x_progress_gauge_update): new function. Implement recorded changes. (x_tab_control_update): ditto. (x_tab_control_set_property): deleted. (console_type_create_glyphs_x): declare new functions. (image_instantiator_format_create_glyphs_x): ditto. * glyphs-widget.c (widget_set_property): mark text changed. (update_widget): new function. Update properties of a widget. (widget_instantiate): for layouts make sure we set their children's parent correctly. (tab_control_set_property): new function. Record changes that will take place under redisplay's control. (progress_gauge_set_property): ditto. (image_instantiator_progress_guage): declare new functions. (image_instantiator_tab_control): ditto. * glyphs-msw.c (mswindows_update_subwindow): just do resizing here now. (mswindows_update_widget): new function. Update all properties on a widget that have changed. (mswindows_button_update): new function. Update a button's set state. (mswindows_tab_control_update): new function. Update the items in a tab. (mswindows_tab_control_set_property): deleted. (mswindows_progress_gauge_update): new function. Update the progress gauge's progress. (mswindows_widget_set_property): deleted. This is all done asynchronously now. (mswindows_progress_gauge_set_property): ditto. (console_type_create_glyphs_mswindows): declare new methods. (image_instantiator_format_create_glyphs_mswindows): ditto. * frame-msw.c (msprinter_init_frame_1): Remove unused variables. (msprinter_set_frame_properties): ditto. * console.h (struct console_methods): Add update_widget_method. 2000-02-09 Andy Piper <andy@xemacs.org> * gui-msw.c (Fmswindows_shell_execute): Make mswindows-shell-execute industrial strength. 2000-02-08 Martin Buchholz <martin@xemacs.org> * lrecord.h: Make macro argument `props' match member function `plist'. * fns.c (Fget): * fns.c (Fput): * fns.c (Fremprop): * fns.c (Fobject_plist): * alloc.c: * symbols.c: Object property list frobbing cleanup. - Allow any lisp object (compared with `eq'), not just symbols, as keys in object plists. - Move symbol plist frobbing into symbols.c, where it belongs. - Move string plist frobbing into alloc.c, where it belongs. - Everything's an lrecord now, so no need to test for symbolp, etc. - Fix up doc strings to refer to PROPERTY, not PROPNAME. * extents.c: Reorder code to remove declarations. * frame.h (store_in_alist): Remove useless declaration. 2000-02-07 Martin Buchholz <martin@xemacs.org> * event-Xt.c (x_has_keysym): Use XConvertCase only if available. * config.h.in: Add HAVE_XCONVERTCASE. 2000-02-07 Andy Piper <andy@xemacs.org> * glyphs.c (image_instance_layout): undo 2000-01-29 change since it breaks many things. 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch> * src/syntax.h (SYNTAX_START_P): Check whether the two chars actually can start a common comment type. * src/syntax.h (SYNTAX_END_P): ditto for end. 2000-02-07 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.28 is released. 2000-02-06 Martin Buchholz <martin@xemacs.org> * event-Xt.c (x_keysym_to_character): New. (maybe_define_x_key_as_self_inserting_character): New. (x_has_keysym): New. Auto-define all keys on the keyboard as self-insert-key. 2000-02-02 Martin Buchholz <martin@xemacs.org> * menubar.c (vars_of_menubar): A small code simplification. * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug * ExternalShell.c: * ExternalClient.c: * EmacsShell-sub.c: * EmacsManager.c: * EmacsFrame.c: Use consistent style for specifying X resources. * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC. This makes (dontusethis-set-symbol-value-handler) actually usable. * lrecord.h (lrecord_decription_type): * alloc.c (pdump_register_sub): (pdump_dump_data): (pdump_reloc_one): Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects. Comply with XEmacs coding style. All lrecord descriptions updated to use XD_LISP_OBJECT with 2 args, and XD_LISP_OBJECT_ARRAY with 3 args. * keymap.c (Faccessible_keymaps): Make (accessible-keymaps map "\C-h") do the Right Thing. Make (accessible-keymaps map []) do the Right Thing. Make (accessible-keymaps map "") do the Right Thing. (check_keymap_definition_loop): New function. (keymap_store_internal): Keep luser from shooting self in foot, via (define-key ctl-x-4-map "p" global-map). Remove fullness slot from struct Lisp_Keymap, since hash tables are now reliable. (print_keymap): Remove 'Yuck' factor by simply printing "size %d". 2000-01-30 Martin Buchholz <martin@xemacs.org> * redisplay.c (init_redisplay): Fix small memory leak. * elhash.h: * elhash.c (pdump_reorganize_hash_table): Rename from reorganize_hash_table. Change prototype. Reuse the original memory for hentries. Save 100k. * alloc.c (PDUMP_READ): new macro. * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros. * alloc.c: No need to #ifndef before #undef. * print.c: Allow debug_print() to print readably by modifying debug_print_readably. Use consistent variable names. * .dbxrc: Try to get things to work even if stopped in a function without source available by explicitly specifying source files. 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * unexnt.c (_start): Removed bogus code which caused loading heap from differrent executable file. Removed bogus assignment to _fmode, which caused inconsistencies. 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage. Have spawnve encapsulation regard DONT_ENCAPSULATE. Do not preliminary `#define signal sigset'. * systime.h: Do not prototype environ on windows nt and cygwin, this conflicts with system header. * syssignal.h: Use correct define for WINDOWSNT * sysdep.h: Do not prototype environ on windows nt, this conflicts with system header. * sysdep.c (near start of file): Fixed commentary and rearranged ifdefs in readable order. (NEED_STARTS): Do not force NEED_STARTS when PDUMPing. (start_of_text): (end_of_text): (end_of_data): Do not compile in if using PDUMP. * symsinit.h: Prototyped vars_of_nt(). * ntproc.c (windows9x_p): Added, instead of os_subtype. (find_child_console): Use it. (sys_kill): Use it. * ntheap.h: Do not extern os_subtype. * ntheap.c (cache_system_info): Do not cache unneeded: nt_major_version, nt_minor_version and os_subtype. (recreate_heap): Do not compile in when PDUMPing. * nt.c (geteuid and friends): Use the new varibale nt_fake_unix_uid, instead of hashing fake uid out of NT RID. (init_user_info): Removed the above mentioned hackery. (fstat, stat): Do not compile in if using MSVC 5.0 and above - stat has been fixed in the C runtime. (vars_of_nt): Added, defined the nt_fake_unix_uid variable there. * file-coding.c (struct file_coding_dump): Do not define ucs_to_mule_table in the struct if not MULE. (struct struct lrecord_description fcd_description_1): Do not dump the above. * emacs.c (main_1): Call vars_of_nt(). (right before Fdump_emacs_data): Don't need lastfile if using both portabe dumper and system malloc. * alloc.c (Fmemory_limit): Conditionalized out. (pdump): Use OPEN_BINARY for the portable dump file. (pdump_load): Ditto. 2000-02-02 Mike Alexander <mta@arbortext.com> * nt.c (convert_time): Set tm_isdst before calling mktime and avoid calling it at all if the compiler supports 64 bit integers. Also initialize utc_base_ft before using it. 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp> * frame.c (change_frame_size_1): Take f->internal_border_width into consideration when calculating the width of the frame. 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * window.c (frame_min_height): (frame_size_valid_p): (frame_pixsize_valid_p): Added. (check_frame_size): Generalized. * window.h: Prototyped the above. * lisp.h: * general.c: Added Qbottom_margin, Qduplex, Qlandscape, Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin. Deleted Vwin32_* and Vbinary_process_* unused variables. * device-msw.c (msprinter_init_device): Do not get printer font list; Added DEVMODE functions. * frame-msw.c: Added lots of printer code. * faces.c: Moved 'left-margin and 'right-margin defsymbols to general.c. * console-msw.h: Added more msprinter device private slots. 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * event-msw.c (key_needs_default_processing_p): Added. (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it. 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * glyphs.c (image_instance_layout): Mark image instance as clean after layout. (glyph_dirty_p): Removed redundant function. (invalidate_glyph_geometry_maybe): Added. (update_glyph_cachel_data): Call it. * glyphs.h: Prototyped it. * redisplay.c (add_glyph_rune): Call it. (redisplay_window): Reset glyphs cachels when frame faces have changed, thus forcing recomputation of built-in border glyphs. 2000-01-30 Martin Buchholz <martin@xemacs.org> * Makefile.in.in: Make portable dumper and purify play well together. Add imperfect, but better than nothing, support for pdump. Remove xemacs.dmp when temacs is re-generated. Don't ignore errors when dumping xemacs. * symbols.c (maybe_call_magic_handler): Remove one magic number. 2000-01-28 Andy Piper <andy@xemacs.org> * frame.c (allocate_frame_core): Use new Fset_window_buffer signature. (setup_normal_frame): ditto. (setup_frame_without_minibuffer): ditto. (setup_minibuffer_frame): ditto. (delete_frame_internal): ditto. (Fmake_frame_invisible): ditto. (Ficonify_frame): ditto. * window.h: change Fset_window_buffer signature. * window.c (Fsplit_window): Use new Fset_window_buffer signature. (Fset_window_buffer): allow recording of buffer if the window is the selected window. (window_loop): Use new Fset_window signature. 2000-01-23 Daniel Pittman <daniel@danann.net> * config.h.in: Added template for `HAVE_ATHENA_3D' 2000-01-29 Andy Piper <andy@xemacs.org> * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes. * gutter.c (output_gutter): Don't output if the window isn't live. 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch of 01/12/00: Moved SetFocus back here where it belongs. 2000-01-23 Andy Piper <andy@xemacs.org> * s/cygwin32.h: declare printer things. 2000-01-26 Andy Piper <andy@xemacs.org> * select.c (Fown_selection_internal): GCPRO bug fix from Mike Alexander. 2000-01-24 Andy Piper <andy@xemacs.org> * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename. (mswindows_button_instantiate): Make sure glyph is a pixmap. * glyphs-widget.c (widget_instantiate): Avoid shadows. * frame-msw.c (msprinter_init_frame_3): Nuke warning. * glyphs-msw.c: (mswindows_string_to_color): remove declaration. * redisplay-msw.c (mswindows_output_cursor): Avoid shadows. (mswindows_output_display_block): Avoid local shadows. * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows. (mswindows_enqueue_mouse_button_event): ditto. (mswindows_handle_gui_wm_command): remove declaration. * console-msw.c (mswindows_canonicalize_console_connection): Avoid warnings. * console-msw.h: Avoid shadows. (mswindows_get_toolbar_button_text): (emacs_mswindows_create_stream_pair): (emacs_mswindows_delete_stream_pair): (mswindows_handle_toolbar_wm_command): declare. * device-msw.c (build_syscolor_string): Avoid shadows. 2000-01-23 Andy Piper <andy@xemacs.org> * glyphs-widget.c (widget_instantiate): reverse the items for layouts so that children are in the expected order. 2000-01-28 Martin Buchholz <martin@xemacs.org> * ralloc.c: safe_bcopy ==> memmove * gmalloc.c: Remove MEMMOVE_MISSING conditional code. * s/msdos.h: Remove BCOPY macros. * insdel.c (gap_right): Remove BCOPY conditional code. * insdel.c (gap_left): Remove BCOPY conditional code. XEmacs demands a working ANSI C compiler - hence memmove. * regex.c (regex_compile): Remove accidental use of trigraphs. 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * event-msw.c (mswindows_enqueue_misc_user_event): Initialize event timestamp. 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * event-msw.c (mswindows_drain_windows_queue): Added the parameter. (mswindows_need_event): Commented the call to mswindows_drain_windows_queue(). (emacs_mswindows_quit_p): Lookup the windows for keyboard messages only. * console-msw.h: Moved a few function prototypes here from event-msw.c. * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID parameter from unsigned short to unsigned long. (Fmswindows_shell_execute): Added return value. 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp> * sysdep.c (init_system_name): process-unix.c (unix_canonicalized_host_name): Don't call freeaddrinfo() if getaddrinfo() fails. * process-unix.c (unix_open_unix_network_stream): Moved the code to get a port # into address loop. 2000-01-27 Martin Buchholz <martin@xemacs.org> * buffer.c (reinit_vars_of_buffer): The right place to initialize conversion_in_dynarr and conversion_out_dynarr. * alloc.c (pdump): Use the real open() till sys_open() is functional. * process-unix.c (unix_canonicalize_host_name): Muleize. (unix_open_network_stream): Muleize. * buffer.h: Fix up prototypes for ralloc.c functions. 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp> * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO * sysdep.c: In init_system_name(), add code to use getaddrinfo() instead of gethostbyname() * process-unix.c: In unix_canonicalize_host_name() and unix_open_network_stream(), add code to use getaddrinfo() instead of gethostbyname(). 2000-01-27 Daniel Pittman <daniel@danann.net> * device-x.c (x_init_device): Warn at run-time if using Athena 3d libs when built with flat Athena. 2000-01-27 Martin Buchholz <martin@xemacs.org> * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t. Use coding standards for function prototypes. 2000-01-25 Martin Buchholz <martin@xemacs.org> * dialog-msw.c (push_lisp_string_as_unicode): * doc.c (unparesseuxify_doc_string): * dired.c (Fuser_name_completion_1): * dired.c (Fuser_name_all_completions): * dired.c (free_user_cache): * dired.c (user_name_completion): * console-x.c (get_display_arg_connection): * minibuf.c (clear_echo_area_internal): * minibuf.c (echo_area_append): * eldap.c (Fldap_open): * eldap.c (Fldap_search_internal): * frame-x.c (x_set_frame_text_value): * frame-x.c (x_set_frame_properties): * frame-x.c (x_create_widgets): * redisplay-tty.c (term_get_fkeys_1): * objects-x.c (x_parse_nearest_color): * objects-x.c (x_valid_color_name_p): * objects-x.c (x_initialize_font_instance): * objects-x.c (x_list_fonts): * objects-x.c (x_find_charset_font): * tooltalk.c (Fadd_tooltalk_message_arg): * tooltalk.c (Fadd_tooltalk_pattern_attribute): * tooltalk.c (Fadd_tooltalk_pattern_arg): * process-unix.c (unix_create_process): * ntproc.c (sys_spawnve): * sound.c (Fplay_sound_file): * sound.c (Fplay_sound): * buffer.c (init_initial_directory): * buffer.c (init_buffer): * editfns.c (init_editfns): * editfns.c (Ftemp_directory): * editfns.c (Fuser_full_name): * editfns.c (uncache_home_directory): * editfns.c (get_home_directory): * editfns.c (Fuser_home_directory): * editfns.c (Fformat_time_string): * editfns.c (Fcurrent_time_string): * gui-x.c (button_item_to_widget_value): * database.c (Fopen_database): * event-Xt.c (x_to_emacs_keysym): * event-Xt.c (x_event_to_emacs_event): * event-Xt.c (describe_event_window): * event-msw.c (mswindows_wnd_proc): * glyphs-eimage.c (jpeg_instantiate): * glyphs-eimage.c (gif_instantiate): * glyphs-eimage.c (png_instantiate): * glyphs-eimage.c (tiff_instantiate): * glyphs-x.c (xbm_instantiate_1): * glyphs-x.c (x_xbm_instantiate): * glyphs-x.c (x_xface_instantiate): * glyphs-x.c (autodetect_instantiate): * glyphs-x.c (cursor_font_instantiate): * glyphs-x.c (x_widget_instantiate): * glyphs-x.c (x_widget_set_property): * glyphs-x.c (x_widget_property): * glyphs-x.c (BUILD_GLYPH_INST): * print.c (write_string_to_stdio_stream): * print.c (output_string): * print.c (Falternate_debugging_output): * print.c (Fexternal_debugging_output): * glyphs-msw.c (extract_xpm_color_names): * glyphs-msw.c (mswindows_xpm_instantiate): * glyphs-msw.c (bmp_instantiate): * glyphs-msw.c (resource_name_to_resource): * glyphs-msw.c (mswindows_resource_instantiate): * glyphs-msw.c (xbm_instantiate_1): * glyphs-msw.c (mswindows_xbm_instantiate): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (mswindows_widget_instantiate): * glyphs-msw.c (add_tree_item): * glyphs-msw.c (add_tab_item): * glyphs-msw.c (mswindows_combo_box_instantiate): * glyphs-msw.c (mswindows_widget_property): * glyphs-msw.c (mswindows_combo_box_property): * glyphs-msw.c (mswindows_widget_set_property): * console.c (stuff_buffered_input): * objects-msw.c (mswindows_initialize_color_instance): * objects-msw.c (mswindows_valid_color_name_p): * objects-msw.c (mswindows_list_fonts): * objects-msw.c (mswindows_font_instance_truename): * bytecode.c (optimize_compiled_function): * select-x.c (symbol_to_x_atom): * select-x.c (x_atom_to_symbol): * select-x.c (hack_motif_clipboard_selection): * select-x.c (selection_data_to_lisp_data): * select-x.c (lisp_data_to_selection_data): * select-x.c (Fx_get_cutbuffer_internal): * select-x.c (Fx_store_cutbuffer_internal): * buffer.h (TO_EXTERNAL_FORMAT): New function. * buffer.h (TO_INTERNAL_FORMAT): New function. * emacs.c (make_arg_list_1): * emacs.c (make_argc_argv): * emacs.c (main_1): * emacs.c (Fdump_emacs): * emacs.c (split_string_by_emchar_1): * file-coding.h: * lisp.h: * lstream.h: * symsinit.h: * device-x.c (x_init_device): * device-x.c (Fx_valid_keysym_name_p): * device-x.c (Fx_get_font_path): * device-x.c (Fx_set_font_path): * glyphs.c (bitmap_to_lisp_data): * glyphs.c (pixmap_to_lisp_data): * alloc.c (make_ext_string): Use coding system arguments. Update all callers. * alloc.c (build_string): * callproc.c (child_setup): * callproc.c (init_callproc): * fileio.c (lisp_strerror): * fileio.c (directory_file_name): * fileio.c (Fexpand_file_name): * fileio.c (Ffile_truename): * fileio.c (Fsysnetunam): * fileio.c (Fdo_auto_save): * sysdep.c (sys_readdir): * tests.c: New file. Allow adding C tests. Replace GET_* macros with a more comprehensible and flexible interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT(). Modify all calls. Any coding system can be used to do format conversion. Eliminate enum external_data_format. Eliminate convert_to_external_format. Eliminate convert_to_internal_format. Make sure file-name, keyboard, terminal, and ctext are always defined as coding systems or aliases. Make file-name-coding-system, terminal-coding-system, and keyboard-coding-system magical variables that are equivalent to defining the corresponding coding system aliases. * file-coding.c (Fcoding_system_canonical_name_p): New function. * file-coding.c (Fcoding_system_alias_p): New function. * file-coding.c (Fcoding_system_aliasee): New function. * file-coding.c (append_suffix_to_symbol): New function. * file-coding.c (dangling_coding_system_alias_p): New function. * file-coding.c (Ffind_coding_system): * file-coding.c (Fcopy_coding_system): * file-coding.c (encode_coding_no_conversion): * file-coding.c (syms_of_file_coding): * file-coding.c (vars_of_file_coding): Rewrite coding system alias code. Allow nested aliases, like symbolic links. Allow redefinition of coding system aliases. Prevent existence of dangling coding system aliases. * dired.c (Fuser_name_completion_1): * dired.c (Fuser_name_all_completions): A crash would happen if user did QUIT in the middle of building user_name_cache. Remove redundant code in mainline and unwind_protect. * lisp.h: * dynarr.c (Dynarr_min_size): Make static. Increase value to 8. * lstream.c (make_fixed_buffer_input_stream): Take a void *, not an unsigned char *. Update all callers. 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output. 2000-01-25 Martin Buchholz <martin@xemacs.org> * elhash.c (hentry_description): Use more portable definition. (resize_hash_table): Initialize new hentries using xnew_array_and_zero, thereby simplifying the code. * mule-charset.c (make_charset): Make sure entire object is initialized, to avoid Purify warnings. * alloc.c (resize_string): Fix unlikely crash with big strings. 2000-01-24 Martin Buchholz <martin@xemacs.org> * realpath.c (xrealpath): Don't call getwd(). 2000-01-25 Martin Buchholz <martin@xemacs.org> * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors. 1999-12-28 Max Matveev <max@melbourne.sgi.com> * unexelfsgi.c (unexec): Change the way we decide which segment should be extended. Assumption that .bss section should be outside the PT_LOADable segment. On IRIX with version 6.2 and above, .bss (or .sbss, if it's present) is inside the 'data' segment. This would fail the test which was used to find a segment to grow and cover new heap. Instead of this assumption, I created another one - on IRIX the segment to grow should start below .bss and it's address should extent above the end of .bss. Once this segment is identified, it's grown to accommodate the new heap and new zero-length .bss section is added at the end of .data2. 2000-01-25 Martin Buchholz <martin@xemacs.org> * eval.c (Feval): Wrong number of arguments should use original function, not the indirect_function version of it. 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org> * glyphs-x.c (x_button_instantiate): Don't add image if it is not a pixmap. (x_locate_pixmap_file): Call Fexpand_file_name when file name is relative. 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org> * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro declaration. (DEFVAR_INT_MAGIC): Ditto. (DEFVAR_BOOL_MAGIC): Ditto. * glyphs.h: Reindent backslash. 2000-01-24 Martin Buchholz <martin@xemacs.org> * glyphs-widget.c (layout_query_geometry): (layout_layout): Use correct types for gheight, gwidth. 2000-01-24 Martin Buchholz <martin@xemacs.org> * EmacsManager.c (QueryGeometry): Purified. 2000-01-23 Martin Buchholz <martin@xemacs.org> * alloc.c (make_float): Make sure entire object is initialized, to avoid Purify warnings. (pdump_register_sub): Remove useless assignment. (pdump): Use xmalloc, not malloc. (pdump_load): Use xmalloc, not malloc. 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * callproc.c: * dired-msw.c: * fileio.c: * process-nt.c: * redisplay-msw.c: * sysdep.c: Removed redundant #include <windows.h> 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * frame.c (delete_frame_internal): Do not delete device when its implementation so declares. (delete_frame_internal): Set device selected frame to nil when last frame goes away. * device-msw.c (msprinter_device_system_metrics): Implemented. (mswindows_device_system_metrics): Added 'device-dpi property. * device.c: (Fdevice_printer_p): Added. Added 'offset-workspace device metric. * console.h (device_metrics): Declared DM_offset_workspace. 2000-01-23 Martin Buchholz <martin@xemacs.org> * fileio.c (Ffile_truename): Remove pointless and confusing initialization of elen. * glyphs-widget.c: Compiler warning fixes. 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk> * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process instead of a Lisp_Object as argument to make it consistent with the other LIVE_P macros. (CHECK_LIVE_PROCESS): New macro. * process.c: Declare Qprocess_live_p. (Fprocess_live_p): New function. (create_process): Use PROCESS_LIVE_P. (read_process_output): Ditto. (set_process_filter): Ditto. (Fdelete_process): Ditto. (kill_buffer_processes): Ditto (process_send_signal): Use CHECK_LIVE_PROCESS. (Fprocess_input_coding_system): Check whether process is still alive (fix PR#1061). (Fprocess_output_coding_system): Ditto. (Fprocess_coding_system): Ditto. (Fset_process_input_coding_system): Ditto. (Fset_process_output_coding_system): Ditto. 2000-01-23 Andy Piper <andy@xemacs.org> * glyphs.h (struct Lisp_Image_Instance): change format by unifying layout and widget. * glyphs.c (mark_image_instance): take into account changed image_instance format. (image_instance_equal): ditto. (image_instance_hash): ditto. * glyphs-widget.c (widget_instantiate): Incorporate layout instantiation here. Delay layout of the layout until later. (layout_instantiate): deleted. (layout_query_geometry): new function. get the geometry of a layout. (layout_layout): layout a layout dynamically. (image_instantiator_widget): New function - splitting up image_instantiator_format_create_glyphs_widget for netwinder compilation. (image_instantiator_buttons): (image_instantiator_edit_fields): (image_instantiator_combo_box): (image_instantiator_scrollbar): (image_instantiator_progress_guage): (image_instantiator_tree_view): (image_instantiator_tab_control): (image_instantiator_labels): (image_instantiator_layout): ditto. (image_instantiator_format_create_glyphs_widget): Call preceding functions. 2000-01-22 Martin Buchholz <martin@xemacs.org> * process.c (Fset_process_coding_system): * device-x.c (Fx_keysym_hash_table): Docstring fixes. * lstream.c (Lstream_write): Return documented value, not 0. * fileio.c (directory_file_name): (Fsubstitute_in_file_name): (Fsubstitute_insert_file_contents_internal): (Fwrite_region_internal): * emacs.c: * sysdep.c: * getloadavg.c: * systty.h: Remove vestigial APOLLO-conditional code. 2000-01-21 Martin Buchholz <martin@xemacs.org> * getpagesize.h: Add guard macros. * libsst.h: Add guard macros. * libst.h: Add guard macros. * line-number.h: Add guard macros. * ndir.h: Add guard macros. * sysfloat.h: Add guard macros. * sysfile.h: Add guard macros. * sysproc.h: Add guard macros. * syswait.h: Add guard macros. * xintrinsic.h: Add guard macros. * xintrinsicp.h: Add guard macros. * xmmanager.h: Add guard macros. * xmmanagerp.h: Add guard macros. * xmprimitive.h: Add guard macros. * xmu.h: Add guard macros. * gpmevent.h: Add copyright statement. Add guard macros. * miscplay.h: Add guard macros. * *.h: Use consistent C-standards-approved guard macro names. * opaque.c (make_opaque): Switch parameter order. * opaque.h (make_opaque): Switch parameter order. Update all callers. * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR. * config.h.in (type_checking_assert): Added. (bufpos_checking_assert): Added. 2000-01-21 Martin Buchholz <martin@xemacs.org> * alloc.c: Harmless pdump changes. - Use countof(). - spell alignment correctly. * sysdep.c: Use countof() 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * console.c (create_console): Use CONMETH_OR_GIVEN when calling initially_selected_for_input() console method, default to 0. (semi_canonicalize_console_connection): Try to delegate to canonicalize_console_connection if no such console method. (canonicalize_console_connection): Vice versa. (print_console): Do not print nil connection. * console.h (XDEVIMPF_IS_A_PRINTER): Added. (XDEVIMPF_NO_AUTO_REDISPLAY): Added. (XDEVIMPF_FRAMELESS_OK): Added. (CONSOLE_INHERITS_METHOD): Added. * console-msw.c (mswindows_canonicalize_console_connection): Added. (mswindows_canonicalize_device_connection): Added. * console-msw.h (struct msprinter_device): Added this struct and accessor macros. (mswindows_device): Made fontlist a lisp object. * device.c (semi_canonicalize_device_connection): Try to delegate to canonicalize_device_connection if no such console method. (canonicalize_device_connection): Vice versa. (print_device): Do not print nil connection. * device-msw.c (mswindows_init_device): Call InitCommonControls when have widgets. (mswindows_delete_device): Removed fontlist deallocation. (mswindows_mark_device): Added. * events.c (event_equal): Added abort() at unreached code. (event_hash): Ditto. * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of fallback tags of Windows devices. * general.c (syms_of_general): Initialized Qmsprinter. * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list of fallback tags of Windows devices. * lisp.h: Declared Qmsprinter. * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list of strings. (mswindows_list_fonts): Ditto. (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so that it can be used by both mswindows and msprinter devices. (initialize_font_instance): Added. (mswindows_initialize_font_instance): Use it. (msprinter_initialize_font_instance): Added. * redisplay.c (redisplay_device): Added the parameter AUTOMATIC and implementation flags check. (redisplay_without_hooks): Changed the call to the above. (Fredraw_device): Ditto. (Fredisplay_device): Ditto. * redisplay-msw.c (get_frame_dc): Implemented. (get_frame_compdc): Implemented. (many functions): Use the two functions above to get device contexts, ether for a window or a printer. 2000-01-21 Olivier Galibert <galibert@pobox.com> * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer initialization here. (init_symbols_once_early): Call it. * emacs.c (main_1): Call it. * symsinit.h: Declare it. 2000-01-19 Olivier Galibert <galibert@pobox.com> * alloc.c: Use a lrecord_header * in the backtrace instead of a Lisp_Object. (pdump_backtrace): Ditto. (pdump_register_object): Ditto. Cleanup use of the pointers. (pdump_get_entry): Abort if trying to register a null pointer. (pdump_dump_data): Cleanup types when relocating. (pdump_dump_staticvec): Cleanup types w.r.t the reloc table. (pdump_dump_rtables): Remove bad casts. (pdump_load): Cleanup relocation w.r.t union type. Use a Lisp_Object instead of a EMACS_INT for the hashtable reorganization. 2000-01-20 Martin Buchholz <martin@xemacs.org> * emacs.c (main_1): Rearrange morass of #ifdef's for correctness. * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity. * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity. * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch] 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * faces.h (FACE_STRIKETHRU_P): Added. * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care of font variants. * redisplay-msw.c (mswindows_apply_face_effects): Deleted. (mswindows_set_dc_font): New function, aware of font variants, separated from mswindows_update_dc. * objects-msw.h (struct mswindows_font_instance_data): Added definition. * objects-msw.c (mswindows_finalize_font_instance): Delete all cached fonts and the data structure. (mswindows_initialize_font_instance): Added creation of font data structure. (mswindows_print_font_instance): Print at least something. (mswindows_create_font_variant): Implemented. (mswindows_get_hfont): Implemented. 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr> * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of prototyping problem with msvc. * emacs.c (main_1): added syms_of_gui_mswindows() call * gui-msw.c: added "mswindows-shell-execute" lisp subr and syms_of_gui_mswindows() function * symsinit.h: added the prototype for syms_of_gui_mswindows() 2000-01-18 Martin Buchholz <martin@xemacs.org> * XEmacs 21.2.27 is released. 2000-01-18 Martin Buchholz <martin@xemacs.org> * glyphs-eimage.c (struct tiff_error_struct): (tiff_error_func): (tiff_warning_func): #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF * unexmips.c: * unexhp9k3.c: * unexfreebsd.c: * unexec.c: Remove vestigial Lucid C code. * unexalpha.c: * unexaix.c: * termcap.c: * libsst.c: Ansify. Remove declarations of errno and strerror(). * eval.c (Fbacktrace): Small Purify-cation. Fix docstring. * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@". 2000-01-16 Martin Buchholz <martin@xemacs.org> * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999. Optimize. 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * md5.c: * file-coding.c: * file-coding.h: Change enum eol_type to eol_type_t. 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * gui.c (get_gui_callback): Check cons before accessing car. 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * specifier.h (XSPECIFIER_TYPE): Add error checking version. (XSETSPECIFIER_TYPE): Ditto. 2000-01-17 Didier Verna <didier@xemacs.org> * redisplay.c (generate_fstring_runes): compute string size in characters, not bytes. 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr> * window.c (Fwindow_minibuffer_p): Make WINDOW optional. 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr> * print.c (print_error_message): Call print_prepare(). 2000-01-14 Martin Buchholz <martin@xemacs.org> * .dbxrc: Renamed from dbxrc. * events.c (event_to_character): Use `assert (foo)' instead of `if (!foo) abort()' * .gdbinit (xtype): Add documentation. * .gdbinit (check-temacs): New function. * .gdbinit (check-xemacs): New function. * dbxrc (check-xemacs): New function. * dbxrc (check-xemacs): New function. 2000-01-14 Andy Piper <andy@xemacs.org> * glyphs-widget.c (widget_query_geometry): Make sure that we calculate default dimensions correctly. 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows. * event-msw.c (vars_of_event_mswindows): Fixed a mistyped pdump_wire'd variable. * emacs.c: (main_1): Conditionalized calls to reinit_vars_of_scrollbar_x and reinit_vars_of_module. 2000-01-13 Martin Buchholz <martin@xemacs.org> * window.c (Fset_window_configuration): * sysdep.c (_start): * input-method-motif.c (res): * event-Xt.c (Xt_process_to_emacs_event): Simple compiler warning fixes. * bytecode.c (funcall_compiled_function): Use the original function symbol on the backtrace list in preference to the compiled_function object in error messages. 2000-01-13 Andy Piper <andy@xemacs.org> * glyphs-x.c (update_widget_face): Make sure we update the widget background as well as foreground. 2000-01-13 Andy Piper <andy@xemacs.org> * glyphs.h (struct Lisp_Image_Instance): Move justify and orient fields to subwindow. (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro. (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto. (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto. (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto. * glyphs-widget.c (check_valid_tab_orientation): new function. (initialize_widget_image_instance): zero orientation and justification. (widget_instantiate): pick up orientation. (tab_control_query_geometry): return appropriate values for vertical tabs. * glyphs-msw.c: (mswindows_tab_control_instantiate): assign appropriate creation flags for left, right and bottom tabs. * s/cygwin32.h: add tab definitions. 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com> * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the frame upon hiding a subwindow. (mswindows_button_instantiate): Changed the push button style to BS_PUSHBUTTON. (mswindows_button_instantiate): Removed button BS_NOTIFY style. (mswindows_button_instantiate): Removed redundant check for a disabled gui item. (mswindows_button_instantiate): Made use of WS_TABSTOP consistent: "operable" controls (edit, button, tree, scroll) have this style, "display-only" ones (static, progress gauge) do not. This style is currently ignored by XEmacs though. Also, removed the WS_EX_CONTROLPARENT style - it is not for children, it is for their parents! (mswindows_edit_field_instantiate): Ditto. (mswindows_progress_gauge_instantiate): Ditto. (mswindows_tree_view_instantiate): Ditto. (mswindows_tab_control_instantiate): Ditto. (mswindows_scrollbar_instantiate): Ditto. (mswindows_combo_box_instantiate): Ditto. (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT style to the "clip" window. (mswindows_button_instantiate): Removed compilation warning by equally typing terms of the ?: operator. 2000-01-12 Didier Verna <didier@xemacs.org> * redisplay.c (generate_fstring_runes): new parameter holding the last modeline-format extent. (add_glyph_to_fstring_db_runes): new parameter holding the glyph extent, fill the glyph block with it. (generate_fstring_runes): handle these parameters. (generate_formatted_string_db): ditto. * keymap.c (get_relevant_keymaps): retreive the keymaps from the glyphs'extents in the modeline. 1999-01-11 Mike Woolley <mike@bulsara.com> * ntheap.c: Reduced the reserved heap space from 1Gb down to 256Mb, as a workaround for the non-starting problem many people have experienced. 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp> * console-tty.c (Fset_console_tty_output_coding_system): Force redrawing tty frame. 2000-01-10 Didier Verna <didier@xemacs.org> * redisplay.c (generate_fstring_runes): fix size computation bug. 2000-01-09 William M. Perry <wmperry@aventail.com> * gpmevent.c: (gpm_next_event_cb): Don't return value from void function. 2000-01-09 Andy Piper <andy@xemacs.org> * glyphs-msw.c: index -> i to avoid shadows. (xbm_create_bitmap_from_data): make static. (check_valid_string_or_int): deleted. (mswindows_control_wnd_proc): message -> msg to avoid shadows. * glyphs-x.c (x_update_subwindow): remove unused args. * glyphs.c (glyph_image_instance): return the thing. Don't set the back pointer - this is done in allocate_image_instance. (query_string_font): return Qnil to make the compiler happy. (unmap_subwindow): set to ~0 to make the compiler happy. (glyph_query_geometry): comment out until used. (glyph_layout): ditto. 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr> * insdel.c (signal_after_change): Remove extraneous unbind_to().