aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-04-26Add PBM support for cairo.Jan D1-0/+8
* src/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-12x_free_cr_resources: Renamed from x_prepare_for_xlibdraw.Jan D1-0/+4
* src/xterm.c (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.
2015-04-12Handle specified bg in images. Use generic libpng code for PNG:s.Jan D1-0/+15
* src/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. * src/xterm.c (x_draw_image_glyph_string): Added missing USE_CAIRO.
2015-04-11Support GIF and Tiff with cairo.Jan D1-0/+2
* configure.ac: Allow jpeg with cairo. Allow tiff and gif with cairo. * src/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-11Support JPEG with USE_CAIRO.Jan D1-0/+4
* configure.ac: Allow jpeg with cairo. * src/image.c (jpeg_load_body): Create cairo image surface if USE_CAIRO.
2015-04-07Rename ChangeLogs for gitlog-to-changelogPaul Eggert1-17924/+0
This patch was implemented via the following shell commands: find * -name ChangeLog | sed 's,.*,git mv & &.1, s, lisp/ChangeLog\.1$, lisp/ChangeLog.17, s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09, s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3, s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2, s, src/ChangeLog\.1$, src/ChangeLog.13,' | sh git commit -am"[this commit message]"
2015-04-06Avoid segfaults on MS-Windows when invoking subprocesses (Bug#20264)Koichi Arakawa1-0/+6
src/w32proc.c (w32_executable_type): Look for the DLL name in the correct section. This avoids segfaults with some executables.
2015-04-05Support RSVG and cairo.Jan D1-0/+9
* configure.ac: Allow rsvg with cairo. Move back HAVE_RSVG. * src/dispextern.h (struct image): add cr_data2 if cairo. * src/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.
2015-04-05Update the 24.5 release date in all ChangeLog filesNicolas Petton1-4/+4
2015-04-04Close a timing hole in selections.Jan D1-0/+9
Fixes: debbugs:16737 * src/xselect.c (x_reply_selection_request) (receive_incremental_selection): Call set_property_change_object inside block_input. (wait_for_property_change): Move set property_change_reply(_object) outside of this function. (set_property_change_object): New function.
2015-04-03Introduce limited Xpm support (32 bit ZPixmap) for Cairo.Jan D1-0/+7
* configure.ac (HAVE_RSVG): Move after cairo. (USE_CAIRO): Disable rsvg, don't disable Xpm. * src/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.
2015-04-03Tool tips for menus did not show any text.Jan D1-0/+2
* src/xterm.c (x_update_begin): Don't create any surface for non-visible tip frames, the geometry may be wrong.
2015-04-03Don't optimized away tool tip redraw, may lead to corrupted text.Jan D1-0/+5
* src/xterm.c (handle_one_xevent): Always redraw tool tips on MapNotify. Update tool tip frame sizes on ConfigureNotify.
2015-03-31Avoid crashing with key-chord (Bug#20223)Eli Zaretskii1-0/+5
src/keyboard.c (read_key_sequence): Don't let this_single_command_key_start become negative.
2015-03-29Fixes: debbugs:19175Jan D1-0/+6
* gtkutil.c (xg_display_open): * xterm.c (x_display_ok, x_term_init): Block SIGIO when opening a display.
2015-03-28Don't send bad SM messages.Jan D1-0/+5
* xsmfns.c (smc_save_yourself_CB): Return if Vinvocation_name or user_login_name are not strings.
2015-03-28Fix blocking connections on MS-Windows (Bug#20159)Eli Zaretskii1-0/+5
src/w32.c (sys_connect): Fix a mistake in previous commit that broke blocking connections.
2015-03-27Avoid some core dumps in X session managementPaul Eggert1-0/+14
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.
2015-03-27Port user-login-name initialization to Qnil == 0Paul Eggert1-0/+5
* 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.
2015-03-27Assume !BROKEN_NON_BLOCKING_CONNECTPaul Eggert1-0/+9
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-27Fix crashes when restoring sub-char-tables from desktop fileEli Zaretskii1-0/+6
src/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.
2015-03-27Fix the bug number of previous commit: should be bug #20159.Eli Zaretskii1-1/+1
2015-03-27Support non-blocking connect on MS-Windows (Bug#20207)Eli Zaretskii1-0/+35
Based on ideas from Kim F. Storm <storm@cua.dk>, see http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg00873.html. src/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. src/w32.h (STATUS_CONNECT_FAILED): New enumeration value. (struct _child_process): New member 'errcode'. (FILE_CONNECT): New flag. (_sys_wait_connect): Add prototype. src/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. nt/inc/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Don't define.
2015-03-27Bump version to 24.5 for the release-candidateemacs-24.5-rc1Nicolas Petton1-0/+4
2015-03-25`save-excursion' does not save&restore the mark any moreStefan Monnier1-0/+6
* src/editfns.c (save_excursion_save): Don't save the mark. (save_excursion_restore): Don't restore the mark. (Fsave_excursion): Fix docstring accordingly. * doc/lispintro/emacs-lisp-intro.texi: * doc/lispref/positions.texi (Excursions, Narrowing): `save-excursion' does not save&restore the mark any more.
2015-03-25Don't round up scroll bar width with GTK3 (Bug#20182).Martin Rudalics1-0/+5
* gtkutil.c (update_theme_scrollbar_width): Don't round up scroll bar width with GTK3 (Bug#20182).
2015-03-24Fix minor ldexp issuesPaul Eggert1-0/+7
* doc/lispref/numbers.texi (Float Basics): Improve ldexp documentation. * src/floatfns.c (Fldexp): Require 2 args. Avoid undefined behavior if the exponent is out of 'int' range. Improve documentation. Fixes: bug#20185
2015-03-24Make process-running-child-p return foreground process group IDDaniel Colascione1-0/+5
* etc/NEWS: Mention change to `process-running-child-p`. * src/process.c (Fprocess_running_child_p): Return number identifier of the foreground process group if we know it.
2015-03-23Minor refactoring of new Fmake_process codePaul Eggert1-0/+6
* 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-23Generalize start-process with keyword argsDaiki Ueno1-0/+8
* src/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. * lisp/subr.el (start-process): New function, ported from the C implementation. * doc/lispref/processes.texi (Asynchronous Processes): Mention `make-process'. * etc/NEWS: Mention `make-process'.
2015-03-22ChangeLog fixGlenn Morris1-2/+2
No need to merge to trunk, since it corrects a backported entry that should not appear in trunk.
2015-03-22Backport 20156 fix (stack corruption)Jan D1-0/+5
Fixes: debbugs:20156 * src/fontset.c (fontset_pattern_regexp): Backport: Replace + 1 with + 3 in alloca (tiny change)
2015-03-22Fixes: debbugs:20156Jan D1-0/+5
* src/fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for regexsize.
2015-03-21Fix problems with setting system-time-locale on MS-WindowsEli Zaretskii1-0/+6
src/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-18Add classes as run-time descriptors of cl-structs.Stefan Monnier1-8/+10
* lisp/emacs-lisp/cl-preloaded.el (cl--struct-get-class): New function. (cl--make-slot-desc): New constructor. (cl--plist-remove, cl--struct-register-child): New functions. (cl-struct-define): Rewrite. (cl-structure-class, cl-structure-object, cl-slot-descriptor) (cl--class): New structs. (cl--struct-default-parent): Initialize it here. * lisp/emacs-lisp/cl-macs.el (cl--find-class): New macro. (cl-defsubst, cl--defsubst-expand, cl--sublis): Move before first use. (cl--struct-default-parent): New var. (cl-defstruct): Adjust to new representation of classes; add default parent. In accessors, signal `wrong-type-argument' rather than a generic error. (cl-struct-sequence-type, cl-struct-slot-info) (cl-struct-slot-offset): Rewrite. * lisp/emacs-lisp/cl-generic.el (cl--generic-struct-specializers) (cl-generic-generalizers): Rewrite. * src/alloc.c (purecopy): Handle hash-tables. * lisp/emacs-lisp/debug.el (debug--implement-debug-on-entry): Bind inhibit-debug-on-entry here... (debug): Instead of here. * lisp/emacs-lisp/macroexp.el (macroexp--debug-eager): New var. (internal-macroexpand-for-load): Use it. * lwlib/xlwmenu.c (pop_up_menu): Remove debugging code.
2015-03-16Add `predicate' arg to `read-buffer' and use it for erc-iswitchbStefan Monnier1-0/+5
Fixes: debbugs:20116 * src/minibuf.c (Fread_buffer): Add `predicate' argument. * src/callint.c (Fcall_interactively): Adjust calls accordingly. * lisp/erc/erc.el (erc-switch-to-buffer): Rename from erc-iswitchb and rewrite using read-buffer. (erc--buffer-p): New function, extracted from erc-buffer-filter. (erc-buffer-filter): Use it. (erc-with-all-buffers-of-server): Silence compile warning if the return value is unused. (erc-is-valid-nick-p, erc-common-server-suffixes, erc-get-arglist) (erc-command-name, erc-popup-input-buffer): Use \` and \' to match beg/end of string. * lisp/obsolete/iswitchb.el (iswitchb-read-buffer): Add `predicate' arg. * lisp/isearchb.el (isearchb-iswitchb): Adjust accordingly. * lisp/ido.el (ido-read-buffer): Add `predicate' argument. * lisp/misearch.el (unload-function-defs-list): Declare before use.
2015-03-15Fix subtle problems with linum-mode and invisible textEli Zaretskii1-0/+11
src/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-14Add --no-x-resources optionDaniel Colascione1-0/+5
* lisp/startup.el (command-line): Process "--no-x-resources". * src/emacs.c (standard_args): Add --no-x-resources. (usage_message): Document that -Q implies --no-x-resources.
2015-03-14Mention Bug 19482 on 2015-01-06 change.Jan D1-1/+2
2015-03-13* frame.c (x_get_resource_string) [!USE_GTK]: Don't define.Paul Eggert1-0/+2
2015-03-13* editfns.c, systime.h (mktime_z) [!HAVE_TZALLOC]: Now static.Paul Eggert1-0/+4
2015-03-12Fix support of scripts in w32font.c (Bug#19993)Eli Zaretskii1-0/+12
src/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. (syms_of_w32font): DEFSYM all the new script symbols. lisp/international/fontset.el (script-representative-chars): Add a representative character for 'vai'.
2015-03-12Fix --no-bitmap-iconGlenn Morris1-0/+5
* src/frame.h (x_set_bitmap_icon): Don't set the icon if icon-type is nil/not present in the parameter alist. Fixes: debbugs:19680
2015-03-07Partially revert the fix for bug #11732Eli Zaretskii1-0/+9
src/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.
2015-03-05Work around x86 glibc backtrace bugPaul Eggert1-0/+6
* sysdep.c (emacs_backtrace): Don't dump core on x86. Fixes: bug#19959
2015-03-05Fix region extension when scroll bar is on the rightEli Zaretskii1-0/+9
src/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-04src/ChangeLog: Fix bad formatting.Eli Zaretskii1-0/+1
2015-03-04Handle tool bar size changes after x_set_font.Martin Rudalics1-1/+6
* frame.c (x_set_font): Try to keep frame height and width unchanged if tool bar size changes with new font.
2015-03-03Rename gc-precise-p to gc-preciseDaniel Colascione1-0/+4
2015-03-03 Daniel Colascione <dancol@dancol.org> * alloc.c (syms_of_alloc): Rename `gc-precise-p' to `gc-precise'. 2015-03-03 Daniel Colascione <dancol@dancol.org> * automated/finalizer-tests.el (finalizer-basic) (finalizer-circular-reference, finalizer-cross-reference) (finalizer-error): Rename `gc-precise-p' to `gc-precise'. * automated/generator-tests.el (cps-test-iter-close-finalizer): Rename `gc-precise-p' to `gc-precise'.
2015-03-03* alloc.c (run_finalizers): Omit unused local.Paul Eggert1-0/+5
Also, redo newly-added code as per usual Emacs style.