1. 02 Oct, 2013 4 commits
  2. 29 Sep, 2013 4 commits
  3. 28 Sep, 2013 2 commits
    • Jan Djärv's avatar
      Pick up default selection color on OSX when user defaults are not set. · 1610938f
      Jan Djärv authored
      * lisp/faces.el (region): Change ns_selection_color to
      ns_selection_fg_color, add ns_selection_bg_color.
      
      * src/nsterm.h (NS_SELECTION_BG_COLOR_DEFAULT): Renamed from
      NS_SELECTION_COLOR_DEFAULT.
      (NS_SELECTION_FG_COLOR_DEFAULT): New.
      
      * src/nsterm.m (ns_selection_color): Remove.
      (ns_get_color): Check for ns_selection_(fg|bg)_color using
      NSColor selectedText(Background)Color.  Only for COCOA.
      (ns_term_init): Remove assignment of ns_selection_color, logic
      moved to ns_get_color.
      1610938f
    • Eli Zaretskii's avatar
      Fix compilation under GLYPH_DEBUG, broken by conditional tool_bar_window. · 0d2647e6
      Eli Zaretskii authored
       src/xdisp.c (Fdump_tool_bar_row): Ifdef away the body if 'struct
       frame' does not have the tool_bar_window member.
      0d2647e6
  4. 26 Sep, 2013 1 commit
  5. 24 Sep, 2013 8 commits
  6. 23 Sep, 2013 9 commits
  7. 22 Sep, 2013 6 commits
    • Jan Djärv's avatar
      Fix compiler warnings from XCode 5.0 on OSX. · fb83ea63
      Jan Djärv authored
      * nsterm.m (setMarkedText:selectedRange:):
      (deleteWorkingText):
      * nsmenu.m (addDisplayItemWithImage:idx:tag:helpText:enabled:):
      * nsfont.m (ns_get_covering_families, ns_findfonts): Cast NSLog
      argument to unsigned long to avoid warning.
      (nsfont_draw): Use 0.25 instead of  Fix2X (kATSItalicQDSkew).
      
      * process.c (wait_reading_process_output): Change int pnamelen to
      socklen_t.
      fb83ea63
    • Jan Djärv's avatar
    • Daniel Colascione's avatar
    • Daniel Colascione's avatar
      Add set operations for bool-vector. · 3e0b94e7
      Daniel Colascione authored
      http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00404.html
      
      * data.c (Qbool_vector_p): New symbol.
      (bool_vector_spare_mask,popcount_size_t_generic)
      (popcount_size_t_msc,popcount_size_t_gcc)
      (popcount_size_t)
      (bool_vector_binop_driver)
      (count_trailing_zero_bits,size_t_to_host_endian)
      (Fbool_vector_exclusive_or)
      (Fbool_vector_union)
      (Fbool_vector_intersection,Fbool_vector_set_difference)
      (Fbool_vector_subsetp,Fbool_vector_not)
      (Fbool_vector_count_matches)
      (Fbool_vector_count_matches_at): New functions.
      (syms_of_data): Intern new symbol, functions.
      * alloc.c (bool_vector_payload_bytes): New function.
      (Fmake_bool_vector): Instead of calling Fmake_vector,
      which performs redundant initialization and argument checking,
      just call allocate_vector ourselves.  Make sure we clear any
      terminating padding to zero.
      (vector_nbytes,sweep_vectors): Use bool_vector_payload_bytes
      instead of open-coding the size calculation.
      (vroundup_ct): New macro.
      (vroundup): Assume argument >= 0; invoke vroundup_ct.
      * casetab.c (shuffle,set_identity): Change lint_assume to assume.
      * composite.c (composition_gstring_put_cache): Change
      lint_assume to assume.
      * conf_post.h (assume): New macro.
      (lint_assume): Remove.
      * dispnew.c (update_frame_1): Change lint_assume to assume.
      * ftfont.c (ftfont_shape_by_flt): Change lint_assume
      to assume.
      * image.c (gif_load): Change lint_assume to assume.
      * lisp.h (eassert_and_assume): New macro.
      (Qbool_vector_p): Declare.
      (CHECK_BOOL_VECTOR,ROUNDUP,BITS_PER_SIZE_T): New macros.
      (swap16,swap32,swap64): New inline functions.
      * macfont.c (macfont_shape): Change lint_assume to assume.
      * ralloc.c: Rename ROUNDUP to PAGE_ROUNDUP throughout.
      * xsettings.c (parse_settings): Use new swap16 and
      swap32 from lisp.h instead of file-specific macros.
      3e0b94e7
    • Eli Zaretskii's avatar
      Fix bug #15365 with aborts in try_window_id. · 76880d88
      Eli Zaretskii authored
       src/xdisp.c (try_window_id): Don't abort if cursor row could not be
       found (which can legitimately happen when the glyph row at the
       window start is disabled in the current_matrix.
      76880d88
    • Paul Eggert's avatar
      Fix syntax.h bug introduced by recent INLINE change. · c6cfd910
      Paul Eggert authored
      syntax.h defined an extern inline function SYNTAX_ENTRY that was
      conditionally compiled one way in some modules, and a different
      way in others.  This doesn't work with extern inline functions,
      which must have the same definition in all modules, because the
      defining code might be shared across modules, depending on the
      implementation.  Symptoms reported by Martin Rudalics in:
      http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00414.html
      * regex.c, syntax.c (SYNTAX_ENTRY_VIA_PROPERTY): Remove.
      (SYNTAX, SYNTAX_ENTRY, SYNTAX_WITH_FLAGS): New macros,
      overriding the corresponding functions in syntax.h.
      * syntax.h (syntax_property_entry, syntax_property_with_flags)
      (syntax_property): New inline functions.
      (SYNTAX_ENTRY, SYNTAX_WITH_FLAGS, SYNTAX):
      Rewrite in terms of these new functions.
      c6cfd910
  8. 21 Sep, 2013 1 commit
  9. 20 Sep, 2013 3 commits
    • Paul Eggert's avatar
      Port recent change to hosts where pointers aren't 'long'. · e3b29769
      Paul Eggert authored
      * xterm.c (x_send_scroll_bar_event, x_scroll_bar_to_input_event):
      Don't assume that pointers are the same width as 'long'.
      Add a compile-time check that a pointer fits into two X slots.
      e3b29769
    • Paul Eggert's avatar
      A simpler, centralized INLINE. · 00382e8b
      Paul Eggert authored
      * lib-src/profile.c (INLINE): New macro.
      (SYSTIME_INLINE): Remove.
      * src/conf_post.h (INLINE): Define only if not already defined.
      This allows us to use a single INLINE, defined by one file
      per executable.
      * src/emacs.c (INLINE): Define it.
      Also, include category.h, charset.h, composite.h, dispextern.h,
      syntax.h, systime.h, so that their INLINE definitions are expanded
      properly for Emacs.
      * src/blockinput.h, src/keyboard.c (BLOCKINPUT_INLINE):
      * src/buffer.h, src/buffer.c (BUFFER_INLINE):
      * src/category.h, src/category.c (CATEGORY_INLINE):
      * src/character.h, src/character.c (CHARACTER_INLINE):
      * src/charset.h, src/charset.c (CHARSET_INLINE):
      * src/composite.h, src/composite.c (COMPOSITE_INLINE):
      * src/dispextern.h, src/dispnew.c (DISPEXTERN_INLINE):
      * src/frame.h, src/frame.c (FRAME_INLINE):
      * src/intervals.h, src/intervals.c (INTERVALS_INLINE):
      * src/keyboard.h, src/keyboard.c (KEYBOARD_INLINE):
      * src/lisp.h, src/alloc.c (LISP_INLINE):
      * src/process.h, src/process.c (PROCESS_INLINE):
      * src/syntax.h, src/syntax.c (SYNTAX_INLINE):
      * src/systime.h, src/sysdep.c (SYSTIME_INLINE):
      * src/termhooks.h, src/terminal.h (TERMHOOKS_INLINE):
      * src/window.h, src/window.c (WINDOW_INLINE):
      Remove.  All uses replaced with INLINE.
      00382e8b
    • Dmitry Antipov's avatar
      * xterm.c (handle_one_xevent): Revert part of 2013-09-17 change · 2b943ba6
      Dmitry Antipov authored
      to avoid Bug#15398.
      2b943ba6
  10. 19 Sep, 2013 2 commits
    • Eli Zaretskii's avatar
      Fix a compiler warning on MS-Windows due to recent changes. · 13d9698a
      Eli Zaretskii authored
       src/w32reg.c (w32_get_string_resource): Make the first 2 arguments
       'const char *' to avoid compiler warnings due to similar change in
       the prototype of x_get_string_resource.
      13d9698a
    • Dmitry Antipov's avatar
      * xterm.h (struct x_display_info): New members last_mouse_glyph_frame, · ced135eb
      Dmitry Antipov authored
      last_mouse_scroll_bar, last_mouse_glyph and last_mouse_movement_time,
      going to replace static variables below.  Adjust comments.
      * xterm.c (last_mouse_glyph, last_mouse_glyph_frame)
      (last_mouse_scroll_bar, last_mouse_movement_time): Remove.
      (note_mouse_movement, XTmouse_position, x_scroll_bar_note_movement)
      (x_scroll_bar_report_motion, handle_one_xevent, syms_of_xterm):
      Related users changed.
      * w32term.h (struct w32_display_info): New members last_mouse_glyph_frame,
      last_mouse_scroll_bar, last_mouse_scroll_bar_pos, last_mouse_glyph and
      last_mouse_movement_time, going to replace static variables below.
      Adjust comments.
      * w32term.c (last_mouse_glyph_frame, last_mouse_scroll_bar)
      (last_mouse_scroll_bar_pos, last_mouse_glyph, last_mouse_movement_time):
      Remove.
      (note_mouse_movement, w32_mouse_position, w32_scroll_bar_handle_click)
      (x_scroll_bar_report_motion, syms_of_w32term): Related users changed.
      * nsterm.h (struct ns_display_info): New members last_mouse_glyph,
      last_mouse_movement_time and last_mouse_scroll_bar, going to replace
      static variables below.
      * nsterm.m (last_mouse_glyph, last_mouse_movement_time)
      (last_mouse_scroll_bar): Remove.
      (note_mouse_movement, ns_mouse_position, mouseMoved, mouseEntered)
      (mouseExited): Related users changed.
      ced135eb