Fix code and doc involving marked items.
commit6dd006a86d401a494efd48a31c5fe6e511e42b52
authorStephen Berman <stephen.berman@gmx.net>
Fri, 25 Jul 2014 16:01:05 +0000 (25 18:01 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Fri, 25 Jul 2014 16:01:05 +0000 (25 18:01 +0200)
tree643fc3b59f8b90fc7d8de4a766b10b1d842f8f19
parentc509a535a86acc8efc13df4d379ec09ef3659287
Fix code and doc involving marked items.

* todo-mode.texi (Marked Items): Correct omission of item deletion
from commands applying to both todo and done items.

* calendar/todo-mode.el: Fix handling of marked items and make
minor code improvements.
(todo-edit-item): If there are marked items, ensure user can only
invoke editing commands that work with marked items.
(todo-edit-item--text): When there are marked items, make it a
noop if invoked with point not on an item; otherwise, ensure it
applies only to item at point.
(todo-item-undone): If there are marked not-done items, return
point to its original position before signaling user error.
(todo--user-error-if-marked-done-item): New function.
(todo-edit-item--header, todo-edit-item--diary-inclusion)
(todo-item-done): Use it.
doc/misc/ChangeLog
doc/misc/todo-mode.texi
lisp/ChangeLog
lisp/calendar/todo-mode.el