Jason Rumney [Sun, 30 Jan 2000 18:53:22 +0000 (18:53 +0000)]
(turn_on_face, turn_off_face): Removed.
(w32_face_attributes): New function.
(Global_variables): Reduce scope where possible.
(clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
fill attribute.
(hl_mode): Don't modify text attributes.
(write_glyphs): Don't do anything if len <= 0. Use
w32_face_attributes to get attributes for drawing. Write
terminating codes using char_attr_normal.
(reset_terminal_modes, set_terminal_modes): Turn off highlight.
(update_begin, update_end): Likewise.
(vga_stdcolor_name): New function.
(initialize_w32_display): Remove char_attr_reverse and char_attr.
(Fset_screen_color): Remove char_attr_reverse.
Jason Rumney [Sun, 30 Jan 2000 18:48:52 +0000 (18:48 +0000)]
Merge more of DOS and X specifics in preparation for merge with xfaces.c.
(defined_color): Remove FIXME comment.
(tty_color_name): Provide w32-specific function.
(realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
Jason Rumney [Sun, 30 Jan 2000 18:42:51 +0000 (18:42 +0000)]
(w32_defined_color): Check for valid frame before
applying gamma correction. Eliminate dependency on frame elsewhere.
(w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
(w32_to_x_font): Use resx and resy not height_in and width_in.
(x_to_w32_font): Doc fix.
(xlfd_strip_height): New function to strip and return font height.
(w32_font_match): Compare height separately from rest of xlfd
spec, using xlfd_strip_height.
Gerd Moellmann [Sat, 29 Jan 2000 23:17:49 +0000 (23:17 +0000)]
(xic_set_preeditarea): Take window parameter and
window-relative pixel-positions.
(x_create_im): Removed.
(DEFAULT_STYLE, DEFAULT_FONT): Removed.
(supported_xim_styles): Renamed from supported_styles.
(best_xim_style): Renamed from best_style.
(create_frame_xic): Renamed from xic_create_frame.
(free_frame_xic): Renamed from xic_destroy_frame.
(supported_styles): New variable.
(DEFAULT_STYLE, DEFAULT_FONT): New macros
(xic_create_xfontset, best_style, xic_create_frame)
(xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
(xic_set_xfontset): New functions.
Gerd Moellmann [Sat, 29 Jan 2000 12:14:55 +0000 (12:14 +0000)]
(iswitchb-use-frame-buffer-list): New configuration
variable. If non-nil, order the buffer list according to the
currently selected frame.
(iswitchb-make-buflist): If iswitchb-use-frame-buffer-list is
non-nil, pass the selected frame to function buffer-list.
Gerd Moellmann [Fri, 28 Jan 2000 15:02:20 +0000 (15:02 +0000)]
(socket_status): New function.
(main): if $LOGNAME or $USER exist and differ from our euid, look
for a socket based on the UID associated with the name.
Gerd Moellmann [Fri, 28 Jan 2000 12:47:38 +0000 (12:47 +0000)]
(sort-numeric-base): New option.
(sort-numeric-fields): If number starts with `0' or `0[xX[',
interpret it as octal or hexadecimal. Use sort-numeric-base
as default base.
Eli Zaretskii [Thu, 27 Jan 2000 17:07:27 +0000 (17:07 +0000)]
(IT_clear_end_of_line): Print the extent of the cleared
part of the line to the termscript file.
(IT_clear_to_end): Clear the entire line, not just its beginning.
(menu_help_message, prev_menu_help_message): New variables.
(IT_menu_make_room): Make room for the help_text member.
(IT_menu_display): New argument disp_help; all callers changed.
If disp_help is non-zero, store the help text of the active menu
item in menu_help_message.
(XMenuAddPane): Initialize the help_text member to NULL.
(XMenuAddSelection): New argument help_text. Store it in the
XMenu structure.
(XMenuActivate): New argument help_callback. If the value of
menu_help_message has changed since the last time, display the
menu help message text while waiting for the mouse to move. Clear
the echo area before exiting.
(XMenuDestroy): Free the help_text member.
Gerd Moellmann [Thu, 27 Jan 2000 15:32:21 +0000 (15:32 +0000)]
(xmenu_show) [!USE_X_TOOLKIT]: Pass help to
XMenuAddSelection. Pass help callback to XMenuActivate.
(menu_help_callback) [!USE_X_TOOLKIT]: New function.
Gerd Moellmann [Tue, 25 Jan 2000 15:57:26 +0000 (15:57 +0000)]
(toplevel): Include systime.h and atimer.h.
(polling_for_input): Removed because unused.
(input_poll_signal) [POLL_FOR_INPUT]: Removed.
(poll_timer): New variable.
(poll_for_input, poll_for_input_1): New functions.
(start_polling, stop_polling): Rewritten.
Gerd Moellmann [Tue, 25 Jan 2000 15:56:42 +0000 (15:56 +0000)]
(toplevel): Include atimer.h.
(create_process_1): Rewritten.
(create_process): Use atimers instead of alarm.
(wait_reading_process_input) [hpux]: Turn atimers off instead
of turning off SIGALRM.
(wait_reading_process_input): Turn off atimers instead off
calling stop_polling.
Gerd Moellmann [Tue, 25 Jan 2000 15:50:53 +0000 (15:50 +0000)]
(make_menu_in_widget): Don't add XmNpopdownCallback,
add XmNunmapCallback.
(xm_unmap_callback): New function.
(xm_pull_down_callback): Call pre-activate callback only if
parent is the menu bar.