[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active
From: |
Renato Ferreira |
Subject: |
[PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active' |
Date: |
Tue, 31 May 2022 08:53:43 -0300 |
* org.el (org-fill-paragraph): Fill also the paragraph at
`region-beginning' when filling plain lists with active region.
TINYCHANGE
---
lisp/org.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index 6842bfe9b..8ba5f4590 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19672,7 +19672,9 @@ filling the current element."
(skip-chars-backward " \t\n")
(while (> (point) start)
(org-fill-element justify)
- (org-backward-paragraph)))
+ (org-backward-paragraph))
+ (goto-char start)
+ (org-fill-element justify))
(goto-char origin)
(set-marker origin nil))))
(t
--
2.36.1
- [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active',
Renato Ferreira <=