Correct and isolate the todo-mode test environment
commit8c0f845b34ff3fc9622fa7a433d8272d94698c44
authorStephen Berman <stephen.berman@gmx.net>
Thu, 1 Jun 2017 20:15:50 +0000 (1 22:15 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Thu, 1 Jun 2017 20:15:50 +0000 (1 22:15 +0200)
tree48f9747270d19370b490d018f7ec8c94be2f4956
parent6cd374085caa1c506555eef72535a47b91a4b4da
Correct and isolate the todo-mode test environment

This avoids having to set todo-mode variables globally in the test
file and prevents any exisiting user todo-mode files from influencing
the tests.

* test/lisp/calendar/todo-mode-tests.el:
(with-todo-test): New macro.
(todo-test-todo-quit01, todo-test-todo-quit02)
(todo-test-item-highlighting): Use it.
test/lisp/calendar/todo-mode-tests.el