1. 19 Nov, 2011 3 commits
    • Eli Zaretskii's avatar
      Fix bug #10075 with cursor drawing in an hscrolled window. · f8fe6f96
      Eli Zaretskii authored
       src/xdisp.c (x_write_glyphs, draw_phys_cursor_glyph)
       (erase_phys_cursor, update_window_cursor, show_mouse_face)
       (cursor_in_mouse_face_p): If the cursor position is out of bounds,
       behave as if the cursor position were at the window margin.
       src/window.c (get_phys_cursor_glyph): If the window is hscrolled,
       and the cursor position is out of bounds, behave as if the cursor
       position were at the window margin.
      f8fe6f96
    • Paul Eggert's avatar
      Spelling fixes. · 53964682
      Paul Eggert authored
      53964682
    • Eli Zaretskii's avatar
      Revert last commit. · 7430c2a1
      Eli Zaretskii authored
      7430c2a1
  2. 18 Nov, 2011 2 commits
    • Paul Eggert's avatar
      Fix minor problems found by static checking. · 61ccba97
      Paul Eggert authored
      * dispextern.h, xdisp.c (row_hash): Declare extern only if XASSERTS.
      * dispnew.c (verify_row_hash): Now static.
      61ccba97
    • Eli Zaretskii's avatar
      Fix another crash due to incorrect hash value of glyph rows, bug #10035. · 015137db
      Eli Zaretskii authored
       src/dispnew.c (swap_glyph_pointers): Swap the used[] arrays and the
       hash values of the two rows.
       (copy_row_except_pointers): Preserve the used[] arrays and the
       hash values of the two rows.
       src/xdisp.c (row_hash): New function, body extracted from
       compute_line_metrics.
       (compute_line_metrics): Call row_hash, instead of computing the
       hash code inline.
       src/dispnew.c (verify_row_hash): Call row_hash for computing the
       hash code of a row, instead of duplicating code from xdisp.c.
       src/dispextern.h (row_hash): Add prototype.
      015137db
  3. 15 Nov, 2011 1 commit
  4. 14 Nov, 2011 3 commits
  5. 11 Nov, 2011 2 commits
  6. 08 Nov, 2011 1 commit
    • Paul Eggert's avatar
      Avoid some portability problems by eschewing 'extern inline' functions. · 09db192c
      Paul Eggert authored
      The trivial performance wins aren't worth the portability hassles; see
      <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>
      et seq.
      * dispextern.h (window_box, window_box_height, window_text_bottom_y)
      (window_box_width, window_box_left, window_box_left_offset)
      (window_box_right, window_box_right_offset): Undo previous change,
      by removing the "extern"s.
      * intervals.c (adjust_intervals_for_insertion)
      (adjust_intervals_for_deletion): Undo previous change,
      making these static again.
      (offset_intervals, temp_set_point_both, temp_set_point)
      (copy_intervals_to_string): No longer inline.
      * xdisp.c (window_text_bottom_y, window_box_width)
      (window_box_height, window_box_left_offset)
      (window_box_right_offset, window_box_left, window_box_right)
      (window_box): No longer inline.
      09db192c
  7. 06 Nov, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix bug #9963 with abort in "temacs -nw". · 88a37c4d
      Eli Zaretskii authored
       src/xdisp.c (init_iterator, reseat_to_string): Don't set the
       iterator's bidi_p flag if Vpurify_flag is non-nil.
       (Fcurrent_bidi_paragraph_direction): If Vpurify_flag is non-nil,
       return Qleft_to_right.
      88a37c4d
  8. 04 Nov, 2011 1 commit
  9. 03 Nov, 2011 1 commit
  10. 01 Nov, 2011 2 commits
  11. 30 Oct, 2011 1 commit
  12. 29 Oct, 2011 2 commits
  13. 28 Oct, 2011 2 commits
  14. 19 Oct, 2011 2 commits
  15. 18 Oct, 2011 1 commit
  16. 17 Oct, 2011 2 commits
  17. 13 Oct, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix the change with paragraph_dir initialization. · d4172c3b
      Eli Zaretskii authored
       src/bidi.c (bidi_init_it): Don't initialize paragraph_dir here, as
       some callers set that themselves.
       src/xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize
       itb.paragraph_dir to NEUTRAL_DIR.  Fixes an occasional incorrect
       cursor motion with <left> and <right> arrow keys.
      d4172c3b
  18. 12 Oct, 2011 3 commits
  19. 08 Oct, 2011 2 commits
  20. 28 Sep, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix bug #9624 with crashes in Muse mode. · fbcaa2f3
      Eli Zaretskii authored
       src/xdisp.c (compute_display_string_end): If there's no display
       string at CHARPOS, return -1.
       src/bidi.c (bidi_fetch_char): When compute_display_string_end
       returns a negative value, treat the character as a normal
       character not covered by a display string.
      fbcaa2f3
  21. 27 Sep, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix bug #9610 with slow cursor motion in buffers with invisible text. · 88652fd5
      Eli Zaretskii authored
       src/xdisp.c (handle_invisible_prop): If invisible text ends on a
       newline, reseat the iterator instead of bidi-iterating there one
       character at a time.  (Bug#9610)
       (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail when past
       TO_CHARPOS if the bidi iterator is at base embedding level.
      88652fd5
  22. 24 Sep, 2011 2 commits
  23. 21 Sep, 2011 1 commit
  24. 20 Sep, 2011 2 commits
    • Eli Zaretskii's avatar
      Fix bidi-aware cursor motion inside indentation. · fd317ddf
      Eli Zaretskii authored
       src/xdisp.c (Fcurrent_bidi_paragraph_direction): Fix search for previous
       non-empty line.  Fixes confusing cursor motion with arrow keys at
       the beginning of a line that starts with whitespace.
      fd317ddf
    • Eli Zaretskii's avatar
      Fix bug #9549 with longlines-show-hard-newlines. · 8c203dbf
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): If the row ends in a newline from
       a display string, extend search for cursor position to end of row.
       (find_row_edges): If the row ends in a newline from a display
       string, increment its MATRIX_ROW_END_CHARPOS by one.
       Handle the case of a display string with multiple newlines.
      8c203dbf