1. 24 Jun, 2012 2 commits
    • Eli Zaretskii's avatar
      Improve port of struct timespec to MS-Windows. · 696056c2
      Eli Zaretskii authored
       lib/makefile.w32-in ($(BLD)/dtotimespec.$(O)):
       ($(BLD)/timespec-sub.$(O)): Don't depend on
       lib/utimens.h: Revert last change.
       src/makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h.
       (SYSTIME_H): Add nt/inc/sys/time.h.
       src/systime.h [WINDOWSNT]: Include sys/time.h.
       src/s/ms-w32.h (struct timespec): Definition moved from
       nt/inc/sys/time.h.  Suggested by Paul Eggert <eggert@cs.ucla.edu>.
       nt/inc/sys/time.h (struct timespec): Don't define it here, it is
       now defined in src/s/ms-w32.h.
      Fixes: debbugs:9000
    • Paul Eggert's avatar
      Fix bug when time_t is unsigned and as wide as intmax_t. · f1dd8073
      Paul Eggert authored
      * lisp.h (WAIT_READING_MAX): New macro.
      * dispnew.c (Fsleep_for, sit_for):
      * keyboard.c (kbd_buffer_get_event):
      * process.c (Faccept_process_output):
      Use it to avoid bogus compiler warnings with obsolescent GCC versions.
      This improves on the previous patch, which introduced a bug
      when time_t is unsigned and as wide as intmax_t.
      See <http://bugs.gnu.org/9000#51>.
  2. 23 Jun, 2012 10 commits
  3. 22 Jun, 2012 3 commits
  4. 20 Jun, 2012 1 commit
  5. 19 Jun, 2012 4 commits
  6. 18 Jun, 2012 4 commits
  7. 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.
    • 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
    • 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.
    • Paul Eggert's avatar
    • 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.
    • 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
        * 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.
  8. 16 Jun, 2012 7 commits
    • Juanma Barranquero's avatar
    • Andreas Schwab's avatar
      * buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline. · e5560ff7
      Andreas Schwab authored
      * 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
  9. 14 Jun, 2012 2 commits
    • Paul Eggert's avatar
    • 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_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.
      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.
  10. 13 Jun, 2012 1 commit