aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calendar/todo-mode.el28
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 1b0065ce15b..bae7b6a10fd 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -1,6 +1,6 @@
1;; todomode.el -- major mode for editing TODO list files 1;; todomode.el -- major mode for editing TODO list files
2 2
3;; $Id: todomode.el,v 1.8 1997/08/05 22:39:04 os10000 Exp os10000 $ 3;; $Id: todomode.el,v 1.9 1997/08/06 08:12:03 os10000 Exp os10000 $
4 4
5;; --------------------------------------------------------------------------- 5;; ---------------------------------------------------------------------------
6 6
@@ -65,7 +65,8 @@
65;; 65;;
66;; You will have the following facilities available: 66;; You will have the following facilities available:
67;; 67;;
68;; M-x todo-mode will enter the todo list screen, here type 68;; M-x todo-show will enter the todo list screen, here type
69;;
69;; + to go to next category 70;; + to go to next category
70;; - to go to previous category 71;; - to go to previous category
71;; e to edit the current entry 72;; e to edit the current entry
@@ -86,7 +87,7 @@
86;; cornflakes) and things I want to do at home (move my suitcases). The 87;; cornflakes) and things I want to do at home (move my suitcases). The
87;; categories can be selected with the cursor keys and if you type in the 88;; categories can be selected with the cursor keys and if you type in the
88;; name of a category which didn't exist before, an empty category of the 89;; name of a category which didn't exist before, an empty category of the
89;; desired name will be added. 90;; desired name will be added and filled with the new entry.
90;; 91;;
91;; 92;;
92;; 93;;
@@ -99,10 +100,10 @@
99;; leaving the variable 'todo-prefix' untouched) so that the diary 100;; leaving the variable 'todo-prefix' untouched) so that the diary
100;; displays each entry every day. 101;; displays each entry every day.
101;; 102;;
102;; For this, please read the documentation that goes with the calendar 103;; To understand what I mean, please read the documentation that goes
103;; since that will tell you how you can set up the fancy diary display 104;; with the calendar since that will tell you how you can set up the
104;; and use the #include command to include your todo list file as part 105;; fancy diary display and use the #include command to include your
105;; of your diary. 106;; todo list file as part of your diary.
106;; 107;;
107;; 108;;
108;; --- todo-file-do 109;; --- todo-file-do
@@ -177,6 +178,11 @@
177 178
178;; 179;;
179;; $Log: todomode.el,v $ 180;; $Log: todomode.el,v $
181;; Revision 1.9 1997/08/06 08:12:03 os10000
182;; Improved documentation. Broke some lines to comply with
183;; Richard Stallman's email to please keep in sync with the
184;; rest of the Emacs distribution files.
185;;
180;; Revision 1.8 1997/08/05 22:39:04 os10000 186;; Revision 1.8 1997/08/05 22:39:04 os10000
181;; Made todomode.el available under GPL. 187;; Made todomode.el available under GPL.
182;; 188;;
@@ -304,13 +310,11 @@
304 310
305(defun todo-cmd-edit () "Edit current TODO list entry." 311(defun todo-cmd-edit () "Edit current TODO list entry."
306 (interactive) 312 (interactive)
307 (let ((todo-entry (todo-line))) 313 (let ((todo-entry (read-from-minibuffer "Edit: " (todo-line))))
308 (delete-region (point-at-bol) (point-at-eol)) 314 (delete-region (point-at-bol) (point-at-eol))
309 (insert (read-from-minibuffer "Edit: " todo-entry)) 315 (insert todo-entry)
310 (beginning-of-line nil) 316 (beginning-of-line nil)
311 (message "") 317 (message "")))
312 )
313 )
314 318
315(defvar todo-prv-lne 0 "previous line that I asked about.") 319(defvar todo-prv-lne 0 "previous line that I asked about.")
316(defvar todo-prv-ans 0 "previous answer that I got.") 320(defvar todo-prv-ans 0 "previous answer that I got.")