Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Clever! There's one point that's not quite working yet. If point is in the text that org would, by default, not consider part of the item (e.g., if we're on the "NOT..." line in the example), it does not fill as intended -- that is, it fills as a separate paragraph and slurps up item 5) as well. The issue seems to be in how org-mark-element chooses the element. Will give it some more thought. Commented Dec 11, 2014 at 13:11
  • @Dan This issue can be addressed by defining a function that moves point back to the previous list item, and calling it before marking paragraphs. See the updated code in my answer. Commented Dec 11, 2014 at 14:22