- 05 Jul, 2014 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (pos_visible_p): If CHARPOS is at beginning of window, and there is a display property at that position, don't call move_it_to to move to a position before window start.
-
Eli Zaretskii authored
src/xdisp.c (pos_visible_p): If CHARPOS is at BEGV, and there is a display property at BEGV, don't call move_it_to to move to a position before BEGV.
-
- 04 Jul, 2014 1 commit
-
-
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.
-
- 01 Jul, 2014 1 commit
-
-
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.
-
- 16 Jun, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (Fmove_point_visually): Instead of testing for keyboard macro execution, make sure point didn't move since last complete redisplay, as the condition for using the glyph matrix information.
-
- 15 Jun, 2014 1 commit
-
-
Paul Eggert authored
-
- 14 Jun, 2014 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (Fmove_point_visually): Don't use the glyph matrix information if we are in the middle of executing a keyboard macro, since redisplay doesn't update the screen until the macro is finished.
-
Eli Zaretskii authored
-
- 11 Jun, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Fix an off-by-one error when matching overlay strings with 'cursor' property against buffer positions traversed in the glyph row.
-
- 25 May, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Don't record wrap position if we are iterating over an object that generates glyphs for marginal areas.
-
- 24 May, 2014 3 commits
-
-
Paul Eggert authored
-
Eli Zaretskii authored
src/xdisp.c (safe__call): Accept va_list argument instead of '...'. (safe_call, safe__call1): Construct a va_list argument for safe_call. (safe_call1): Call safe_call instead of safe__call directly. Fixes: debbugs:17577
-
Stefan Monnier authored
(safe__call, safe__call1, safe__eval): New functions. (safe_call): Use it. (prepare_menu_bars): Use it for pre-redisplay-function. (display_mode_element): Same for `:eval'. Fixes: debbugs:17577
-
- 21 May, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Avoid infinite recursion: when closest_pos is identical to to_charpos, don't recurse, since we already tried that, and failed.
-
- 18 Apr, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (insert_left_trunc_glyphs): Ensure the left truncation glyph is written to TEXT_AREA of the temporary glyph_row.
-
- 17 Apr, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (Fline_pixel_height): Don't assume that the current buffer and the selected window's buffer are one and the same.
-
- 12 Apr, 2014 1 commit
-
-
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.
-
- 23 Mar, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (redisplay_window): If all previous attempts to find the cursor row failed, try a few alternatives before falling back to the top-most row of the window. Use row_containing_pos.
-
- 20 Mar, 2014 1 commit
-
-
Stefan Monnier authored
* src/xterm.c (handle_one_xevent) <MapNotify>: Don't garbage the frame. * src/frame.c (frame_garbaged): Make "docstring" more precise.
-
- 09 Mar, 2014 1 commit
-
-
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.
-
- 08 Mar, 2014 2 commits
-
-
Eli Zaretskii authored
Fixes: debbugs:16961
-
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.
-
- 07 Mar, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (Fmove_point_visually): When under word-wrap, accept also return value of MOVE_POS_MATCH_OR_ZV from move_it_in_display_line_to, when moving from beginning of line to point's position.
-
- 28 Feb, 2014 1 commit
-
-
Martin Rudalics authored
* xdisp.c (note_mode_line_or_margin_highlight): Don't show drag cursor when modeline can't be dragged (Bug#16647).
-
- 27 Feb, 2014 2 commits
-
-
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.
-
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.
-
- 26 Feb, 2014 1 commit
-
-
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.
-
- 21 Feb, 2014 1 commit
-
-
Paul Eggert authored
* xdisp.c (move_it_in_display_line_to) [lint]: Initialize recently-added local.
-
- 20 Feb, 2014 3 commits
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Save the iterator state in ppos_it only once per call. Reimplement the method used to return to the best candidate position if all the positions found in display line are beyond TO_CHARPOS. This cuts down the number of calls to bidi_shelve_cache, which moves a lot of stuff when lines are long and include bidirectional text.
-
Eli Zaretskii authored
src/xdisp.c (try_cursor_movement): Don't use cursor position if set_cursor_from_row failed to compute it. This avoids assertion violations in MATRIX_ROW.
-
Eli Zaretskii authored
src/xdisp.c (init_iterator): Don't dereference a bogus face pointer.
-
- 19 Feb, 2014 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (display_line): Fix horizontal scrolling of large images when fringes are turned off. This comes at a price of not displaying the truncation/continuation glyphs in this case.
-
- 08 Feb, 2014 1 commit
-
-
Lars Ingebrigtsen authored
* src/xdisp.c (syms_of_xdisp): Doc clarification (bug#15657).
-
- 07 Feb, 2014 1 commit
-
-
Martin Rudalics authored
* xdisp.c (window_box_width): Don't return less than zero. (window_box_left_offset, window_box_right_offset): Don't return more than the window's pixel width.
-
- 05 Feb, 2014 3 commits
-
-
Martin Rudalics authored
-
Paul Eggert authored
-
Martin Rudalics authored
* xdisp.c (note_mouse_highlight): When entering a margin area show a non-text cursor (Bug#16647).
-
- 04 Feb, 2014 1 commit
-
-
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.
-
- 28 Jan, 2014 1 commit
-
-
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.
-
- 25 Jan, 2014 1 commit
-
-
Stefan Monnier authored
-