aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2009-06-27 03:50:23 +0000
committerChong Yidong2009-06-27 03:50:23 +0000
commitcd9b5e16ff0bd343bd268c4fe2cb41f3a952a2f4 (patch)
tree869f992bf5eb593503bb4f1b8d37480542043602 /src
parent920b116e6764f09a113eda7b083afa6b57fe7633 (diff)
downloademacs-cd9b5e16ff0bd343bd268c4fe2cb41f3a952a2f4.tar.gz
emacs-cd9b5e16ff0bd343bd268c4fe2cb41f3a952a2f4.zip
* xdisp.c (mouse_face_from_buffer_pos): Fix detection of
truncation glyphs (Bug#3686).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xdisp.c10
2 files changed, 14 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2572c3ea13e..65cd4fa62b6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,10 +1,15 @@
12009-06-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4 truncation glyphs (Bug#3686).
5
12009-06-27 Glenn Morris <rgm@gnu.org> 62009-06-27 Glenn Morris <rgm@gnu.org>
2 7
3 * m/pmax.h: Restore file, with only netbsd portions. 8 * m/pmax.h: Restore file, with only netbsd portions.
4 9
52009-06-26 David Reitter <david.reitter@gmail.com> 102009-06-26 David Reitter <david.reitter@gmail.com>
6 11
7 * nsterm.m (keydown): avoid infinite loop 12 * nsterm.m (keydown): Avoid infinite loop.
8 13
92009-06-26 Peter Jolly <peter@jollys.org> (tiny change) 142009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
10 15
diff --git a/src/xdisp.c b/src/xdisp.c
index 68f2a4fc7b0..5fc634b20ea 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -22991,7 +22991,10 @@ mouse_face_from_buffer_pos (Lisp_Object window,
22991 22991
22992 /* Skip truncation glyphs at the start of the glyph row. */ 22992 /* Skip truncation glyphs at the start of the glyph row. */
22993 if (row->displays_text_p) 22993 if (row->displays_text_p)
22994 for (; glyph < end && INTEGERP (glyph->object); ++glyph) 22994 for (; glyph < end
22995 && INTEGERP (glyph->object)
22996 && glyph->charpos < 0;
22997 ++glyph)
22995 x += glyph->pixel_width; 22998 x += glyph->pixel_width;
22996 22999
22997 /* Scan the glyph row, stopping before BEFORE_STRING or 23000 /* Scan the glyph row, stopping before BEFORE_STRING or
@@ -23039,7 +23042,10 @@ mouse_face_from_buffer_pos (Lisp_Object window,
23039 23042
23040 /* Skip truncation glyphs at the start of the row. */ 23043 /* Skip truncation glyphs at the start of the row. */
23041 if (row->displays_text_p) 23044 if (row->displays_text_p)
23042 for (; glyph < end && INTEGERP (glyph->object); ++glyph) 23045 for (; glyph < end
23046 && INTEGERP (glyph->object)
23047 && glyph->charpos < 0;
23048 ++glyph)
23043 x += glyph->pixel_width; 23049 x += glyph->pixel_width;
23044 23050
23045 /* Scan the glyph row, stopping at END_CHARPOS or when we encounter 23051 /* Scan the glyph row, stopping at END_CHARPOS or when we encounter