[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r106232: Fix bug #9902 with crash cau
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r106232: Fix bug #9902 with crash caused by clearing mouse highlight. |
Date: |
Sat, 29 Oct 2011 11:36:42 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 106232
fixes bug(s): http://debbugs.gnu.org/9902
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2011-10-29 11:36:42 +0200
message:
Fix bug #9902 with crash caused by clearing mouse highlight.
src/xdisp.c (note_mouse_highlight): Don't clear mouse highlight if
hlinfo->mouse_face_window is nil.
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-10-29 08:54:06 +0000
+++ b/src/ChangeLog 2011-10-29 09:36:42 +0000
@@ -1,3 +1,8 @@
+2011-10-29 Eli Zaretskii <address@hidden>
+
+ * xdisp.c (note_mouse_highlight): Don't clear mouse highlight if
+ hlinfo->mouse_face_window is nil. (Bug#9902)
+
2011-10-29 Andreas Schwab <address@hidden>
* minibuf.c (read_minibuf_noninteractive): Allow reading empty
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2011-10-28 18:41:09 +0000
+++ b/src/xdisp.c 2011-10-29 09:36:42 +0000
@@ -26835,14 +26835,14 @@
/* Which window is that in? */
window = window_from_coordinates (f, x, y, &part, 1);
- /* 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))
+ 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)))
clear_mouse_face (hlinfo);
/* Not on a window -> return. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r106232: Fix bug #9902 with crash caused by clearing mouse highlight.,
Eli Zaretskii <=