summaryrefslogtreecommitdiff
path: root/lisp/textmodes/fill.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-07-20 20:51:26 +0000
committerRichard M. Stallman <rms@gnu.org>2004-07-20 20:51:26 +0000
commit1637ed87676cdd8d32e45e8e1f151126ba91b683 (patch)
treeac0b058abc5b4d09b5ae2f9b8456855b6f74dc87 /lisp/textmodes/fill.el
parentcb7516e566153c15fa42808869256dc3c51ea850 (diff)
downloademacs-1637ed87676cdd8d32e45e8e1f151126ba91b683.tar.gz
(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.
Diffstat (limited to 'lisp/textmodes/fill.el')
-rw-r--r--lisp/textmodes/fill.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index a888003402d..dfd471a87c4 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -353,7 +353,12 @@ and `fill-nobreak-invisible'."
;; 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