diff src/indent.c @ 6067:25c4f2fe81d1

(compute_motion, vmotion): Use Fget_char_property to test for invisibility.
author Karl Heuer <kwzh@gnu.org>
date Thu, 24 Feb 1994 20:01:13 +0000
parents 35526ee8b790
children a3e4e8ac2a33
line wrap: on
line diff
--- a/src/indent.c	Thu Feb 24 20:00:34 1994 +0000
+++ b/src/indent.c	Thu Feb 24 20:01:13 1994 +0000
@@ -474,7 +474,7 @@
       while (pos == next_invisible && pos < to)
 	{
 	  XFASTINT (position) = pos;
-	  prop = Fget_text_property (position,
+	  prop = Fget_char_property (position,
 				     Qinvisible,
 				     Fcurrent_buffer ());
 	  {
@@ -663,9 +663,9 @@
 		      && indented_beyond_p (prevline, selective))
 #ifdef USE_TEXT_PROPERTIES
 		     /* watch out for newlines with `invisible' property */
-		     || ! NILP (Fget_text_property (XFASTINT (prevline),
+		     || ! NILP (Fget_char_property (XFASTINT (prevline),
 						    Qinvisible,
-						    Fcurrent_buffer ()))
+						    window))
 #endif
 		 ))
 	    prevline = find_next_newline (prevline - 1, -1);
@@ -700,9 +700,9 @@
 		   || ! indented_beyond_p (prevline, selective))
 #ifdef USE_TEXT_PROPERTIES
 		  /* watch out for newlines with `invisible' property */
-		  && NILP (Fget_text_property (XFASTINT (prevline),
+		  && NILP (Fget_char_property (XFASTINT (prevline),
 					       Qinvisible,
-					       Fcurrent_buffer ()))
+					       window))
 #endif
 		  ))
 	    break;