diff src/undo.c @ 284:558f606b08ae r21-0b40

Import from CVS: tag r21-0b40
author cvs
date Mon, 13 Aug 2007 10:34:13 +0200
parents 2c611d1463a6
children 6240c7796c7a
line wrap: on
line diff
--- a/src/undo.c	Mon Aug 13 10:33:19 2007 +0200
+++ b/src/undo.c	Mon Aug 13 10:34:13 2007 +0200
@@ -76,27 +76,28 @@
     return (0);
 
   if (NILP (last_undo_buffer) || b != XBUFFER (last_undo_buffer))
-  {
-    undo_boundary (b);
-    XSETBUFFER (last_undo_buffer, b);
-  }
+    {
+      undo_boundary (b);
+      XSETBUFFER (last_undo_buffer, b);
+    }
 
   /* Allocate a cons cell to be the undo boundary after this command.  */
   if (hack_pending_boundary && NILP (pending_boundary))
     pending_boundary = Fcons (Qnil, Qnil);
 
   if (BUF_MODIFF (b) <= BUF_SAVE_MODIFF (b))
-  {
-    /* Record that an unmodified buffer is about to be changed.
-       Record the file modification date so that when undoing this entry
-       we can tell whether it is obsolete because the file was saved again.  */
-    b->undo_list
-      = Fcons (Fcons (Qt,
-                      Fcons (make_int ((b->modtime >> 16) & 0xffff),
-                             make_int (b->modtime & 0xffff))),
-               b->undo_list);
-  }
-  return (1);
+    {
+      /* Record that an unmodified buffer is about to be changed.
+	 Record the file modification date so that when undoing this
+	 entry we can tell whether it is obsolete because the file was
+	 saved again.  */
+      b->undo_list
+	= Fcons (Fcons (Qt,
+			Fcons (make_int ((b->modtime >> 16) & 0xffff),
+			       make_int (b->modtime & 0xffff))),
+		 b->undo_list);
+    }
+  return 1;
 }
 
 
@@ -525,7 +526,7 @@
 	    {
 	    rotten:
 	      signal_simple_continuable_error
-		("Something rotten in the state of undo:", next);
+		("Something rotten in the state of undo", next);
 	    }
         }
       arg--;