changeset 4561:f8a991076926

(Fnewline): If we don't do the first SET_PT, clear flag, so we don't do the second SET_PT.
author Richard M. Stallman <rms@gnu.org>
date Wed, 11 Aug 1993 19:09:15 +0000
parents 106e0040381f
children 477fbf60722b
files src/cmds.c
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/cmds.c	Wed Aug 11 18:21:49 1993 +0000
+++ b/src/cmds.c	Wed Aug 11 19:09:15 1993 +0000
@@ -253,14 +253,17 @@
      features all do nothing in that case.  */
 
   flag = point > BEGV && FETCH_CHAR (point - 1) == '\n';
+#ifdef USE_TEXT_PROPERTIES
+  /* We cannot use this optimization if properties change
+     in the vicinity.
+     ??? We need to check for change hook properties, etc.  */
   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))
+    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)
     {