-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
org.el: Fix the filling of regions containing lists
* lisp/org.el (org-setup-filling): Set fill-forward-paragraph-function. (org--single-lines-list-is-paragraph): New internal variable. Whether a list with single lines items should be considered a single paragraph. (org--paragraph-at-point): use org--single-lines-list-is-paragraph. (org-fill-paragraph): When an active region contains a list ensure every item get filled. * testing/lisp/test-org.el (test-org/fill-paragraph): (test-org/fill-region): Test behaviour of fill-paragraph and fill-region with an active region containing a list. When filling paragraphs in a region, do not treat a list with single lines items as a single paragraph.
- Loading branch information
Showing
2 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters