# HG changeset patch # User Chong Yidong # Date 1233114968 0 # Node ID d8799ea52d744c1c08555ceab4ad664cdc8002b3 # Parent 9d2bd73eeaac5ddd664180142dbea40057fd16cf * calendar/todo-mode.el (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. diff -r 9d2bd73eeaac -r d8799ea52d74 lisp/ChangeLog --- a/lisp/ChangeLog Wed Jan 28 02:55:34 2009 +0000 +++ b/lisp/ChangeLog Wed Jan 28 03:56:08 2009 +0000 @@ -1,3 +1,21 @@ +2009-01-28 Stephen Berman + + * calendar/todo-mode.el (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. + 2009-01-28 Glenn Morris * mail/rmail.el (rmail-expunge-and-save): Always show a message,