# HG changeset patch # User Richard M. Stallman # Date 714207642 0 # Node ID f7e3bac23a06c9ce8631a1419913189faf8cbc71 # Parent 22f807391becf555be70ba8e132b6436c82a735f (internal_self_insert): Ignore value of Fexpand_abbrev; instead, check whether buf is modified when it returns. diff -r 22f807391bec -r f7e3bac23a06 src/cmds.c --- a/src/cmds.c Wed Aug 19 07:00:25 1992 +0000 +++ b/src/cmds.c Wed Aug 19 07:00:42 1992 +0000 @@ -256,6 +256,12 @@ return Qnil; } +/* Insert character C1. If NOAUTOFILL is nonzero, don't do autofill + even if it is enabled. + + If this insertion is suitable for direct output (completely simple), + return 0. A value of 1 indicates this *might* not have been simple. */ + internal_self_insert (c1, noautofill) char c1; int noautofill; @@ -284,8 +290,11 @@ && NILP (current_buffer->read_only) && point > BEGV && SYNTAX (FETCH_CHAR (point - 1)) == Sword) { - tem = Fexpand_abbrev (); - if (!NILP (tem)) + 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) hairy = 1; } if ((c == ' ' || c == '\n')