aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix bug #15155 with ignoring face remapping for strings from prefix properties.Eli Zaretskii2013-08-231-0/+5
| | | | | | | | | | src/xdisp.c (handle_face_prop): If the default face was remapped use the remapped face for strings from prefix properties.
* | Minor cleanup for redisplay interface and few related functions.Dmitry Antipov2013-08-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * frame.h (enum text_cursor_kinds): Move from here... * dispextern.h (enum text_cursor_kinds): ...to here. (toplevel): Drop unnecessary declarations. (struct redisplay_interface): Use bool and enum text_cursor_kinds in update_window_end_hook and draw_window_cursor functions. (display_and_set_cursor, x_update_cursor): Adjust prototypes. * nsterm.m (ns_update_window_end, ns_draw_window_cursor): * w32term.c (x_update_window_end,w32_draw_window_cursor): * xterm.c (x_update_window_end, x_draw_window_cursor): * xdisp.c (display_and_set_cursor, update_window_cursor) (update_cursor_in_window_tree, x_update_cursor): Use bool and enum text_cursor_kinds where appropriate.
* | Redesign redisplay interface to drop updated_row and updated_area.Dmitry Antipov2013-08-231-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * dispextern.h (updated_row, updated_area): Remove declaration. (struct redisplay_interface): Pass glyph row and row area parameters to write_glyphs, insert_glyphs and clear_end_of_line functions. (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line): Adjust prototypes. * dispnew.c (updated_row, updated_area): Remove. (redraw_overlapped_rows, update_window_line): Adjust user. (update_marginal_area, update_text_area): Likewise. Pass updated row as a parameter. Prefer enum glyph_row_area to int where appropriate. * xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line): Adjust users.
* | * process.c (flush_pending_output): Remove stub.Paul Eggert2013-08-221-0/+5
| | | | | | | | All uses removed.
* | * callproc.c: Fix race that killed background processes.Paul Eggert2013-08-211-0/+8
| | | | | | | | | | | | | | | | | | (call_process): New arg TEMPFILE_INDEX. Callers changed. Record deleted process-id in critical section, not afterwards. Don't mistakenly kill process created by a call-process invocation that discards output and does not wait. Fixes: debbugs:15144
* | Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFOREDmitry Antipov2013-08-211-0/+9
| | | | | | | | | | | | | | | | and GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES. * alloc.c (toplevel): Remove unnecessary nested #if...#endif. (mark_maybe_object) [!GC_MARK_STACK]: Define to emacs_abort to shut up compiler in mark_object. (dump_zombies): Convert to global and add EXTERNALLY_VISIBLE.
* | * process.c (allocate_pty) [PTY_OPEN]: Set fd's FD_CLOEXEC flag.Paul Eggert2013-08-201-0/+6
| | | | | | | | | | We can't portably rely on PTY_OPEN doing that, even if it calls posix_openpt with O_CLOEXEC.
* | src/character.c (string_char): Improve commentary.Kenichi Handa2013-08-201-0/+4
| |
* | * image.c (SIGNATURE_DIGESTSIZE): Remove.Paul Eggert2013-08-191-0/+7
| | | | | | | | | | | | (struct animation_cache): Make signature a flexible array member. All uses changed. This is a tad slower but may insulate us better from future changes to ImageMagick.
* | * image.c: Shrink memory needed for animation cache.Paul Eggert2013-08-191-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (SIGNATURE_DIGESTSIZE): New constant. (struct animation_cache): Make 'signature' a fixed size array of bytes. (imagemagick_create_cache): Copy the signature. This saves several KB of memory that ImageMagick wastes per signature. Don't bother updating the update_time, as the caller does that now. (imagemagick_prune_animation_cache): Don't destroy the signature, as it's a fixed size struct member now. (imagemagick_get_animation_cache): Always destroy the signature, as it's now imagemagick_create_cache's responsibility to copy it. Avoid duplicate calls to strcmp and to imagemagick_create_cache, and use memcmp rather than strcmp. eassert that ImageMagick returns a signature of the specified length.
* | (imagemagick_get_animation_cache): Fix memory leak.Lars Magne Ingebrigtsen2013-08-191-0/+3
| |
* | * image.c (imagemagick_get_animation_cache): Don't segfault on each invocation.Lars Magne Ingebrigtsen2013-08-191-0/+5
| | | | | | | | | | Bug introduced by 2013-08-19T07:01:37Z!eggert@cs.ucla.edu, which obviously hadn't even been tested once.
* | * image.c: Fix animation cache signature memory leak.Paul Eggert2013-08-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Fix some other minor performance problems while we're at it. (imagemagick_create_cache): Clear just the members that need clearing. Don't set update_time, as caller does that now. (imagemagick_prune_animation_cache, imagemagick_get_animation_cache): Simplify by using pointer-to-pointer instead of a prev pointer. (imagemagick_prune_animation_cache): Use make_emacs_time rather than EMACS_TIME_FROM_DOUBLE, and DestroyString rather than free. (imagemagick_get_animation_cache): Don't xstrdup the image signature; it's already a copy. Free the signature probe unless it's cached.
* | * process.c (handle_child_signal): Fix crash; deleted pid.Paul Eggert2013-08-181-0/+5
| | | | | | | | | | | | This was introduced by my 2013-08-12 fix for Bug#15035. Fixes: debbugs:15106
* | * image.c (imagemagick_create_cache, imagemagick_get_animation_cache)Dmitry Antipov2013-08-191-0/+5
| | | | | | | | (imagemagick_prune_animation_cache): Now static.
* | * image.c (imagemagick_get_animation_cache): Don't segfault whenLars Magne Ingebrigtsen2013-08-181-0/+5
| | | | | | | | pruning all entries.
* | Change size of static heap on Cygwin; report maximum usage after dumping.Ken Brown2013-08-181-0/+9
| | | | | | | | | | | | | | | | | | * src/sheap.c (STATIC_HEAP_SIZE): Adjust to current needs; use bigger static heap if ENABLE_CHECKING is defined. (max_bss_sbrk_ptr): New variable. (bss_sbrk): Use it. (report_sheap_usage): Report maximum static heap usage instead of ending static heap usage.
* | Fix a minor issue with loading zlib DLL on MS-Windows.Eli Zaretskii2013-08-171-0/+6
| | | | | | | | | | | | src/decompress.c (Fzlib_available_p) [WINDOWSNT]: Update the value of zlib_initialized according to the results of calling init_zlib_functions.
* | Another doc fix for `buffer-undo-list'.Xue Fuqiao2013-08-171-0/+2
| |
* | (imagemagick_load_image): Remove the ping_wand codeLars Magne Ingebrigtsen2013-08-161-0/+3
| | | | | | | | | | The apparently only saved time on invalid animated images, and slowed down everything else. Optimise for the common case.
* | (imagemagick_get_animation_cache): Fix a double-free error.Lars Magne Ingebrigtsen2013-08-161-0/+1
| |
* | * image.c: Implement an ImageMagick per-image cache.Lars Magne Ingebrigtsen2013-08-161-0/+4
| |
* | * src/editfns.c (insert_before_markers): Mention overlay in the doc string.Xue Fuqiao2013-08-161-0/+2
| |
* | Remove documentation of undefined behavior.Xue Fuqiao2013-08-161-0/+4
| | | | | | | | | | | | | | | | * doc/lispref/positions.texi (Character Motion): * doc/lispref/markers.texi (Moving Markers): (Creating Markers): Comment out undefined behavior. * src/marker.c (set_marker): Remove documentation of undefined behavior.
* | (imagemagick_compute_animated_image): Allow certain degenerate imagesLars Magne Ingebrigtsen2013-08-151-0/+3
| | | | | | | | | | | | (imagemagick_compute_animated_image): Allow images that say they have sub-images that are bigger than the main image, but just crop them.
* | (imagemagick_compute_animated_image): Fix animated segafaultLars Magne Ingebrigtsen2013-08-151-0/+2
| | | | | | | | | | (imagemagick_compute_animated_image): Setting the iterator row to zero is apparently not allowed.
* | image.c animation touchupsLars Magne Ingebrigtsen2013-08-151-0/+5
| | | | | | | | | | * image.c (imagemagick_compute_animated_image): Animate correctly when sub-images are smaller than the main image.
* | * nsmenu.m (menuWillOpen:): Fix preprocessor test.Jan Djärv2013-08-151-0/+4
| | | | | | | | Fixes: debbugs:15001
* | (imagemagick_compute_animated_image): Respect the GIF disposal methods.Lars Magne Ingebrigtsen2013-08-151-0/+5
| |
* | Revert last change to gmalloc.c; update some comments.Ken Brown2013-08-151-0/+6
| |
* | Fix minor problems found by static checking.Paul Eggert2013-08-151-0/+11
| | | | | | | | | | | | | | | | | | | | * frame.c (delete_frame): * xdisp.c (next_element_from_display_vector): Avoid uninitialized local. * image.c (imagemagick_compute_animated_image): Port to C89. Prefer usual GNU indentation style for loops. Be more careful about bizarrely large sizes, by using ptrdiff_t instead of int.
* | (imagemagick_compute_animated_image): Implement a simple cacheLars Magne Ingebrigtsen2013-08-151-0/+3
| | | | | | | | | | | | (imagemagick_compute_animated_image): Fix some compilation warnings. Implement a very simple cache to make the animation usable at all, but it should be replaced with a per-image cache.
* | Fix infinite frame selection loop (Bug#15025).Dmitry Antipov2013-08-151-0/+5
| | | | | | | | * frame.c (delete_frame): Prefer fast ad-hoc loop to next_frame.
* | Fix bug #15099 with 'box' face attribute in display tables.Eli Zaretskii2013-08-151-0/+2
| | | | | | | | | | src/xdisp.c (next_element_from_display_vector): Support 'box' face attribute in the face definitions of a display vector.
* | Fix bug #15090 with redisplay under linum-mode and visual-line-mode.Eli Zaretskii2013-08-151-0/+9
| | | | | | | | | | | | | | | | | | src/xdisp.c (compute_window_start_on_continuation_line): When WORD_WRAP is in effect, use move_it_to instead of move_it_by_lines to make sure we end up setting the window start at the leftmost visible character of the display line. This avoids funky horizontal shifting because the window start is not kept on the same position.
* | * image.c (imagemagick_compute_animated_image): Implement animated images.Lars Magne Ingebrigtsen2013-08-151-0/+5
| | | | | | | | Fixes: debbugs:14700
* | * lisp.h (FOR_EACH_ALIST_VALUE): New macroDmitry Antipov2013-08-151-0/+9
| | | | | | | | | | | | | | | | to do `for' loops over alist values. * buffer.h (FOR_EACH_BUFFER): * process.c (FOR_EACH_PROCESS): Use it. (handle_child_signal, status_notify, Fget_buffer_process) (kill_buffer_processes): Use FOR_EACH_PROCESS.
* | * term.c (get_named_tty, create_tty_output, tty_free_frame_resources)Dmitry Antipov2013-08-151-0/+9
| | | | | | | | | | | | | | | | (tty_free_frame_resources, delete_tty): Prefer eassert to emacs_abort. * image.c (make_image_cache): For struct image_cache, prefer xmalloc to xzalloc and so avoid redundant call to memset. * xterm.c (x_term_init): Avoid unnecessary initializations of dpyinfo members because it is allocated with xzalloc and so already zeroed.
* | * src/gmalloc.c [CYGWIN]: Rename memalign (Bug#15094).Ken Brown2013-08-141-0/+5
| |
* | Utility function and macro to copy Lisp string to C string.Dmitry Antipov2013-08-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp.h (xlispstrdupa): New macro. (xlispstrdup): New prototype. * alloc.c (xlispstrdup): New function. * callint.c (Fcall_interactively): * fileio.c (Ffile_name_directory, Fexpand_file_name) (Fsubstitute_in_file_name): * frame.c (Fmake_terminal_frame): Use xlispstrdupa. * image.c (x_create_bitmap_from_file): * w32term.c (w32_term_init): * xterm.c (x_term_init): Use xlispstrdup.
* | * src/marker.c (set_marker): Reformat documentation.Xue Fuqiao2013-08-141-0/+4
| |
* | * image.c (imagemagick_load_image): Make animated pictures work.Lars Magne Ingebrigtsen2013-08-141-0/+4
| | | | | | | | | | | | There's still some problems with background color settings, though. Fixes: debbugs:14700
* | * decompress.c (unwind_decompress): Always restore point.Lars Magne Ingebrigtsen2013-08-141-0/+4
| |
* | * xdisp.c (redisplay_window): If window_end_valid is cleared due toDmitry Antipov2013-08-141-0/+3
| | | | | | | | | | non-zero windows_or_buffers_changed, clear current_matrix_up_to_date_p and so do not call to try_cursor_movement for that window.
* | * xdisp.c (cursor_type_changed): Now static.Paul Eggert2013-08-141-0/+2
| |
* | * image.c (imagemagick_filename_hint): New arg HINT_BUFFER.Paul Eggert2013-08-141-0/+6
| | | | | | | | | | Use changed. This avoids the need to call xmalloc and for the caller to call xfree, and avoids memory leaks in some situations.
* | * xdisp.c (adjust_window_ends): Move duplicated code to new function.Dmitry Antipov2013-08-141-0/+5
| | | | | | | | (try_window, try_window_reusing_current_matrix, try_window_id): Use it.
* | * window.h (struct window): Convert window_end_pos andDmitry Antipov2013-08-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | window_end_vpos from Lisp_Object to ptrdiff_t and int, respectively. (wset_window_end_pos, wset_window_end_vpos): Remove. * dispnew.c (adjust_glyph_matrix): * window.c (Fwindow_end, replace_window, set_window_buffer) (make_window): * xdisp.c (check_window_end, move_it_to, redisplay_internal) (set_vertical_scroll_bar, redisplay_window, try_window) (try_window_reusing_current_matrix, find_first_unchanged_at_end_row) (try_window_id, decode_mode_spec, mouse_face_from_buffer_pos) (note_mouse_highlight): Adjust users. (try_cursor_movement): Likewise. Convert old precondition to eassert. Add comment.
* | Fix --enable-gcc-warnings errors introduced in 2013-08-13 commit.Dmitry Antipov2013-08-141-0/+6
| | | | | | | | | | * image.c (imagemagick_filename_hint): Use `const char *' and prefer SSDATA to SDATA to avoid warnings.
* | Cleanup window fringes, margins and scroll bars adjustments.Dmitry Antipov2013-08-141-0/+8
| | | | | | | | | | | | | | * window.c (set_window_fringes, set_window_margins) (set_window_scroll_bars, apply_window_adjustment): New functions. (set_window_buffer, Fset_window_margins, Fset_window_fringes) (Fset_window_scroll_bars): Use them.