* calendar/todos.el: Fixes to todos-move-item and some of its
commit57da062dfef7a780b82742e26cb797f8841b6745
authorStephen Berman <stephen.berman@gmx.net>
Sun, 7 Oct 2012 23:45:40 +0000 (8 01:45 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Sun, 7 Oct 2012 23:45:40 +0000 (8 01:45 +0200)
tree928eac3558463b488dea974b5d2978f4c2b5280a
parentfd6c6328aefd206a2d81fd5a98fb6a8b90a4eeec
* calendar/todos.el: Fixes to todos-move-item and some of its
subroutines.
(todos-move-item): When there are marked items, point need not be
on an item; remove obsolete use of todos-add-category, since this
is now already done in todos-read-category; fix typo.
(todos-diary-item-p): Exclude empty lines.
(todos-read-category): Restore point and narrowing after adding
new category, to avoid moving to beginning of file when moving
marked items to a new category.
(todos-set-item-priority): Prompt for priority only when the
category has at least one todo item; only use non-nil priority to
calculate insertion location.
(todos-read-category): Don't reset todos-categories when a new
category is added due to todos-move-item or todos-jump-to-item.
lisp/ChangeLog
lisp/calendar/todos.el