Major refactoring:
commitd2a3160659386a101f0ce4ab9906bcbe35b99702
authorsmerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Sun, 31 Jul 2016 11:13:21 +0000 (31 11:13 +0000)
committersmerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Sun, 31 Jul 2016 11:13:21 +0000 (31 11:13 +0000)
tree47ade933a4317179040ffa8c25e641eb9ba2cb95
parentf748a87e6c3312a42c43bb91553fb7abd0e5c478
Major refactoring:

* Introduce classes `rst-Ado', `rst-Hdr', `rst-Ttl' and `rst-Stn'
  representing reStructuredText section header concepts.

* Introduce use case approach for systematic testing of section header
  adjustment (files `tests/adjust-uc.el` and
  `tests/adjust-uc_doc.rst`).

* Revise and refactor some old code.

* Add lots of unit tests.

* Replace `set (make-local-variable 'VAR)` by `setq-local VAR`.

* Fix minor bugs.

Minor feature changes and fixes:

* Link final newline in a toc buffer so navigating at the end of the
  line works.

* Improve section header adjustment slightly.

* Integrate and update tutorial.

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