1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00
emacs/test/lisp/calendar
Stephen Berman 36bf4fa0b3 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.
2020-08-21 22:41:48 +02:00
..
todo-mode-resources Fix several todo-mode.el editing bugs (bug#42976) 2020-08-21 22:41:48 +02:00
cal-julian-tests.el Use lexical-binding in cal-julian.el and add tests 2020-05-13 01:34:22 +02:00
icalendar-tests.el Use lexical-binding in calendar tests 2020-04-27 18:27:24 +02:00
iso8601-tests.el Test iso8601-parse-zone vs format-time-string %z 2020-04-29 08:44:23 -07:00
lunar-tests.el Tag a test as unstable 2020-06-13 10:42:47 -07:00
parse-time-tests.el Use lexical-binding in calendar tests 2020-04-27 18:27:24 +02:00
time-date-tests.el Fix off-by-one error in decoded-time-add (with months) 2020-08-21 00:38:23 +02:00
todo-mode-tests.el Fix several todo-mode.el editing bugs (bug#42976) 2020-08-21 22:41:48 +02:00