aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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')