aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-11 23:34:08 +0000
committerRichard M. Stallman1992-09-11 23:34:08 +0000
commitee8caabbade460590867da42cc0b2861163cedf7 (patch)
tree71edd821fecaa461809f234a967136300fc8b732
parentf1bed6d8b81aa83412959e5d1b4aca29d3b4940e (diff)
downloademacs-ee8caabbade460590867da42cc0b2861163cedf7.tar.gz
emacs-ee8caabbade460590867da42cc0b2861163cedf7.zip
(internal_self_insert): Assume Fexpand_abbrev expanded
something if it incremented MODIFF.
-rw-r--r--src/cmds.c7
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)
290 && NILP (current_buffer->read_only) 290 && NILP (current_buffer->read_only)
291 && point > BEGV && SYNTAX (FETCH_CHAR (point - 1)) == Sword) 291 && point > BEGV && SYNTAX (FETCH_CHAR (point - 1)) == Sword)
292 { 292 {
293 int modiff = MODIFF;
293 Fexpand_abbrev (); 294 Fexpand_abbrev ();
294 /* We can't trust the value of Fexpand_abbrev, 295 /* We can't trust the value of Fexpand_abbrev,
295 but if the buffer is now changed, this is "hairy" 296 but if Fexpand_abbrev changed the buffer,
296 and not suitable for direct output. */ 297 assume it expanded something. */
297 if (MODIFF <= current_buffer->save_modified) 298 if (MODIFF != modiff)
298 hairy = 1; 299 hairy = 1;
299 } 300 }
300 if ((c == ' ' || c == '\n') 301 if ((c == ' ' || c == '\n')