[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 b6f6b59: Fix 'apropos-compact-layout'
From: |
Eli Zaretskii |
Subject: |
emacs-28 b6f6b59: Fix 'apropos-compact-layout' |
Date: |
Sat, 2 Oct 2021 13:54:15 -0400 (EDT) |
branch: emacs-28
commit b6f6b593c6752fabf7cc7532f6a2fda5a5e8373e
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix 'apropos-compact-layout'
* lisp/textmodes/fill.el (fill-region-as-paragraph): Fix filling
paragraphs that end at EOB without a newline. (Bug#50974)
---
lisp/textmodes/fill.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 81d908c..decce88 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -768,7 +768,7 @@ space does not end a sentence, so don't break a line there."
(setq first nil
linebeg (+ (point) (length actual-fill-prefix))))
(move-to-column (current-fill-column))
- (if (when (< (point) to)
+ (if (when (and (< (point) to) (< linebeg to))
;; Find the position where we'll break the line.
;; Use an immediately following space, if any.
;; However, note that `move-to-column' may overshoot
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 b6f6b59: Fix 'apropos-compact-layout',
Eli Zaretskii <=