aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2006-02-13 02:17:15 +0000
committerRichard M. Stallman2006-02-13 02:17:15 +0000
commit4d94dd9a25e291ad9e59c3f44d40e5a7317ac63d (patch)
treec0c0616ef828d3a93e0057a9b7516b061500237c /src
parent3715419e9ee01c49e2b846fa8322c80db5629d6d (diff)
downloademacs-4d94dd9a25e291ad9e59c3f44d40e5a7317ac63d.tar.gz
emacs-4d94dd9a25e291ad9e59c3f44d40e5a7317ac63d.zip
(internal_self_insert): Handle weird auto-fill-function.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/cmds.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8c1fffe9911..bd6d28aad6a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12006-02-12 Richard M. Stallman <rms@gnu.org>
2
3 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
4
12006-02-11 Eli Zaretskii <eliz@gnu.org> 52006-02-11 Eli Zaretskii <eliz@gnu.org>
2 6
3 * keyboard.c (Venable_disabled_menus_and_buttons): New variable. 7 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
diff --git a/src/cmds.c b/src/cmds.c
index f1e92ab2f75..494ef14db99 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -528,7 +528,8 @@ internal_self_insert (c, noautofill)
528 justification, if any, know where the end is going to be. */ 528 justification, if any, know where the end is going to be. */
529 SET_PT_BOTH (PT - 1, PT_BYTE - 1); 529 SET_PT_BOTH (PT - 1, PT_BYTE - 1);
530 tem = call0 (current_buffer->auto_fill_function); 530 tem = call0 (current_buffer->auto_fill_function);
531 if (c == '\n') 531 /* Test PT < ZV in case the auto-fill-function is strange. */
532 if (c == '\n' && PT < ZV)
532 SET_PT_BOTH (PT + 1, PT_BYTE + 1); 533 SET_PT_BOTH (PT + 1, PT_BYTE + 1);
533 if (!NILP (tem)) 534 if (!NILP (tem))
534 hairy = 2; 535 hairy = 2;