Prevent filling before a "n" macro where it could create list items
commit957850043a0eeea970e2b44fc6e08b312a8bc60e
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 22 May 2017 13:36:28 +0000 (22 15:36 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 25 May 2017 10:33:16 +0000 (25 12:33 +0200)
tree88880ffe81e5b603f9d2b55fc8acc3ec1883bcf0
parentad89390219d0de46fb9364ed067b1e9e2cf88a9b
Prevent filling before a "n" macro where it could create list items

* lisp/org.el (org-fill-n-macro-as-item-nobreak-p): New function.
(org-setup-filling): Use new function.

* testing/lisp/test-org.el (test-org/fill-element): Add tests.

Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113587>
lisp/org.el
testing/lisp/test-org.el