1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 20:30:32 -08:00
Commit graph

6430 commits

Author SHA1 Message Date
Geoff Voelker
4e36126c56 Include string.h.
(HAVE_FREXP, HAVE_FMOD): Macros removed.
(struct timeval, struct timezone, gettimeofday): Declarations removed.
(HAVE_SOCKETS, MAIL_USE_POP, MAIL_USE_SYSTEM_LOCK): Macros defined.
(DIRECTORY_SEP): Use Vdirectory_sep_char.
(EXEC_SUFFIXES): Add .cmd to list of suffixes.
(EXEC_SUFFIXES): Add .cmd to list of suffixes.
> (HAVE_SYS_TIMEB_H, HAVE_SYS_TIME_H, HAVE_UNISTD_H, STDC_HEADERS,
TIME_WITH_SYS_TIME, HAVE_GETTIMEOFDAY, HAVE_CLOSEDIR,
HAVE_LONG_FILE_NAMES, HAVE_BCOPY, HAVE_BCMP, HAVE_LOGB, HAVE_FREXP,
HAVE_FMOD, HAVE_FTIME, HAVE_MKTIME, HAVE_H_ERRNO): New macros.
(access, chdir, chmod, close, creat, ctime, dup, dup2, fopen,
link, mkdir, mktemp, open, pipe, read, rename, rmdir, select,
sleep, unlink, write, spawnve, wait, kill, signal):
Macros redefined from win32_* to sys_*.
[__STDC__]: Define when including direct.h, io.h, stdio.h.
(struct nt_stat): Definition removed.
(stat, st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid,
st_rdev, st_size, st_atime, st_mtime, st_ctime): Macros undefined.
1996-05-03 18:50:05 +00:00
Geoff Voelker
97aab3a23b Include frame.h.
(hEvent): Renamed to h_input_available.
(init_crit, delete_crit, get_next_msg, post_msg):
Use h_input_available.
(GetFrameDC, ReleaseFrameDC): New functions.
(leave_crit): Function removed.
1996-05-03 18:49:20 +00:00
Geoff Voelker
aba66c88ae (struct win32_palette_entry): New structure.
(win32_display_info): New fields has_palette, p_colors_in_use,
n_colors_in_use, h_palette.
(win32_output): New field h_old_palette.
(WM_EMACS_SETWINDOWPOS): New macro.
(WM_EMACS_DESTROY_WINDOW): Value redefined.
1996-05-03 18:48:05 +00:00
Geoff Voelker
52cf03a10f (Vwindow_system): Declared.
(win32_fill_rect, dumpglyphs, do_line_dance, x_draw_box):
Use Get/ReleaseFrameDC.

(pixel_to_glyph_coords): Support tty mode.
(w32_read_socket): Explicitly use FALSE.
Handle WM_PALLETTECHANGED event.
(parse_button): Handle mouse button emulation.

(my_show_window, my_set_window_pos): New functions.
(x_set_offset, x_set_window_size, x_raise_frame, x_lower_frame):
Use my_set_window_pos.
(x_make_frame_visible, x_iconify_frame): Use my_show_window.

(x_draw_box): Don't trim right and bottom.
(x_make_frame_visible): Don't invoke SetForgroundWindow.

(win32_term_init): Use GetDC directly.  Initialize palette
and win32_num_mouse_buttons.
(win32_update_begin): Regenerate palette if necessary.
(x_delete_display): Free palette.

(win32_initialize) [ATTACH_THREADS]: Only AttachThreadInput if
conditional is defined.
1996-05-03 18:45:32 +00:00
Geoff Voelker
69cddef069 (Fwin32_set_clipboard_data, Fwin32_get_clipboard_data):
Calculate exact size of clipboard string with CRs removed or inserted.
1996-05-03 18:45:04 +00:00
Geoff Voelker
f79eea00ad (REG_ROOT): Remove trailing backslash. 1996-05-03 18:44:46 +00:00
Geoff Voelker
d573caaca1 (continuation of previous checkin)
(Fwin32_rgb): Dead procedure removed.
(Fwin32_define_rgb_color, Fwin32_load_color_file, win32_map_color,
win32_regenerate_palette, win32_unmap_color): New functions.
(syms_of_w32fns): Set up new lisp functions.
(define_color): Use palettes.  Simulate use of PALETTE_RGB to
use closest color instead of dithering.
(map_mode): Function removed.
(WIN32_COLOR, SET_WIN32_COLOR): New macros.

	(win32_init_class): Don't set CS_OWNDC in the WNDCLASS style.
(win32_createwindow): Invoke ShowWindow to discard defaults
from parent.
(win32_wnd_proc): Use separate critical sections appropriately.
Handle palette change, show window, and set window position messages.
Record WINDOWPLACEMENT structure length.
D
Detect quit_char.
(Fx_create_frame): Set scrollbar width to be the system standard.

