aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2011-10-28 23:17:09 +0800
committerChong Yidong2011-10-28 23:17:09 +0800
commitd3d0842fe219892079cac179ab0843792f29cf1a (patch)
tree4e3b8bdacdfabbae7d93ab376099b1910eed6258 /src
parent8cedc5acf983ed7736e8ad59528dbbf62bde7ade (diff)
downloademacs-d3d0842fe219892079cac179ab0843792f29cf1a.tar.gz
emacs-d3d0842fe219892079cac179ab0843792f29cf1a.zip
* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
See: http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg01202.html
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c11
2 files changed, 11 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 21ec98fa217..da0ba4b11f2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-10-28 Chong Yidong <cyd@gnu.org>
2
3 * xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
4
12011-10-28 Dan Nicolaescu <dann@ics.uci.edu> 52011-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * window.c (make_window): Initialize phys_cursor_on_p. 7 * window.c (make_window): Initialize phys_cursor_on_p.
diff --git a/src/xdisp.c b/src/xdisp.c
index 0757feed1d9..296b2d13219 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -26835,11 +26835,14 @@ note_mouse_highlight (struct frame *f, int x, int y)
26835 /* Which window is that in? */ 26835 /* Which window is that in? */
26836 window = window_from_coordinates (f, x, y, &part, 1); 26836 window = window_from_coordinates (f, x, y, &part, 1);
26837 26837
26838 /* If we were displaying active text in another window, clear that. 26838 /* If displaying active text in another window, clear that. */
26839 Also clear if we move out of text area in same window. */
26840 if (! EQ (window, hlinfo->mouse_face_window) 26839 if (! EQ (window, hlinfo->mouse_face_window)
26841 || (part != ON_TEXT && part != ON_MODE_LINE && part != ON_HEADER_LINE 26840 /* Also clear if we move out of text area in same window. */
26842 && !NILP (hlinfo->mouse_face_window))) 26841 || (!NILP (hlinfo->mouse_face_window)
26842 && !NILP (window)
26843 && part != ON_TEXT
26844 && part != ON_MODE_LINE
26845 && part != ON_HEADER_LINE))
26843 clear_mouse_face (hlinfo); 26846 clear_mouse_face (hlinfo);
26844 26847
26845 /* Not on a window -> return. */ 26848 /* Not on a window -> return. */