From: Karl Heuer Date: Tue, 21 May 1996 14:29:56 +0000 (+0000) Subject: (internal_self_insert): Don't return 2 for auto-fill X-Git-Tag: emacs-19.34~600 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=76bb6dbb3e78548cb7323da2602779b1bf1d1106;p=emacs.git (internal_self_insert): Don't return 2 for auto-fill unless the auto_fill_function returns non-nil. --- diff --git a/src/cmds.c b/src/cmds.c index 3bebb798dd5..5c0f7cd4751 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -331,16 +331,19 @@ internal_self_insert (c1, noautofill) && !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);