(Ffocus_frame, Funfocus_frame): Functions now do nothing.

(x_to_win32_weight, win32_to_x_weight): Handle "heavy", "extrabold",
"light", "extralight", and "thin" fonts.
(x_to_win32_charset, win32_to_x_charset): New functions.
(win32_to_x_font): Use new height units.  Use win32_to_x_charset.
(x_to_win32_font): Use x_to_win32_charset.  Support Win32 font names
in addition to X font names.

(win32_load_font, Fx_list_fonts, Fx_display_color_cells,
Fx_display_mm_height, Fx_display_mm_width: Use GetDC directly.

(Fx_open_connection): Support external color mapping files.

(win32_abort): Map abort button to abort, retry to debug, and
ignore to continue.
1996-05-03 18:41:13 +00:00
Geoff Voelker
5ac45f986b (quit_char, Vwin32_enable_italics, Vwin32_enable_palette):
New variables.
(syms_of_win32fns): Set up new lisp variables.
1996-05-03 18:39:41 +00:00
Geoff Voelker
c2ccbd4304 (WinMain): Function removed.
(_start) [HAVE_NTGUI]: Don't invoke WinMain, but do set up
WinMain args as crt0.c would.
1996-05-03 18:39:18 +00:00
Geoff Voelker
c519b5e10e Include config.h after CRT headers. Include fcntl.h.
(child_process, MAX_CHILDREN, CHILD_ACTIVE): Moved to nt.h.
(DebugPrint): New macro.
(new_child): Create input event structures for child processes.
(delete_child): New function.
(reader_thread): Return nonzero upon failure.  Use _sys_read_ahead.
(create_child): Add child_process and parent PID arguments.
Don't create input event or thread structures here.
Fixup Win95 negative process IDs.
(register_child): Don't set consumed event; instead, set thread
status so that select will release it.
(remove_child): Renamed to reap_process.  Only free resources
of synchronous children.
(win32_wait): Renamed to sys_wait.  Sanity check to make sure
handle to subprocess exists.  Don't reclaim thread resources here.
(win32_spawnve): Renamed to sys_spawnve.
Check for proper wait mode first thing.
Convert command name to DOS format.
Quote whitespace and quotes in arguments to subprocess.
Use alloca instead of malloc.
If max subprocesses, return EAGAIN in hopes of another completing.
(sys_select): Add support for socket input.  Remove dead code.
Check input from children fairly.
(sys_select) [HAVE_TIMEVAL]: Remove conditional check and code.
(win32_kill_process): Renamed to sys_kill.  Use OpenProcess
to terminate process.
(prepate_standard_handles, reset_standard_handles): Moved here
from nt.c.
1996-05-03 18:35:50 +00:00
Geoff Voelker
407c17456a (win32_kdb_patch_key): Initialize isdead.
(key_event) [HAVE_NTGUI]: Use Windows key code.
1996-05-03 18:35:06 +00:00
Geoff Voelker
8dfdd41fa8 Include lisp.h.
(allocate_heap): Use VALBITS to determine size of heap.
(allocate_heap) [WINDOWS95]: Conditional code removed.
(sbrk): Use VALMASK instead of an unsigned integer mask.
1996-05-03 18:34:21 +00:00
Geoff Voelker
b3fa71dc1b Check to see if already included.
(fd_set, filedesc): New structures.
(child_process, MAX_CHILDREN, CHILD_ACTIVE): Definitions moved
from ntproc.c.
(FD_SET, FD_CLR, FD_ISSET, FD_ZERO): Operate on fd_set structures.
(SELECT_TYPE): New macro.
New child process status enumeration.
(FILE_READ, FILE_WRITE, FILE_BINARY, FILE_PIPE, FILE_SOCKET):
New macros.
(fd_info, new_child, delete_child): Declared.
1996-05-03 18:33:20 +00:00
Geoff Voelker
480b0c5b52 (nt_stat, nt_ctime): Functions deleted.
Undefine macros of CRT functions.
1996-05-03 18:32:52 +00:00
Geoff Voelker
2fd5e802b7 (SUBSYSTEM) [NTGUI]: Remove conditional.
(LINK_FLAGS): Explicitly set base address, and stack and heap sizes.
(nt.obj): Add dependency to nt.h.
1996-05-03 18:32:30 +00:00
Richard M. Stallman
6321824f33 (Fthis_single_command_keys): New function.
(syms_of_keyboard): defsubr it.
(this_single_command_key_start): New variable.
(add_command_key): Reduce this_single_command_key_start if nec.
(command_loop_1): Clear this_single_command_key_start if nec.
(Fread_key_sequence, Fexecute_extended_command): Likewise.
(read_key_sequence): Set this_single_command_key_start.
1996-05-02 22:33:51 +00:00
Richard M. Stallman
377f24f595 (Fevent_convert_list): Never treat last elt as modifier. 1996-05-02 21:39:06 +00:00
Richard M. Stallman
d21e67b565 (dos_get_modifiers): Restore missing comment terminator.
(getdefdir): Rewrite to call `_fixpath' instead of `intdos'.
(run_msdos_command) [DJGPP > 1]: Work around some MSDOS
command-line restrictions by running shell commands via `system'
instead of `spawnve'.
1996-05-01 23:25:33 +00:00
Richard M. Stallman
34097368e8 (Fexpand_file_name) [DOS_NT]: Correct the `if' clause
to compile on all platforms.
1996-05-01 23:24:44 +00:00
Richard M. Stallman
8b09e5d05c (signal_after_change): Correct the arg to report_overlay_modification. 1996-05-01 21:25:49 +00:00
Richard M. Stallman
0b1f1b099f (add_overlay_mod_hooklist): Fix call to bcopy. 1996-05-01 21:20:05 +00:00
Richard M. Stallman
0efb88ffff (C_SWITCH_X_SYSTEM): Definition moved to sol2-4.h. 1996-05-01 19:12:44 +00:00
Richard M. Stallman
860ef324cb (C_SWITCH_X_SYSTEM): Definition moved from sol2.h. 1996-05-01 19:12:29 +00:00
Richard M. Stallman
d2bd6bc4c1 [USE_X_TOOLKIT]: Include X11/Shell.h.
(x_wm_set_icon_pixmap) [USE_X_TOOLKIT]: Tell widget the new pixmap.
1996-04-30 19:40:56 +00:00
Richard M. Stallman
35b3402f5e (make_lispy_event): FRAME_MENU_BAR_ITEMS now has
four elements per item.  Add a separate slot for the hpos.
(menu_bar_items): Likewise.
(menu_bar_item): Initialize the hpos slot to 0.
1996-04-29 15:58:16 +00:00
Richard M. Stallman
469937ac96 (display_menu_bar): FRAME_MENU_BAR_ITEMS now has four elements per item.
(update_menu_bar): If we update FRAME_MENU_BAR_ITEMS,
also set w->update_mode_line.
1996-04-29 15:57:12 +00:00
Richard M. Stallman
d2ff1bf379 (get_frame_menubar_event, set_frame_menubar):
FRAME_MENU_BAR_ITEMS now has four elements per item.
1996-04-29 15:56:24 +00:00
Richard M. Stallman
9a1dc3be43 (Fexpand_file_name) [DOS_NT]: Keep dir sep following ~
or ~user, but don't collapse the newdir prefix in that case.
1996-04-29 15:49:43 +00:00
Richard M. Stallman
f04366cb45 (set_frame_menubar): FRAME_MENU_BAR_ITEMS now has four elements per item. 1996-04-29 15:29:52 +00:00
Richard M. Stallman
ad6cd733f4 Comment change. 1996-04-27 02:09:56 +00:00
Richard M. Stallman
199607e4f7 (Fexpand_file_name, Ffile_name_absolute_p): Doc fixes.
(Ffile_exists_p, Ffile_executable_p, Ffile_readable_p)
(Ffile_writable_p, Ffile_directory_p, Ffile_regular_p)
(Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p)
(expand_and_dir_to_file): Rename abspath to absname.

(CORRECT_DIR_SEPS) [DOS_NT]: New macro.
(IS_DRIVE) [DOS_NT]: Added separate definitions for DOS and NT.
(Ffile_name_directory) [DOS_NT]: Simplify code to match change in
getdefdir in msdos.c.  Ignore embedded colons.  Correct dir seps.
(Ffile_name_nondirectory) [DOS_NT]: Ignore embedded colons.
Correct IS_ANY_SEP to IS_DIRECTORY_SEP.
(file_name_as_directory) [DOS_NT]: Correct dir seps.
Correct IS_ANY_SEP to IS_DIRECTORY_SEP.
(directory_file_name) [DOS_NT]: Correct dir seps.
(Fmake_temp_name) [DOS_NT: Correct dir seps.
(Fexpand_file_name) [mostly DOS_NT]: Remove relpath, tmp and
defdir variables; init drive to 0.
Correctly detect when default_directory is absolute.
Be strict when looking for MSDOS drive specifier; defer calling
getdefdir.  Ignore drive specifier if name now has UNC prefix.
Correctly recognise if name is not absolute when trying simple
method to expand; return original string if possible.
Skip dir sep after ~ or ~user.
Use getpwnam instead of HOME for ~user on NT.
Handle error return from getdefdir.
Correctly detect if newdir is absolute before using default_directory.
Handle case where newdir is not absolute - expand relative to
current working dir if necessary (instead of calling getdisk
later).  Only keep UNC prefix if nm starts with dir sep.
Replace kludgy handling of drive spec in newdir.  Correct dir seps.
(Fexpand_file_name) [!DOS_NT]: Fix incorrect expansion of
"/foo/../bar" -> "//bar".
(Fsubstitute_in_file_name) [DOS_NT]: Correct dir seps for NT as
well.  Merge equivalent #ifdef APOLLO and WINDOWSNT cases.  Ignore
embedded colons and be strict about drive specs.
(Fcopy_file) [DOS_NT]: Do dev/inode check on NT.
(Ffile_name_absolute_p) [DOS_NT]: Be strict about drive specs.
(check_executable) [DOS_NT]: Test st_mode on NT.
(Ffile_readable_p) [DOS_NT]: Use access instead of open on NT.
(Ffile_modes) [DOS_NT]: Don't embelish st_mode value on NT.
(Fread_file_name) [DOS_NT]: Correct dir seps in HOME.
(syms_of_fileio): Add Vdirectory_sep_char.
1996-04-27 01:14:17 +00:00
Richard M. Stallman
37513bdf93 (getdefdir): Include drive letter and colon when
constructing default directory for drive.
1996-04-27 00:52:30 +00:00
Richard M. Stallman
2f8d25d5f1 (FRAME_TERMCAP_P) [WINDOWSNT && !HAVE_NTGUI]:
Remove conditional for HAVE_NTGUI.
1996-04-26 19:56:17 +00:00
Richard M. Stallman
f405affb31 (EMACS_KILLPG) [WINDOWSNT]: Invoke kill instead of win32_kill_process. 1996-04-26 19:55:52 +00:00
Richard M. Stallman
7795ff9bc0 (Fopen_network_stream): Set process infd to inch.
(create_process, read_process_output, Fsignal_process) [WINDOWSNT]:
Remove conditional NT code.
1996-04-26 19:55:27 +00:00
Richard M. Stallman
f3849f257d (close_load_descs) [WINDOWS_NT]: Don't actually do anything.
(read_escape): Detect READCHAR reporting eof.
1996-04-26 19:54:49 +00:00
Richard M. Stallman
e0c0701265 [WINDOWS_NT]: Declare Vdirectory_sep_char. 1996-04-26 19:53:20 +00:00
Richard M. Stallman
41f339d465 (main) [WINDOWSNT]: Invoke init_ntproc.
(shut_down_emacs) [WINDOWSNT]: Invoke term_ntproc.
1996-04-26 19:53:04 +00:00
Richard M. Stallman
93593876d9 (Ffile_attributes) [WINDOWSNT]: Remove conditional NT code. 1996-04-26 19:52:51 +00:00
Richard M. Stallman
4252a4bd63 (Fcall_process) [WINDOWSNT]: Remove conditional NT code.
(Fcall_process_region) [DOSNT]: Canonicalize slashes in filename.
(child_setup) [WINDOWSNT]: Decrease handles array by one.
1996-04-26 19:52:37 +00:00
Richard M. Stallman
6d07821119 (x_window) [! USE_X_TOOLKIT]: Initialize wm_hints.icon_pixmap. 1996-04-26 16:39:13 +00:00
Richard M. Stallman
b80c363eee (x_scroll_bar_clear): Do nothing if frame now has no scroll bars. 1996-04-26 16:38:03 +00:00
Richard M. Stallman
637ad741e0 Update copyright year. 1996-04-26 16:06:54 +00:00
Richard M. Stallman
cbb95688d2 Include blockinput.h.
(change_frame_size_1): Block input around the real work.
1996-04-26 15:45:46 +00:00
Richard M. Stallman
6c05ef1e11 (getdefdir) [DJGPP > 1]: Use 32-bit ESI to pass buffer
address to `intdos' instead of SI which can be 16-bit.
1996-04-26 11:56:25 +00:00
Richard M. Stallman
4ad8681a67 (save_excursion_restore): Add gcpros. 1996-04-26 03:01:56 +00:00
Richard M. Stallman
ea083293b6 (unexec): Add conditional for SOLARIS_POWERPC. 1996-04-25 18:02:45 +00:00
Richard M. Stallman
568aa5850b (syms_of_fileio): Doc fix. 1996-04-25 17:31:37 +00:00
Richard M. Stallman
e74c43500e (Fx_list_fonts) [BROKEN_XLISTFONTSWITHINFO]:
Free the font, and the fontinfo too if we don't want it.
1996-04-25 03:36:01 +00:00
Richard M. Stallman
ea146def5f (x_connection_signal): Call sigunblock properly. 1996-04-24 22:29:57 +00:00