(todo-insert-item-here): Prevent insertion
authorChong Yidong <cyd@stupidchicken.com>
Wed, 28 Jan 2009 03:56:18 +0000 (03:56 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 28 Jan 2009 03:56:18 +0000 (03:56 +0000)
commit685b54793282db07cba9a78ee918070983f89227
treead6241c61d2b1af66ade43123dea5f21336c8e0a
parent943ff2103422b101eaf2b8708075afc91263483b
(todo-insert-item-here): Prevent insertion
of a new entry inside of an existing entry.  Minor code cleanup.
(todo-add-category): Change the interactive spec.  Signal an error
if the Todo file is non-empty but contains no category.  Reject
category names that could induce bugs and confusion.  Call
todo-mode if the Todo file is new and unsaved.  Simplify handling
of local variables cookie.  Properly display the newly added
category in Todo mode.
(todo-show): Call todo-initial-setup only if there is neither a
Todo file nor a corresponding unsaved buffer.
(todo-category-alist): Delete function.
(todo-completing-read): New function.
(todo-insert-item, todo-jump-to-category): Use it.
(todo-insert-item): Make the use of the prefix argument conform to
the doc string.
lisp/calendar/todo-mode.el