diff options
author | Stephen Berman <stephen.berman@gmx.net> | 2020-08-21 22:41:48 +0200 |
---|---|---|
committer | Stephen Berman <stephen.berman@gmx.net> | 2020-08-21 22:41:48 +0200 |
commit | 36bf4fa0b3ceef56a89ca657ce82bdc7ea10203f (patch) | |
tree | acc20ffbde7af6f1b248233805c0d8a2c2f8c353 /lisp/emacs-lisp | |
parent | 3e10174fb65f4eb601b1921271bdcf10c933b879 (diff) | |
download | emacs-36bf4fa0b3ceef56a89ca657ce82bdc7ea10203f.tar.gz emacs-36bf4fa0b3ceef56a89ca657ce82bdc7ea10203f.tar.bz2 emacs-36bf4fa0b3ceef56a89ca657ce82bdc7ea10203f.zip |
Fix several todo-mode.el editing bugs (bug#42976)
* lisp/calendar/todo-mode.el (todo-insert-item--basic): Ensure the
target todo file is in todo-mode.
(todo-edit-item--text): When editing a done item comment, prevent
clobbering match data on finishing the edit.
(todo-edit-item--header): Ensure that decrementing the month of
the date header works for intervals greater than a year, and when
incrementing or decrementing the month crosses one or more years,
adjust the year as needed.
(todo-read-category): If we're outside of todo-mode and there is a
current todo file, use it; otherwise, use the default todo file.
* test/lisp/calendar/todo-mode-tests.el
(todo-test-edit-item-date-month): New test.
* test/lisp/calendar/todo-mode-resources/todo-test-1.todo: Modify
to accommodate new test.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions