- 26 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (redisplay_window): Don't force window start if point will be invisible in the resulting window.
-
- 25 Aug, 2011 3 commits
-
-
Eli Zaretskii authored
src/xdisp.c (try_cursor_movement): Don't advance `row' beyond the last row of the window.
-
Eli Zaretskii authored
src/xdisp.c (try_cursor_movement): Check for the need to scroll more accurately, and prefer exact match for point under bidi.
-
Eli Zaretskii authored
src/xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when the display spec is of the form `(space ...)'. (handle_display_spec): Return the value returned by handle_single_display_spec, not just 1 or zero. (handle_single_display_spec): If the display spec is of the form `(space ...)', and specifies display in the text area, return 2 rather than 1. src/dispextern.h (struct bidi_it): Rename the disp_prop_p member into disp_prop; all users changed. src/bidi.c (bidi_fetch_char): If compute_display_string_pos returns DISP_PROP = 2, substitute the u+2029 PARAGRAPH SEPARATOR character for the text covered by the display property. lisp/buff-menu.el (Buffer-menu-buffer+size): Remove calls to bidi-string-mark-left-to-right; they are unnecessary now. doc/lispref/display.texi (Specified Space): Mention that `space' specs influence bidi reordering. (Bidirectional Display): Explain how to use `(space . PROPS)' for separating fields with bidirectional content.
-
- 24 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its glyph represents a newline and point is on that newline. Fixes cursor positioning on the newline at EOL of R2L text within L2R paragraph, and vice versa. (try_cursor_movement): Check continued rows, in addition to continuation rows. Fixes unwarranted scroll when point enters a continued line of R2L text within an L2R paragraph, or vice versa. (cursor_row_p): Consider the case of point being equal to MATRIX_ROW_END_CHARPOS. Prevents cursor being stuck when moving from the end of a short line to the beginning of a continued line of R2L text within L2R paragraph. (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for composed characters.
-
Eli Zaretskii authored
src/xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte buffers, return left-to-right. doc/lispref/display.texi (Bidirectional Display): Document return value in buffers that are not bidi-reordered for display, and in unibyte buffers.
-
- 23 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (redisplay_window): When computing centering_position, account for the height of the header line.
-
Eli Zaretskii authored
src/xdisp.c (x_produce_glyphs): Set it->nglyphs to 1. Fixes pixel coordinates reported by pos-visible-in-window-p for a composed character in column zero.
-
- 22 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (BUFFER_POS_REACHED_P): If this is a composition, consider it a hit if to_charpos is anywhere in the range of the composed buffer positions.
-
- 19 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (RECORD_MAX_MIN_POS): If the display element comes from a composition, take its buffer position from IT->cmp_it.charpos.
-
- 16 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Don't accept a previous candidate if it fails the cursor_row_p test. Fixes cursor positioning at ZV.
-
- 15 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Don't reset pixel coordinates of the iterator when restoring from ppos_it.
-
- 14 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Don't invoke IT_RESET_X_ASCENT_DESCENT when iterator position was restored from ppos_it. Fixes vertical cursor motion when line beginning is covered by an image.
-
Paul Eggert authored
-
- 12 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (iterate_out_of_display_property): xassert that IT->position is set to within IT->object's boundaries. Break from the loop as soon as EOB is reached; avoids infloops in redisplay when IT->position is set up wrongly due to some bug. Set IT->current to match the bidi iterator unconditionally. (push_display_prop): Allow GET_FROM_STRING as IT->method on entry; avoids crashes when line/wrap-prefix is set on a display string. Force push_it to save on the stack the current buffer/string position, to be restored by pop_it. Fix flags in the iterator structure wrt the object coming from a display property, as `line-prefix' and `wrap-prefix' are not ``replacing'' properties.
-
- 08 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
-
Eli Zaretskii authored
src/xdisp.c (forward_to_next_line_start): Allow to use the no-display-properties-and-no-overlays under bidi display.
-
- 06 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Fix vertical-motion in a buffer with word-wrap under bidirectional display.
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Fix cursor positioning when a display property strides EOL and includes a newline, as in longlines-mode. src/bidi.c (bidi_unshelve_cache): Don't reset the cache if JUST_FREE is non-zero, even if the data buffer is NULL. Fixes a crash in vertical-motion with longlines-mode.
-
- 05 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
Add diagnostic facility for monitoring memory allocated for cache shelving. src/xdisp.c (display_line): Release buffer allocated for shelved bidi cache. (Bug#9221) src/bidi.c (bidi_shelve_cache, bidi_unshelve_cache): Track total amount allocated this far in `bidi_cache_total_alloc'. (bidi_unshelve_cache): Accept an additional argument JUST_FREE; if non-zero, only free the data buffer without restoring the cache contents. All callers changed. src/dispextern.h (bidi_unshelve_cache): Update prototype. src/xdisp.c (SAVE_IT, pos_visible_p, move_it_in_display_line_to) (move_it_in_display_line, move_it_to) (move_it_vertically_backward, move_it_by_lines): Replace the call to xfree to an equivalent call to bidi_unshelve_cache. (move_it_in_display_line_to): Fix logic of returning MOVE_POS_MATCH_OR_ZV in the bidi case.
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Prefer the candidate glyph that came from a string character with a `cursor' property.
-
- 03 Aug, 2011 2 commits
-
-
Paul Eggert authored
-
Paul Eggert authored
-
- 02 Aug, 2011 1 commit
-
-
Eli Zaretskii authored
src/dispextern.h (struct bidi_it): New member disp_prop_p. src/xdisp.c: Remove one-slot cache of display string positions. (compute_display_string_pos): Accept an additional argument DISP_PROP_P; callers changed. Scan at most 5K characters forward for a display string or property. If found, set DISP_PROP_P non-zero. src/bidi.c (bidi_fetch_char): Accept an additional argument DISP_PROP_P, and pass it to compute_display_string_pos. Only handle text covered by a display string if DISP_PROP_P is returned non-zero. All callers of bidi_fetch_char changed.
-
- 01 Aug, 2011 2 commits
-
-
Eli Zaretskii authored
-
Eli Zaretskii authored
src/xdisp.c (forward_to_next_line_start): Accept additional argument BIDI_IT_PREV, and store into it the state of the bidi iterator had on the newline. (reseat_at_next_visible_line_start): Use the bidi iterator state returned by forward_to_next_line_start to restore the state of it->bidi_it after backing up to previous newline. (Bug#9212)
-
- 28 Jul, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (compute_display_string_pos): Don't use cached display string position if the buffer had its restriction changed.
-
- 24 Jul, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (compute_display_string_pos): Fix logic of caching previous display string position. Initialize cached_prev_pos to -1.
-
- 23 Jul, 2011 2 commits
-
-
Eli Zaretskii authored
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Record the best matching position for TO_CHARPOS while scanning the line, and restore it on exit if none of the characters scanned was an exact match. Fixes vertical-motion and pos-visible-in-window-p when exact match is impossible due to invisible text, and the lines are truncated.
-
- 22 Jul, 2011 2 commits
-
-
Eli Zaretskii authored
src/xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object is an integer, which is important for empty lines.
-
Eli Zaretskii authored
src/xdisp.c (compute_stop_pos_backwards): New function. (handle_stop_backwards): Revert last change. (next_element_from_buffer): Call compute_stop_pos_backwards to find a suitable prev_stop when we find ourselves before base_level_stop. Remove the funky search for 1000 character positions back.
-
- 19 Jul, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (reseat): Don't look for prev_stop, as that could mean a very long run. (next_element_from_buffer): When iterator oversteps prev_pos backwards, don't search for a new prev_stop more than 1000 characters back. (handle_stop_backwards): Don't assume that CHARPOS is necessarily a stop_pos. (compute_display_string_pos): Check also BUF_OVERLAY_MODIFF for a match, when testing the cached display string position for applicability.
-
- 18 Jul, 2011 1 commit
-
-
Stefan Monnier authored
to compare Lisp_Objects. * src/gnutls.c (syms_of_gnutls): Rename Vgnutls_log_level to global_gnutls_log_level, don't mistake it for a Lisp_Object. (init_gnutls_functions, emacs_gnutls_handle_error): Fix up uses.
-
- 16 Jul, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c <cached_disp_pos, cached_disp_buffer, cached_disp_modiff>: Cache for last found display string position. (compute_display_string_pos): Return the cached position if asked about the same buffer.
-
- 15 Jul, 2011 1 commit
-
-
Eli Zaretskii authored
src/xdisp.c (move_it_in_display_line_to): Fix vertical motion with bidi redisplay when a line includes both an image and is truncated.
-
- 14 Jul, 2011 1 commit
-
-
Paul Eggert authored
-
- 12 Jul, 2011 1 commit
-
-
Chong Yidong authored
-
- 11 Jul, 2011 1 commit
-
-
Lars Magne Ingebrigtsen authored
Fixes: debbugs:3320
-
- 10 Jul, 2011 1 commit
-
-
Johan Bockgård authored
-