# HG changeset patch # User Karl Heuer # Date 832688996 0 # Node ID b455f3f778238693786ee6852457630d2287f948 # Parent bd56cdc4d07b48b3955cca8e03b14ebb7a91b715 (internal_self_insert): Don't return 2 for auto-fill unless the auto_fill_function returns non-nil. diff -r bd56cdc4d07b -r b455f3f77823 src/cmds.c --- a/src/cmds.c Mon May 20 21:07:10 1996 +0000 +++ b/src/cmds.c Tue May 21 14:29:56 1996 +0000 @@ -331,16 +331,19 @@ && !noautofill && !NILP (current_buffer->auto_fill_function)) { + Lisp_Object tem; + insert_and_inherit (&c1, 1); if (c1 == '\n') /* After inserting a newline, move to previous line and fill */ /* that. Must have the newline in place already so filling and */ /* justification, if any, know where the end is going to be. */ SET_PT (point - 1); - call0 (current_buffer->auto_fill_function); + tem = call0 (current_buffer->auto_fill_function); if (c1 == '\n') SET_PT (point + 1); - hairy = 2; + if (!NILP (tem)) + hairy = 2; } else insert_and_inherit (&c1, 1);