all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active'
@ 2022-05-31 11:53 Renato Ferreira
  2022-05-31 12:49 ` Renato Ferreira
  0 siblings, 1 reply; 5+ messages in thread
From: Renato Ferreira @ 2022-05-31 11:53 UTC (permalink / raw)
  To: emacs-orgmode


* 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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-20 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-31 11:53 [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active' Renato Ferreira
2022-05-31 12:49 ` Renato Ferreira
2022-05-31 13:51   ` Sébastien Miquel
2022-07-19 19:36   ` Sébastien Miquel
2022-07-20 21:13     ` Renato Ferreira

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.