Commit graph

6545 commits

Author SHA1 Message Date
Richard M. Stallman
be625e000a Whitespace changes. 1996-06-10 21:15:47 +00:00
Richard M. Stallman
8a376b3b35 (change_frame_size, remake_frame_glyphs): Use FRAME_WINDOW_P. 1996-06-10 21:13:26 +00:00
Richard M. Stallman
93e54836fd (Fredraw_frame, remake_frame_glyphs)
(direct_output_for_insert, change_frame_size): Support MSDOS frames.
1996-06-10 21:11:02 +00:00
Richard M. Stallman
7b71f5ebfe (Fset_mouse_position): Remove the DOS-specific
definition (it's defined on `frame.c').
(syms_of_dosfns): Remove defsubr of `Fset_mouse_position'.
1996-06-10 21:09:54 +00:00
Richard M. Stallman
541580aaf2 (Fmake_terminal_frame): Test MSDOS, not __MSDOS__. 1996-06-10 21:09:04 +00:00
Richard M. Stallman
bb22197165 (Fset_mouse_position): Remove the DOS-specific
definition (it's defined on `frame.c').
(syms_of_dosfns): Remove defsubr of `Fset_mouse_position'.
1996-06-10 21:08:24 +00:00
Richard M. Stallman
6f18171302 (FRAME_MSDOS_P): A new macro for MSDOS frames. 1996-06-10 21:05:11 +00:00
Richard M. Stallman
4d8cb748b8 (choose_minibuf_frame): Eliminate MSDOS-non-MULTI_FRAME conditional. 1996-06-10 21:04:09 +00:00
Richard M. Stallman
8424e1eaa9 (choose_minibuf_frame): Support multiple frames on MSDOS. 1996-06-10 21:03:43 +00:00
Richard M. Stallman
3bb1f22f68 (check_x): Fix error message.
(x_set_menu_bar_lines): New function, copied from xfns.c.
(IT_set_frame_parameters): Use selected_frame instead of
the_only_frame.
(internal_terminal_init): Use selected_frame instead of the_only_frame.
(check_x): New function, replacing macro in msdos.h.
(XMenuActivate): Use selected_frame instead of
the_only_frame.  Don't let the title for the "Buffers" popup
include a number when it is split into several menus.
1996-06-10 21:03:05 +00:00
Richard M. Stallman
964efc3363 (check_x): Macro definition deleted.
(DisplayWidth): Use `selected_frame'.
(DisplayHeight): Use `selected_frame'.
(x_mouse_leave): Remove; it's not used.
1996-06-10 21:02:00 +00:00
Richard M. Stallman
e4e5971709 Whitespace and #if 0 code changes. 1996-06-10 21:01:22 +00:00
Richard M. Stallman
6ba86f3775 (Fset_window_configuration) [HAVE_WINDOW_SYSTEM]: Call
`x_set_menu_bar_lines' on MSDOS as well.
1996-06-10 21:00:11 +00:00
Richard M. Stallman
50e3dcf5de (init_frame_faces): Build faces for an MSDOS frame like for X frame.
(Fmake_face_internal): Call `ensure_face_ready' for MSDOS frames.
(Fset_face_attribute_internal): Support face attributes for MSDOS frames.
1996-06-10 20:58:24 +00:00
Richard M. Stallman
fd8ff63d8d (redisplay_internal): Use FRAME_WINDOW_P.
(decode_mode_spec): Likewise.
1996-06-10 20:56:25 +00:00
Richard M. Stallman
ab6ce60e01 (redisplay_internal): Use `Vterminal_frame' and other
termcap frame code on MSDOS as well.
(display_text_line) [HAVE_FACES]: Support faces on MSDOS.
(decode_mode_spec): Return frame name on MSDOS like for termcap frames.
1996-06-10 20:50:01 +00:00
Richard M. Stallman
771c47d512 (x_to_win32_font): Allow any quality fonts. 1996-06-10 18:33:04 +00:00
Richard M. Stallman
707788bd68 (mark_object): Do set ARRAY_MARK_FLAG for bool-vectors. 1996-06-10 18:19:48 +00:00
Richard M. Stallman
3393c3f5d3 (fix_submap_inheritance): If parent_entry is not a keymap, use nil instead. 1996-06-10 18:19:25 +00:00
Richard M. Stallman
7830e24b1e (sync_modifiers): New function.
(w32_wnd_proc): Synchronize modifiers on each key down.
1996-06-10 17:35:37 +00:00
Richard M. Stallman
0cd6403b4b (XTread_socket): Use XtAppNextEvent when using toolkit configurations. 1996-06-10 17:32:13 +00:00
Richard M. Stallman
e9bf058bce (create_process): Add DONT_OPEN_PTY conditional. 1996-06-09 20:15:20 +00:00
Richard M. Stallman
b68f1a63fe (DONT_REOPEN_PTY): New definition. 1996-06-09 20:14:44 +00:00
Richard M. Stallman
f249a01280 (init_environment): Read PRELOAD_WINSOCK from registry if
not set in environment.

