diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-03-24 17:25:46 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-03-24 17:25:46 -0400 |
commit | f79a01db3876557cde3112ca87381164ceac7741 (patch) | |
tree | 4a7159a955da4fa313a94f846281e30c9a8419f4 | |
parent | d0fba1745fc6b4a9b078957cae994ff694ba5efe (diff) | |
download | emacs-f79a01db3876557cde3112ca87381164ceac7741.tar.gz |
* xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/xdisp.c | 28 |
2 files changed, 5 insertions, 27 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2609125f9fe..3f22b7eaea9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-03-24 Chong Yidong <cyd@stupidchicken.com> + + * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730). + 2010-03-20 Jan Djärv <jan.h.d@swipnet.se> * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736). diff --git a/src/xdisp.c b/src/xdisp.c index 9ece458e77e..54f467c9f8f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1375,33 +1375,7 @@ pos_visible_p (w, charpos, x, y, rtop, rbot, rowh, vpos) visible_p = 1; if (visible_p) { - if (it_method == GET_FROM_BUFFER) - { - Lisp_Object window, prop; - - XSETWINDOW (window, w); - prop = Fget_char_property (make_number (charpos), - Qinvisible, window); - - /* If charpos coincides with invisible text covered with an - ellipsis, use the first glyph of the ellipsis to compute - the pixel positions. */ - if (TEXT_PROP_MEANS_INVISIBLE (prop) == 2) - { - struct glyph_row *row = it.glyph_row; - struct glyph *glyph = row->glyphs[TEXT_AREA]; - struct glyph *end = glyph + row->used[TEXT_AREA]; - int x = row->x; - - for (; glyph < end - && (!BUFFERP (glyph->object) - || glyph->charpos < charpos); - glyph++) - x += glyph->pixel_width; - top_x = x; - } - } - else if (it_method == GET_FROM_DISPLAY_VECTOR) + if (it_method == GET_FROM_DISPLAY_VECTOR) { /* We stopped on the last glyph of a display vector. Try and recompute. Hack alert! */ |