[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 247ed6c 1/2: Make fill-region-as-paragraph clear the markers it c
From: |
Lars Ingebrigtsen |
Subject: |
master 247ed6c 1/2: Make fill-region-as-paragraph clear the markers it creates |
Date: |
Mon, 29 Nov 2021 09:48:44 -0500 (EST) |
branch: master
commit 247ed6ccbcf0d2b0887181a90632d4e461a2f519
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Make fill-region-as-paragraph clear the markers it creates
* lisp/textmodes/fill.el (fill-region-as-paragraph): Clear
temporary markers (bug#52175).
Copyright-paperwork-exempt: yes
---
lisp/textmodes/fill.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 73d76a8..4e16109 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -705,7 +705,10 @@ space does not end a sentence, so don't break a line
there."
(goto-char from-plus-indent))
(if (not (> to (point)))
- nil ;; There is no paragraph, only whitespace: exit now.
+ ;; There is no paragraph, only whitespace: exit now.
+ (progn
+ (set-marker to nil)
+ nil)
(or justify (setq justify (current-justification)))
@@ -791,6 +794,7 @@ space does not end a sentence, so don't break a line there."
;; Leave point after final newline.
(goto-char to)
(unless (eobp) (forward-char 1))
+ (set-marker to nil)
;; Return the fill-prefix we used
fill-prefix)))