]> git.eshelyaron.com Git - emacs.git/commit
Prevent spurious tabs by RET in todo-edit-mode (bug#43068)
authorStephen Berman <stephen.berman@gmx.net>
Thu, 27 Aug 2020 11:53:22 +0000 (13:53 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Thu, 27 Aug 2020 11:53:22 +0000 (13:53 +0200)
commited3c971534283b9af2f13e71bf975ed448f2c225
tree935c2182b5da69a6ca48a7e9edc1bdae1ec797a1
parent4cf5d2ebee5ac45a435c991e4c0ad12be619d26b
Prevent spurious tabs by RET in todo-edit-mode (bug#43068)

* lisp/calendar/todo-mode.el (todo-key-bindings-t)
(todo-edit-mode-map): Remove remapping of `newline' to
`newline-and-indent'.
(todo-modes-set-1): Remove local setting of `indent-line-function'.
(todo-edit-mode): Locally set `indent-line-function' to `todo-indent'.

* test/lisp/calendar/todo-mode-tests.el (todo-test-move-item05):
Prevent interactive test failure.  (Until the addition of testcat4
to todo-test-1.todo, the test passed by chance, since testcat3 is
empty and has no archived items.)
(todo-test-edit-item-date-month): Refer to bug number.
(todo-test-multiline-item-indentation-1)
(todo-test-multiline-item-indentation-2)
(todo-test-multiline-item-indentation-3): New tests.

* test/lisp/calendar/todo-mode-resources/todo-test-1.todo: Remove
spurious tabs from testcat1.
lisp/calendar/todo-mode.el
test/lisp/calendar/todo-mode-resources/todo-test-1.todo
test/lisp/calendar/todo-mode-tests.el