Fix indentation in lists
commitce2090ccfde4288d8306d108b92d6713b55ee2ab
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 13 Oct 2014 17:03:14 +0000 (13 19:03 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 13 Oct 2014 17:03:14 +0000 (13 19:03 +0200)
tree55ddfedd4a57b1934007a70e3e7fcca8a28acca6
parent352118bf7fd2b8b1ef254545138ec105ab3991cf
Fix indentation in lists

* lisp/org-list.el (org-list-item-body-column): Take into
  consideration empty items and bullets followed by two spaces.

* lisp/org.el (org--get-expected-indentation): Fix return value for
  items in lists.
(org-indent-region): Fix infloop when indenting some types of plain
lists.  Also fix error when region starts with blank lines at the
beginning of the buffer.

* testing/lisp/test-org.el (test-org/indent-region): Add tests.
lisp/org-list.el
lisp/org.el
testing/lisp/test-org.el