emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] org.el: Fix the filling of regions containing lists


From: Sébastien Miquel
Subject: [PATCH] org.el: Fix the filling of regions containing lists
Date: Tue, 30 Nov 2021 21:50:45 +0000

Hi,

The attached patch fixes the following issues with the functions
=fill-region= and =fill-paragraph=, when called with an active region
containing a list.

In the examples, replace 'long line' by long lines to be filled.

 + Calling =fill-region= on a region which contains a list with single
   line items (such as the one below) breaks the list structure.
   - long line
   - long line
 + Calling =fill-region= on a region with a list such as the one below
   doesn't fill the list
   - short line
     short line
   - short line
     short line
 + Calling =fill-paragraph= on a region containing a list such as the
   one below doesn't fill the first item
   - long line
   - long line
   - long line
 + Calling =fill-paragraph= on a region containing a list such as the
   one below doesn't fill the list
   - long line
   - long line
   - short line

Regards,

--
Sébastien Miquel

Attachment: 0001-org.el-Fix-the-filling-of-regions-containing-lists.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]