changeset 1098:79f020f34683

(internal_self_insert): Assume Fexpand_abbrev expanded something if it incremented MODIFF.
author Richard M. Stallman <rms@gnu.org>
date Fri, 11 Sep 1992 23:34:08 +0000
parents d9efc1c88574
children 178215fd8a20
files src/cmds.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/cmds.c	Fri Sep 11 23:33:17 1992 +0000
+++ b/src/cmds.c	Fri Sep 11 23:34:08 1992 +0000
@@ -290,11 +290,12 @@
       && NILP (current_buffer->read_only)
       && point > BEGV && SYNTAX (FETCH_CHAR (point - 1)) == Sword)
     {
+      int modiff = MODIFF;
       Fexpand_abbrev ();
       /* We can't trust the value of Fexpand_abbrev,
-	 but if the buffer is now changed, this is "hairy"
-	 and not suitable for direct output.  */
-      if (MODIFF <= current_buffer->save_modified)
+	 but if Fexpand_abbrev changed the buffer,
+	 assume it expanded something.  */
+      if (MODIFF != modiff)
 	hairy = 1;
     }
   if ((c == ' ' || c == '\n')