aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Seidel1998-09-29 18:20:36 +0000
committerOliver Seidel1998-09-29 18:20:36 +0000
commitdad8ca4cc93673ba4dc2761c45f41aebf837192a (patch)
tree62fa00012c30c74c1288e31a5e01dc6bf666e14c
parentdf312987d6ed87ae1ec588af27e630b6a43eac23 (diff)
downloademacs-dad8ca4cc93673ba4dc2761c45f41aebf837192a.tar.gz
emacs-dad8ca4cc93673ba4dc2761c45f41aebf837192a.zip
Alex Schroeder startup description added.
-rw-r--r--lisp/calendar/todo-mode.el42
1 files changed, 33 insertions, 9 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index fc167b45b25..7ae81aa9861 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Oliver.Seidel@cl.cam.ac.uk (was valid on Aug 2, 1997) 5;; Author: Oliver.Seidel@cl.cam.ac.uk (was valid on Aug 2, 1997)
6;; Created: 2 Aug 1997 6;; Created: 2 Aug 1997
7;; Version: $Id: todo-mode.el,v 1.33 1997/12/04 17:45:22 os10000 Exp os10000 $ 7;; Version: $Id: todo-mode.el,v 1.34 1998/01/12 11:43:22 os10000 Exp os10000 $
8;; Keywords: Categorised TODO list editor, todo-mode 8;; Keywords: Categorised TODO list editor, todo-mode
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
@@ -61,6 +61,27 @@
61;; You may now enter new items by typing "M-x todo-insert-item", 61;; You may now enter new items by typing "M-x todo-insert-item",
62;; or enter your TODO list file by typing "M-x todo-show". 62;; or enter your TODO list file by typing "M-x todo-show".
63;; 63;;
64;; -------------------------------------------------------------
65;;
66;; oh no, it doesn't work any more ... but Alex Schroeder
67;; <a.schroeder@bsiag.ch> writes:
68;;
69;; -------------------------------------------------------------
70;;
71;; 1. Call todo-show (I called todo-insert first)
72;; 2. Add some categories (I called todo-insert)
73;; 3. Save the buffer, restart Emacs (perhaps restarting Emacs is not
74;; required)
75;; 4. Only now can you start to add entries.
76;;
77;; This is a bit cumbersome, and it should be documented. You probably
78;;
79;; -------------------------------------------------------------
80;;
81;; and right he is. My apologies, I'll try to fix it sometime.
82;;
83;; -------------------------------------------------------------
84;;
64;; The TODO list file has a special format and some auxiliary 85;; The TODO list file has a special format and some auxiliary
65;; information, which will be added by the todo-show function if 86;; information, which will be added by the todo-show function if
66;; it attempts to visit an un-initialised file. Hence it is 87;; it attempts to visit an un-initialised file. Hence it is
@@ -96,7 +117,7 @@
96;; 117;;
97;; Which version of todo-mode.el does this documentation refer to? 118;; Which version of todo-mode.el does this documentation refer to?
98;; 119;;
99;; $Id: todo-mode.el,v 1.33 1997/12/04 17:45:22 os10000 Exp os10000 $ 120;; $Id: todo-mode.el,v 1.34 1998/01/12 11:43:22 os10000 Exp os10000 $
100;; 121;;
101;; Pre-Requisites 122;; Pre-Requisites
102;; 123;;
@@ -237,7 +258,7 @@
237;; o The optional COUNT variable of todo-forward-item should be 258;; o The optional COUNT variable of todo-forward-item should be
238;; applied to the other functions performing similar tasks 259;; applied to the other functions performing similar tasks
239;; o Modularization could be done for repeaded elements of 260;; o Modularization could be done for repeaded elements of
240;; the code, like the completing-read lines of code. 261;; the code, like the completing-read lines of code.
241;; o license / version function 262;; o license / version function
242;; o export to diary file 263;; o export to diary file
243;; o todo-report-bug 264;; o todo-report-bug
@@ -267,6 +288,9 @@
267;;; Change Log: 288;;; Change Log:
268 289
269;; $Log: todo-mode.el,v $ 290;; $Log: todo-mode.el,v $
291;; Revision 1.34 1998/01/12 11:43:22 os10000
292;; Added patch from Don Hejna <djhejna@oasis.ambit.com>.
293;;
270;; Revision 1.33 1997/12/04 17:45:22 os10000 294;; Revision 1.33 1997/12/04 17:45:22 os10000
271;; Another patch by Michael Cook to fix annotation. 295;; Another patch by Michael Cook to fix annotation.
272;; 296;;
@@ -480,7 +504,7 @@
480 ;; We have the old custom-library, hack around it! 504 ;; We have the old custom-library, hack around it!
481 (defmacro defgroup (&rest args) 505 (defmacro defgroup (&rest args)
482 nil) 506 nil)
483 (defmacro defcustom (var value doc &rest args) 507 (defmacro defcustom (var value doc &rest args)
484 (` (defvar (, var) (, value) (, doc)))))) 508 (` (defvar (, var) (, value) (, doc))))))
485 509
486;; User-configurable variables: 510;; User-configurable variables:
@@ -742,7 +766,7 @@ Use `todo-categories' instead.")
742 (narrow-to-region (todo-item-start) (todo-item-end)))) 766 (narrow-to-region (todo-item-start) (todo-item-end))))
743 767
744;;;### autoload 768;;;### autoload
745(defun todo-add-category (cat) 769(defun todo-add-category (cat)
746 "Add new category CAT to the TODO list." 770 "Add new category CAT to the TODO list."
747 (interactive "sCategory: ") 771 (interactive "sCategory: ")
748 (save-window-excursion 772 (save-window-excursion
@@ -761,7 +785,7 @@ Use `todo-categories' instead.")
761 (forward-char 1) 785 (forward-char 1)
762 (insert (format "%s%s%s\n%s\n%s %s\n" 786 (insert (format "%s%s%s\n%s\n%s %s\n"
763 todo-prefix todo-category-beg cat 787 todo-prefix todo-category-beg cat
764 todo-category-end 788 todo-category-end
765 todo-prefix todo-category-sep))) 789 todo-prefix todo-category-sep)))
766 0) 790 0)
767 791
@@ -814,10 +838,10 @@ category."
814 (categories todo-categories) 838 (categories todo-categories)
815 (history (cons 'categories (1+ todo-category-number))) 839 (history (cons 'categories (1+ todo-category-number)))
816 (current-category (nth todo-category-number todo-categories)) 840 (current-category (nth todo-category-number todo-categories))
817 (category 841 (category
818 (if ARG 842 (if ARG
819 current-category 843 current-category
820 (completing-read 844 (completing-read
821 (concat "Category [" 845 (concat "Category ["
822 current-category "]: ") 846 current-category "]: ")
823 (todo-category-alist) nil nil nil history)))) 847 (todo-category-alist) nil nil nil history))))
@@ -1031,7 +1055,7 @@ Number of entries for each category is given by
1031 (interactive) 1055 (interactive)
1032 (let* ((categories todo-categories) 1056 (let* ((categories todo-categories)
1033 (history (cons 'categories (1+ todo-category-number))) 1057 (history (cons 'categories (1+ todo-category-number)))
1034 (category (completing-read 1058 (category (completing-read
1035 (concat "Category [" 1059 (concat "Category ["
1036 (nth todo-category-number todo-categories) "]: ") 1060 (nth todo-category-number todo-categories) "]: ")
1037 (todo-category-alist) nil nil nil history))) 1061 (todo-category-alist) nil nil nil history)))