[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99672: * xdisp.c (pos_visible_p):
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99672: * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730). |
Date: |
Wed, 24 Mar 2010 17:25:46 -0400 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99672
committer: Chong Yidong <address@hidden>
branch nick: emacs-23
timestamp: Wed 2010-03-24 17:25:46 -0400
message:
* xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-03-22 07:26:56 +0000
+++ b/src/ChangeLog 2010-03-24 21:25:46 +0000
@@ -1,3 +1,7 @@
+2010-03-24 Chong Yidong <address@hidden>
+
+ * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
+
2010-03-20 Jan Djärv <address@hidden>
* frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2010-02-26 01:17:28 +0000
+++ b/src/xdisp.c 2010-03-24 21:25:46 +0000
@@ -1375,33 +1375,7 @@
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! */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-23 r99672: * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).,
Chong Yidong <=