New functions.
(vc-version-diff): Use them. As a result, coding systems are now set
up properly for all sorts of diffs, and tree diffs can now also be
done locally.
(vc-diff): With a prefix argument, don't require that it's called from
a buffer under version control.
Sync with xfns.c:
(x_laplace_read_row, x_laplace_write_row): Removed.
(postprocess_image): New function.
(lookup_image): Call it for all image types except PostScript.
(x_kill_gs_process): Call postprocess_image.
(tiff_error_handler, tiff_warning_handler): New functions.
(tiff_load): Install them as handlers.
(x_kill_gs_process): Recognize if someone has cleared the image
cache under us.
(valid_image_p): Protect better against invalid image
specifications. Previous code could signal an error.
(Fx_hide_tip, Fshow_tip): Doc fix.
(Fv_max_tooltip_size): New variable.
(syns_of_xfns): DEFVAR_LISP it.
(Fx_show_tip): Add parameter TEXT. Set the tip frame's root
window buffer to *tip* right after creating the frame. Set frame's
window_width. Use a maximum tooltip size specified by
Vx_max_tooltip_size, if that has valid contents.
(compute_tip_xy): Add parameters WIDTH and HEIGHT.
Make sure the tooltip is completely visible.
(x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
(Fx_create_frame): Adjust the frame's height for presence
of the tool bar before calling x_figure_window_size.
(x_set_tool_bar_lines): Clear the tool bar window's current matrix
when the window gets smaller.
(x_set_foreground_color): Set frame's cursor_pixel.
(x_set_foreground_color, x_set_background_color): Cleaned up.
(x_set_font): Handle case of x_new_fontset returning the same name
as before, although there was a change in fontsets.
Protect unibyte stings created by replacing their multibyte
equivalents in menu_items.
(w32_menu_show): Don't overwrite an item's name with its key
description in case the description is a multibyte string.
(single_submenu): Some cleanup.
scanning for a `usage:' keyword.
(scan_c_file): Pass SAW_USAGE argument to read_c_string_or_comment.
Don't output a usage-string if there was one in the doc string.
(term_init): Don't set them.
Turn off any standout/underline modes that require magic cookies.
(ins_del_lines, highlight_if_desired, background_highlight)
(turn_on_highlight, turn_off_highlight, reset_terminal_modes):
Remove special processing for magic-cookie standout modes.
(turn_off_face, turn_on_face): Remove special processing for
underline magic-cookie glitch.
(internal_terminal_init): Don't set reassert_line_highlight_hook
or change_line_highlight_hook.
(highlight): Variable removed.
(IT_set_face, IT_update_begin, IT_update_end, IT_set_terminal_modes):
Don't set or use it.
(reassert_line_highlight, change_line_highlight): Functions removed.
(standout_requested): Variable removed.
(update_end, highlight_if_desired): Don't use it.
(chars_wasted, copybuf): Variables removed.
(write_standout_marker): Function removed.
(cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
(clear_end_of_line_raw, write_glyphs, ins_del_lines):
Don't use `chars_wasted' or `copybuf'.
(calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
Set `costs_set' to true.
(cursor_to, clear_end_of_line): Test `costs_set' instead of `chars_wasted'.
(clear_end_of_line): Function removed.
(clear_end_of_line_raw): Renamed to `clear_end_of_line'.
(clear_to_end): Call `clear_end_of_line' instead of `clear_end_of_line_raw'.
(initialize_w32_display): Don't set reassert_line_highlight_hook
or change_line_highlight_hook.
(hl_mode): Function removed.
(reset_terminal_modes, set_terminal_modes, update_begin)
(update_end, w32_face_attributes, initialize_w32_display):
(clear_frame, ins_del_lines): Don't call it.