changeset 48025:77df00035231

(note_mouse_highlight): Don't use mouse-face if hidden.
author Kim F. Storm <storm@cua.dk>
date Sat, 26 Oct 2002 23:53:07 +0000
parents d9e24006f623
children d876c83f972b
files src/macterm.c src/w32term.c src/xterm.c
diffstat 3 files changed, 18 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Sat Oct 26 23:52:10 2002 +0000
+++ b/src/macterm.c	Sat Oct 26 23:53:07 2002 +0000
@@ -7330,7 +7330,8 @@
 
 	      dpyinfo->mouse_face_face_id
 		= face_at_buffer_position (w, pos, 0, 0,
-					   &ignore, pos + 1, 1);
+					   &ignore, pos + 1,
+					   !dpyinfo->mouse_face_hidden);
 
 	      /* Display it as active.  */
 	      show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
@@ -7372,7 +7373,8 @@
 	      if (BUFFERP (object))
 		dpyinfo->mouse_face_face_id
 		  = face_at_buffer_position (w, pos, 0, 0,
-					     &ignore, pos + 1, 1);
+					     &ignore, pos + 1,
+					     !dpyinfo->mouse_face_hidden);
 
 	      /* Display it as active.  */
 	      show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
@@ -7451,7 +7453,8 @@
 		  dpyinfo->mouse_face_window = window;
 		  dpyinfo->mouse_face_face_id
 		    = face_at_buffer_position (w, pos, 0, 0,
-					       &ignore, pos + 1, 1);
+					       &ignore, pos + 1,
+					       !dpyinfo->mouse_face_hidden);
 
 		  /* Display it as active.  */
 		  show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
--- a/src/w32term.c	Sat Oct 26 23:52:10 2002 +0000
+++ b/src/w32term.c	Sat Oct 26 23:53:07 2002 +0000
@@ -6816,7 +6816,8 @@
 
 	      dpyinfo->mouse_face_face_id
 		= face_at_buffer_position (w, pos, 0, 0,
-					   &ignore, pos + 1, 1);
+					   &ignore, pos + 1,
+					   !dpyinfo->mouse_face_hidden);
 
 	      /* Display it as active.  */
 	      show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
@@ -6858,7 +6859,8 @@
 	      if (BUFFERP (object))
 		dpyinfo->mouse_face_face_id
 		  = face_at_buffer_position (w, pos, 0, 0,
-					     &ignore, pos + 1, 1);
+					     &ignore, pos + 1,
+					     !dpyinfo->mouse_face_hidden);
 
 	      /* Display it as active.  */
 	      show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
@@ -6937,7 +6939,8 @@
 		  dpyinfo->mouse_face_window = window;
 		  dpyinfo->mouse_face_face_id
 		    = face_at_buffer_position (w, pos, 0, 0,
-					       &ignore, pos + 1, 1);
+					       &ignore, pos + 1,
+					       !dpyinfo->mouse_face_hidden);
 
 		  /* Display it as active.  */
 		  show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
--- a/src/xterm.c	Sat Oct 26 23:52:10 2002 +0000
+++ b/src/xterm.c	Sat Oct 26 23:53:07 2002 +0000
@@ -7257,7 +7257,8 @@
 	      dpyinfo->mouse_face_window = window;
 	      dpyinfo->mouse_face_face_id
 		= face_at_buffer_position (w, pos, 0, 0,
-					   &ignore, pos + 1, 1);
+					   &ignore, pos + 1,
+					   !dpyinfo->mouse_face_hidden);
 
 	      /* Display it as active.  */
 	      show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
@@ -7299,7 +7300,8 @@
 	      if (BUFFERP (object))
 		dpyinfo->mouse_face_face_id
 		  = face_at_buffer_position (w, pos, 0, 0,
-					     &ignore, pos + 1, 1);
+					     &ignore, pos + 1,
+					     !dpyinfo->mouse_face_hidden);
 
 	      /* Display it as active.  */
 	      show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
@@ -7378,7 +7380,8 @@
 		  dpyinfo->mouse_face_window = window;
 		  dpyinfo->mouse_face_face_id
 		    = face_at_buffer_position (w, pos, 0, 0,
-					       &ignore, pos + 1, 1);
+					       &ignore, pos + 1,
+					       !dpyinfo->mouse_face_hidden);
 
 		  /* Display it as active.  */
 		  show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);