emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/cmds.c


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/cmds.c
Date: Mon, 13 Feb 2006 02:17:10 +0000

Index: emacs/src/cmds.c
diff -u emacs/src/cmds.c:1.96 emacs/src/cmds.c:1.97
--- emacs/src/cmds.c:1.96       Mon Feb  6 15:23:20 2006
+++ emacs/src/cmds.c    Mon Feb 13 02:17:10 2006
@@ -528,7 +528,8 @@
           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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]