1. 15 Jun, 2014 1 commit
  2. 14 Jun, 2014 2 commits
  3. 11 Jun, 2014 1 commit
  4. 25 May, 2014 1 commit
  5. 24 May, 2014 3 commits
  6. 21 May, 2014 1 commit
  7. 18 Apr, 2014 1 commit
  8. 17 Apr, 2014 1 commit
  9. 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.
      180c8ce0
  10. 23 Mar, 2014 1 commit
  11. 20 Mar, 2014 1 commit
  12. 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".
      * text.texi (Primitive Indent):
      * strings.texi (String Basics):
      * sequences.texi (Sequence Functions): Update references
      accordingly.
      * 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.
      7e940b65
  13. 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
      281ae180
    • 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.
      2c65ad21
  14. 07 Mar, 2014 1 commit
  15. 28 Feb, 2014 1 commit
  16. 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
      resized.
      653b6ea3
    • 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.
      11de63ed
  17. 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.
      aea124c4
  18. 21 Feb, 2014 1 commit
  19. 20 Feb, 2014 3 commits
  20. 19 Feb, 2014 1 commit
  21. 08 Feb, 2014 1 commit
  22. 07 Feb, 2014 1 commit
  23. 05 Feb, 2014 3 commits
  24. 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
      doc-string.
      (window-divider-first-pixel, window-divider-last-pixel): New
      faces.
      * dispextern.h (face_id): Add WINDOW_DIVIDER_FIRST_PIXEL_FACE_ID
      and WINDOW_DIVIDER_LAST_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
      divider.
      * 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
      specially.
      764ec9e5
  25. 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
      doc-string.
      
      * window.el (fit-frame-to-buffer): Fix calculations for margins and
      height constraints.
      1dcb169c
  26. 25 Jan, 2014 1 commit
  27. 24 Jan, 2014 1 commit
  28. 13 Jan, 2014 1 commit
  29. 11 Jan, 2014 3 commits
    • Eli Zaretskii's avatar
      Fix bug #16347 with updating redisplay of company-mode's "tooltip". · 02013850
      Eli Zaretskii authored
       src/xdisp.c (try_window_id): Don't use this function's optimizations
       if overlays in the buffer displayed by the window have changed
       since last redisplay.
       (message_dolog): Fix indentation.
      02013850
    • Eli Zaretskii's avatar
      dc604697
    • Martin Rudalics's avatar
      Fix handling of internal borders (Bug#16348). · 7d7ccb88
      Martin Rudalics authored
      * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Remove
      internal border width from pixel width of windows.
      (change_frame_size_1): Don't return early when frame's pixel
      size changes - we still have to record the new sizes in the
      frame structure.
      * w32fns.c (x_set_tool_bar_lines): Clear internal border width
      also when toolbar gets larger.
      * window.c (check_frame_size): Include internal_border_width in
      check.
      * xdisp.c (Ftool_bar_height): Fix doc-string typo.
      * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): In
      non-toolkit/non-GTK version clear internal border.
      * xterm.c (x_clear_under_internal_border): New function for
      non-toolkit/non-GTK version.
      (x_after_update_window_line): In non-toolkit/non-GTK version
      don't do that.
      (handle_one_xevent, x_set_window_size): Call
      x_clear_under_internal_border in non-toolkit/non-GTK version.
      * xterm.h (x_clear_under_internal_border): Extern it.
      7d7ccb88