summaryrefslogtreecommitdiff
path: root/src
Commit message (Expand)AuthorAgeFilesLines
* Fix --enable-gcc-warnings problem with older GCC...* src/puresize.h: Add INLINE_HEADER_BEGIN, INLINE_HEADER_END. This is for building with --enable-gcc-warnings with GCC 4.6 through 5.0. Paul Eggert2015-10-102-0/+9
* Fix vertical-motion in truncated lines that end in a stretch...* src/indent.c (Fvertical_motion): Expect overshoot when point is beyond window margin and lines are truncated, even if we have a stretch at point. (Bug#21468) Eli Zaretskii2015-10-101-1/+5
* Avoid link-time errors due to inline functions...* src/emacs.c: Include puresize.h, to avoid link-time errors in unoptimized builds due to PURE_P and CHECK_IMPURE, which are now inline functions. Eli Zaretskii2015-10-101-0/+1
* * src/data.c (Faset): Fix last change.Andreas Schwab2015-10-101-1/+1
* CHECK_IMPURE and PURE_P speedup...* src/intervals.c (create_root_interval): Do CHECK_IMPURE only for strings; not needed for buffers. Prefer ! STRINGP to BUFFERP, for a tad more speed. * src/puresize.h (CHECK_IMPURE, PURE_P): Now inline functions instead of macros. (PURE_P): Don’t use XPNTR; that is now the caller’s responsibility. All callers changed. (CHECK_IMPURE): New argument PTR, to save us the work of running XPNTR. All callers changed. Paul Eggert2015-10-104-22/+26
* In adjust_frame_size don't count minibuffer height twice (Bug#21643)...* src/frame.c (adjust_frame_size): In minibuffer-only windows don't count minibuffer height twice. (Bug#21643) Martin Rudalics2015-10-091-1/+1
* Use g_clear_error instead of g_error_free...* src/image.c: Define g_clear_error instead of g_error_free. (init_svg_functions): Resolve symbol g_clear_error instead of g_error_free. (svg_load_image): Use g_clear_error instead of g_error_free, to suppress GLib warnings when ERR is not set. See bug#21641. Daiki Ueno2015-10-091-5/+5
* * src/image.c (image_size_error): Simplify.Paul Eggert2015-10-081-2/+1
* Fix problems caught with --enable-gcc-warnings...* src/image.c (lookup_rgb_color): * src/xfns.c (x_defined_color): * src/xterm.c (x_parse_color): Remove unused locals. Paul Eggert2015-10-083-4/+0
* Disable non-working pointerColor setting for X tooltip frame....It generates a bunch of server traffic, but there's some bug wherein the new mouse cursor settings don't seem to get used. In most situations the cursor isn't likely to be seen anyway, so it's not urgent to fix. * src/xfns.c (x_create_tip_frame): Don't set pointerColor. Ken Raeburn2015-10-081-0/+4
* Reduce some unnecessary X calls....* src/xfns.c (x_real_pos_and_offsets): Remove a redundant XGetGeometry call. If border width is wanted, get it from the XGetGeometry call instead of calling XGetWindowAttributes on the same window. Skip some X calls if we've already detected an error from the X server. * src/xterm.c (x_wm_supports): Delete x_sync before x_had_errors_p. (handle_one_xevent): Delete XSync call before x_uncatch_errors. Ken Raeburn2015-10-082-19/+6
* Reduce color allocation/query traffic in the TrueColor case....When working with an X visual with TrueColor class, pixel values can be generated from the RGB values according to mask value provided by the server on connection. Some of the image-handling code was already doing this. * src/xterm.h (x_make_truecolor_pixel): New function; code taken from lookup_rgb_color. (x_mutable_colormap): New function. * src/image.c (lookup_rgb_color): Move pixel composition code to x_make_truecolor_pixel. (x_kill_gs_process): Call x_mutable_colormap. * src/xfaces.c (x_free_colors, x_free_dpy_colors): Call x_mutable_colormap. * src/xftfont.c (xftfont_get_colors): Call x_query_colors. * src/xterm.c (x_query_colors): For a TrueColor display, decompose the pixel value into RGB values directly, and don't send a request to the server. (x_alloc_nearest_color): For a TrueColor display, construct the pixel value with x_make_truecolor_pixel. (x_copy_color): For an immutable color map, just return the provided pixel value. Ken Raeburn2015-10-085-26/+104
* Cache XParseColor results in the X display info structure....With repeated lookups of foreground and background colors for multiple faces per frame, we issue a lot of redundant color name lookups to the X server, waiting every time for the response. On a remote network with, say, 30ms round-trip time, this can add nearly a full second to creation of a new frame. * src/gtkutil.c (xg_check_special_colors): Call x_parse_color. * src/image.c (get_spec_bg_or_alpha_as_argb): (xpm_init_color_cache, xpm_lookup_color): * src/xfns.c (x_defined_color): * src/xterm.c (x_parse_color): New function; caches color names not starting with "#" in the display-info structure. (x_delete_display): Delete the cache content. * src/xterm.h (struct color_name_cache_entry): New type. (x_parse_color): Declare. (struct x_display_info): Add a new field for the cache. Ken Raeburn2015-10-085-13/+79
* * src/syntax.c (syms_of_syntax): Make syntax-propertize--done localStefan Monnier2015-10-071-0/+1
* Fix segfault in image_size_error...* src/image.c (image_size_error): Pass a Lisp string to image_error, not a C string. (Bug#21641) Eli Zaretskii2015-10-071-1/+2
* In resize_frame_windows don't set a top position when resizing horizontally....* src/window.c (resize_frame_windows): Don't set root window's top position when resizing horizontally. Martin Rudalics2015-10-071-5/+10
* Fix bug in GC_CHECK_MARKED_OBJECTS check...* src/alloc.c (mark_object): Fix bug in checking code. When GC_CHECK_MARKED_OBJECTS is defined, the bug caused CHECK_ALLOCATED_AND_LIVE_SYMBOL to repeatedly do the CHECK_ALLOCATED and CHECK_LIVE tests for the first symbol in each bucket. The bug did not affect behavior either in the normal case where GC_CHECK_MARKED_OBJECTS is not defined, or where Emacs does not have an internal error that a properly-written CHECK_ALLOCATED_AND_LIVE_SYMBOL would detect. Paul Eggert2015-10-061-1/+1
* Fix display of characters adjacent to ZWJ and ZWNJ...* src/bidi.c (bidi_resolve_neutral): Treat all Bn (a.k.a. "control") characters the same as directional formatting controls. (bidi_level_of_next_char): Include all Bn characters in rule L1, as mandated by the UBA. Eli Zaretskii2015-10-061-6/+12
* Don't use XFASTINT on a negative number...* src/cmds.c (Fself_insert_command): Don't use XFASTINT on a negative number. (Bug#21633) Andreas Schwab2015-10-061-10/+11
* * src/buffer.c (syms_of_buffer): Typo fix. (Bug#21622)Xue Fuqiao2015-10-061-1/+1
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsK. Handa2015-10-0514-126/+253
|\
| * Remove redundant redisplay code...* src/xdisp.c (redisplay_internal, try_cursor_movement) (try_window_reusing_current_matrix, try_window_id): Remove redundant restrictions on redisplay optimizations based on the frame's 'redisplay' flag. See http://osdir.com/ml/general/2015-10/msg02110.html for the relevant discussions. Eli Zaretskii2015-10-051-34/+6
| * * src/xdisp.c (windows_or_buffers_changed): Improve docstringStefan Monnier2015-10-041-13/+45
| * * src/macfont.m (macfont_encode_char, syms_of_macfont): Remove unused vars.YAMAMOTO Mitsuharu2015-10-051-3/+0
| * ; Restore some of the recent deletions in fileio.c...* src/fileio.c (Finsert_file_contents, choose_write_coding_system): Restore some of the recently deleted calls to CHECK_CODING_SYSTEM. Eli Zaretskii2015-10-041-5/+16
| * * src/coding.c (complement_process_encoding_system): Revert last... change. Andreas Schwab2015-10-031-1/+0
| * More validatation of coding systems...* src/fileio.c (Finsert_file_contents): Remove redundant coding-system check. (choose_write_coding_system): Likewise. * src/coding.c (complement_process_encoding_system): Check argument for valid coding system. Andreas Schwab2015-10-032-19/+9
| * Avoid crashes in coding_inherit_eol_type...* src/coding.c (coding_inherit_eol_type): Check the validity of the arguments. Suggested by Andreas Schwab <schwab@linux-m68k.org>. (Bug#21602) Eli Zaretskii2015-10-031-0/+2
| * More validatation of coding system in 'write-region'...* src/coding.c (choose_write_coding_system): More validation of coding-system from various sources. Suggested by Andreas Schwab <schwab@linux-m68k.org>. (Bug#21602) Eli Zaretskii2015-10-031-7/+16
| * Avoid crashes due to invalid coding-system...* src/fileio.c (choose_write_coding_system) (Finsert_file_contents): Check validity of coding-system-for-write and coding-system-for-read bound by the caller. (Bug#21602) Eli Zaretskii2015-10-031-1/+8
| * Revert my two recent process.c changes...Revert "Improve last commit to process.c" and "Remove callback-handled channels from Available set" because they did not fix bug#21313. This reverts commits bfa1aa8e2bdaf14adbbf1e9e824051d3f740694c and 27f871907cc24f33a7d12ac3a4ab71a88f0bc554.. Tassilo Horn2015-10-031-12/+6
| * Fix problems found by clang 3.5.0...* src/cmds.c (Fdelete_char): Don’t assume XINT returns int. * src/font.c (font_parse_family_registry): Use &"str"[X] instead of "str"+X, to pacify clang -Wstring-plus-int. Paul Eggert2015-10-022-2/+2
| * Revert "Attempt to fix slow redisplay caused by last changes"...* src/xdisp.c (try_window_id, try_window_reusing_current_matrix) (try_cursor_movement): Don't relax requirements for redisplay optimizations for the selected frame. (Bug#21597) This reverts commit c4c1fb97727ff52bcfa83ad5ed94a64a93d12e59. Eli Zaretskii2015-10-011-4/+3
| * Fix slow redisplay when daemon frame exists...* src/xdisp.c (redisplay_internal): Don't consider daemon frames when looking for frames that need to be redisplayed. (Bug#21597) Eli Zaretskii2015-10-011-1/+5
| * Attempt to fix slow redisplay caused by last changes...* src/xdisp.c (try_window_id, try_window_reusing_current_matrix) (try_cursor_movement): Relax requirements for redisplay optimizations for the selected frame. (Bug#21597) Eli Zaretskii2015-10-011-3/+4
| * Improve doc strings in dired.c...* src/dired.c (Ffile_name_completion, Ffile_name_all_completions): Improve doc string. Stephen Leake2015-10-011-3/+10
| * Avoid assertion violations in push_prefix_prop...* src/xdisp.c (push_prefix_prop): Avoid assertion violations when a line that has a line-prefix defined starts with an image. (Bug#21428) Eli Zaretskii2015-09-301-1/+2
| * Disable some display optimizations when frames need redisplay...These optimizations were previously disabled by the windows_or_buffers_changed flag, which now is not set when only some frames need to be redrawn. * src/xdisp.c (redisplay_internal): Redisplay any frame whose 'redisplay' flag is set. (try_window_reusing_current_matrix, try_window_id) (try_cursor_movement): Disable these optimizations when the frame's 'redisplay' flag is set. Eli Zaretskii2015-09-301-5/+30
| * Try to avoid redisplaying all frames when creating a new one...* src/xfns.c (x_set_menu_bar_lines, x_change_tool_bar_height): * src/xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face) (Finternal_set_lisp_face_attribute, update_face_from_frame_parameter): * src/frame.c (x_set_screen_gamma): Set the specific frame's `redisplay' bit rather than windows_or_buffers_changed. * src/window.c (apply_window_adjustment): Remove redundant setting of windows_or_buffers_changed. * src/xdisp.c (redisplay_internal): Set the specific frame's `redisplay' bit rather than update_mode_lines in response to cursor_type_changed. (syms_of_xdisp): Use hash-tables for redisplay_*_cause tables. (AINC): Adjust accordingly. Stefan Monnier2015-09-305-23/+32
| * ; Yet another tweak of pos-visible-in-window-p doc stringEli Zaretskii2015-09-301-4/+4
| * * src/macfont.m (mac_font_descriptor_supports_languages): Regard "zh" as syno...YAMAMOTO Mitsuharu2015-09-301-10/+16
| * Work around crash when displaying etc/HELLO on OS X 10.11...* src/macfont.m (mac_font_get_weight) (mac_font_descriptor_get_adjusted_weight): New functions. (macfont_store_descriptor_attributes): Adjust weight. YAMAMOTO Mitsuharu2015-09-301-3/+55
| * ; Clarify docs of pos-visible-in-window-p some moreEli Zaretskii2015-09-301-2/+3
| * * src/macfont.m: Fix compilation with USE_CT_GLYPH_INFO.YAMAMOTO Mitsuharu2015-09-301-44/+40
| * Clarify documentation of pos-visible-in-window-p...* src/window.c (Fpos_visible_in_window_p): Clarify the meaning of t for POS. See http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg01040.html for the original report. * doc/lispref/windows.texi (Window Start and End): Clarify the meaning of t for the POSITION argument of pos-visible-in-window-p. Eli Zaretskii2015-09-301-2/+3
| * ; Remove unnecessary resetting of inhibit_free_realized_facesEli Zaretskii2015-09-281-2/+0
| * ; Fix last commitEli Zaretskii2015-09-281-0/+2
| * Another attempt to fix crashes due to prematurely freed faces...* src/xdisp.c (redisplay_internal): Inhibit freeing of realized faces for as long as we might have desired matrices that reference those faces. (Bug#21428) Eli Zaretskii2015-09-281-0/+6
| * Respect value of frame_resize_pixelwise when handling fullscreen state....* src/nsterm.m (handleFS): Respect frame_resize_pixelwise when setting size increments. Anders Lindgren2015-09-281-0/+5
| * * src/gfilenotify.c (Fgfile_add_watch): Cleanup temporary variable.Michael Albinus2015-09-271-0/+1