changeset 56489:fb549e5bb99c

(fill-comment-paragraph): Handle indent-tabs-mode. (fill-delete-newlines): Call sentence-end as function. (fill-nobreak-p, canonically-space-region): Likewise. (fill-nobreak-p): If this break point is at the end of the line, don't consider the newline which follows as a reason to return t.
author Richard M. Stallman <rms@gnu.org>
date Tue, 20 Jul 2004 20:51:13 +0000
parents 46efdafb0b3a
children 0336358d715b
files lisp/textmodes/fill.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Mon Jul 19 22:00:18 2004 +0000
+++ b/lisp/textmodes/fill.el	Tue Jul 20 20:51:13 2004 +0000
@@ -353,7 +353,12 @@
      ;; Don't split a line if the rest would look like a new paragraph.
      (unless use-hard-newlines
        (save-excursion
-	 (skip-chars-forward " \t") (looking-at paragraph-start)))
+	 (skip-chars-forward " \t")
+	 ;; If this break point is at the end of the line,
+	 ;; which can occur for auto-fill, don't consider the newline
+	 ;; which follows as a reason to return t.
+	 (and (not (eolp))
+	      (looking-at paragraph-start))))
      (run-hook-with-args-until-success 'fill-nobreak-predicate)))))
 
 ;; Put `fill-find-break-point-function' property to charsets which