+2015-04-26 Jan Djärv <jan.h.d@swipnet.se>
+
+ * image.c (xcolor_to_argb32): New function.
+ (get_spec_bg_or_alpha_as_argb): Call xcolor_to_argb32.
+ (pbm_load, png_load_body, jpeg_load_body, gif_load): Only use
+ XImagePtr if ! USE_CAIRO.
+ (pbm_load): Add cairo support.
+
+2015-04-12 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xterm.c (x_draw_image_glyph_string): Added missing USE_CAIRO.
+ (x_free_cr_resources): Renamed from x_prepare_for_xlibdraw.
+ (x_cr_draw_frame, x_cr_export_frames, x_shift_glyphs_for_insert)
+ (x_free_frame_resources): Rename x_prepare_for_xlibdraw to
+ x_free_cr_resources.
+
+ * image.c (get_spec_bg_or_alpha_as_argb)
+ (create_cairo_image_surface): New functions when USE_CAIRO.
+ (xpm_load): Call the above functions. Handle XPM without mask
+ when USE_CAIRO.
+ (png_load_body): Handle USE_CAIRO case.
+ (png_load): Remove USE_CAIRO specific fuction, modify png_load_body
+ instead.
+ (jpeg_load_body): Call create_cairo_image_surface.
+ (gif_load, svg_load_image): Handle specified background, call
+ create_cairo_image_surface.
+
+2015-04-11 Jan Djärv <jan.h.d@swipnet.se>
+
+ * image.c (jpeg_load_body): Create cairo image surface if USE_CAIRO.
+ (tiff_load): Create cairo image surface if USE_CAIRO.
+ (gif_load): Ditto.
+
+2015-04-05 Jan Djärv <jan.h.d@swipnet.se>
+
+ * image.c: #undef COLOR_TABLE_SUPPORT when USE_CAIRO.
+ (x_clear_image): Free cr_data and cr_data2 if set.
+ (xpm_load): Assign data to cr_data2.
+ (svg_load_image): Convert from GdkPixbuf to CAIRO_FORMAT_ARGB32.
+
+ * dispextern.h (struct image): add cr_data2 if cairo.
+
+2015-04-03 Jan Djärv <jan.h.d@swipnet.se>
+
+ * image.c (prepare_image_for_display): Don't load if USE_CAIRO.
+ (x_clear_image): If USE_CAIRO, also free possible img->ximg->obdata and
+ don't return early.
+ (ALLOC_XPM_COLORS): Don't define when USE_CAIRO.
+ (xpm_load): Convert simple Xpms (32 bit ZPixmap) to CAIRO_FORMAT_ARGB32
+ and create a surface.
+
+ * xterm.c (handle_one_xevent): Always redraw tool tips on
+ MapNotify. Update tool tip frame sizes on ConfigureNotify.
+ (x_update_begin): Don't create any surface for non-visible
+ tip frames, the geometry may be wrong.
+
+2015-03-31 Eli Zaretskii <eliz@gnu.org>
+
+ * keyboard.c (read_key_sequence): Don't let
+ this_single_command_key_start become negative. (Bug#20223)
+
+2015-03-29 Jan Djärv <jan.h.d@swipnet.se>
+
+ * gtkutil.c (xg_display_open):
+ * xterm.c (x_display_ok, x_term_init): Block SIGIO when opening
+ a display (Bug#19175).
+
+2015-03-29 Martin Rudalics <rudalics@gmx.at>
+
+ * gtkutil.c (update_theme_scrollbar_width): Don't round up
+ scroll bar width with GTK3 (Bug#20182).
+
+2015-03-28 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xsmfns.c (smc_save_yourself_CB): Return if Vinvocation_name or
+ user_login_name are not strings.
+
+2015-03-28 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (sys_connect): Fix a mistake in previous commit that broke
+ blocking connections. (Bug#20159)
+
+2015-03-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ Avoid some core dumps in X session management
+ Derived from a bug report by Nicolas Richard in:
+ http://bugs.gnu.org/20191#20
+ * xsmfns.c (smc_save_yourself_CB): Don't dump core if
+ invocation-name is not a string. Initialize user-login-name if it
+ is not already initialized, and don't dump core if it is not a
+ string.
+ (create_client_leader_window): Don't dump core if x-resource-name
+ and x-resource-class are not both strings.
+ (x_session_initialize): Don't dump core if x-session-previous-id,
+ invocation-directory, and invocation-name are not strings.
+
+ Port user-login-name initialization to Qnil == 0
+ Derived from a bug report by Nicolas Richard in:
+ http://bugs.gnu.org/20191#20
+ * editfns.c (Fuser_login_name, Fuser_real_login_name)
+ (syms_of_editfns): Don't rely on all-bits-zero being an Elisp integer,
+ as this is no longer true now that Qnil == 0.
+
+ Assume !BROKEN_NON_BLOCKING_CONNECT
+ From a suggestion by Eli Zaretskii in:
+ http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00824.html
+ * process.c (NON_BLOCKING_CONNECT): Simplify by assuming that
+ BROKEN_NON_BLOCKING_CONNECT is not defined.
+ (SELECT_CAN_DO_WRITE_MASK): Remove, and assume it's now true.
+
+2015-03-27 Eli Zaretskii <eliz@gnu.org>
+
+ * lread.c (substitute_object_recurse): For sub-char-tables, start
+ the recursive SUBSTITUTE loop from index of 2, to skip the
+ non-Lisp members of the sub-char-table. See the discussion at
+ http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00520.html
+ for the details.
+
+ Support non-blocking connect on MS-Windows.
+ Based on ideas from Kim F. Storm <storm@cua.dk>, see
+ http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg00873.html.
+
+ * w32proc.c (reader_thread): If the FILE_CONNECT flag is set, call
+ '_sys_wait_connect'. If it returns STATUS_CONNECT_FAILED, exit
+ the thread with code 2.
+ (sys_select): Support 'wfds' in addition to 'rfds'. If a
+ descriptor in 'wfds' has its bit set, but the corresponding
+ fd_info member doesn't have its FILE_CONNECT flag set, ignore the
+ descriptor. Otherwise, acknowledge a successful non-blocking
+ connect by resetting the FILE_CONNECT flag and setting cp->status
+ to STATUS_READ_ACKNOWLEDGED. (Bug#20159)
+
+ * w32.h (STATUS_CONNECT_FAILED): New enumeration value.
+ (struct _child_process): New member 'errcode'.
+ (FILE_CONNECT): New flag.
+ (_sys_wait_connect): Add prototype.
+
+ * w32.c (pfn_WSAEnumNetworkEvents): New function pointer.
+ (init_winsock): Load WSAEnumNetworkEvents from winsock DLL.
+ (set_errno): Map WSAEWOULDBLOCK and WSAENOTCONN.
+ (sys_connect): Support non-blocking 'connect' calls by setting the
+ FILE_CONNECT flag in the fd_info member and returning EINPROGRESS.
+ (_sys_read_ahead): Add debug message if this function is called
+ for a descriptor that waits for a non-blocking connect to complete.
+ (_sys_wait_connect): New function.
+ (sys_read): Support STATUS_CONNECT_FAILED. Return the error code
+ recorded by _sys_wait_connect when the non-blocking connect
+ failed. Don't call WSAGetLastError before a call to set_errno had
+ a chance to use its value, since WSAGetLastError clears the last
+ error.
+
+2015-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * editfns.c (save_excursion_save): Don't save the mark.
+ (save_excursion_restore): Don't restore the mark.
+ (Fsave_excursion): Fix docstring accordingly.
+
+2015-03-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix minor ldexp issues
+ * floatfns.c (Fldexp): Require 2 args. Avoid undefined behavior
+ if the exponent is out of 'int' range. Improve documentation.
+ Fixes: bug#20185
+
+2015-03-24 Daniel Colascione <dancol@dancol.org>
+
+ * process.c (Fprocess_running_child_p): Return number identifier of
+ the foreground process group if we know it.
+
+2015-03-23 Paul Eggert <eggert@cs.ucla.edu>
+
+ Minor refactoring of new Fmake_process code
+ * process.c (Fmake_process): Refactor to avoid call to Flength, to
+ avoid cast to 'char **', and to reduce indenting and reuse of locals.
+
+2015-03-23 Daiki Ueno <ueno@gnu.org>
+
+ * process.c (Fmake_process): New function.
+ (create_process, create_pty): Check p->pty_flag instead of
+ Vprocess_connection_type.
+ (syms_of_process): Register QCcommand, QCconnection_type, Qpty,
+ Qpipe, and Smake_process. Unregister Sstart_process.
+
+2015-03-22 Jan Djärv <jan.h.d@swipnet.se>
+
+ * fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for
+ regexsize (Bug#20156).
+
+2015-03-21 Eli Zaretskii <eliz@gnu.org>
+
+ * emacs.c (synchronize_locale) [WINDOWSNT]: Ignore 'category' and
+ always use LC_ALL instead. Fixes problems with setting
+ system-time-locale to something non-default.
+
+2015-03-18 Glenn Morris <rgm@gnu.org>
+
+ * frame.h (x_set_bitmap_icon): Don't set the icon if icon-type is
+ nil/not present in the parameter alist. (Bug#19680)
+
+2015-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * alloc.c (purecopy): Handle hash-tables.
+
+2015-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * minibuf.c (Fread_buffer): Add `predicate' argument.
+ * callint.c (Fcall_interactively): Adjust calls accordingly.
+
+2015-03-15 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (handle_invisible_prop): Fix up it->position even when
+ we are going to load overlays at the beginning of the invisible text.
+ (setup_for_ellipsis): Reset the ignore_overlay_strings_at_pos_p
+ flag also here.
+ (next_overlay_string): Set the overlay_strings_at_end_processed_p
+ flag only if the overlays just processed were actually loaded at EOB.
+
+2015-03-14 Daniel Colascione <dancol@dancol.org>
+
+ * emacs.c (standard_args): Add --no-x-resources.
+ (usage_message): Document that -Q implies --no-x-resources.
+
+2015-03-13 Paul Eggert <eggert@cs.ucla.edu>
+
+ * frame.c (x_get_resource_string) [!USE_GTK]: Don't define.
+
+ * editfns.c, systime.h (mktime_z) [!HAVE_TZALLOC]: Now static.
+
+2015-03-12 Eli Zaretskii <eliz@gnu.org>
+
+ * w32font.c (font_supported_scripts): Add subranges for Latin
+ Supplement, Latin Extended-A/B, Vai, Supplemental Punctuation, Tai
+ Le, Buginese, Yijing Hexagrams, Ancient Greek Numbers, Tai Xuan
+ Jing, Counting Rods, Sundanese, Lepcha, Ol Chiki, Saurashtra,
+ Kayah Li, Rejang, Ancient Symbols, Phistos Disc, Carian, Lycian,
+ Lydian, Dominoe Tiles, and Mahjong Tiles. Break the Mathematical
+ Alphanumeric Symbols into several "scripts" like fontset.el does.
+ (Bug#19993)
+ (syms_of_w32font): DEFSYM all the new script symbols.
+
+2015-03-07 Eli Zaretskii <eliz@gnu.org>
+
+ * w32fns.c <ImmReleaseContext_Proc, ImmSetCompositionWindow_Proc>:
+ Fix typedefs to be consistent with the corresponding w32 API
+ signatures.
+ (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Don't invoke
+ DefWindowProc if we successfully handled the message, as doing so
+ causes problems in displaying selection dialogs. (Bug#11732)
+
+2015-03-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ Work around x86 glibc backtrace bug
+ * sysdep.c (emacs_backtrace): Don't dump core on x86.
+ Fixes: bug#19959
+
+2015-03-05 Eli Zaretskii <eliz@gnu.org>
+
+ * keyboard.c (make_lispy_position): When the click is on the
+ right-side vertical scroll bar, pass the rightmost X coordinate to
+ buffer_posn_from_coords, so that the returned text position
+ reflects the closest point to the click. Fixes region extension
+ when mouse moves outside the Emacs frame that has scroll bars on
+ the right.
+
+2015-03-04 Martin Rudalics <rudalics@gmx.at>
+
+ * frame.c (x_set_font): Try to keep frame height and width
+ unchanged if tool bar size changes with new font.
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * search.c (find_newline): Avoid assertion violations in
+ CHAR_TO_BYTE when a portion of the buffer was deleted and we look
+ for newlines near the end of the buffer. This happens in Rmail
+ when JIT font-lock fontifies a newly displayed portion of the
+ buffer.
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * w32fns.c (Fw32__menu_bar_in_use): New internal function.
+ (Bug#19925)
+
+2015-03-03 Glenn Morris <rgm@gnu.org>
+
+ * fileio.c (Fmake_temp_name): Doc tweaks. (Bug#19858)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * menu.c (Fx_popup_menu) [HAVE_X_WINDOWS]: Call
+ mouse_position_for_popup only for X frames. (Bug#19862)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * buffer.c (syms_of_buffer): Doc fix. (Bug#19841)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * xfaces.c (map_tty_color): Use assoc_no_quit instead of
+ assq_no_quit to fetch color definition by its string name.
+ (Bug#19802)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (move_it_in_display_line_to): Handle the case where the
+ last character of a screen line is whitespace, and we are under
+ word-wrap with overflow-newline-into-fringe turned on.
+ (Bug#19769)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (handle_stop, handle_single_display_spec)
+ (next-element_from_image): Don't reset the
+ ignore_overlay_strings_at_pos_p flag here.
+ (next_element_from_buffer): Reset ignore_overlay_strings_at_pos_p
+ here.
+ (next_overlay_string): Set ignore_overlay_strings_at_pos_p here,
+ after we've exhausted all the overlay strings at the current
+ position. (Bug#19307)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (set_iterator_to_next): Set value of stop_charpos
+ according to the object we are about to resume iterating.
+ (Bug#19307)
+
+ * dispnew.c (adjust_glyph_matrix): Set the update_mode_line flag
+ of the window whose current glyph matrix was resized, which
+ disables the mode-line row as side effect.
+
+ * xdisp.c (redisplay_window): Don't avoid redisplay of a window
+ whose update_mode_line flag is set. (Bug#19721)
+
+2015-03-03 Eli Zaretskii <eliz@gnu.org>
+
+ * dispextern.h (FACE_FOR_CHAR): Fix the commentary.
+
+2015-03-03 Daniel Colascione <dancol@dancol.org>
+
+ * alloc.c (syms_of_alloc): Rename `gc-precise-p' to `gc-precise'.
+
+2015-03-03 Paul Eggert <eggert@cs.ucla.edu>
+
+ * alloc.c (run_finalizers): Omit unused local.
+ Also, redo newly-added code as per usual Emacs style.
+
+2015-03-03 Martin Rudalics <rudalics@gmx.at>
+
+ * frame.c (adjust_frame_size): If the pixel sizes remain
+ unchanged but the number of lines or columns of the frame
+ changes, run `window--pixel-to-total' (Bug#19972).
+ (Qwindow_pixel_to_total): DEFSYM it.
+
+2015-03-03 Daniel Colascione <dancol@dancol.org>
+
+ * print.c (print_object): Print whether a finalizer has
+ been called.
+
+ * data.c (Ftype_of): Make `type-of' work with finalizers.
+ (syms_of_data): Register Qfinalizer.
+
2015-03-02 Daniel Colascione <dancol@dancol.org>
* print.c (print_object): Print finalizers.
2015-02-28 Martin Rudalics <rudalics@gmx.at>
- * frame.c (make_initial_frame, Fmake_terminal_frame): Set
- can_x_set_window_size and after_make_frame (Bug#19962).
+ * frame.c (make_initial_frame, Fmake_terminal_frame):
+ Set can_x_set_window_size and after_make_frame (Bug#19962).
2015-02-28 Eli Zaretskii <eliz@gnu.org>
DEFINE_LISP_SYMBOL_BEGIN / DEFINE_LISP_SYMBOL_END. All uses changed.
(DEFINE_NONNIL_Q_SYMBOL_MACROS): New macro, defaulting to true.
+2015-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * ftcrfont.c (ftcrfont_draw): Don't flush when drawing to screen.
+
+2015-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * xterm.c [USE_CAIRO]: Include math.h.
+ (enum corners) [USE_CAIRO]: New enum.
+ (x_erase_corners_for_relief) [USE_CAIRO]: New function.
+ (x_draw_relief_rect) [USE_CAIRO]: Use it. If box width is larger
+ than 1, draw the outermost line using the black relief.
+
+2015-02-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * gtkutil.c (xg_page_setup_dialog, xg_get_page_setup, draw_page)
+ (xg_print_frames_dialog): Modernize k&r declarations.
+
+ * xfns.c (Fx_export_frames, Fx_page_setup_dialog, Fx_get_page_setup)
+ (Fx_print_frames_dialog): Modernize k&r declarations.
+
+ * xterm.c (x_draw_window_divider): Use x_fill_rectangle instead of
+ XFillRectangle.
+ (x_draw_horizontal_wave) [USE_CAIRO]: New function.
+ (x_draw_underwave) [USE_CAIRO]: Use it.
+ (x_gc_get_ext_data, x_extension_initialize, x_begin_cr_clip)
+ (x_end_cr_clip, x_set_cr_source_with_gc_foreground)
+ (x_set_cr_source_with_gc_background, x_cr_define_fringe_bitmap)
+ (x_cr_destroy_fringe_bitmap, x_cr_draw_frame, x_cr_accumulate_data)
+ (x_cr_destroy, x_cr_export_frames, x_prepare_for_xlibdraw)
+ (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
+ (x_draw_rectangle, x_clear_window, x_fill_trapezoid_for_relief)
+ (x_clear_area): Modernize k&r declarations.
+ (x_cr_draw_image, x_fill_rectangle, x_draw_rectangle)
+ (x_fill_trapezoid_for_relief): Use int instead of unsigned int for
+ width and height args.
+ (x_draw_stretch_glyph_string): Call x_reset_clip_rectangles instead
+ of XSetClipMask.
+ (x_draw_relief_rect) [USE_CAIRO]: Reset clipping.
+ (x_fill_trapezoid_for_relief): Remove unnecessary cairo_close_path.
+
+2015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * fringe.c (init_fringe_bitmap) [USE_CAIRO]: Adjust bitmap data for
+ cairo image surface.
+
+ * xterm.c (x_cr_define_fringe_bitmap): Call cairo_surface_mark_dirty.
+
+2015-02-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+ Jan Djärv <jan.h.d@swipnet.se>
+
+ * xterm.h: Add include of cairo header files.
+ (x_bitmap_record): Add img if cairo.
+ (x_gc_ext_data): New struct for cairo.
+ (x_display_info): Add ext_codes for cairo.
+ (x_output): Add cr_context and cr_surface for cairo.
+ (x_clear_area): Change arguments from Display*/Window to frame pointer.
+ (x_query_color, x_begin_cr_clip, x_end_cr_clip)
+ (x_set_cr_source_with_gc_foreground, x_set_cr_source_with_gc_background)
+ (x_cr_draw_frame, x_cr_export_frames): Declare.
+
+ * xterm.c (x_clear_area1, x_prepare_for_xlibdraw)
+ (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
+ (x_draw_rectangle, x_fill_trapezoid_for_relief, x_clear_window)
+ (x_gc_get_ext_data, x_extension_initialize, x_cr_accumulate_data):
+ Declare.
+ (FRAME_CR_CONTEXT, FRAME_CR_SURFACE): New macros.
+ (max_fringe_bmp, fringe_bmp): New variables.
+ (x_gc_get_ext_data, x_extension_initialize)
+ (x_cr_destroy_surface, x_begin_cr_clip, x_end_cr_clip)
+ (x_set_cr_source_with_gc_foreground)
+ (x_set_cr_source_with_gc_background, x_cr_define_fringe_bitmap)
+ (x_cr_destroy_fringe_bitmap, x_cr_draw_image, x_cr_draw_frame)
+ (x_cr_accumulate_data, x_cr_destroy, x_cr_export_frames)
+ (x_prepare_for_xlibdraw, x_set_clip_rectangles)
+ (x_reset_clip_rectangles, x_fill_rectangle, x_draw_rectangle)
+ (x_clear_window, x_fill_trapezoid_for_relief): New functions.
+ (x_update_begin): Create cairo surface if needed.
+ (x_draw_vertical_window_border): Call x_fill_rectangle for cairo.
+ (x_update_end): Paint cairo drawing surface to xlib surface.
+ (x_clear_under_internal_border, x_after_update_window_line): Adjust
+ arguments to x_clear_area.
+ (x_draw_fringe_bitmap): Call x_fill_rectangle. Get GC values and
+ call x_cr_draw_image for cairo. Call x_reset_clip_rectangles instead
+ of XSetClipMask.
+ (x_set_glyph_string_clipping)
+ (x_set_glyph_string_clipping_exactly): Use x_set_clip_rectangles
+ instead of XSetClipRectangles.
+ (x_clear_glyph_string_rect, x_draw_glyph_string_background): Use
+ x_fill_rectangle instead of XFillRectangle.
+ (x_draw_glyph_string_foreground)
+ (x_draw_composite_glyph_string_foreground)
+ (x_draw_glyphless_glyph_string_foreground): Use x_draw_rectangle instead
+ of XDrawRectangle.
+ (x_draw_relief_rect): Add code for USE_CAIRO.
+ Call x_reset_clip_rectangles instead of XSetClipMask.
+ (x_draw_box_rect): x_set_clip_rectangles instead of XSetClipRectangles,
+ x_fill_rectangle instead of XFillRectangle, x_reset_clip_rectangles
+ instead of XSetClipMask.
+ (x_draw_image_foreground, x_draw_image_foreground_1):
+ x_draw_rectangle instead of XDrawRectangle.
+ (x_draw_glyph_string_bg_rect): x_fill_rectangle instead of
+ XFillRectangle.
+ (x_draw_image_glyph_string): If img has cr_data, use it as
+ a cairo surface.
+ (x_draw_stretch_glyph_string): x_set_clip_rectangles instead of
+ XSetClipRectangles, x_fill_rectangle instead of XFillRectangle.
+ (x_draw_glyph_string): x_fill_rectangle instead of XFillRectangle.,
+ x_reset_clip_rectangles instead of XSetClipMask.
+ (x_shift_glyphs_for_insert): Call x_prepare_for_xlibdraw.
+ (x_clear_area1): New function that calls XClearArea.
+ (x_clear_area): Takes frame as parameter, calls x_clear_area1 for
+ non-cairo.
+ (x_clear_frame): x_clear_window instead of XClearWindow.
+ (x_scroll_run): Set frame garbaged if cairo.
+ (XTmouse_position): Initialize *part to 0.
+ (x_scroll_bar_create): Adjust arguments to x_clear_area.
+ (x_scroll_bar_set_handle): x_clear_area1 instead of x_clear_area,
+ x_fill_rectangle instead of XFillRectangle.
+ (XTset_vertical_scroll_bar, XTset_horizontal_scroll_bar): Adjust
+ arguments to x_clear_area.
+ (x_scroll_bar_expose): x_draw_rectangle instead of XDrawRectangle.
+ (handle_one_xevent): Adjust arguments to x_clear_area.
+ Destroy cairo surface for frame if ConfigureNotify.
+ (x_clip_to_row): x_set_clip_rectangles instead of XSetClipRectangles.
+ (x_draw_hollow_cursor): x_draw_rectangle instead of XDrawRectangle,
+ x_reset_clip_rectangles instead of XSetClipMask.
+ (x_draw_bar_cursor): x_fill_rectangle instead of XFillRectangle,
+ x_reset_clip_rectangles instead of XSetClipMask.
+ (x_clear_frame_area): Adjust arguments to x_clear_area.
+ (x_free_frame_resources): Call x_prepare_for_xlibdraw.
+ (x_term_init): Call x_extension_initialize if cairo.
+ (x_redisplay_interface): Add x_cr_define_fringe_bitmap,
+ x_cr_destroy_fringe_bitmap for cairo.
+ (x_initialize): Call x_cr_init_fringe for cairo.
+
+ * xfns.c: New section Printing.
+ (x-export-frames, x-page-setup-dialog, x-get-page-setup)
+ (x-print-frames-dialog): New printing functions.
+ (Fx_create_frame, x_create_tip_frame): Register ftcrfont if
+ cairo.
+ (syms_of_xfns): Defsym Qorientation, Qtop_margin, Qbottom_margin,
+ Qportrait, Qlandscape, Qreverse_portrait, Qreverse_landscape).
+ (syms_of_xfns): Provide cairo and defvar cairo-version-string.
+ defsubr Sx_page_setup_dialog, Sx_get_page_setup, Sx_print_frames_dialog.
+
+ * image.c: Add defined (USE_CAIRO) for PNG.
+ Add !defined USE_CAIRO for W32 PNG code.
+ (x_clear_image): If cairo, destroy the surface in cr_data.
+ (png_load): Add new cairo compatible implementation.
+ (lookup_image_type): Add defined (USE_CAIRO) for define png_type.
+
+ * gtkutil.h (xg_page_setup_dialog, xg_get_page_setup)
+ (xg_print_frames_dialog): Declare.
+
+ * gtkutil.c (xg_clear_under_internal_border)
+ (xg_update_scrollbar_pos, xg_update_horizontal_scrollbar_pos): Only
+ queue_draw if not cairo. Change args to x_clear_area.
+ (xg_get_font): Use Qftcr when using cairo, Qxft otherwise.
+ (xg_page_setup_dialog, xg_get_page_setup, draw_page)
+ (xg_print_frames_dialog): New functions for printing.
+
+ * ftfont.h (ftfont_open2, ftfont_info_size): Declare.
+
+ * ftfont.c (ftfont_info_size); New global variable.
+ (ftfont_open2): New extern function almost the same as old ftfont_open,
+ but takes the font_object as argument.
+ (ftfont_open): Build font object and call ftfont_open2.
+
+ * ftcrfont.c: New font driver for cairo, based on the ftfont driver.
+
+ * fringe.c (x_cr_init_fringe): New function name that shares code
+ with w32_init_fringe.
+
+ * font.h (ftcrfont_driver, syms_of_ftcrfont): Declare
+
+ * font.c (syms_of_font): Call syms_of_ftcrfont for cairo.
+
+ * dispextern.h (struct image): Add cr_data for cairo.
+ (x_cr_init_fringe): Declare.
+
+ * Makefile.in (CAIRO_CFLAGS, CAIRO_LIBS): New variables.
+ (FONT_OBJ): Add comment about ftcrfont.
+ (ALL_CFLAGS): Add CAIRO_CFLAGS.
+ (LIBES): Add CAIRO_LIBS.
+
2015-02-11 Martin Rudalics <rudalics@gmx.at>
* w32term.c (w32_read_socket): In SIZE_MAXIMIZED and
* indent.c (Fvertical_motion): Accept an additional argument
CUR-COL and use it as the starting screen coordinate.
- * window.c (window_scroll_line_based, Fmove_to_window_line): All
- callers of vertical-motion changed.
+ * window.c (window_scroll_line_based, Fmove_to_window_line):
+ All callers of vertical-motion changed.
2015-02-09 Dima Kogan <dima@secretsauce.net>
2015-01-06 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (x_set_window_size): Call updateFrameSize to get real
- size instead of using widht/height. The frame may be constrained.
+ size instead of using widht/height. The frame may be
+ constrained (Bug#19482).
2015-01-05 Paul Eggert <eggert@cs.ucla.edu>