Auto-fill shouldn't insert new items
commitabad1b499471150604e4c0bec20369d8e089c3e4
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 12 Mar 2011 16:26:18 +0000 (12 17:26 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 9 Apr 2011 11:20:37 +0000 (9 13:20 +0200)
tree204fe8183b368066edac266ed7474ca6e90d069d
parent9a8dab1436fe10ca222544125695cd38e91c7eb2
Auto-fill shouldn't insert new items

* lisp/org-list.el (org-list-in-valid-context-p): renamed from
  org-list-in-valid-block-p.
  (org-at-item-p,org-list-search-generic): use renamed function.

* lisp/org.el (org-fill-item-nobreak-p): new function.
  (org-set-autofill-regexps): modify `fill-nobreak-predicate' to
  prevent auto-fill from breaking line just before an item regexp.
lisp/org-list.el
lisp/org.el