- 26 Aug, 2013 4 commits
-
-
Martin Rudalics authored
* frame.c (check_minibuf_window): New function. (delete_frame, Fmake_frame_invisible, Ficonify_frame): Call check_minibuf_window (Bug#15183).
-
Dmitry Antipov authored
because this is the only last cursor data we need to keep and consult. * window.c (replace_window, set_window_buffer, Fsplit_window_internal): * xdisp.c (mark_window_display_accurate_1, try_cursor_movement): Adjust users.
-
Dmitry Antipov authored
insert_from_gap doesn't always move point, we can't use PT as the position where the partially decompressed data ends, and should count how may bytes was produced so far. * decompress.c (struct decompress_unwind_data): Add nbytes member. (unwind_decompress): Really delete partially uncompressed data. (Fzlib_decompress_region): Take decompressed data size into account.
-
Dmitry Antipov authored
initialization of Qchar_table_extra_slots just once... * casetab.c (init_casetab_once): * category.c (init_category_once): * character.c (syms_of_character): * coding.c (syms_of_coding): * xdisp.c (syms_of_xdisp): ...and omit it here.
-
- 24 Aug, 2013 4 commits
-
-
Eli Zaretskii authored
src/xdisp.c (get_next_display_element): Don't apply to characters from a display vector the logic of setting it->end_of_box_run_p suitable for characters from a buffer.
-
Eli Zaretskii authored
src/w32.c (fdutimens): Call 'utime', which is implemented on w32.c to handle directories, rather than '_utime' which doesn't.
-
Jan Djärv authored
or fullscreen. Fixes: debbugs:14627
-
Paul Eggert authored
* process.c (Fset_process_window_size): Signal an error if the window size is outside the range supported by the lower level. * sysdep.c (set_window_size): Return negative on error, nonnegative on success, rather than -1, 0, 1 on not in system, failure, success. This is simpler. Caller changed. (serial_configure): Remove unnecessary initialization of local. (procfs_get_total_memory) [GNU_LINUX]: Don't assume system memory size fits in unsigned long; this isn't true on some 32-bit hosts. Avoid buffer overrun if some future version of /proc/meminfo has a variable name longer than 20 bytes. (system_process_attributes) [__FreeBSD__]: Don't assume hw.availpages fits in 'int'.
-
- 23 Aug, 2013 4 commits
-
-
Paul Eggert authored
Fix some related minor problems involving "//", vfork. * callproc.c (encode_current_directory): New function. (call_process): Don't append "/"; not needed. * fileio.c (file_name_as_directory_slop): New constant. (file_name_as_directory): Allow SRC to be longer than SRCLEN; this can save the caller having to alloca. (Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name): Use SAFE_ALLOCA, not alloca. (directory_file_name, Fexpand_file_name): Leave leading "//" alone, since it can be special even on POSIX platforms. * callproc.c (call_process): * process.c (Fformat_network_address): * sysdep.c (sys_subshell): Use encode_current_directory rather than rolling our own. (create_process): No need to encode directory; caller does that now. * process.h (encode_current_directory): New decl. * sysdep.c (sys_subshell): Work even if vfork trashes saved_handlers. Rework to avoid 'goto xyzzy;'.
-
Eli Zaretskii authored
src/xdisp.c (handle_face_prop): If the default face was remapped use the remapped face for strings from prefix properties.
-
Dmitry Antipov authored
* 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.
-
Dmitry Antipov authored
* 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.
-
- 22 Aug, 2013 1 commit
-
-
Paul Eggert authored
All uses removed.
-
- 21 Aug, 2013 3 commits
-
-
Paul Eggert authored
(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
-
Dmitry Antipov authored
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.
-
Paul Eggert authored
We can't portably rely on PTY_OPEN doing that, even if it calls posix_openpt with O_CLOEXEC.
-
- 20 Aug, 2013 2 commits
-
-
Kenichi Handa authored
-
Paul Eggert authored
(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.
-
- 19 Aug, 2013 6 commits
-
-
Paul Eggert authored
(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.
-
Lars Magne Ingebrigtsen authored
-
Lars Magne Ingebrigtsen authored
Bug introduced by 2013-08-19T07:01:37Z!eggert@cs.ucla.edu, which obviously hadn't even been tested once.
-
Paul Eggert authored
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.
-
Paul Eggert authored
This was introduced by my 2013-08-12 fix for Bug#15035. Fixes: debbugs:15106
-
Dmitry Antipov authored
(imagemagick_prune_animation_cache): Now static.
-
- 18 Aug, 2013 2 commits
-
-
Lars Magne Ingebrigtsen authored
pruning all entries.
-
Ken Brown authored
* 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.
-
- 17 Aug, 2013 1 commit
-
-
Eli Zaretskii authored
src/decompress.c (Fzlib_available_p) [WINDOWSNT]: Update the value of zlib_initialized according to the results of calling init_zlib_functions.
-
- 16 Aug, 2013 6 commits
-
-
Xue Fuqiao authored
-
Lars Magne Ingebrigtsen authored
The apparently only saved time on invalid animated images, and slowed down everything else. Optimise for the common case.
-
Lars Magne Ingebrigtsen authored
-
Lars Magne Ingebrigtsen authored
-
Xue Fuqiao authored
-
Xue Fuqiao authored
* 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.
-
- 15 Aug, 2013 7 commits
-
-
Lars Magne Ingebrigtsen authored
(imagemagick_compute_animated_image): Allow images that say they have sub-images that are bigger than the main image, but just crop them.
-
Lars Magne Ingebrigtsen authored
(imagemagick_compute_animated_image): Setting the iterator row to zero is apparently not allowed.
-
Lars Magne Ingebrigtsen authored
* image.c (imagemagick_compute_animated_image): Animate correctly when sub-images are smaller than the main image.
-
Jan Djärv authored
Fixes: debbugs:15001
-
Lars Magne Ingebrigtsen authored
-
Ken Brown authored
-
Paul Eggert authored
* 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.
-