1. 05 Jul, 2014 3 commits
  2. 04 Jul, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix bug #17905 with display of point in partially visible line at end of window. · 5b5953c0
      Eli Zaretskii authored
       src/xdisp.c (redisplay_window): If redisplay of a window ends up
       with point in a partially visible line at end of the window, make
       sure the amended position of point actually has smaller Y
       coordinate; if not, give up and scroll the display.
       src/window.c (window_scroll_pixel_based): When point ends up at the
       last fully visible line, don't let move_it_to stop at the left
       edge of the line and dupe us into thinking point is inside the
       scroll margin.
  3. 01 Jul, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix bug #17892 with mode/header line and display margins. · ff6e6a42
      Eli Zaretskii authored
       src/dispnew.c (prepare_desired_row): Accept 2 additional arguments:
       the window whose glyph row is being prepared and a flag whether it
       is for mode/header line.  Make sure the glyph row's marginal areas
       are in sync with what the window wants.
       src/xdisp.c (display_line, display_mode_line): Call
       prepare_desired_row with additional arguments, as appropriate.
       src/dispextern.h (prepare_desired_row): Adjust prototype.
       src/window.h: Improve commentary of the marginal columns.
  4. 16 Jun, 2014 1 commit
  5. 15 Jun, 2014 1 commit
  6. 14 Jun, 2014 2 commits
  7. 11 Jun, 2014 1 commit
  8. 25 May, 2014 1 commit
  9. 24 May, 2014 3 commits
  10. 21 May, 2014 1 commit
  11. 18 Apr, 2014 1 commit
  12. 17 Apr, 2014 1 commit
  13. 12 Apr, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix bug #17244 with line-move-visual when display string covers a lot of text. · 180c8ce0
      Eli Zaretskii authored
       src/xdisp.c (move_it_by_lines): If a large portion of buffer text is
       covered by a display string that ends in a newline, and that cases
       going back by DVPOS lines to hit the search limit, lift the limit
       and go back until DVPOS is reached.
       src/indent.c (Fvertical_motion): Handle correctly the case when the
       display string is preceded by an empty line.
  14. 23 Mar, 2014 1 commit
  15. 20 Mar, 2014 1 commit
  16. 09 Mar, 2014 1 commit
    • Martin Rudalics's avatar
      Update docs for window dividers and `window-text-pixel-size'. · 7e940b65
      Martin Rudalics authored
      * xdisp.c (Fwindow_text_pixel_size): Adjust doc-string.
      * elisp.texi (Top): Rename section "Width" to "Size of Displayed
      * text.texi (Primitive Indent):
      * strings.texi (String Basics):
      * sequences.texi (Sequence Functions): Update references
      * display.texi (Size of Displayed Text): Rename section from
      "Width".  Add description for `window-text-pixel-size'.
      (Window Dividers): Reword description of window dividers.
      * frames.texi (Layout Parameters): Improve description of window
      divider parameters.
      * windows.texi (Window Sizes): Add descriptions of
      `window-mode-line-height' and `window-header-line-height'.
      (Coordinates and Windows): Mention window dividers.
  17. 08 Mar, 2014 2 commits
    • Eli Zaretskii's avatar
      src/xdisp.c (Fmove_point_visually): Fix previous change. · 281ae180
      Eli Zaretskii authored
      Fixes: debbugs:16961
    • Eli Zaretskii's avatar
      Fix more failures of visual-order cursor movement under word-wrap (bug#16961). · 2c65ad21
      Eli Zaretskii authored
       src/xdisp.c (move_it_in_display_line_to): If word-wrap is ON, and
       there's a valid wrap point in the display line, the last glyph
       cannot "just barely fit" on this row, because display_line doesn't
       let it.  Instead, proceed as if the last glyph didn't fit, so that
       we eventually back up the iterator to the wrap point.  This avoids
       delusional behavior of move_it_to, whereby it proceeds to the next
       display line, but sets current_x to zero for all the glyphs that
       without word-wrap would fit on the previous display line.  One
       result was that visual-order cursor movement behaved erratically
       under word-wrap.
       (Fmove_point_visually): Add code to find the x coordinate of the
       last character before wrap point, under word-wrap on a TTY.
  18. 07 Mar, 2014 1 commit
  19. 28 Feb, 2014 1 commit
  20. 27 Feb, 2014 2 commits
    • Martin Rudalics's avatar
      More fixes for mouse glyph calculations (Bug#16647). · 653b6ea3
      Martin Rudalics authored
      More fixes for mouse glyph calculations (Bug#16647).
      * window.c (coordinates_in_window): In intersection of
      horizontal and vertical window dividers prefer the horizontal
      one.  Add some extra parens to last fix.
      (window_relative_x_coord): Return x-coordinate for header and
      mode line too.
      * xdisp.c (remember_mouse_glyph): In text area don't extend
      glyph into mode line to show the vertical drag cursor there
      immediately.  Subdivide mouse glyphs in right fringes to show a
      horizontal drag cursor as soon as we enter the "grabbable width"
      portion.  Handle vertical border case separately.  Do not
      subdivide window divider areas.
      (note_mouse_highlight): On bottom divider of bottommost windows
      show vertical drag cursor only when the minibuffer window can be
    • Eli Zaretskii's avatar
      Fix bug #16870 with 'box' face in display strings. · 11de63ed
      Eli Zaretskii authored
       src/xdisp.c (pop_it): Restore the it->face_box_p flag which could be
       reset by the face of the object just displayed.  See also bug#76.
       (get_next_display_element): If the string came from a display
       property, examine the box face attribute at it->position, not at
       it->current.pos, since the latter was not updated yet.
       (handle_face_prop): Improve commentary.
  21. 26 Feb, 2014 1 commit
    • Martin Rudalics's avatar
      Fixes around Bug#16647. · aea124c4
      Martin Rudalics authored
      * xdisp.c (remember_mouse_glyph): Handle ON_RIGHT_DIVIDER and
      ON_BOTTOM_DIVIDER cases.
      * window.c (coordinates_in_window): Return ON_VERTICAL_BORDER
      only if the window has no right divider.
      (Fcoordinates_in_window_p): Fix doc-string.
  22. 21 Feb, 2014 1 commit
  23. 20 Feb, 2014 3 commits
  24. 19 Feb, 2014 1 commit
  25. 08 Feb, 2014 1 commit
  26. 07 Feb, 2014 1 commit
  27. 05 Feb, 2014 3 commits
  28. 04 Feb, 2014 1 commit
    • Martin Rudalics's avatar
      Improve window dividers code. · 764ec9e5
      Martin Rudalics authored
      * faces.el (window-divider): New default value.  Rewrite
      (window-divider-first-pixel, window-divider-last-pixel): New
      * dispextern.h (face_id): Add WINDOW_DIVIDER_FIRST_PIXEL_FACE_ID
      * w32term.c (w32_draw_window_divider): Handle first and last
      pixels specially.
      * w32term.h (w32_fill_area_abs): New function.
      * xdisp.c (x_draw_right_divider): Don't draw over bottom
      * xfaces.c (realize_basic_faces): Handle new face ids.
      * xfns.c (Fx_create_frame): Call x_default_parameter for right
      and bottom divider width.
      * xterm.c (x_draw_window_divider): Handle first and last pixels
  29. 28 Jan, 2014 1 commit
    • Martin Rudalics's avatar
      Fix Fwindow_text_pixel_size and fit-frame-to-buffer. · 1dcb169c
      Martin Rudalics authored
      * xdisp.c (last_max_ascent): Re-remove after erroneously
      reintroducing it on 2013-11-30 and abolishing Dmitry's removal
      from 2013-03-29.
      (move_it_to): Re-remove reference to last_max_ascent.
      (Fwindow_text_pixel_size): Add iterator's max_ascent and
      max_descent here instead of calling line_bottom_y.  Fix
      * window.el (fit-frame-to-buffer): Fix calculations for margins and
      height constraints.