* calendar/todos.el: Bug fixes involving or displaying done items.
authorStephen Berman <stephen.berman@gmx.net>
Mon, 4 Feb 2013 21:54:25 +0000 (22:54 +0100)
committerStephen Berman <stephen.berman@gmx.net>
Mon, 4 Feb 2013 21:54:25 +0000 (22:54 +0100)
commit344187df06a7c29448da55af9c5ab2bedbea23a2
tree6bf25efa8e368ac58861c2b61815a4cb873009c8
parentab951d1bf3a175877bc68822de479ba4f4ac0cba
* calendar/todos.el: Bug fixes involving or displaying done items.
(todos-done-separator): Make length of long separator one less
than window-width, in order to avoid following empty line.
(todos-forward-item, todos-backward-item): Make empty line below
last todo item accessible only by invoking without a numerical
prefix argument and make the latter invocations move only to items.
(todos-insert-item): Set todos-current-todos-file after selecting
buffer, in order not to set global value.  If only done items are
shown when this command is invoked, toggle to show todo items to
avoid insertion into done items section.  When done items are
shown, protect from cancelling before setting item priority: this
also needs recentering to display all items.
(todos-set-item-priority): Only call on (not done) todo items.
Check that done items are visible not because file is widened.
Use only `any' argument of called-interactively-p.  Make sure that
giving an undone item lowest priority restores it to the todo
section.
(todos-item-done): If done items are visible on invoking this
command, keep them visible afterwards.  Stop looking for marked
items on reaching the empty line below the last todo item.
lisp/ChangeLog
lisp/calendar/todos.el