Commit 4d94dd9a authored by Richard M. Stallman's avatar Richard M. Stallman

(internal_self_insert): Handle weird auto-fill-function.

parent 3715419e
2006-02-12 Richard M. Stallman <rms@gnu.org>
* cmds.c (internal_self_insert): Handle weird auto-fill-function.
2006-02-11 Eli Zaretskii <eliz@gnu.org>
* keyboard.c (Venable_disabled_menus_and_buttons): New variable.
......
......@@ -528,7 +528,8 @@ internal_self_insert (c, noautofill)
justification, if any, know where the end is going to be. */
SET_PT_BOTH (PT - 1, PT_BYTE - 1);
tem = call0 (current_buffer->auto_fill_function);
if (c == '\n')
/* Test PT < ZV in case the auto-fill-function is strange. */
if (c == '\n' && PT < ZV)
SET_PT_BOTH (PT + 1, PT_BYTE + 1);
if (!NILP (tem))
hairy = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment