]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fnewline): If we don't do the first SET_PT,
authorRichard M. Stallman <rms@gnu.org>
Wed, 11 Aug 1993 19:09:15 +0000 (19:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 11 Aug 1993 19:09:15 +0000 (19:09 +0000)
clear flag, so we don't do the second SET_PT.

src/cmds.c

index 43c919d7c3fb61e1fe6b442502e84ff3a05a808c..fc0a174198f15148c8835d8b249b432ada8609fb 100644 (file)
@@ -253,14 +253,17 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long.")
      features all do nothing in that case.  */
 
   flag = point > BEGV && FETCH_CHAR (point - 1) == '\n';
-  if (flag)
-    /* We cannot use this optimization if properties change
-       in the vicinity.
-       ??? We need to check for change hook properties, etc.  */
 #ifdef USE_TEXT_PROPERTIES
-    if (point - 1 > BEGV && ! property_change_between_p (point - 2, point))
+  /* We cannot use this optimization if properties change
+     in the vicinity.
+     ??? We need to check for change hook properties, etc.  */
+  if (flag)
+    if (! (point - 1 > BEGV && ! property_change_between_p (point - 2, point)))
+      flag = 0;
 #endif
-      SET_PT (point - 1);
+
+  if (flag)
+    SET_PT (point - 1);
 
   while (XINT (arg) > 0)
     {