aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Seidel1997-10-28 21:37:05 +0000
committerOliver Seidel1997-10-28 21:37:05 +0000
commit5d035cad7d3a36e658b6a4048de7de7bbd3a4bdd (patch)
treeb9f996645f9c249af56c7d4c9e4d1a23b2d4e086
parent49b2ae0e10aa8c11b0efc7335439130c184e4a37 (diff)
downloademacs-5d035cad7d3a36e658b6a4048de7de7bbd3a4bdd.tar.gz
emacs-5d035cad7d3a36e658b6a4048de7de7bbd3a4bdd.zip
Incorporated simplifying suggestions from
Carsten Dominik <dominik@strw.LeidenUniv.nl>.
-rw-r--r--lisp/calendar/todo-mode.el34
1 files changed, 32 insertions, 2 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 93514ab4f56..9a925e01935 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.26 1997/10/28 21:14:51 os10000 Exp os10000 $ 7;; Version: $Id: todo-mode.el,v 1.27 1997/10/28 21:26:55 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.
@@ -87,11 +87,16 @@
87;; entered by visiting the TODO file, and later by switching to 87;; entered by visiting the TODO file, and later by switching to
88;; its buffer). 88;; its buffer).
89;; 89;;
90;; If you are an advanced user of this package, please consult
91;; the whole source code for autoloads, because there are several
92;; extensions that are not explicitly listed in the above quick
93;; installation.
94;;
90;; Version 95;; Version
91;; 96;;
92;; Which version of todo-mode.el does this documentation refer to? 97;; Which version of todo-mode.el does this documentation refer to?
93;; 98;;
94;; $Id: todo-mode.el,v 1.26 1997/10/28 21:14:51 os10000 Exp os10000 $ 99;; $Id: todo-mode.el,v 1.27 1997/10/28 21:26:55 os10000 Exp os10000 $
95;; 100;;
96;; Pre-Requisites 101;; Pre-Requisites
97;; 102;;
@@ -157,6 +162,17 @@
157;; as the value of `todo-prefix'. Please note that this may slow 162;; as the value of `todo-prefix'. Please note that this may slow
158;; down the processing of your diary file some. 163;; down the processing of your diary file some.
159;; 164;;
165;; Carsten Dominik <dominik@strw.LeidenUniv.nl> suggested that
166;;
167;; "&%%(todo-cp)"
168;;
169;; might be nicer and to that effect a function has been declared
170;; further down in the code. You may wish to auto-load this.
171;;
172;; Carsten also writes that that *changing* the prefix after the
173;; todo list is already established is not as simple as changing
174;; the variable - the todo files have to be changed by hand.
175;;
160;; Variable todo-file-do 176;; Variable todo-file-do
161;; 177;;
162;; This variable is fairly self-explanatory. You have to store 178;; This variable is fairly self-explanatory. You have to store
@@ -249,6 +265,12 @@
249;;; Change Log: 265;;; Change Log:
250 266
251;; $Log: todo-mode.el,v $ 267;; $Log: todo-mode.el,v $
268;; Revision 1.27 1997/10/28 21:26:55 os10000
269;; Patch from Paul Stodghill <stodghil@CS.Cornell.EDU>:
270;; The patch below fixes todo-insert-item so that it will
271;; insert the item in place, instead of at the top of the
272;; buffer, when invoked with a prefix argument.
273;;
252;; Revision 1.26 1997/10/28 21:14:51 os10000 274;; Revision 1.26 1997/10/28 21:14:51 os10000
253;; Improvements sent in by Dave Love <d.love@dl.ac.uk>: 275;; Improvements sent in by Dave Love <d.love@dl.ac.uk>:
254;; todo-mode.el: Doc fixes. Customization. 276;; todo-mode.el: Doc fixes. Customization.
@@ -1103,6 +1125,14 @@ If SEPARATORS is absent, it defaults to \"[ \\f\\t\\n\\r\\v]+\"."
1103 (easy-menu-add todo-menu) 1125 (easy-menu-add todo-menu)
1104 (run-hooks 'todo-mode-hook)) 1126 (run-hooks 'todo-mode-hook))
1105 1127
1128;; Read about this function in the setup instructions above!
1129;;;### autoload
1130(defun todo-cp ()
1131 "Make a diary entry appear only in the current date's diary"
1132 (if (equal (calendar-current-date) date)
1133 entry
1134 nil))
1135
1106(defun todo-edit-mode () 1136(defun todo-edit-mode ()
1107 "Major mode for editing items in the TODO list\n\n\\{todo-edit-mode-map}" 1137 "Major mode for editing items in the TODO list\n\n\\{todo-edit-mode-map}"
1108 (text-mode) 1138 (text-mode)