1. 22 Jun, 2012 2 commits
  2. 20 Jun, 2012 1 commit
  3. 19 Jun, 2012 4 commits
  4. 18 Jun, 2012 4 commits
  5. 17 Jun, 2012 6 commits
    • Chong Yidong's avatar
      Optimization to avoid redisplaying hidden terminal frames. · 96a313a1
      Chong Yidong authored
      * xdisp.c (redisplay_internal): No need to redisplay terminal
      frames that are not on top.
      96a313a1
    • Troels Nielsen's avatar
      Ensure correct ordering of process writes. · 20ca2e94
      Troels Nielsen authored
      * process.c (make_process): Initialize write_queue.
      (write_queue_push, write_queue_pop): New functions.
      (send_process): Use them to maintain correct ordering of process writes.
      
      Fixes: debbugs:10815
      20ca2e94
    • Paul Eggert's avatar
      * lisp.h (eassert): Assume C89 or later. · 310fbfa8
      Paul Eggert authored
      This removes the need for CHECK.
      (CHECK): Remove.  Its comments about always evaluating its
      argument were confusing, as 'eassert' typically does not evaluate
      its argument.
      310fbfa8
    • Paul Eggert's avatar
      27bb1ca4
    • Paul Eggert's avatar
      * xterm.c (x_draw_underwave): Check for integer overflow. · 9a900ca9
      Paul Eggert authored
      This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
      9a900ca9
    • Alp Aker's avatar
      Implement wave-style variant of underlining. · 9b0e3eba
      Alp Aker authored
        * doc/lispref/display.texi: Document new face attribute.
        * lisp/cus-face.el (custom-face-attributes): Add wave-style underline
        attribute.
        * lisp/faces.el (set-face-attribute): Update docstring.
        * src/dispextern.h (face_underline_type): New enum.
        (face): Add field for underline type.
        * src/nsterm.m (ns_draw_underwave): New function.
        (ns_draw_text_decoration): Use it.
        * src/w32term.c (w32_restore_glyph_string_clip, w32_draw_underwave):
        New functions.
        (x_draw_glyph_string): Use them.
        * src/xfaces.c (Qline, Qwave): New Lisp objects.
        (check_lface_attrs, merge_face_ref)
        (Finternal_set_lisp_face_attribute, realize_x_face): Handle
        wave-style underline face attributes.
        * src/xterm.c (x_draw_underwave): New function.
        (x_draw_glyph_string): Use it.
      9b0e3eba
  6. 16 Jun, 2012 7 commits
    • Juanma Barranquero's avatar
      0fb52f11
    • Andreas Schwab's avatar
      * buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline. · e5560ff7
      Andreas Schwab authored
      (BUF_FETCH_MULTIBYTE_CHAR): Likewise.
      * character.c (_fetch_multibyte_char_p): Remove.
      * alloc.c: Include "character.h" before "buffer.h".
      * bidi.c: Likewise.
      * buffer.c: Likewise.
      * bytecode.c: Likewise.
      * callint.c: Likewise.
      * callproc.c: Likewise.
      * casefiddle.c: Likewise.
      * casetab.c: Likewise.
      * category.c: Likewise.
      * cmds.c: Likewise.
      * coding.c: Likewise.
      * composite.c: Likewise.
      * dired.c: Likewise.
      * dispnew.c: Likewise.
      * doc.c: Likewise.
      * dosfns.c: Likewise.
      * editfns.c: Likewise.
      * emacs.c: Likewise.
      * fileio.c: Likewise.
      * filelock.c: Likewise.
      * font.c: Likewise.
      * fontset.c: Likewise.
      * fringe.c: Likewise.
      * indent.c: Likewise.
      * insdel.c: Likewise.
      * intervals.c: Likewise.
      * keyboard.c: Likewise.
      * keymap.c: Likewise.
      * lread.c: Likewise.
      * macros.c: Likewise.
      * marker.c: Likewise.
      * minibuf.c: Likewise.
      * nsfns.m: Likewise.
      * nsmenu.m: Likewise.
      * print.c: Likewise.
      * process.c: Likewise.
      * regex.c: Likewise.
      * region-cache.c: Likewise.
      * search.c: Likewise.
      * syntax.c: Likewise.
      * term.c: Likewise.
      * textprop.c: Likewise.
      * undo.c: Likewise.
      * unexsol.c: Likewise.
      * w16select.c: Likewise.
      * w32fns.c: Likewise.
      * w32menu.c: Likewise.
      * window.c: Likewise.
      * xdisp.c: Likewise.
      * xfns.c: Likewise.
      * xmenu.c: Likewise.
      * xml.c: Likewise.
      * xselect.c: Likewise.
      e5560ff7
    • Eli Zaretskii's avatar
      Fix bug #11720 with cursor positioning in outline-mode and Org buffers. · 946fdb73
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Use the leftmost glyph as GLYPH_BEFORE, not
       the rightmost.
      946fdb73
    • Eli Zaretskii's avatar
      Fix bug #11653 with a crash when more than 16 overlay strings are loaded. · 1097afe4
      Eli Zaretskii authored
       src/xdisp.c (handle_face_prop): Use chunk-relative overlay string index when
       indexing into it->string_overlays array.
      1097afe4
    • Eli Zaretskii's avatar
      Fix bug #11653 with cursor positioning in a row that has only strings. · 2f07e6af
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Don't dereference glyphs_end.  If
       all the glyphs of the glyph row came from strings, and we have no
       cursor positioning clues, put the cursor on the first glyph of the
       row.
      2f07e6af
    • Andreas Schwab's avatar
      * category.h (CHAR_HAS_CATEGORY): Define as inline. · 29b83cec
      Andreas Schwab authored
      (CATEGORY_MEMBER): Enforce 1/0 value.
      * category.c (_temp_category_set): Remove.
      29b83cec
    • Eli Zaretskii's avatar
      Fix bug #11677 with segfault when deleting windows under -batch. · 4c5501e9
      Eli Zaretskii authored
       src/window.c (Fdelete_other_windows_internal)
       (Fdelete_window_internal): Don't access frame's mouse highlight
       info of the initial frame.
      4c5501e9
  7. 14 Jun, 2012 2 commits
    • Paul Eggert's avatar
      e93864f9
    • Paul Eggert's avatar
      Simplify lisp.h in minor ways that should not affect code. · 2b570124
      Paul Eggert authored
      * lisp.h (USE_2_TAGS_FOR_INTS): Remove, as it was always defined.
      (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P)
      (LISP_INT1_TAG, enum Lisp_Type, XINT, XUINT, make_number):
      Simplify under the assumption that USE_2_TAGS_FOR_INTS is defined.
      (INTTYPEBITS): New macro, for clarity.
      (INTMASK, MOST_POSITIVE_FIXNUM): Use it.
      (LISP_INT1_TAG, LISP_STRING_TAG, LISP_INT_TAG_P): Simplify
      now that USE_LSB_TAG is always defined.
      (TYPEMASK, XINT) [USE_LSB_TAG]: Remove unnecessary cast.
      (make_number) [!USE_LSB_TAG]: Use INTMASK; that's simpler.
      2b570124
  8. 13 Jun, 2012 6 commits
    • Juanma Barranquero's avatar
    • Glenn Morris's avatar
      Remove some unused definitions from src/s · 16192a57
      Glenn Morris authored
      * src/s/bsd-common.h (BSD4_3):
      * src/s/usg5-4-common.h (USG5_4): No longer define; unused.
      
      * admin/CPP-DEFINES, src/s/template.h: Related edits.
      16192a57
    • Andreas Schwab's avatar
      Use a simple struct to implement compile time checks for the Lisp_Object type · 646b5f55
      Andreas Schwab authored
      * configure.in: Rename --enable-use-lisp-union-type to
      --enable-check-lisp-object-type and define CHECK_LISP_OBJECT_TYPE
      instead of USE_LISP_UNION_TYPE.
      
      * admin/make-emacs: Rename --union-type to --check-lisp-type.  Define
      CHECK_LISP_OBJECT_TYPE insted of USE_LISP_UNION_TYPE.
      * admin/CPP-DEFINES (DEBUG_LISP_OBJECT_TYPE): Renamed from
      USE_LISP_UNION_TYPE.
      
      * src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]: Define as struct
      instead of union.
      (XLI, XIL): Define.
      (XHASH, XTYPE, XINT, XUINT, make_number, XSET, XPNTR, XUNTAG): Use
      them.
      * src/emacs.c (gdb_use_struct): Renamed from gdb_use_union.
      * src/.gdbinit: Check gdb_use_struct instead of gdb_use_union.
      * src/alloc.c (widen_to_Lisp_Object): Removed.
      (mark_memory): Use XIL instead of widen_to_Lisp_Object.
      * src/frame.c (delete_frame): Remove outdated comment.
      * src/w32fns.c (Fw32_register_hot_key): Use XLI instead of checking
      USE_LISP_UNION_TYPE.
      (Fw32_unregister_hot_key): Likewise.
      (Fw32_toggle_lock_key): Likewise.
      * src/w32menu.c (add_menu_item): Likewise.
      (w32_menu_display_help): Use XIL instead of checking
      USE_LISP_UNION_TYPE.
      * src/w32heap.c (allocate_heap): Don't check USE_LISP_UNION_TYPE.
      (init_heap): Likewise.
      * src/w32term.c (w32_read_socket): Update comment.
      646b5f55
    • Glenn Morris's avatar
      Remove HAVE_SYSV_SIGPAUSE unused remnants · c62ff706
      Glenn Morris authored
      * src/s/usg5-4-common.h, src/s/unixware.h:
      Remove define/undef of HAVE_SYSV_SIGPAUSE (not used since 2010-05-04).
      
      * admin/CPP-DEFINES: Remove HAVE_SYSV_SIGPAUSE.
      c62ff706
    • Glenn Morris's avatar
      * src/s/gnu.h (POSIX_SIGNALS): Remove (again). · 1d3823c9
      Glenn Morris authored
      This was added in 2012-01 in response to http://debbugs.gnu.org/10552 .
      However, this issue had already been fixed in the trunk two years
      earlier, by removing POSIX_SIGNALS altogether. Ref:
      
      http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00002.html
      1d3823c9
    • Paul Eggert's avatar
      USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup (Bug#11604) · bfe3e0a2
      Paul Eggert authored
      * alloc.c (make_number) [!defined make_number]:
      Remove, as lisp.h always defines this now.
      (mark_maybe_pointer): Simplify since USE_LSB_TAG is always defined now.
      (roundup_size): Verify that it is a power of 2.
      * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
      * ftfont.c (ftfont_driver): Use LISP_INITIALLY_ZERO.
      * lisp.h (USE_LSB_TAG): Allow the builder to compile with
      -DUSE_LSB_TAG=0, to override the automatically-selected default.
      USE_LSB_TAG now is always defined to be either 0 or 1.
      All uses changed.
      (union Lisp_Object): Don't worry about WORDS_BIGENDIAN; the
      code works fine either way, and efficiency is not a concern here,
      as the union type is for debugging, not for production.
      (LISP_MAKE_RVALUE, make_number) [USE_LISP_UNION_TYPE]:
      Use an inline function on all platforms when using the union type,
      since this is simpler and 'static inline' can be used portably
      within Emacs now.
      (LISP_INITIALLY_ZERO): New macro.
      (XFASTINT, XSETFASTINT) [USE_LISP_UNION_TYPE]: Remove.
      (XSET) [USE_LISP_UNION_TYPE]: Don't overparenthesize.
      bfe3e0a2
  9. 12 Jun, 2012 6 commits
  10. 11 Jun, 2012 2 commits