Replaced macros `rst-iterate-leftmost-...` by new function
commit64750a4017e8b328aebd80dd6f53cd7ecd8de6ee
authorsmerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Mon, 28 Dec 2015 22:49:45 +0000 (28 22:49 +0000)
committersmerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Mon, 28 Dec 2015 22:49:45 +0000 (28 22:49 +0000)
tree4116d9afbdfc02b28f24c1b345ba0f81b5120d6d
parent9392bf8b3541509ea3077cc5e0dd1b2542660e80
Replaced macros `rst-iterate-leftmost-...` by new function
`rst-apply-indented-blocks`. Refactored `rst-enumerate-region`,
`rst-bullet-list-region` and `rst-line-block-region` to use
`rst-apply-indented-blocks`.

Improved `rst-enumerate-region` and `rst-bullet-list-region` to not
indent empty lines and not indent lines before indented block.
Debugged those commands to not run into endless loops on blocks at the
end of a buffer missing a final newline.

Improved `rst-line-block-region` to not kill indentation.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7931 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/tools/editors/emacs/rst.el
docutils/tools/editors/emacs/tests/apply-block.el [new file with mode: 0644]