]> code.delx.au - gnu-emacs/commitdiff
Revert last commit.
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Oct 2011 10:02:39 +0000 (12:02 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Oct 2011 10:02:39 +0000 (12:02 +0200)
src/ChangeLog
src/xdisp.c

index 69c202faa4cddae8900eb33545a85657bff32d7d..5a7d66ceb1745e7bdc3571d165ff59646e643689 100644 (file)
@@ -1,8 +1,3 @@
-2011-10-29  Eli Zaretskii  <eliz@gnu.org>
-
-       * xdisp.c (note_mouse_highlight): Don't clear mouse highlight if
-       hlinfo->mouse_face_window is nil.  (Bug#9902)
-
 2011-10-29  Andreas Schwab  <schwab@linux-m68k.org>
 
        * minibuf.c (read_minibuf_noninteractive): Allow reading empty
index 3cce8012da06041fc5757829d176ee2cefb474b6..22f7c2bbd26e738ae2ae16a60810fec49e73239b 100644 (file)
@@ -26835,14 +26835,14 @@ note_mouse_highlight (struct frame *f, int x, int y)
   /* Which window is that in?  */
   window = window_from_coordinates (f, x, y, &part, 1);
 
-  if (!NILP (hlinfo->mouse_face_window)
-      /* If displaying active text in another window, clear that.  */
-      && (!EQ (window, hlinfo->mouse_face_window)
-         /* Also clear if we move out of text area in same window.  */
-         || (!NILP (window)
-             && part != ON_TEXT
-             && part != ON_MODE_LINE
-             && part != ON_HEADER_LINE)))
+  /* If displaying active text in another window, clear that.  */
+  if (! EQ (window, hlinfo->mouse_face_window)
+      /* Also clear if we move out of text area in same window.  */
+      || (!NILP (hlinfo->mouse_face_window)
+         && !NILP (window)
+         && part != ON_TEXT
+         && part != ON_MODE_LINE
+         && part != ON_HEADER_LINE))
     clear_mouse_face (hlinfo);
 
   /* Not on a window -> return.  */