Lots of refactorings and a few minor improvements.
commit23d3172d56be2e56710fb9f09a1bc57d1aa40a66
authorsmerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Tue, 3 Jan 2017 21:56:17 +0000 (3 21:56 +0000)
committersmerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Tue, 3 Jan 2017 21:56:17 +0000 (3 21:56 +0000)
treed0eb428fb482e1ad96393a59a644ccf219577727
parenta0f60b4d909957ad292c52d39c4fdd95edb0d2a4
Lots of refactorings and a few minor improvements.

User visible improvements and changes:
* Improve and debug `rst-forward-section` and `rst-backward-section`.
* Auto-enumeration may be used with all styles for list insertion.
* Improve and debug `rst-toc-insert`.
* Adapt change in Emacs to use customization group `text` instead of `wp`.
* Bind `n` and `p` in `rst-toc-mode`.
* `z` in `toc-mode` returns to the previous window configuration.
* Require Emacs version >= 24.1.

Lots of refactorings including:
* Silence byte compiler.
* Use lexical binding.
* Use `cl-lib`.
* Add tests and raise test coverage.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8011 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
26 files changed:
docutils/tools/editors/emacs/IDEAS.rst
docutils/tools/editors/emacs/rst.el
docutils/tools/editors/emacs/tests/Ado.el
docutils/tools/editors/emacs/tests/Hdr.el
docutils/tools/editors/emacs/tests/Stn.el
docutils/tools/editors/emacs/tests/Ttl.el
docutils/tools/editors/emacs/tests/adjust-section.el
docutils/tools/editors/emacs/tests/adjust-uc.el
docutils/tools/editors/emacs/tests/adornment.el
docutils/tools/editors/emacs/tests/apply-block.el
docutils/tools/editors/emacs/tests/buffer.el
docutils/tools/editors/emacs/tests/cl.el [deleted file]
docutils/tools/editors/emacs/tests/comment.el
docutils/tools/editors/emacs/tests/ert-buffer.el
docutils/tools/editors/emacs/tests/fill.el
docutils/tools/editors/emacs/tests/font-lock.el
docutils/tools/editors/emacs/tests/helpers.el [new file with mode: 0644]
docutils/tools/editors/emacs/tests/imenu.el
docutils/tools/editors/emacs/tests/indent.el
docutils/tools/editors/emacs/tests/init.el
docutils/tools/editors/emacs/tests/items.el
docutils/tools/editors/emacs/tests/movement.el
docutils/tools/editors/emacs/tests/re.el
docutils/tools/editors/emacs/tests/shift.el
docutils/tools/editors/emacs/tests/toc.el
docutils/tools/editors/emacs/tests/tree.el