Karl Fogel [Wed, 8 May 1996 02:38:37 +0000 (02:38 +0000)]
(mail-hist-version): upped to 1.3.4.
(mail-hist-put-headers-into-history): wrap relevant body in a
`save-excursion'.
(mail-hist-add-header-contents-to-ring): doc fix.
Use `mail-hist-text-size-limit' directly.
(mail-hist-text-size-limit): doc fix.
(mail-hist-text-too-long-p): removed, we don't need this func.
(mail-hist-forward-header): move to point just after colon, don't try
to treat whitespace specially.
(mail-hist-next-or-previous-input): new func, abstracts two funcs
below.
Error informatively if not in a header.
Compensate for the extra SPACE char in "virgin" headers.
(mail-hist-next-input): just call above.
(mail-hist-previous-input): same.
(mail-hist-header-virgin-p): new func.
Karl Fogel [Wed, 8 May 1996 02:22:12 +0000 (02:22 +0000)]
(bookmark-make): take optional arg `info-node', pass it on to
bookmark-make-cell.
(bookmark-make-cell): if new optional arg `info-node' is non-nil, make
it be the bookmark's info-node.
(bookmark-info-current-node): new func.
(bookmark-set): call bookmark-make, passing result from above
bookmark-info-current-node.
(bookmark-send-annotation): same as above.
(bookmark-locate): defalias to bookmark-insert-location for backward
compatibility.
(bookmark-version): upped to 2.6.3.
(gulp-search-path, gulp-packages): Variable deleted.
(gulp-send-requests): Make the list of packages from scratch here.
Read directory name with the minibuffer.
(vc-follow-link, vc-find-file-hook):
Use file-chase-links instead of file-truename.
(vc-find-file-hook): Follow a link without asking
if the target is already visited.
Geoff Voelker [Fri, 3 May 1996 18:49:20 +0000 (18:49 +0000)]
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.
Geoff Voelker [Fri, 3 May 1996 18:48:05 +0000 (18:48 +0000)]
(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.
Geoff Voelker [Fri, 3 May 1996 18:45:32 +0000 (18:45 +0000)]
(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.
Geoff Voelker [Fri, 3 May 1996 18:41:13 +0000 (18:41 +0000)]
(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.
Geoff Voelker [Fri, 3 May 1996 18:35:50 +0000 (18:35 +0000)]
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.
Geoff Voelker [Fri, 3 May 1996 18:34:21 +0000 (18:34 +0000)]
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.
Geoff Voelker [Fri, 3 May 1996 18:33:20 +0000 (18:33 +0000)]
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.
Geoff Voelker [Fri, 3 May 1996 18:25:59 +0000 (18:25 +0000)]
(original-make-auto-save-file-name): New symbol bound
to old value of make-auto-save-file-name.
(make-auto-save-file-name): New function overriding old.
(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.
(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'.
(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.
(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.
[WINDOWSNT]: Include winsock.h and ntlib.h.
Macro SOCKET_ERROR undefined.
Don't declare h_errno.
[!WINDOWSNT]: Define macros recv and send.
[!WINDOWSNT] (POP_SERVICE): Change to pop3.
(pop_open) [WINDOWSNT]: Initialize trash_started.
(have_winsock) [WINDOWSNT]: New variable.
(socket_connection) [WINDOWSNT]: Initialize winsock.
(socket_connection): Use closesocket instead of close.
(getline): Use recv instead of read.
(fullwrite): Use send instead of write.
(pop_trash): Use closesocket instead of close.
(pop_trash) [WINDOWSNT]: Cleanup winsock.
Check if being called recursively by sendline.
(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.
(rmail-insert-inbox-text): When required, prompt for
pop password and pass on to movemail.
(rmail-pop-password, rmail-pop-password-required): New variables.
(rmail-read-password): New function.