1. 03 Sep, 1997 16 commits
    • Geoff Voelker's avatar
      (os_subtype): New variable. · 801f68b9
      Geoff Voelker authored
      (cache_system_info): Set os_subtype.
      (recreate_heap): Update system information after loading heap.
      Don't use data_seg pragma here.
      (_heap_init, _heap_term) [_MSC_VER >= 1000]: New functions that
      override CRT routines.
    • Geoff Voelker's avatar
      Include limits.h and errno.h. · 1edf84e7
      Geoff Voelker authored
      Declare externs from other files.
      (w32_in_use): New variable.
      (check_w32, have_menus_p, x_set_title, w32_msg_worker,
      find_deferred_msg, send_deferred_msg, complete_deferred_msg,
      Fw32_focus_frame, W32-send-sys-command): New functions.
      (last_mouse_movement_time): Delete variable.
      (x_frame_parms): Alphabetize.  Add title parm.
      (x_set_icon_name): Use title if set.
      (x_set_menu_bar_lines): Ensure client area remains the same.
      (x_set_name): Don't update if the name is the same.
      Use title for name if available.
      (x_icon): Initial support for creating window iconified.
      (x_display_info_for_name): Set w32_in_use.
      (Fx_open_connection): Validate Vwindow_system.  Set w32_in_use.
      (w32_create_window): Set window size to frame dimensions.
      Set font width, line height, border, scrollbar indexes.
      Don't set X and Y units indexes.
      (w32_msg_pump): Renamed from windows_msg_worker.
      Make static.  Don't post done message. No longer handle
      create scrollbar message.  Don't abort on anomalous messages.
      Return when completion detected.
      (w32_wnd_proc): Keep track of button state.
      For WINDOWPOSCHANGING, force window dimensions to be multiples
      of character dimensions.
      Use correct arguments for SHOWWINDOW.
      For SETWINDOWPOS, use WINDOWPOS structure.
      (my_create_window): Abort if message post fails.
      (Fx_create_frame): Use title instead of name.
      GC protect frame before make_frame_without_minibuffer.
      Set icon name.
      Use courier new as default font (has bold and italic).
      Set BufferPredicate and Title default parameters.
      (x_to_w32_weight): Support semibold weight.
      (x_to_w32_charset): Map # to numeric charset identifier.
      (w32_to_x_charset): Encode unknown charsets as a number.
      (enum_font_cb2): Don't restrict to ANSI and OEM charsets.
      (Fx_color_values): Set high and low words of color values.
      (syms_of_w32fns): Zero w32_in_use.  defsubr new functions.
      (w32_wnd_proc): Pass on WM_DISPLAYCHANGE messages.
      (win32_wnd_proc): Capture and handle WM_MOUSEWHEEL events.
      Capture and handle WM_EMACS_TRACKPOPUPMENU events.
      Allow a dragged selection from a popup menu started up
      by a mouse down event.
      (x_to_win32_color): Support for X Windows RGB string specifications.
    • Geoff Voelker's avatar
      (DebPrint, reset_kbd, unset_kbd, take_console): Delete functions. · 3e671d90
      Geoff Voelker authored
      (keyboard_init_hook): Delete variable.
      (prev_console_cursor) [! USE_SEPARATE_SCREEN]: New variable.
      (reset_terminal_modes) [! USE_SEPARATE_SCREEN]: Reset cursor info.
      (initialize_w32_display) [USE_SEPARATE_SCREEN]: Create separate
      screen buffer.
      (ctrl_c_handler): Only ignore interrupts when interactive.
      (set_terminal_modes): Set input mode.
      (initialize_w32_display): Record original settings.
      Don't reset cursor or clear frame.
    • Geoff Voelker's avatar
      Remove debugging macros. · bb06745d
      Geoff Voelker authored
      (child_process): Remove is_dos_process field, add hwnd handle field.
      (FILE_LAST_CR): New macro.
      (w32_get_long_filename): Declare extern.
    • Geoff Voelker's avatar
      Include stddef.h. · 76b3903d
      Geoff Voelker authored
      (getwd): Delete macro.
      (startup_dir): New variable.
      (getwd): Return directory in which Emacs started.
      (init_user_info): Set SHELL environment variable if not set.
      (parse_root, get_long_basename, w32_get_long_filename): New functions.
      (init_environment): Look for CMDPROXY.
      Make sure that PATH and COMSPEC are capitalized in the environment.
      Record startup directory.
      (get_emacs_configuration, sys_rename): Use OS_WIN95.
      (map_w32_filename): Calculate returned string correctly.
      (sys_fopen): Use _fdopen.
      (sys_link): Support NTFS links.
      (sys_rename): Use a long file name for temporary name.
      (sys_pipe): Make pipes binary and non-inheritable.
      (sys_read, sys_write): Spoof text mode translation for pipes
      and sockets.
      (hashval): Simplify.
      (generate_inode_val): Use long file name version of file.
      (stat): Optimize by using active readdir info.
      Set fake_inode to 0 for directories.
      Set fake_inode to xor of file indexes for files.
      Don't use generate_inode_val to set inode value.
      (volume_info_data): Renamed from volume_info.
      (volume_info, fixed_drives, volume_cache): New variables.
      (lookup_volume_info, add_volume_info, GetCachedVolumeInformation):
      New functions.
      (get_volume_info): Use volume_info_data.
      Use GetCachedVolumeInformation.
      (init_ntproc): No longer restrict to one DOS subprocess.
      Use CRT _open and _fdopen.
      Cache fixed drive information.
    • Geoff Voelker's avatar
      Include config.h and time.h. · 43640c4d
      Geoff Voelker authored
      Declare extern data and functions.
      (file_data): Move definition from w32heap.c.
      (_start): Add debug hook for when profiling.
      Spoof executable name when using profilers.
      Invoke sbrk immediately when undumped.
      (unexec): Print error messages when input and output dump files
      cannot be opened.
      Reset header checksum.
      (open_input_file, open_output_file): Return status instead of aborting.
      (get_section_size): Handle different linkers.
      (find_section, rva_to_section): New functions.
      (get_section_info) [SEPARATE_BSS_SECTION]: Make code for using
      a separate .bss section conditional.
      Use my_begbss and my_endbss to determine .bss size by default.
      Look for Emacs data in EMDATA section.
    • Geoff Voelker's avatar
      makefile.nt (TLIB0, TOBJ, OBJ0): New macro. · 17fa2f54
      Geoff Voelker authored
      (LINK_FLAGS): Separate debugging info from the executable.
      (LIBS): Include TLIB0.
      (TEMACS): Link with TLIB0.
      (EMACS): Copy temacs map file to emacs map file.
      Update file dependencies.
    • Geoff Voelker's avatar
      (redisplay_internal): Check to see if frame is not obscured · f21ef775
      Geoff Voelker authored
      as well as visible.
    • Geoff Voelker's avatar
    • Geoff Voelker's avatar
      (sys_subshell) [DOS_NT]: Save and restore parent's · ad00c243
      Geoff Voelker authored
      working directory.
      (sys_subshell) [WINDOWSNT]: Share MSDOS code. Don't take console.
      (init_sys_modes, reset_sys_modes) [WINDOWSNT]: Do it even with
      a read_socket_hook.
    • Geoff Voelker's avatar
      Declare discard_mouse_events. · 084cd810
      Geoff Voelker authored
    • Geoff Voelker's avatar
      (kbd_buffer_get_event) [WINDOWSNT]: Support · 07de30b9
      Geoff Voelker authored
      (set-input-mode) [DOS_NT]: Do not invoke reset and init sys modes.
      (Qmouse_wheel) [WINDOWSNT]: New variable.
      (discard_mouse_events): New function.
      (mouse_wheel_syms) [WINDOWSNT]: New variable.
      (lispy_mouse_wheel_names) [WINDOWSNT]: New variable.
      (make_lispy_event) [WINDOWSNT]: Make mouse-wheel events.
      (syms_of_keyboard) [WINDOWSNT]: Define Qmouse_wheel and
    • Geoff Voelker's avatar
      (FRAME_OBSCURED_P): New macro. · 0969b893
      Geoff Voelker authored
      (FRAME_SAMPLE_VISIBILITY): Distinguish between invisible and obscured.
    • Geoff Voelker's avatar
      (Fexpand_file_name) [WINDOWSNT]: When stripping · bb1ff1f4
      Geoff Voelker authored
      drive letter, be careful not to create a UNC filename.
      (Fadd_name_to_file) [WINDOWSNT]: Remove conditional.
    • Geoff Voelker's avatar
      (getpid): Delete function. · 16f49a88
      Geoff Voelker authored
    • Geoff Voelker's avatar
  2. 02 Sep, 1997 24 commits