(winsock_inuse) [HAVE_SOCKETS]: New variable.
(have_winsock) [HAVE_SOCKETS]: Obsolete variable removed.

(term_winsock) [HAVE_SOCKETS]: Only unload winsock library if there
are no active sockets still open, and if the cleanup function
succeeds.  Return TRUE if winsock is unloaded.

(init_winsock) [HAVE_SOCKETS]: Load winsock if not already loaded,
and return TRUE if winsock support is available.  Unload winsock
immediately if new parameter load_now is false.  Check that
WSAStartup supports the winsock version we requested.

(set_errno, check_errno, sys_socket, sys_bind, sys_connect, sys_htons,
sys_ntohs, sys_inet_addr, sys_gethostname, sys_gethostbyname,
sys_getservbyname, sys_close, sys_read, sys_write) [HAVE_SOCKETS]:
Check winsock_lib instead of have_winsock to determine if winsock
support is available.

(sys_socket, sys_close) [HAVE_SOCKETS]: Count sockets in use.

(init_ntproc) [HAVE_SOCKETS]: Only load winsock library on startup
if PRELOAD_WINSOCK is set in environment (or registry).
1996-06-08 00:22:50 +00:00
Richard M. Stallman
a11e68d017 (Fwin32_has_winsock, Fwin32_unload_winsock) [HAVE_SOCKETS]: New functions.
(syms_of_ntproc) [HAVE_SOCKETS]: defsubr them.
1996-06-08 00:15:00 +00:00
Richard M. Stallman
bff3ed0ac3 (Fopen_network_stream)[WINDOWSNT]: Ensure Windows
socket library is loaded if available.
1996-06-08 00:14:31 +00:00
Richard M. Stallman
9d1778b1b7 (sys_mktemp): Complete rewrite. 1996-06-07 23:07:00 +00:00
Richard M. Stallman
8eae7766a4 (sys_kill): Don't try to terminate a DOS process. 1996-06-07 17:26:51 +00:00
Richard M. Stallman
7d58ed9927 (Fkeymap_parent, Fset_keymap_parent): New functions.
(fix_submap_inheritance): New function.
(access_keymap): Use fix_submap_inheritance.
1996-06-06 20:25:48 +00:00
Richard M. Stallman
1f4cd93708 (Ffile_name_directory) [WINDOWSNT]: Remove previous
change, which was incorrect and isn't strictly required.
1996-06-06 19:41:46 +00:00
Richard M. Stallman
f16140618d (init_winsock): Dynamically link to SetHandleInformation.
(sys_socket): If possible, use SetHandleInformation to make socket
handle non-inheritable to avoid a bug in NT.
1996-06-06 17:07:00 +00:00
Richard M. Stallman
76ac150878 (bright_bg): New function, enables bright background colors.
(dos_set_window_size): Move code to `bright_bg'.
(IT_set_terminal_modes): Enable bright background colors.
(IT_set_frame_parameters): Don't mask bright color bit in
background colors.  Record colors on `termscript' file.
(internal_terminal_init): Enable bright background colors.  Fix
default colors setting from $EMACSCOLORS.
1996-06-06 15:27:03 +00:00
Richard M. Stallman
4f5fb8b58e (Fset_face_attribute_internal) [MSDOS]: Don't mask
bright color bit in background colors.
1996-06-06 15:26:05 +00:00
Richard M. Stallman
aafe514744 (set_time_zone_rule):
Work around localtime cache bug in SunOS 4.1.3_U1 and SunOS 4.1.4.
1996-06-05 15:08:18 +00:00
Richard M. Stallman
7e797bdb9b (w32_read_socket): If the dead key was produced using
AltGr and has a valid AltGr scan code, it's a valid key and
should not be discarded.
1996-06-04 23:24:46 +00:00
Richard M. Stallman
cbe39279d3 (normalize_filename): New function.
(dostounix_filename, unixtodos_filename): Use it.
(readdir): Convert upper case file names to lower case
if win32-downcase-file-names is non-nil.
1996-06-03 21:18:55 +00:00
Richard M. Stallman
0c04091e60 (Vwin32_downcase_file_names): New variable.
(syms_of_win32fns): DEF_VAR it.
1996-06-03 21:17:31 +00:00
Richard M. Stallman
f94988a733 (DRIVE_LETTER): [DOS_NT] New macro.
(expand_file_name): Apply DRIVE_LETTER macro to drive names.
1996-06-03 21:16:17 +00:00
Richard M. Stallman
264d34bf38 (re_max_failures): Reduce to 8000. 1996-06-02 21:33:01 +00:00
Richard M. Stallman
8681157ab4 (reset_modifiers): Only clear a modifier if the modifier key has been
detected to have been released since Emacs lost focus.
(win32_wnd_proc): Have Windows translate VK_NUMLOCK and VK_SCROLL key
downs; don't reset the modifier state when Emacs loses focus.
1996-06-01 12:19:27 +00:00
Richard M. Stallman
576760910b (Fexpand_file_name) [WINDOWSNT]: Don't strip trailing /
when newdir is just "//".
(Ffile_name_directory) [WINDOWSNT]: Return Qnil if filename is a
partial UNC name such as "//foo".
1996-06-01 02:23:06 +00:00
Richard M. Stallman
846e8c10a0 (single_submenu): Handle non-keymap lists like symbols. 1996-05-31 20:10:02 +00:00
Richard M. Stallman
405615e51b (Fpop_to_buffer): Doc fix. 1996-05-30 23:11:14 +00:00
Richard M. Stallman
5abcf43247 (Fdisplay_buffer): Doc fix. 1996-05-30 23:09:44 +00:00
Karl Heuer
5bda3bcade Fix previous change. 1996-05-28 15:54:53 +00:00
Karl Heuer
2bd5b0c101 (LIBS_SYSTEM): Define this. 1996-05-28 00:53:21 +00:00
Karl Heuer
6f32ea6a98 [SOLARIS2]: Define SUNOS_5. 1996-05-28 00:17:16 +00:00
Karl Heuer
805288011b [SOLARIS2]: Include string.h. 1996-05-25 23:37:13 +00:00
Karl Heuer
84fb1139e6 (Vwin32_mouse_move_interval): New lisp variable.
(syms_of_win32fns): Add Vwin32_mouse_move_interval to syms.
(saved_mouse_msg): Renamed to saved_mouse_button_msg.
(timer_id): Renamed to mouse_button_timer.
(saved_mouse_move_msg, mouse_move_timer): New variables.
(win_msg_worker): Delete WM_TIMER code.
(win32_wnd_proc): Handle WM_TIMER events here. Use separate timers
for mouse down and mouse move (including scroll bar drag) events.
Add new handling code for WM_VSCROLL and WM_MOUSEMOVE events.
Only filter WM_MOUSEMOVE events when a button is held down.
Always pass on message to DefWindowProc after calling
TranslateMessage.  Reset keyboard modifiers when losing focus.

(win32_wnd_proc): When passing modifier keystrokes back
to Windows, invoke TranslateMessage on them.
1996-05-25 17:49:03 +00:00
Karl Heuer
063b17e5df (x_scroll_bar_handle_click): Repaint scroll bar handle
when drag is finished.
1996-05-25 17:48:23 +00:00