diff options
author | Richard M. Stallman <rms@gnu.org> | 1992-09-11 23:34:08 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1992-09-11 23:34:08 +0000 |
commit | 0c61a95ee3911dae1f41b8de6747a3a0efd781e1 (patch) | |
tree | 9c50eca8b99eff590c6892d454383615a0e765c6 /src/cmds.c | |
parent | 5b5402cebda070243f1232f72341f5623a18f01e (diff) | |
download | emacs-0c61a95ee3911dae1f41b8de6747a3a0efd781e1.tar.gz |
(internal_self_insert): Assume Fexpand_abbrev expanded
something if it incremented MODIFF.
Diffstat (limited to 'src/cmds.c')
-rw-r--r-- | src/cmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c index 691a60f5cc0..c8e9bfd76ec 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -290,11 +290,12 @@ internal_self_insert (c1, noautofill) && 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') |