# HG changeset patch # User Richard M. Stallman # Date 716254448 0 # Node ID 79f020f346839f3e0984481e2874d8b5f429386e # Parent d9efc1c885740ebfa04c7f6bfaca45a5ceb62d33 (internal_self_insert): Assume Fexpand_abbrev expanded something if it incremented MODIFF. diff -r d9efc1c88574 -r 79f020f34683 src/cmds.c --- 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')