* todos.el (todos-modes-set-2): Restore point after finding start
[bpt/emacs.git] / lisp / calendar / ChangeLog
CommitLineData
199b0d39
SB
12013-05-13 Stephen Berman <stephen.berman@gmx.net>
2
3 * todos.el (todos-modes-set-2): Restore point after finding start
4 and end of hl-line-range-function.
5
74e14031
SB
62013-05-13 Stephen Berman <stephen.berman@gmx.net>
7
8 * todos.el: Fixes for item marking and marked items.
9 (todos-toggle-mark-item): Make no-op if point is not on an item.
10 Toggle mark even if point is not at start of item.
11 (todos-item-done): Signal an error if a done item is marked.
12 Process marked todo items even if point is in done items section.
13
5bdcc430
SB
142013-05-11 Stephen Berman <stephen.berman@gmx.net>
15
16 * todos.el (todos-item-undone): Remove item highlighting when user
17 quits before deciding whether to omit comment. Fix misplaced
18 closing paren. Change two uses of `if' to `when'.
19
caa229d5
SB
202013-05-10 Stephen Berman <stephen.berman@gmx.net>
21
22 * todos.el: Rename numerous commands and defcustoms and adjust all
23 uses, change numerous key bindings, make some basic commands
24 noninteractive and use them to define the commands, unify
25 archiving commands.
26 (todos-directory): Rename from todos-files-directory.
27 (todos-print-buffer-function): Rename from todos-print-function.
28 (todos-number-prefix): Rename from todos-number-priorities.
29 (todos-top-priorities-overrides): Rename from todos-priorities-rules.
30 (todos-top-priorities): Rename from todos-show-priorities.
31 (todos-insertion-command-name, todos-insertion-key-bindings):
32 Use "todos-insert-item-".
33 (todos-key-bindings, todos-archive-mode-map)
34 (todos-categories-mode-map, todos-filtered-items-mode-map):
35 Adjust to renamed commands, make bindings more systematic,
36 reorder entries.
37 (todos-show-categories-table): Rename from todos-display-categories.
38 (todos-sort-categories-alphabetically-or-by-priority): Rename from
39 todos-display-categories-alphabetically-or-by-priority.
40 (todos-sort-categories-by-todo): Rename from
41 todos-display-categories-sorted-by-todo.
42 (todos-sort-categories-by-diary): Rename from
43 todos-display-categories-sorted-by-diary.
44 (todos-sort-categories-by-done): Rename from
45 todos-display-categories-sorted-by-done.
46 (todos-sort-categories-by-archived): Rename from
47 todos-display-categories-sorted-by-archived.
48 (todos-print-buffer): Rename function from todos-print.
49 (todos-print-buffer-to-file): Rename from todos-print-to-file.
50 (todos-go-to-source-item): Rename from todos-jump-to-item.
51 (todos-forward-item, todos-backward-item): Remove interactive form
52 and move most of doc string and prefix argument error checking to...
53 (todos-next-item, todos-previous-item): ...these new commands,
54 which use the preceding functions.
55 (todos-next-button): Rename from todos-forward-button.
56 (todos-previous-button): Rename from todos-backward-button.
57 (todos-toggle-prefix-numbers): Rename from
58 todos-hide-show-item-numbering.
59 (todos-toggle-view-done-items): Rename from todos-hide-show-done-items.
60 (todos-toggle-view-done-only): Rename from todos-show-done-only.
61 (todos-toggle-item-highlighting): Rename from todos-highlight-item.
62 (todos-toggle-item-header): Rename from todos-hide-show-date-time.
63 (todos-toggle-mark-item): Rename from todos-mark-unmark-item.
64 (todos-filter-top-priorities): Rename from todos-top-priorities.
65 (todos-filter-top-priorities-multifile): Rename from
66 todos-top-priorities-multifile.
67 (todos-filter-diary-items): Rename from todos-diary-items.
68 (todos-filter-diary-items-multifile): Rename from
69 todos-diary-items-multifile.
70 (todos-filter-regexp-items): Rename from todos-regexp-items.
71 (todos-filter-regexp-items-multifile): Rename from
72 todos-regexp-items-multifile.
73 (todos-insert-item-1): Remove interactive form, since
74 todos-insert-item is generated like other item insertion commands.
75 (todos-edit-file): Rename from todos-edit-multiline.
76 (todos-item-undone): Rename from todos-item-undo.
77 (todos-archive-done-item): Add raw prefix spec to interactive form
78 and use it to test for archiving all done items in category;
79 reorder tests in function body accordingly.
80 (todos-archive-category-done-items): Remove.
81
1171e432
SB
822013-04-27 Stephen Berman <stephen.berman@gmx.net>
83
84 * todos.el (todos-edit-multiline-item): Make a no-op when point is
85 not on an item.
86
7680f777
SB
872013-04-24 Stephen Berman <stephen.berman@gmx.net>
88
89 * todos.el (todos-check-format): Add check of well-formedness of
90 categories sexp. If it is well-formed but differs from
91 todos-categories, do not signal an error but display a message.
92
308f5beb
SB
932013-04-21 Stephen Berman <stephen.berman@gmx.net>
94
95 * todos.el: Fixes and improvements related to item relocation.
96 (todos-category-completions): On ensuring proper category display,
97 if done items in category are visible, keep them visible.
98 (todos-set-item-priority): Keep top of category in view while
99 setting priority.
100 (todos-move-item): Restore prevention of moving within the same
101 category. Move done items to top, not end, of done items section.
102 When user quits before setting priority, make sure to return to
103 starting file.
104 (todos-item-undo): Partly reimplement along lines of
105 todos-move-item, adding highlighting of single item as undo
106 target, setting priority of multiple undone items, improving
107 handling of quitting before setting priority.
108 (todos-unarchive-items): Restore items to top, not end, of
109 category's done section.
110
f1806c78
SB
1112013-04-19 Stephen Berman <stephen.berman@gmx.net>
112
113 * todos.el: Extend and improve item filtering and handling of
114 saved files of filtered items.
115 (todos-show-first): Add choices for diary and regexp items.
116 (todos-absolute-file-name): Handle file names for diary and regexp
117 items.
118 (todos-filter-items): New function abstracted from item filtering
119 commands, with handling of saved files of diary and regexp items.
120 (todos-filter-items-1): Rename from todos-filter-items.
121 (todos-filtered-buffer-name): Remove, since functionality is now
122 incorporated into new function todos-filter-items.
123 (todos-filtered-items-buffer, todos-top-priorities-buffer)
124 (todos-diary-items-buffer, todos-regexp-items-buffer):
125 Make defconsts instead of defcustoms.
126 (todos-find-item): Restrict calculation and comparison of
127 priorities to top priority items, in order to handle diary and
128 regexp items.
129 (todos-check-filtered-items-file): Rename from
130 todos-check-top-priorities and adjust message and callers.
131 (todos-filter-items-filename): Rename from
132 todos-top-priorities-filename, adjusting caller and extending to
133 files of filtered diary and regexp items.
134 (todos-save-filtered-items-buffer): Rename from
135 todos-save-top-priorities-buffer and adjust caller and uses. Use
136 write-file instead of write-region and use existing file name if
137 previously saved.
138 (todos-show): Handle initially displaying saved file of filtered
139 diary or regexp items.
140 (todos-top-priorities, todos-top-priorities-multifile)
141 (todos-diary-items, todos-diary-items-multifile)
142 (todos-regexp-items, todos-regexp-items-multifile): Use new
143 function todos-filter-items.
144 (auto-mode-alist): Extend regexp for files assigned to
145 todos-filtered-items-mode to handle saved diary and regexp items.
146
1472013-03-17 Stephen Berman <stephen.berman@gmx.net>
148
149 * calendar/todos.el (todos-insert-item): Fix mistake in logic of
150 here insertion from last change, and ensure category is set when
151 command is called from outside Todos buffer.
152
1532013-03-15 Stephen Berman <stephen.berman@gmx.net>
154
155 * calendar/todos.el: Item unarchiving fixes and improvements.
156 (todos-archive-mode-map): Add bindings for item and category
157 marking/unmarking; make todos-display-categories binding same as
158 in Todos mode; remove todos-unarchive-category binding.
159 (todos-unarchive-category): Remove.
160 (todos-unarchive-items): Fix handling of marked items. Remove
161 code for unarchiving whole category, since that is covered by
162 unarchiving marked items. Handle unarchiving items to a category
163 that had been deleted from the todo file by re-adding the
164 category. Use todos-category-select to display restored items,
165 not todos-show. Remove obsolete or superfluous code.
166
1672013-03-15 Stephen Berman <stephen.berman@gmx.net>
168
169 * calendar/todos.el (todos-reset-prefix): Don't remove overlays,
170 since it's superfluous and also wrongly removes items marks.
171 (todos-category-completions): Select current category on visiting
172 file, to ensure category is properly displayed if user switches to
173 file via a non-Todos command.
174 (todos-mark-category): Make implementation cleaner.
175 (todos-unmark-category): Improve implementation. Get overlay
176 property only when there is an overlay.
177
1782013-03-14 Stephen Berman <stephen.berman@gmx.net>
179
180 * calendar/todos.el (todos-insert-item): Fix last change to make
181 sure calling insertion "here" from outside goal todo items section
182 gives new item top priority. With priority insertion, if user
183 cancels before setting priority, restore display.
184 (todos-find-item): Restore narrowing after searching.
185 (todos-item-done): Allow adding (same) comment to marked items.
186 Don't add empty comment to done item.
187
1882013-03-13 Stephen Berman <stephen.berman@gmx.net>
189
190 * calendar/todos.el (todos-quit): If quitting
191 todos-filtered-items-mode makes todos-mode current, don't call
192 todos-show, which (here wrongly) prompts for a new Todos file.
193 (todos-delete-category): Fix incorrect quotation mark.
194 (todos-set-item-priority): Make prefix argument a no-op with
195 commands for raising or lowering item priority. Move mistakenly
196 placed right paren to end of defun, where it belongs.
197
1982013-02-25 Stephen Berman <stephen.berman@gmx.net>
199
200 * calendar/todos.el (todos-key-bindings): Add binding for `todos-show'.
201 (todos-show): Prompt for which todo file to visit when invoked
202 from Todos mode.
203
2042013-02-19 Stephen Berman <stephen.berman@gmx.net>
205
206 * calendar/todos.el: Item insertion and done/undo fixes.
207 (todos-insert-item): Maybe set the insertion file to
208 todos-global-current-todos-file. When inserting into a file that
209 was not being visited on invoking this command, ensure chosen
210 category is properly selected. Make item inserted "here" the
211 first todo item if the command was invoked with point in done
212 items section or outside of the current category.
213 (todos-item-done): When done items are shown, put cursor on first
214 just done item.
215 (todos-item-undo): Put cursor on undone item.
216
2172013-02-16 Stephen Berman <stephen.berman@gmx.net>
218
219 * calendar/todos.el: Improve handling of overlays.
220 (todos-get-overlay): New function.
221 (todos-prefix-overlay): Remove, since subsumed by
222 todos-get-overlay, and replace by the latter in callers.
223 (todos-reset-prefix): Apply only to buffer visiting Todos files.
224 Simplify implementation and use `todos' overlay property.
225 (todos-reset-done-separator): Use todos-get-overlay and `todos'
226 overlay property. Fix logic.
227 (todos-category-select): Use todos-get-overlay and `todos' overlay
228 property.
229 (todos-remove-item): Use todos-get-overlay. Correct obsolete code.
230 (todos-prefix-overlays): Use todos-top-priority face also for
231 non-numerical prefix of top priority items. Add `todos' overlay
232 property.
233 (todos-hide-show-date-time): Simplify, using todos-get-overlay and
234 `todos' overlay property.
235
2362013-02-14 Stephen Berman <stephen.berman@gmx.net>
237
238 * calendar/todos.el (todos-edit-multiline, todos-edit-quit):
239 Revert buffer renaming.
240
2412013-02-11 Stephen Berman <stephen.berman@gmx.net>
242
243 * calendar/todos.el (todos-edit-quit): On quitting file editing,
244 rename buffer back to current Todos file. After selecting
245 category, put point at top instead of recentering.
246
2472013-02-08 Stephen Berman <stephen.berman@gmx.net>
248
249 * calendar/todos.el (todos-edit-multiline-item): Revert to using
250 indirect buffer, which makes it easier to return to Todos mode.
251 (todos-edit-quit): Don't delete and reinsert items that don't need
252 indenting. Revert to just killing buffer on quitting single item
253 editing. On quitting file editing, select nearest category.
254
2552013-02-07 Stephen Berman <stephen.berman@gmx.net>
256
257 * calendar/todos.el: Bug fixes and improvements to item editing
258 and insertion.
259 (todos-check-format): Compare current value of todos-categories
260 with actual categories sexp.
261 (todos-repair-categories-sexp): Add warning to doc string about
262 category order getting restored to list element order.
263 (todos-mode-external-set): When todos-categories is nil, as in
264 Todos Edit mode, set it by reading actual categories sexp.
265 (todos-edit-mode): Make buffer writeable.
266 (todos-done-item-section-p): New function.
267 (todos-insert-item): Use it as part of preventing insertion here
268 in done items section. Move check for display of done items only
269 to just before setting new item's priority, and if cancelled after
270 toggling to todo items, restore display of done items.
271 (todos-edit-multiline-item): Don't base on todos-edit-multiline
272 but just narrow and change mode.
273 (todos-edit-multiline): Don't make indirect buffer but just widen
274 and change mode; also remove overlays.
275 (todos-edit-quit): Restore Todos mode and category display; when
276 quitting multiline item editing, ensure items above edited item
277 are visible in window if possible.
278 (todos-done-item-add-edit-or-delete-comment): If user moved point
279 during editing, make sure it moves back to edited item before
280 returning.
281
2822013-02-05 Stephen Berman <stephen.berman@gmx.net>
283
284 * calendar/todos.el (todos-reset-done-separator-string):
285 Complete the implementation.
286 (todos-hide-show-done-items): If start of done items sections is
287 below the bottom of the window, make it visible.
288 (todos-insert-item): Allow inserting item here to work outside of
289 the current category, but then at top of category. After checking
290 whether only done items are shown, restore point to ensure
291 inserting item here works correctly.
292 (todos-set-item-priority): Delete leftover right paren at end.
293
2942013-02-04 Stephen Berman <stephen.berman@gmx.net>
295
296 * calendar/todos.el: Bug fixes involving or displaying done items.
297 (todos-done-separator): Make length of long separator one less
298 than window-width, in order to avoid following empty line.
299 (todos-forward-item, todos-backward-item): Make empty line below
300 last todo item accessible only by invoking without a numerical
301 prefix argument and make the latter invocations move only to items.
302 (todos-insert-item): Set todos-current-todos-file after selecting
303 buffer, in order not to set global value. If only done items are
304 shown when this command is invoked, toggle to show todo items to
305 avoid insertion into done items section. When done items are
306 shown, protect from cancelling before setting item priority: this
307 also needs recentering to display all items.
308 (todos-set-item-priority): Only call on (not done) todo items.
309 Check that done items are visible not because file is widened.
310 Use only `any' argument of called-interactively-p. Make sure that
311 giving an undone item lowest priority restores it to the todo
312 section.
313 (todos-item-done): If done items are visible on invoking this
314 command, keep them visible afterwards. Stop looking for marked
315 items on reaching the empty line below the last todo item.
316
3172013-02-02 Stephen Berman <stephen.berman@gmx.net>
318
319 * calendar/todos.el: Several small fixes and improvements.
320 (todos-done-separator-string): Change default value.
321 (todos-update-categories-sexp): Remove unnecessary and misquided
322 setq of todos-default-todos-file. Use delete-region instead of
323 kill-region to avoid polluting kill-ring.
324 (todos-unload-hook): Remove (was not used).
325 (todos-edit-multiline): Don't generate new edit buffer name on
326 each invocation---that can cause confusion due to indirect buffer.
327 (todos-edit-quit): Ensure lines in edit buffer that follow hard
328 newlines are indented in the file to conform to diary format.
329 (todos-set-item-priority): If done items in category are visible,
330 keep them visible.
331
3322013-01-30 Stephen Berman <stephen.berman@gmx.net>
333
334 * calendar/todos.el: Fix done separator overlay bug. Remove most
335 FIXME comments.
336 (todos-reset-and-enable-done-separator): Remove commented out
337 workaround for done separator overlay bug; fix doc string.
338 (todos-reset-done-separator): Delete old overlay after adding new
339 overlay to fix done separator overlay bug; improve implementation.
340 (todos-prefix-overlays): Improve first line of doc string.
341
3422013-01-29 Stephen Berman <stephen.berman@gmx.net>
343
344 * calendar/todos.el: Improve item marking and handling of marked items.
345 (todos-prefix): Add validator to ensure value differs from that of
346 todos-item-mark.
347 (todos-item-mark): New defcustom.
348 (todos-prefix-overlay): New function.
349 (todos-marked-item-p): Use it. Adapt implementation to new
350 handling of marked items.
351 (todos-insert-with-overlays): When inserting pushes down a marked
352 item, move its prefix overlay.
353 (todos-prefix-overlays): Add overlay even when prefix is empty string,
354 otherwise item marking fails. Improve handling of marked items.
355 (todos-mark-unmark-item): Adapt to new handling of marked items
356 and simplify by removing marking of all items in category.
357 (todos-mark-category): Adapt to new handling of marked items and
358 don't use todos-mark-unmark-item.
359 (todos-unmark-category): Adapt to new handling of marked items.
360 (todos-delete-item): Remove obsolete handling of marked items and
361 useless restoration of point.
362 (todos-set-item-priority): Use new handling of marked items.
363 (todos-move-item, todos-item-done, todos-item-undo)
364 (todos-archive-done-item): Remove obsolete handling of marked items.
365
3662013-01-25 Stephen Berman <stephen.berman@gmx.net>
367
368 * calendar/todos.el: Improve definitions and use of some faces.
369 (todos-top-priority): Use current definition of font-lock-constant-face.
370 (todos-diary-expired): Make default value contrast more with
371 default value of todos-date face.
372 (todos-nondiary, todos-category-string): New faces.
373 (todos-nondiary-face, todos-category-string-face): Corresponding
374 new variables.
375 (todos-done, todos-comment): Switch default values to go better
376 with default value of todos-date face.
377 (todos-done-sep): Change default value.
378 (todos-category-string-matcher-1)
379 (todos-category-string-matcher-2): Improve doc string.
380 (todos-font-lock-keywords): Use todos-nondiary-face and
381 todos-category-string-face.
382 (todos-done-separator): Propertize string with todos-done-sep face.
383 (todos-filtered-items-mode): Fix typo.
384
3852013-01-23 Stephen Berman <stephen.berman@gmx.net>
386
387 * calendar/todos.el: Improve handling of saved top priorities items.
388 (todos-find-item): Find done items and items whose priority has
389 changed or whose text was truncated or augmented; add doc string.
390 (todos-check-top-priorities): Highlight each item that is not up
391 to date.
392 (todos-jump-to-item): Jump to items whose priority has changed or
393 whose text was truncated or augmented.
394
3952013-01-22 Stephen Berman <stephen.berman@gmx.net>
396
397 * calendar/todos.el: Revise handling of initial display and extend
398 to top priorities file.
399 (todos-display-categories-first): Remove, replacing by this:
400 (todos-show-first): New defcustom.
401 (todos-first-visit): Remove, replacing by this:
402 (todos-visited): New variable.
403 (todos-absolute-file-name): Extend possible values of optional
404 argument to take top priorities files into account.
405 (todos-modes-set-3, todos-mode): Remove use of todos-first-visit.
406 (todos-mode-external-set): Call find-file-noselect instead of
407 find-buffer-visiting, since the latter may fail.
408 (todos-show): Revise handling of initial display using
409 todos-show-first and todos-visited and extend to top priorities
410 file.
411 (todos-quit): Adapt to new handling of initial display.
412
4132013-01-14 Stephen Berman <stephen.berman@gmx.net>
414
415 * calendar/todos.el: Implement saving top priority items buffers,
416 improve implementation of item filtering commands and
417 infrastucture, and fix two bugs.
418 (todos-prefix-overlays): Use todos-top-priority face only in Todos
419 mode.
420 (todos-multiple-filter-files): Get file-truename of Todos file.
421 (todos-filter-items): Pass a list of files from the caller instead
422 of building it here, and move handling of cancelled file selection
423 dialog to callers. Correct omission of file-wide default number
424 of top priorities.
425 (todos-filtered-buffer-name): Treat file-list argument only as a list.
426 (todos-find-item, todos-check-top-priorities)
427 (todos-top-priorities-filename)
428 (todos-save-top-priorities-buffer): New functions.
429 (todos-save): Use todos-save-top-priorities-buffer.
430 (todos-jump-to-item): Refactor and use todos-find-item.
431 (todos-top-priorities): Simplify semantics of prefix argument.
432 Check if top priorities file exists and if so, visit it, reporting
433 whether it is up to date. Add optional argument and use it to
434 handle multiple files.
435 (todos-diary-items, todos-regexp-items): Add optional argument and
436 use it to handle multiple files.
437 (todos-top-priorities-multifile, todos-diary-items-multifile)
438 (todos-regexp-items-multifile): Refactor, using corresponding
439 non-multifile command.
440 (auto-mode-alist): Add pattern for top priorities files to visit
441 these in Todos Filtered Items mode.
442
4432013-01-08 Stephen Berman <stephen.berman@gmx.net>
444
445 * calendar/todos.el: Fix tabular alignment in Todos Categories mode.
446 (todos-adjusted-category-label-length): New function.
447 (todos-padded-string): Use it.
448
4492013-01-08 Stephen Berman <stephen.berman@gmx.net>
450
451 * calendar/todos.el (todos-move-item): Allow moving done items to
452 done section of another category.
453
4542013-01-06 Stephen Berman <stephen.berman@gmx.net>
455
456 * calendar/todos.el: Display numerical priority string of top
457 priority items in category in a distinctive face.
458 (todos-prefix-string): Make doc string more precise.
459 (todos-top-priority): New defface.
460 (todos-done, todos-done-sep): Use more compact face definition
461 \(taken from font-lock.el).
462 (todos-comment): Give a complete face definition, instead of
463 inheriting from todos-done.
464 (todos-font-lock-keywords): Use todos-comment-face for
465 todos-comment-string-matcher.
466 (todos-prefix-overlays): Use todos-top-priority as the face
467 property of top priority items; don't condition reapplying item
468 prefix overlay on whether the string changed, since that prevents
469 updating display after changing number of top priorities.
470 (todos-set-top-priorities): Call todos-prefix-overlays to update
471 display.
472
4732013-01-04 Stephen Berman <Stephen.Berman@rub.de>
474
475 * calendar/todos.el (todos-reset-global-current-todos-file)
476 (todos-display-categories-1): Use absolute name of
477 todos-default-todos-file.
478
4792013-01-04 Stephen Berman <Stephen.Berman@rub.de>
480
481 * calendar/todos.el (todos-insert-item): Fix copy and paste error
482 from previous change.
483
4842013-01-03 Stephen Berman <stephen.berman@gmx.net>
485
486 * calendar/todos.el: Implement extended category completions.
487 (todos-default-todos-file): Change default value to correct custom
488 type.
489 (todos-category-completions-files): New defcustom.
490 (todos-reevaluate-category-completions-files-defcustom)
491 (todos-absolute-file-name, todos-category-completions): New defuns.
492 (todos-reevaluate-filelist-defcustoms):
493 Add todos-category-completions-files and
494 todos-reevaluate-category-completions-files-defcustom.
495 (todos-allcats-file, todos-all-categories-alist)
496 (todos-jump-to-category-other-file, todos-jump-to-any-category)
497 (todos-move-item-to-file): Remove (todos-all-categories-alist both
498 as defvar and as defun).
499 (todos-read-category): Rewrite using extended category completions
500 and better handling of completion against existing or non-existing
501 categories.
502 (todos-validate-name): Correct doc string; use local instead of
503 dynamic variables in function body.
504 (todos-insert-category-line): Adjust use of todos-jump-to-category
505 to new argument list.
506 (todos-key-bindings, todos-menu): Delete entries for removed
507 commands.
508 (todos-show): Get absolute name of todos-default-todos-file;
509 add `nowarn' argument to find-file-noselect; adjust use of
510 todos-add-category to new argument list.
511 (todos-jump-to-category): Rewrite using extended category
512 completions; reverse argument list, adapting FILE argument to new
513 completion mechanism; add autoload cookie; call todos-show if
514 there are no Todos files.
515 (todos-add-category): Rewrite using extended category completions;
516 add FILE argument to accommodate new completion mechanism.
517 (todos-merge-category): Adapt to extended category completions,
518 adding prefix argument.
519 (todos-insert-item): Adapt to extended category completions; use
520 todos-read-category instead of todos-jump-to-category in prefix
521 argument calls; call todos-show if there are no Todos files; if
522 item is inserted at end of category, recenter to ensure the items
523 above it are displayed in the window.
524 (todos-move-item): Adapt to extended category completions, making
525 argument prefix argument; allow moving within category (for the
526 sake of code simplification); add `nowarn' argument to
527 find-file-noselect.
528 (todos-archive-done-item): Prevent error when attempting to
529 archive not-done todo item; adjust use of todos-add-category to
530 new argument list.
531
5322012-12-15 Stephen Berman <stephen.berman@gmx.net>
533
534 * calendar/todos.el (todos-archive-done-item): Fix archiving of
535 all done items in a category and resulting display of todo file.
536
5372012-12-14 Stephen Berman <stephen.berman@gmx.net>
538
539 * calendar/todos.el (todos-priorities-rules): Fix customization
540 type to prevent mismatch error.
541 (todos-set-top-priorities): Fix rule construction; fix input check;
542 improve prompt.
543
5442012-12-14 Stephen Berman <stephen.berman@gmx.net>
545
546 * calendar/todos.el (todos-insert-item): If user exits Calendar
547 before choosing a date, cancel item insertion.
548 (todos-set-date-from-calendar): If user exits Calendar before
549 choosing a date, clean up properly.
550
5512012-12-12 Stephen Berman <stephen.berman@gmx.net>
552
553 * calendar/todos.el: Extend and improve handling of item editing,
554 especially of date/time header.
555 (todos-month-name-array, todos-month-abbrev-array): New defconsts.
556 (todos-date-pattern): Use explicitly numbered groups.
557 (todos-read-date): Optionally read and return just one of the date
558 string components year, month or monthname, day.
559 (todos-key-bindings): Add bindings for new item header editing
560 commands.
561 (todos-edit-item): Exclude date/time header from minibuffer by
562 default; include it by passing a prefix argument.
563 (todos-edit-item-header-1): New function containing the guts of
564 the commands for editing item date/time headers.
565 (todos-edit-item-header): Use it. Condition editing of time
566 string on value of `todos-always-add-time-string'.
567 (todos-edit-item-date-from-calendar): Use todos-edit-item-header-1.
568 (todos-edit-item-date-to-today): Rename from
569 todos-edit-item-date-is-today and use todos-edit-item-header-1.
570 (todos-edit-item-date): Remove.
571 (todos-edit-item-date-day-name, todos-edit-item-date-year)
572 (todos-edit-item-date-month, todos-edit-item-date-day): New commands.
573
5742012-12-02 Stephen Berman <stephen.berman@gmx.net>
575
576 * calendar/todos.el (todos-show): Fix a comment.
577 (todos-add-category): Prompt for a new category if passed category
578 is the empty string, not nil.
579
5802012-11-26 Stephen Berman <stephen.berman@gmx.net>
581
582 * calendar/todos.el (todos-make-categories-list)
583 (todos-convert-legacy-files, todos-jump-to-item)
584 (todos-move-category, todos-merge-category)
585 (todos-archive-done-item, todos-unarchive-items): Include end of
586 line in regex searches for beginning of category, in order not to
587 get a category whose name contains the searched for category name.
588
5892012-11-15 Stephen Berman <stephen.berman@gmx.net>
590
591 * calendar/todos.el (todos-forward-category): Fix typo.
592
5932012-10-30 Stephen Berman <stephen.berman@gmx.net>
594
595 * calendar/todos.el (todos-define-insertion-command):
596 Let generated insertion commands accept a prefix argument.
597
5982012-10-08 Stephen Berman <Stephen.Berman@rub.de>
599
600 * calendar/todos.el (todos-move-item): If user quits before
601 completing movement, restore display of initial category; if item
602 is moved to end of target category, make sure the items above it
603 are displayed in the window.
604
6052012-10-08 Stephen Berman <stephen.berman@gmx.net>
606
607 * calendar/todos.el: Fixes to todos-move-item and some of its
608 subroutines.
609 (todos-move-item): When there are marked items, point need not be
610 on an item; remove obsolete use of todos-add-category, since this
611 is now already done in todos-read-category; fix typo.
612 (todos-diary-item-p): Exclude empty lines.
613 (todos-read-category): Restore point and narrowing after adding
614 new category, to avoid moving to beginning of file when moving
615 marked items to a new category.
616 (todos-set-item-priority): Prompt for priority only when the
617 category has at least one todo item; only use non-nil priority to
618 calculate insertion location.
619 (todos-read-category): Don't reset todos-categories when a new
620 category is added due to todos-move-item or todos-jump-to-item.
621
6222012-09-24 Stephen Berman <stephen.berman@gmx.net>
623
624 Changes from 2012-07-14 (revision 110020).
625 * calendar/todos.el (todos-copy-item): New command.
626 (todos-insertion-map): Add key binding for it.
627
6282012-09-24 Stephen Berman <stephen.berman@gmx.net>
629
630 Changes from 2012-07-13 (revision 110019).
631 * calendar/todos.el (todos-undo-item-omit-comment): New defcustom.
632 (todos-item-undo): Use it.
633 (todos-allcats-file, todos-all-categories-alist): New variables.
634 (todos-all-categories-alist): New function.
635 (todos-jump-to-any-category): New command.
636 (todos-move-item): Remove mark overlays from buffer items were
637 moved from; update todos-categories-with-marks,
638
6392012-09-24 Stephen Berman <stephen.berman@gmx.net>
640
641 Changes from 2012-06-27 (revision 110018).
642 * calendar/todos.el: Further code rearrangement; further new and
643 revised comments.
644 (todos-reevaluate-filelist-defcustoms): Rename from
645 todos-reevaluate-defcustoms and adjust callers.
646 (todos-date-pattern, todos-nondiary-start, todos-nondiary-end)
647 (todos-date-string-start, todos-done-string-start)
648 (todos-item-start): Change from defvar to defconst.
649 (todos-set-top-priorities): Use read-number and simplify.
650 (todos-insert-item): Check whether date-type argument is a string.
651 (todos-set-date-from-calendar): Check whether
652 todos-date-from-calendar is a string; simplify cond clause.
653 (todos-archive-done-item, todos-unarchive-items):
654 Use buffer-substring-no-properties.
655
6562012-09-23 Stephen Berman <stephen.berman@gmx.net>
657
658 Changes from 2012-06-25 (revision 110017).
659 * calendar/todos.el (todos-item-undo): Fix restoration on
660 cancelling; use buffer-substring-no-properties; comment out code
661 removing mark overlay; fix insertion of undone items; display any
662 remaining done items.
663
6642012-09-23 Stephen Berman <stephen.berman@gmx.net>
665
666 Changes from 2012-06-24 (revision 110016).
667 * calendar/todos.el: Further significant code rearrangement;
668 further comment revision.
669 (todos-mode-display): New defgroup.
670 (todos-prefix, todos-number-priorities)
671 (todos-done-separator-string, todos-done-string)
672 (todos-comment-string, todos-show-with-done)
673 (todos-mode-line-function, todos-skip-archived-categories)
674 (todos-highlight-item, todos-wrap-lines)
675 (todos-line-wrapping-function): Use it.
676 (todos-item-insertion): New defgroup.
677 (todos-include-in-diary, todos-diary-nonmarking)
678 (todos-nondiary-marker, todos-always-add-time-string)
679 (todos-use-only-highlighted-region): Use it.
680 (todos-forward-button, todos-backward-button): New commands.
681 (todos-categories-mode-map): Use them, replacing forward-button
682 and backward-button.
683 (todos-merge-category): Fix and improve implementation; handle
684 archived items.
685 (todos-insert-item, todos-set-date-from-calendar): Handle setting
686 date by calling todos-insert-item-from-calendar.
687 (todos-delete-item): Fix overlay handling.
688 (todos-move-item): Highlight item to be moved.
689 (todos-item-undo): Handle marked items.
690 (todos-insert-item-from-calendar): Rewrite using
691 todos-date-from-calendar.
692
6932012-09-23 Stephen Berman <stephen.berman@gmx.net>
694
695 Changes from 2012-06-21 (revision 110015).
696 * calendar/todos.el: Further comment revision.
697 (todos-sorted-column): Change default value, also taking tty into
698 account.
699 (todos-reset-done-separator): Fix faulty variable binding.
700 (todos-reset-and-enable-done-separator): Save match data; comment
701 out code that causes problems for Edebug.
702 (todos-item-start): Handle empty line between todo and done items
703 when done items are hidden.
704 (todos-read-date): Use a leap year for `*' to allow
705 calendar-last-day-of-month to return Feb. 29.
706 (todos-archive-mode, todos-edit-mode, todos-categories-mode)
707 (todos-filtered-items-mode): Delete faulty parentheses.
708 (todos-quit): Save Todos and archive files unconditionally.
709 (todos-forward-item): Accept only positive prefix argument.
710 (todos-backward-item): Accept only positive prefix argument; don't
711 move point to beginning of buffer if it is on the first item.
712 (todos-hide-show-date-time): Remove obsolete interactive spec.
713 (todos-move-category): Improve prompt string; ensure file moved to
714 is different from file moved from.
715 (todos-merge-categories): Remove.
716 (todos-set-category-priority): New command.
717 (todos-raise-category-priority, todos-lower-category-priority):
718 Use it to define these commands.
719 (todos-set-item-priority): Rewrite and generalize.
720 (todos-raise-item-priority, todos-lower-item-priority): Use it to
721 define these commands.
722
7232012-09-23 Stephen Berman <stephen.berman@gmx.net>
724
725 Changes from 2012-06-15 (revision 110014).
726 * calendar/todos.el (todos-reset-done-separator)
727 (todos-reset-and-enable-done-separator): New functions.
728 (todos-reset-done-separator-string): Rewrite using
729 todos-reset-done-separator for string longer than 1 character.
730 (todos-mode): Add todos-reset-and-enable-done-separator to
731 window-configuration-change-hook, replacing previous anonymous
732 function.
733 (todos-unload-hook): And remove it.
734
7352012-09-23 Stephen Berman <stephen.berman@gmx.net>
736
737 Changes from 2012-06-14 (revision 110013).
738 * calendar/todos.el (todos-done-separator-string): New defcustom.
739 (todos-done-separator): New variable replacing defcustom of the
740 same name.
741 (todos-reset-done-separator-string, todos-done-separator):
742 New functions.
743 (todos-mode): Make function added to
744 window-configuration-change-hook do a better job of updating the
745 done items separator string overlay.
746 (todos-unload-hook): Remove it here.
747 (todos-item-undo): Fix search for item's end.
748
7492012-09-23 Stephen Berman <stephen.berman@gmx.net>
750
751 Changes from 2012-06-03 (revision 110012).
752 * calendar/todos.el: Further comment revision.
753 (todos-sorted-column): Change default value.
754 (todos-item-start): Handle empty category (needed in
755 todos-filter-items).
756 (todos-read-date): Don't use calendar-read; make code cleaner.
757 (todos-multiple-filter-files): Rename this variable from
758 todos-multiple-files and adjust users.
759 (todos-multiple-filter-files-widget): Rename from
760 todos-multiple-files-widget and adjust users.
761 (todos-multiple-filter-files): Rename this function from
762 todos-multiple-files and adjust callers.
763 (todos-filter-items): Remove unused code.
764 (todos-insert-category-line): Add space so highlighting of last
765 column is consistent with the others; adjust display of column
766 highlighting.
767 (todos-menu): Remove obsolete entry.
768 (todos-categories-mode-map): Add new bindings.
769 (todos-display-categories-alphabetically-or-by-priority): New command.
770 (todos-display-categories-sorted-by-todo)
771 (todos-display-categories-sorted-by-diary)
772 (todos-display-categories-sorted-by-done)
773 (todos-display-categories-sorted-by-archived): Restore and fix
774 implementation.
775
7762012-09-23 Stephen Berman <stephen.berman@gmx.net>
777
778 Changes from 2012-06-02 (revision 110011).
779 * calendar/todos.el: Significant code rearrangement; further
780 comment revision.
781 (todos-filtered-items-buffer): Rename from todos-filter-buffer and
782 adjust users.
783 (todos-filtered-buffer-name): Rename from
784 todos-special-buffer-name and adjust users.
785 (todos-filtered-items-mode-map): Rename from
786 todos-filter-items-mode-map and adjust users.
787 (todos-mode-external-set): Use todos-categories instead of
788 todos-set-categories (and add comment to check if this DTRT).
789 (todos-filtered-items-mode): Rename from todos-filter-items-mode
790 and adjust users.
791 (todos-add-category): Don't call todos-validate-name, since
792 todos-read-category does.
793 (todos-edit-quit): Use todos-repair-categories-sexp.
794 (todos-done-item-add-edit-or-delete-comment): Rename from
795 todos-done-item-add-or-edit-comment and adjust users; add optional
796 argument to prompt to delete comment.
797 (todos-item-undo): Delete done item comment on undoing if user
798 confirms.
799
8002012-09-22 Stephen Berman <stephen.berman@gmx.net>
801
802 Changes from 2012-06-02 (revision 110010).
803 * calendar/todos.el: Further code rearrangement and comment
804 revision.
805 (todos-item-start): Handle empty line between todo and done items
806 when done items are displayed.
807 (todos-key-bindings): Comment out bindings meant only for
808 todos-archive-mode.
809 (todos-archive-mode-map): Fix typo.
810 (todos-archive-mode): Derive from special-mode instead of
811 todos-mode to prevent its key bindings from being available here.
812 (todos-archive-done-item): Remove obsolete code; fix item count
813 updating.
814 (todos-unarchive-items): Simplify; fix unarchiving of all items in
815 category; fix item count updating; fix typo.
816
8172012-09-22 Stephen Berman <stephen.berman@gmx.net>
818
819 Changes from 2012-06-01 (revision 110009).
820 * calendar/todos.el: Further code rearrangement and comment
821 revision.
822 (todos-add-to-buffer-list, todos-update-buffer-list): New functions.
823 (todos-file-buffers): New variable.
824 (todos-reset-global-current-todos-file): Use it to simplify
825 implementation of this function.
826 (todos-filtered): New defgroup.
827 (todos-filter-buffer, todos-top-priorities-buffer)
828 (todos-diary-items-buffer, todos-regexp-items-buffer)
829 (todos-priorities-rules, todos-show-priorities)
830 (todos-filter-files, todos-filter-done-items): Use it.
831 (todos-skip-archived-categories): Rename from
832 todos-ignore-archived-categories and adjust users.
833 (todos-display-as-todos-file): Rename from todos-after-find-file
834 and adjust callers.
835 (todos-reset-highlight-item, todos-mode-external-set)
836 (todos-jump-to-category, todos-jump-to-item)
837 (todos-raise-category-priority, todos-insert-item)
838 (todos-move-item): Use find-file-visiting.
839 (todos-make-categories-list): Use file-truename.
840 (todos-display-categories-1): Adjust title text for archive files;
841 use done label for item counts in archive files.
842 (todos-modes-set-3): Add todos-display-as-todos-file to
843 find-file-hook.
844 (todos-mode): Add todos-add-to-buffer-list to find-file-hook and
845 todos-update-buffer-list post-command-hook.
846 (todos-unload-hook): And remove them.
847 (todos-show): Only when interactively invoked from an archive,
848 switch to corresponding Todos file.
849 (todos-archive-done-item): Remove obsolete code; fix handling of
850 marked items; fix search for existing category; check whether
851 archive exists and write to file if not; improve display handling.
852
8532012-09-21 Stephen Berman <stephen.berman@gmx.net>
854
855 Changes from 2012-05-29 (revision 110008).
856 * calendar/todos.el: Further comment revision.
857 (todos-item-end): Replace use of command todos-forward-item by
858 regexp searches using internal variables.
859 (todos-raise-category-priority): Improve and comment.
860 (todos-insert-item): Fix insertion of empty time string.
861
8622012-09-21 Stephen Berman <stephen.berman@gmx.net>
863
864 Changes from 2012-05-29 (revision 110007).
865 * calendar/todos.el (todos-ignore-archived-categories):
866 Revert last change; remove :initialize and :set functions; change
867 use and change users accordingly.
868 (todos-reset-categories, todos-categories-full)
869 (todos-truncate-categories-list): Remove.
870 (todos-set-categories, todos-update-categories-sexp):
871 Use todos-categories instead of todos-categories-full; remove use
872 of todos-ignore-archived-categories and
873 todos-truncate-categories-list.
874 (todos-check-format, todos-repair-categories-sexp):
875 Use todos-categories instead of todos-categories-full.
876 (todos-read-category): Improve last change.
877 (todos-validate-name): Use completing-read.
878 (todos-categories-category-number): Rename from
879 todos-category-number and adjust users.
880 (todos-update-categories-display, todos-mode-external-set)
881 (todos-delete-category, todos-move-category, todos-merge-category)
882 (todos-unarchive-items): Remove use of todos-categories-full and
883 todos-ignore-archived-categories.
884 (todos-modes-set-3, todos-add-category): Remove use of
885 todos-categories-full.
886 (todos-edit-mode): Fix typo.
887 (todos-forward-category): Use todos-ignore-archived-categories.
888
8892012-09-21 Stephen Berman <stephen.berman@gmx.net>
890
891 Changes from 2012-05-28 (revision 110006).
892 * calendar/todos.el: Doubts about todos-ignore-archived-categories.
893 (todos-ignore-archived-categories): Change default value.
894
8952012-09-21 Stephen Berman <stephen.berman@gmx.net>
896
897 Changes from 2012-05-27 (revision 110005).
898 * calendar/todos.el: Further comment revision.
899 (todos-reset-global-current-todos-file):
900 Try to make this not slow down kill-buffer.
901 (todos-update-categories-sexp): Handle the case where there is no
902 categories sexp yet, i.e. after inserting the first item in the
903 file, so todos-display-categories works.
904 (todos-read-file-name): Improve implementation.
905 (todos-validate-name): Use variable todos-files.
906 (todos-category-number): New variable.
907 (todos-insert-category-line, todos-update-categories-display)
908 (todos-raise-category-priority): Use it.
909 (todos-add-file): Remove unused remnant code.
910
9112012-09-21 Stephen Berman <stephen.berman@gmx.net>
912
913 Changes from 2012-05-25 (revision 110004).
914 * calendar/todos.el: Further comment revision.
915 (todos-set-item-top-priority): New command.
916 (todos-reset-global-current-todos-file):
917 Use todos-files-function instead of todos-files.
918 (todos-read-category): Add optional argument to test whether
919 caller adds new category; if so, don't prompt for new category and
920 don't restore original todos-categories list.
921 (todos-categories-mode-map): Update to renamed commands.
922 (todos-filter-items-mode-map): Add binding for new command.
923 (todos-mode): Fix typo.
924 (todos-show): If called from archive file, show corresponding
925 category in Todos file, if it exists.
926 (todos-jump-to-category): Remove code to add new category, since
927 todos-read-category can do that.
928 (todos-add-file): Remove obsolete code; visit new file in selected
929 window.
930 (todos-add-category): Simplify.
931 (todos-rename-category): Use force-mode-line-update instead of
932 setting mode-line-buffer-identification.
933 (todos-delete-category): Improve logic of prompts; use
934 todos-categories-full and check todos-ignore-archived-categories.
935 (todos-raise-category-priority, todos-lower-category-priority):
936 Rename from todos-{raise,lower}-category and adjust callers.
937 (todos-move-category, todos-merge-category):
938 Set todos-categories-full; on setting todos-categories check
939 todos-ignore-archived-categories.
940 (todos-insert-item): Let-bind use-empty-active-region and use
941 use-region-p instead of transient-mark-mode.
942 (todos-raise-item-priority): Improve implementation.
943 (todos-archive-done-item): Rename from
944 todos-archive-done-item-or-items and adjust callers; confine to
945 Todos mode.
946 (todos-unarchive-items): On setting todos-categories check
947 todos-ignore-archived-categories.
948
9492012-09-21 Stephen Berman <stephen.berman@gmx.net>
950
951 Changes from 2012-05-23 (revision 110003).
952 * calendar/todos.el (todos-key-bindings): Remove binding of
953 deleted command.
954 (todos-menu): Remove entry of deleted command.
955 (todos-show-archive): Fix last change.
956 (todos-done-item-add-or-edit-comment): Rename from
957 todos-comment-done-item and adjust callers; prompt to edit an
958 existing comment.
959
9602012-09-21 Stephen Berman <stephen.berman@gmx.net>
961
962 Changes from 2012-05-22 (revision 110002).
963 * calendar/todos.el (todos-set-show-current-file): Rename from
964 todos-toggle-show-current-file and adjust callers.
965 (todos-number-priorities): Rename from todos-number-prefix and
966 adjust users.
967 (todos-update-count): Rename from todos-set-count and adjust
968 callers.
969 (todos-hide-show-item-numbering): Rename from
970 todos-toggle-item-numbering and adjust callers.
971 (todos-hide-show-done-items): Rename from
972 todos-toggle-view-done-items and adjust callers.
973 (todos-show-done-only): Rename from todos-toggle-show-done-only.
974 (todos-view-archived-items): Comment out.
975 (todos-show-archive): Prompt to choose another archive file if
976 current Todos file lacks an archive; prompt to visit archive
977 anyway when current category has no archived items.
978
9792012-09-21 Stephen Berman <stephen.berman@gmx.net>
980
981 Changes from 2012-05-21 (revision 110001).
982 * calendar/todos.el: Further comment revision and code
983 rearrangement.
984 (todos-item-end): Revert last change.
985 (todos-key-bindings, todos-menu, todos-archive-mode-map)
986 (todos-filter-items-mode-map): Use renamed commands.
987 (todos-hide-show-date-time): Rename from
988 todos-toggle-display-date-time.
989 (todos-mark-unmark-item): Rename from todos-toggle-mark-item and
990 adjust caller.
991 (todos-backward-item): Exempt special handling only from
992 todos-regexp-items-buffer instead of todos-filter-items-mode.
993 (todos-raise-item-priority): Don't allow item reprioritizing in
994 Todos filter items mode except for top priority items.
995
9962012-09-21 Stephen Berman <stephen.berman@gmx.net>
997
998 Changes from 2012-05-19 (revision 110000).
999 * calendar/todos.el: Add and revise further doc strings and
1000 comments.
1001 (todos-filter-function, todos-custom-items)
1002 (todos-custom-items-multifile): Remove.
1003 (todos-filter-done-items): New defcustom.
1004 (todos-item-end, todos-backward-item): Handle todos-filter-items-mode.
1005 (todos-filter-items): Check return value of caller first; tag
1006 archived items for todos-jump-to-item; delete categories sexp
1007 before processing filter; check todos-filter-done-items for
1008 whether to leave done items; remove custom filter; fix regexp for
1009 file and category tags; don't invoke buffer fontification.
1010 (powerset-recursive): Fix typo.
1011 (todos-key-bindings): Remove unused bindings.
1012 (todos-top-priorities-multifile, todos-diary-items-multifile)
1013 (todos-regexp-items-multifile): Use variable todos-multiple-files.
1014 (todos-jump-to-item): Fix regexp; handle archive tags; take
1015 todos-filter-done-items into account.
1016 (todos-insert-item-from-calendar): Relocate to end of file
1017 together with key-binding as addition to calendar.el.
1018
10192012-09-20 Stephen Berman <stephen.berman@gmx.net>
1020
1021 Changes from 2012-05-17 (revision 109999).
1022 * calendar/todos.el: Add and revise further doc strings and
1023 comments; major code rearrangement.
1024 (todos-merged-files, todos-prompt-merged-files)
1025 (todos-print-priorities, todos-tmp-buffer-name)
1026 (todos-top-priorities-widgets, todos-update-merged-files)
1027 (todos-merged-top-priorities, todos-merged-diary-items)
1028 (todos-merged-regexp-items, todos-merged-custom-items)
1029 (todos-raw-mode, todos-change-default-file)
1030 (todos-toggle-diary-inclusion, todos-toggle-item-diary-nonmarking)
1031 (todos-toggle-diary-nonmarking, todos-validate-category-name):
1032 Remove.
1033 (todos-category-string-matcher): Comment out.
1034 (todos-categories): New defgroup.
1035 (todos-initial-file, todos-filter-buffer)
1036 (todos-top-priorities-buffer, todos-categories-category-label)
1037 (todos-diary-items-buffer, todos-regexp-items-buffer)
1038 (todos-custom-items-buffer, todos-filter-files)
1039 (todos-highlight-item, todos-todo-mode-date-time-regexp):
1040 New defcustoms.
1041 (todos-diary-expired): New face.
1042 (todos-print-buffer, todos-multiple-files)
1043 (todos-multiple-files-widget, todos-key-bindings): New variables.
1044 (todos-short-file-name, todos-reevaluate-default-file-defcustom)
1045 (todos-special-buffer-name)
1046 (todos-reevaluate-filter-files-defcustom)
1047 (todos-reset-highlight-item, todos-reevaluate-defcustoms)
1048 (todos-nondiary-marker-matcher, todos-diary-nonmarking-matcher)
1049 (todos-diary-expired-matcher, todos-category-string-matcher-1)
1050 (todos-category-string-matcher-2, todos-repair-categories-sexp)
1051 (todos-validate-name, todos-multiple-files)
1052 (todos-display-categories-1, todos-update-categories-display)
1053 (todos-modes-set-3, todos-mode-external-set): New functions.
1054 (todos-set-top-priorities-in-file)
1055 (todos-set-top-priorities-in-category)
1056 (todos-top-priorities-multifile, todos-diary-items-multifile)
1057 (todos-regexp-items-multifile, todos-custom-items-multifile)
1058 (todos-convert-legacy-files, todos-jump-to-item)
1059 (todos-edit-multiline-item, todos-edit-item-date-from-calendar)
1060 (todos-edit-item-diary-inclusion)
1061 (todos-edit-category-diary-inclusion)
1062 (todos-edit-item-diary-nonmarking)
1063 (todos-edit-category-diary-nonmarking): New commands.
1064 (todos, todos-faces): Update :version.
1065 (todos-done-separator, todos-completion-ignore-case):
1066 Change default value.
1067 (todos-done-separator): Change :set function.
1068 (todos-indent-to-here): Add :validate function to :type.
1069 (todos-prefix-string, todos-mark, todos-button)
1070 (todos-sorted-column, todos-archived-only, todos-search)
1071 (todos-done, todos-done-sep): Provide full face definitions
1072 instead of inheriting.
1073 (todos-edit-buffer, todos-categories-buffer): Change from
1074 defcustom to defvar.
1075 (todos-category-beg, todos-category-done): Change from defvar to
1076 defconst.
1077 (todos-files): Check if todos-files-directory exists.
1078 (todos-default-todos-file, todos-mode-line-control, todos-print):
1079 Use todos-short-file-name.
1080 (todos-font-lock-keywords): Use todos-nondiary-marker-matcher,
1081 todos-diary-nonmarking-matcher, todos-category-string-matcher-1,
1082 todos-category-string-matcher-2, todos-diary-expired-matcher.
1083 (todos-category-select): Use todos-done-string-start, and
1084 condition search on todos-show-with-done; don't make display
1085 overlay for done items separator string if there already is one;
1086 use todos-highlight-item, require hl-line and activate
1087 hl-line-mode here in order to avoid a hang if done in todos-mode
1088 or the mode hook.
1089 (todos-update-categories-sexp): Use todos-categories-full if set,
1090 otherwise todos-categories.
1091 (todos-make-categories-list): Don't test for archive file when
1092 processing a legacy todo-mode file.
1093 (todos-check-format): Add check for todos-categories sexp.
1094 (todos-diary-item-p): Use todos-nondiary-start instead of
1095 todos-date-pattern.
1096 (todos-marked-item-p): Rename from todos-item-marked-p.
1097 (todos-read-file-name): Don't accept empty name; validate.
1098 (todos-read-category): Validate new name before prompting whether
1099 to add new category; force quit if user answers no.
1100 (todos-filter-items): Improve implementation.
1101 (todos-set-top-priorities): Rewrite as a noninteractive function
1102 using minibuffer input instead of widgets.
1103 (todos-insert-sort-button): Call todos-display-sorted with
1104 argument nil to display categories in numerical order, instead of
1105 calling todos-display-categories.
1106 (powerset-recursive): Borrow and slightly reformulate the (GDFL'd)
1107 Common Lisp powerset function at
1108 http://rosettacode.org/wiki/Power_set#Common_Lisp.
1109 (powerset-bitwise): Implement in Emacs Lisp the (GDFL'd) C
1110 powerset function at http://rosettacode.org/wiki/Power_set#C.
1111 (todos-powerset): Defalias to powerset-bitwise.
1112 (todos-mode-map): Generate from todos-key-bindings instead of
1113 listing each key definition.
1114 (todos-categories-mode-map): Add two bindings.
1115 (todos-filter-items-mode-map): Add some bindings, remove others.
1116 (todos-mode): Derive from special-mode; use todos-modes-set-3; add
1117 function setting todos-done-separator to
1118 window-configuration-change-hook.
1119 (todos-unload-hook): Remove function setting todos-done-separator
1120 from window-configuration-change-hook.
1121 (todos-archive-mode): Derive from todos-mode; use todos-modes-set-3.
1122 (todos-edit-mode): Derive from text-mode; use todos-mode-external-set.
1123 (todos-categories-mode): Derive from special-mode; use
1124 todos-mode-external-set.
1125 (todos-filter-items-mode): Derive from special-mode.
1126 (todos-quit): Save archive file if it hasn't yet been saved.
1127 (todos-display-categories): Delegate all functionality to
1128 todos-display-categories-1 and todos-update-categories-display.
1129 (todos-toggle-view-done-items): Improve implementation.
1130 (todos-highlight-item): Require hl-line.
1131 (todos-toggle-display-date-time): Remove argument and make it
1132 apply only to whole file.
1133 (todos-top-priorities, todos-diary-items, todos-regexp-items)
1134 (todos-custom-items): Use todos-special-buffer-name.
1135 (todos-add-file): Use todos-short-file-name and
1136 todos-reevaluate-defcustoms; remove validation, since it's now
1137 done in todos-read-file-name.
1138 (todos-add-category): Also update todos-categories-full if non-nil.
1139 (todos-delete-category): Delete file after confirmation if only
1140 category is deleted.
1141 (todos-move-category): Use todos-short-file-name and
1142 todos-reevaluate-defcustoms.
1143 (todos-insert-item): Fix getting date from the calendar and
1144 insertion of time string.
1145 (todos-set-date-from-calendar): Enter calendar buffer, suppressing
1146 display of diary entries.
1147 (todos-edit-multiline): Add optional argument to restrict editing
1148 buffer to current item, otherwise make entire buffer (i.e. whole
1149 file) editable.
1150 (todos-edit-quit): When whole file is editable, check file format
1151 validity before killing buffer, and if valid, recalculate
1152 categories sexp to be safe.
1153 (todos-edit-item-header): Allow choosing date from calendar.
1154 (todos-item-done): Handle marked items.
1155
11562012-09-19 Stephen Berman <stephen.berman@gmx.net>
1157
1158 Changes from 2011-12-03 (revision 109998).
1159 * calendar/todos.el (todos-item-start): Restore commented out code
1160 to prevent wrongly moving point in widened buffer.
1161
11622012-09-19 Stephen Berman <stephen.berman@gmx.net>
1163
1164 Changes from 2011-12-02 (revision 109997).
1165 * calendar/todos.el: Remove old commentary from todo-mode.el; add
1166 and revise further doc strings and comments; require cl.el at
1167 compile time for remove-duplicates; use function powerset from
1168 http://rosettacode.org/wiki/Power_set#Common_Lisp (GFDL); further
1169 code rearrangement. Add adapted version of diary-goto-entry as comment.
1170 (todos-file-top, todos-archived-categories-buffer)
1171 (todos-save-top-priorities-too, todos-toggle-item-diary-inclusion)
1172 (todos-save-top-priorities, todos-reset-separator)
1173 (todos-switch-todos-file, todos-item-string-start, todos-counts)
1174 (todos-string-count-lines, todos-string-multiline-p)
1175 (todos-display-categories-alphabetically): Remove.
1176 (todos-insert-item-ask-date, todos-insert-item-ask-date-time)
1177 (todos-insert-item-ask-date-time-for-diary)
1178 (todos-insert-item-ask-date-time-for-diary-here)
1179 (todos-insert-item-ask-date-time-here)
1180 (todos-insert-item-ask-date-maybe-notime)
1181 (todos-insert-item-ask-date-maybe-notime-for-diary)
1182 (todos-insert-item-ask-date-maybe-notime-for-diary-here)
1183 (todos-insert-item-ask-date-maybe-notime-here)
1184 (todos-insert-item-ask-date-for-diary)
1185 (todos-insert-item-ask-date-for-diary-here)
1186 (todos-insert-item-ask-date-here, todos-insert-item-ask-dayname)
1187 (todos-insert-item-ask-dayname-time)
1188 (todos-insert-item-ask-dayname-time-for-diary)
1189 (todos-insert-item-ask-dayname-time-for-diary-here)
1190 (todos-insert-item-ask-dayname-time-here)
1191 (todos-insert-item-ask-dayname-maybe-notime)
1192 (todos-insert-item-ask-dayname-maybe-notime-for-diary)
1193 (todos-insert-item-ask-dayname-maybe-notime-for-diary-here)
1194 (todos-insert-item-ask-dayname-maybe-notime-here)
1195 (todos-insert-item-ask-dayname-for-diary)
1196 (todos-insert-item-ask-dayname-for-diary-here)
1197 (todos-insert-item-ask-dayname-here, todos-insert-item-ask-time)
1198 (todos-insert-item-ask-time-for-diary)
1199 (todos-insert-item-ask-time-for-diary-here)
1200 (todos-insert-item-ask-time-here)
1201 (todos-insert-item-maybe-notime)
1202 (todos-insert-item-maybe-notime-for-diary)
1203 (todos-insert-item-maybe-notime-for-diary-here)
1204 (todos-insert-item-maybe-notime-here)
1205 (todos-insert-item-for-diary, todos-insert-item-for-diary-here)
1206 (todos-insert-item-here): Remove; all of these are now generated
1207 on loading (some with the same name, most with other names.)
1208 (todos-item-counts, todos-display-categories-alphabetically)
1209 (todos-display-categories-sorted-by-todo)
1210 (todos-display-categories-sorted-by-diary)
1211 (todos-display-categories-sorted-by-done)
1212 (todos-display-categories-sorted-by-archived): Comment out.
1213 (todos-comment-string, todos-mode-line-function)
1214 (todos-filter-function, todos-priorities-rules)
1215 (todos-visit-files-commands, todos-categories-totals-label)
1216 (todos-use-only-highlighted-region, todos-diary-nonmarking):
1217 New defcustoms.
1218 (todos-mark, todos-comment): New faces.
1219 (todos-comment-face): Corresponding new variable.
1220 (todos-categories-full, todos-global-current-todos-file)
1221 (todos-first-visit, todos-insertion-commands-args-genlist)
1222 (todos-insertion-commands-args, todos-insertion-commands-names)
1223 (todos-insertion-commands, todos-insertion-commands-arg-key-list)
1224 (todos-top-priorities-widgets, todos-date-from-calendar)
1225 (todos-item-mark, todos-categories-with-marks): New variables.
1226 (todos-mode-line-control, todos-reset-global-current-todos-file)
1227 (todos-gen-arglists, todos-insertion-command-name)
1228 (todos-insertion-key-bindings, todos-unload-hook)
1229 (todos-filter-items, todos-set-date-from-calendar)
1230 (todos-comment-string-matcher, todos-after-find-file)
1231 (todos-reset-nondiary-marker, todos-reset-done-string)
1232 (todos-reset-comment-string, todos-show-current-file)
1233 (todos-item-marked-p, todos-total-item-counts): New functions.
1234 (todos-define-insertion-command): New macro.
1235 (todos-toggle-mark-item, todos-mark-category)
1236 (todos-unmark-category, todos-set-top-priorities)
1237 (todos-merged-diary-items, todos-regexp-items)
1238 (todos-merged-regexp-items, todos-custom-items)
1239 (todos-merged-custom-items, todos-comment-done-item)
1240 (todos-archive-category-done-items, todos-unarchive-items)
1241 (todos-print-to-file): New commands.
1242 (todos-done-separator): Change :set function.
1243 (todos-done-string): Uncomment :initialize and :set functions.
1244 (todos-files): Use file-truename.
1245 (todos-show-current-file): Rename from
1246 todos-auto-switch-todos-file and change :set function accordingly.
1247 (todos-font-lock-keywords): Use todos-comment-string-matcher;
1248 change names of other matcher functions to new *-matcher.
1249 (todos-category-number): Change initial value.
1250 (todos-insertion-map): Use todos-insertion-key-bindings to
1251 generate key definitions.
1252 (todos-mode-map): Don't suppress digit keys, so they can supply
1253 prefix arguments; add new and change some existing bindings.
1254 (todos-archive-mode-map): Change a key binding.
1255 (todos-categories-mode-map): Comment out a key binding.
1256 (todos-filter-items-mode-map): Rename from
1257 todos-top-priorities-mode-map.
1258 (todos-mode): Make todos-current-todos-file,
1259 todos-categories-full, todos-categories, todos-first-visit,
1260 todos-category-number, todos-show-done-only,
1261 todos-categories-with-marks local variables and set them; add
1262 todos-show-current-file to pre-command-hook, todos-after-find-file
1263 to post-command-hook and todos-reset-global-current-todos-file to
1264 kill-buffer-hook.
1265 (todos-archive-mode): Make todos-current-todos-file,
1266 todos-categories and todos-category-number local variables and set
1267 them; add todos-after-find-file to post-command-hook.
1268 (todos-raw-mode): New derived major mode.
1269 (todos-categories-mode): Don't set font-lock-defaults and
1270 buffer-read-only; make todos-current-todos-file and
1271 todos-categories local variables and set them.
1272 (todos-filter-items-mode): Rename from todos-top-priorities-mode-map.
1273 (todos-quit): Don't reset todos-categories on quitting
1274 todos-categories-mode; handle quitting todos-filter-items-mode.
1275 (todos-show): Simplify; when visiting an archive file switch to
1276 corresponding Todos file; use todos-first-visit.
1277 (todos-view-archived-items): Simplify; call todos-category-number.
1278 (todos-show-archive): Rename from todos-switch-to-archive and
1279 adjust callers; simplify.
1280 (todos-toggle-display-date-time): Add optional argument to toggle
1281 display in entire file.
1282 (todos-top-priorities): Use todos-filter-items, which now contains
1283 the previous core of this command.
1284 (todos-merged-top-priorities, todos-diary-items):
1285 Use todos-filter-items.
1286 (todos-forward-category): Add optional argument to go to the
1287 previous category.
1288 (todos-backward-category): Use todos-forward-category.
1289 (todos-jump-to-category): Refine implementation.
1290 (todos-forward-item, todos-backward-item): Fix movement from todo
1291 to done item and vice versa.
1292 (todos-add-file): Remove argument and simplify.
1293 (todos-rename-category): Use todos-current-todos-file and
1294 todos-mode-line-function; set todos-categories with
1295 todos-set-categories.
1296 (todos-delete-category): Ask what to do if category has archived items.
1297 (todos-raise-category): Ensure modified todos-categories is added
1298 to file's categories sexp.
1299 (todos-move-category): Improve implementation, especially handling
1300 of archived categories.
1301 (todos-merge-category): Tweak; set item counts.
1302 (todos-insert-item): Improve handling of various argument values;
1303 add new argument values to control marking of diary items and to
1304 use region for item body.
1305 (todos-insert-item-from-calendar): Use todos-global-current-todos-file.
1306 (todos-delete-item, todos-edit-item-header): Handle marked items.
1307 (todos-edit-item): Incorporate functionality of removed
1308 todos-string-multiline-p.
1309 (todos-edit-multiline): Use set-window-buffer instead of
1310 switch-to-buffer.
1311 (todos-edit-quit): Don't save on quitting; use todos-show instead
1312 of todos-category-select.
1313 (todos-raise-item-priority): Add argument to lower priority;
1314 improve handling of top priority items in todos-filter-items-mode;
1315 restore marks.
1316 (todos-lower-item-priority): Use todos-raise-item-priority.
1317 (todos-set-item-priority): Increment maximum number if item is new.
1318 (todos-move-item): Handle marked items; delay changing category
1319 moved from till after movement to avoid restoring if user cancels
1320 before insertion.
1321 (todos-item-done): Add optional argument to insert comment; fix
1322 item counts and update sexp.
1323 (todos-item-undo): Fix item counts and update.
1324 (todos-archive-done-item-or-items): Rename from
1325 todos-archive-done-items; add optional argument to archive all
1326 items in category; handle marked items.
1327 (todos-unarchive-category): Use todos-unarchive-items.
1328 (todos-toggle-diary-inclusion): Incorporate functionality of
1329 removed todos-toggle-item-diary-inclusion; handle marked items.
1330 (todos-print): Add optional argument to print to file.
1331 (todos-done-string-start): Don't use todos-nondiary-start.
1332 (todos-date-string-matcher, todos-time-string-matcher)
1333 (todos-done-string-matcher, todos-category-string-matcher): Rename
1334 from *-match and adjust callers.
1335 (todos-wrap-and-indent): Use set instead of setq for local variables.
1336 (todos-prefix-overlays): Improve overlay handling.
1337 (todos-reset-categories): Fix and complete implementation.
1338 (todos-toggle-show-current-file): Rename from
1339 todos-toggle-switch-todos-file-noninteractively.
1340 (todos-category-select): Use todos-mode-line-function.
1341 (todos-item-start): Comment out code used by removed function.
1342 (todos-remove-item): Handle presence of both prefix/number and
1343 mark overlays.
1344 (todos-get-count): Simplify.
1345 (todos-set-count): Change argument list and adjust callers; simplify.
1346 (todos-set-categories): Handle new archive files; use
1347 todos-categories-full and todos-ignore-archived-categories.
1348 (todos-truncate-categories-list): Use todos-categories-full.
1349 (todos-update-categories-sexp): Use kill-region instead of
1350 kill-line; use todos-categories-full.
1351 (todos-read-file-name): Add argument to require existing file and
1352 adjust callers; use file-truename.
1353 (todos-read-category): Remove argument to require existing
1354 category and delegate it to completing-read in function body.
1355 (todos-validate-category-name): Make empty string prompt only for
1356 initial category name.
1357 (todos-read-date): Use = instead of eq for testing if month = 13,
1358 and if it is, set monthname to *.
1359 (todos-display-categories): Use todos-global-current-todos-file;
1360 use set-window-buffer instead of switch-to-buffer; add a line
1361 showing item count totals.
1362 (todos-padded-string): Use the longest of category name or label.
1363 (todos-descending-counts): Rename from
1364 todos-descending-counts-store and adjust users.
1365 (todos-insert-category-line): Adjust format; use mapconcat; kill
1366 buffer after jumping to category.
1367
13682012-09-18 Stephen Berman <stephen.berman@gmx.net>
1369
1370 Changes from 2011-05-16 (revision 109996).
1371 * calendar/todos.el Add and revise various doc strings, remove
1372 further commented out code; add further comments; further code
1373 rearrangement.
1374 (todos-file-do, todos-archive-file, todos-mode-hook)
1375 (todos-edit-mode-hook, todos-exclusion-start, todos-exclusion-end)
1376 (todos-view-archive, todos-search-string)
1377 (todos-jump-to-category-noninteractively, todos-initial-setup):
1378 Remove.
1379 (todos-files): Remove this defcustom.
1380 (todos-initial-category, todos-display-categories-first)
1381 (todos-auto-switch-todos-file, todos-default-todos-file)
1382 (todos-categories-category-label, todos-categories-todo-label)
1383 (todos-categories-diary-label, todos-categories-done-label)
1384 (todos-categories-archived-label)
1385 (todos-categories-number-separator, todos-categories-align)
1386 (todos-ignore-archived-categories, todos-nondiary-marker):
1387 New defcustoms.
1388 (todos-prefix, todos-done-separator, todos-file-top)
1389 (todos-categories-buffer, todos-archived-categories-buffer)
1390 (todos-edit-buffer, todos-always-add-time-string, todos-button):
1391 Change default value.
1392 (todos-done-string): Add todos-reset-done-string as :set function,
1393 but keep this commented out.
1394 (todos-files, todos-archives, todos-insertion-map)
1395 (todos-category-done, todos-nondiary-start, todos-nondiary-end)
1396 (todos-show-done-only, todos-date-string-start)
1397 (todos-done-string-start): New variables.
1398 (todos-files-directory, todos-files-function, todos-merged-files)
1399 (todos-prompt-merged-files, todos-files, todos-modes-set-1)
1400 (todos-modes-set-2, todos-reset-done-string, todos-reset-categories)
1401 (todos-toggle-switch-todos-file-noninteractively)
1402 (todos-switch-todos-file, todos-counts, todos-get-count)
1403 (todos-set-count, todos-set-categories)
1404 (todos-truncate-categories-list, todos-update-categories-sexp)
1405 (todos-read-file-name, todos-sort, todos-display-sorted)
1406 (todos-label-to-key, todos-insert-sort-button): New functions.
1407 (todos-display-categories-sorted-by-todo)
1408 (todos-display-categories-sorted-by-diary)
1409 (todos-display-categories-sorted-by-done)
1410 (todos-display-categories-sorted-by-archived)
1411 (todos-update-merged-files, todos-switch-to-archive)
1412 (todos-choose-archive, todos-merged-top-priorities)
1413 (todos-jump-to-category-other-file, todos-clear-matches)
1414 (todos-add-file, todos-change-default-file, todos-move-category)
1415 (todos-merge-category, todos-merge-categories)
1416 (todos-edit-item-time, todos-move-item-to-file)
1417 (todos-unarchive-category, todos-toggle-item-diary-nonmarking)
1418 (todos-toggle-diary-nonmarking): New commands.
1419 (todos-toggle-show-done-only): New command replacing todos-view-archive.
1420 (todos-faces): New defgroup; use in all face definitions.
1421 (todos-sorted-column, todos-archived-only, todos-search): New faces.
1422 (todos-font-lock-keywords): Use subexpression 1 with matcher
1423 todos-category-string-match.
1424 (todos-mode-map, todos-archive-mode-map, todos-edit-mode-map)
1425 (todos-categories-mode-map): Add new key bindings; change some
1426 existing bindings.
1427 (todos-top-priorities-mode-map): New keymap.
1428 (todos-menu): Add submenues and new entries.
1429 (auto-mode-alist): Add extension of Todos and Todos archive files.
1430 (todos-mode, todos-archive-mode): Make derived mode; use
1431 todos-modes-set-1, todos-modes-set-2, todos-auto-switch-todos-file
1432 and todos-switch-todos-file; make todos-show-done-only local
1433 variable.
1434 (todos-edit-mode): Make derived mode; use todos-modes-set-1.
1435 (todos-categories-mode): Make derived mode.
1436 (todos-top-priorities-mode): New derived major mode.
1437 (todos-save): Remove unused code.
1438 (todos-quit): Handle todos-categories-mode; save archive buffer.
1439 (todos-show): Add optional argument to prompt for a Todos file; if
1440 called interactively or with prefix arg or from an archive, don't
1441 make a no-op but reset todos-current-todos-file, todos-categories
1442 and todos-category-number; use todos-read-file-name,
1443 todos-display-categories-first, todos-ignore-archived-categories.
1444 (todos-display-categories): Change argument name; refactor code
1445 for inserting table labels and lines, using
1446 todos-ignore-archived-categories, todos-sort,
1447 todos-categories-number-separator, todos-insert-sort-button,
1448 todos-categories-*-labels, and todos-insert-category-line.
1449 (todos-display-categories-alphabetically): Use todos-display-sorted.
1450 (todos-toggle-view-done-items): Use todos-done-string-start and
1451 todos-get-count.
1452 (todos-toggle-display-date-time): Use todos-done-string-start.
1453 (todos-top-priorities): Remove autoload cookie; partially rewrite:
1454 new argument list; allow combining top priorities of multiple
1455 Todos files; change display to include category (and file) name as
1456 part of item header; use todos-top-priorities-mode.
1457 (todos-diary-items): Reimplement using only todos-top-priorities.
1458 (todos-forward-category, todos-backward-category): Adjust to
1459 1-based numbering of categories; move point to top of category.
1460 (todos-jump-to-category): Rewrite, adding optional arguments to
1461 provide a category in non-interactive uses and to prompt for which
1462 Todos file to jump to.
1463 (todos-search): Reimplement; highlight each match as found, say
1464 how many matches remain and prompt whether to go to next one; at
1465 end of search prompt whether to remove highlighting.
1466 (todos-add-category): Remove autoload cookie; assign new category
1467 the highest category number; associate zero-initialized vector of
1468 item counts, instead of property list, with new category; use
1469 todos-validate-category-name and todos-update-categories-sexp.
1470 (todos-rename-category): Use todos-validate-category-name and
1471 todos-update-categories-sexp; take archive files into account.
1472 (todos-delete-category): Use todos-get-count and
1473 todos-update-categories-sexp, let-bind variable that were
1474 mistakenly global; use delete-region instead of kill-region;
1475 adjust to 1-based numbering of categories; move point to top of
1476 category.
1477 (todos-raise-category): Handle item count vectors; use
1478 todos-insert-category-line and todos-update-categories-sexp.
1479 (todos-insert-item): Use nil time-string argument to omit time
1480 string; use todos-nondiary-start and todos-nondiary-end and
1481 todos-update-categories-sexp; if category named to insert into
1482 does not exist, add it; take new diary items into account.
1483 (todos-insert-item-ask-date, todos-insert-item-ask-date-time)
1484 (todos-insert-item-ask-date-time-for-diary)
1485 (todos-insert-item-ask-date-time-for-diary-here)
1486 (todos-insert-item-ask-date-time-here)
1487 (todos-insert-item-ask-date-maybe-notime)
1488 (todos-insert-item-ask-date-maybe-notime-for-diary)
1489 (todos-insert-item-ask-date-maybe-notime-for-diary-here)
1490 (todos-insert-item-ask-date-maybe-notime-here)
1491 (todos-insert-item-ask-date-for-diary)
1492 (todos-insert-item-ask-date-for-diary-here)
1493 (todos-insert-item-ask-date-here, todos-insert-item-ask-dayname)
1494 (todos-insert-item-ask-dayname-time)
1495 (todos-insert-item-ask-dayname-time-for-diary)
1496 (todos-insert-item-ask-dayname-time-for-diary-here)
1497 (todos-insert-item-ask-dayname-time-here)
1498 (todos-insert-item-ask-dayname-maybe-notime)
1499 (todos-insert-item-ask-dayname-maybe-notime-for-diary)
1500 (todos-insert-item-ask-dayname-maybe-notime-for-diary-here)
1501 (todos-insert-item-ask-dayname-maybe-notime-here)
1502 (todos-insert-item-ask-dayname-for-diary)
1503 (todos-insert-item-ask-dayname-for-diary-here)
1504 (todos-insert-item-ask-dayname-here, todos-insert-item-ask-time)
1505 (todos-insert-item-ask-time-for-diary)
1506 (todos-insert-item-ask-time-for-diary-here)
1507 (todos-insert-item-ask-time-here)
1508 (todos-insert-item-maybe-notime)
1509 (todos-insert-item-maybe-notime-for-diary)
1510 (todos-insert-item-maybe-notime-for-diary-here)
1511 (todos-insert-item-maybe-notime-here)
1512 (todos-insert-item-for-diary, todos-insert-item-for-diary-here):
1513 New insertion commands.
1514 (todos-insert-item-from-calendar): Use todos-current-todos-file.
1515 (todos-delete-item): Handle diary items;
1516 use todos-update-categories-sexp.
1517 (todos-edit-item): Check if point is with item string;
1518 use read-string instead of read-from-minibuffer;
1519 use todos-date-string-start; after editing put point at start of
1520 item text.
1521 (todos-edit-multiline): Narrow to item before invoking
1522 todos-edit-mode; show key binding of todos-edit-quit in a message.
1523 (todos-edit-quit): Use todos-save; kill buffer.
1524 (todos-edit-item-header): Add optional argument to prompt for
1525 editing only date string or only time string;
1526 use todos-date-string-start.
1527 (todos-edit-item-date, todos-edit-item-date-is-today)
1528 (todos-raise-item-priority, todos-lower-item-priority): Rename
1529 from todos-{raise, lower}-item and make them DTRT in
1530 todos-top-priorities-mode.
1531 (todos-set-item-priority): Make interactive; use todos-get-count
1532 and todos-insert-with-overlays; interactively, just relocate the
1533 item within its category.
1534 (todos-move-item): Add optional argument to prompt for a category
1535 in another Todos file; handle diary items; fix restoration after
1536 cancelling before inserting.
1537 (todos-item-done): Handle diary items; simplify handling of
1538 insertion in done items section.
1539 (todos-item-undo): Handle diary items.
1540 (todos-archive-done-items): Adjust to new handling of archive
1541 files (in parallel with Todos files); handle diary items; use
1542 todos-done-string-start.
1543 (todos-toggle-item-diary-inclusion): Use todos-nondiary-start,
1544 todos-nondiary-end and todos-item-counts.
1545 (todos-toggle-diary-inclusion): Use todos-category-done instead of
1546 todos-category-end.
1547 (todos-print): Remove autoload cookie; rewrite to make overlays,
1548 line wrapping and wrap prefixes printable.
1549 (todos-date-pattern): Make parenthesized groups shy.
1550 (todos-date-string-match): Use todos-date-string-start; make
1551 todos-date-pattern an explicitly numbered group.
1552 (todos-time-string-match): Use todos-date-string-start.
1553 (todos-done-string-match): Use todos-done-string-start.
1554 (todos-category-string-match): Rewrite to match new category and
1555 category+filename patterns in todos-top-priorities-mode.
1556 (todos-prefix-overlays): Use todos-done-string-start and
1557 todos-category-done.
1558 (todos-reset-prefix): Handle archive files; restore point after
1559 changing prefix.
1560 (todos-reset-separator): Handle archive files.
1561 (todos-category-number): Make category number one more than its
1562 list index.
1563 (todos-current-category): Adjust to 1-based numbering of categories.
1564 (todos-category-select): Simplify handling of done items and done
1565 separator string overlay.
1566 (todos-item-start): Use todos-date-string-start and
1567 todos-done-string-start.
1568 (todos-item-start, todos-item-end): Fix wrong parenthesizing.
1569 (todos-item-string): Restore point after getting item bounds; use
1570 buffer-substring-no-properties.
1571 (todos-done-item-p): Use todos-done-string-start.
1572 (todos-make-categories-list): Add optional argument to force
1573 looping through file to get categories and their item counts,
1574 otherwise set todos-categories from sexp in first line; use
1575 vectors of item counts instead of plists; count diary items.
1576 (todos-item-counts): Use todos-counts, todos-set-counts,
1577 todos-get-counts, and todos-update-categories-sexp instead of
1578 getting and setting properties; handle diary items.
1579 (todos-read-category): Add argument to set prompt; don't offer
1580 default category.
1581 (todos-validate-category-name): Rename from
1582 todos-check-category-name; take into account whether there are
1583 already categories or not.
1584 (todos-read-date): Accept `*' as an unspecified month, day, or year.
1585 (todos-padded-string): Accommodate new structure of
1586 todos-categories as alists; use todos-categories-align.
1587 (todos-descending-counts-store): New variable.
1588 (todos-insert-category-line): Rename from
1589 todos-insert-category-name and reimplement using labels and
1590 todos-get-counts instead of properties; use
1591 todos-ignore-archived-categories; highlight sorted column.
1592
15932012-09-14 Stephen Berman <stephen.berman@gmx.net>
1594
1595 Changes from 2010-07-09 (revision 109995).
1596 * calendar/todos.el Remove lots of commented out code; add various
1597 comments; further code rearrangement.
1598 (todos-insert-item-here-ask-date-time)
1599 (todos-insert-item-ask-date-time)
1600 (todos-insert-item-ask-dayname-time)
1601 (todos-insert-item-for-diary)
1602 (todos-insert-item-for-diary-ask-date-time)
1603 (todos-make-categories-alist, todos-categories-alist): Remove.
1604 (todos-categories-list): Comment out.
1605 (todos-make-categories-list): New function replacing
1606 todos-make-categories-alist, using category plists to get item
1607 counts and taking archive into account.
1608 (todos-current-todos-file): New variable.
1609 (todos-mode-map): Update key bindings.
1610 (todos-save): Add as comment code to make sure todos-categories
1611 sexp is current on saving.
1612 (todos-quit): Call todos-show on quitting Todos archive buffer.
1613 (todos-show): If todos-current-todos-file is not set to Todos
1614 file, set it as a new file; set todos-categories from
1615 todos-make-categories-alist.
1616 (todos-display-categories): Use a different display format for
1617 archive file; put point initially on the first button.
1618 (todos-toggle-view-done-items): Check the category's `done'
1619 property to determine if there are done items.
1620 (todos-view-archive): Set todos-current-todos-file to the archive
1621 file; jump from the Todos file to the same category in the
1622 archive, if it exists, else jump to the first category; use
1623 message instead of error.
1624 (todos-add-category): Intern a special symbol for the new category
1625 and set its property list to holds counts of the numbers of todo,
1626 done and archived items in the category; assign the new category
1627 the current highest category number.
1628 (todos-rename-category): Don't use todos-categories-alist.
1629 (todos-delete-category): Check the category's `todo' and `done'
1630 properties to determine if it is empty; ensure that the end of the
1631 last category is found; after deleting the category, empty its
1632 plist and unintern its special symbol.
1633 (todos-insert-item-here): Fix argument list of todos-insert-item.
1634 (todos-delete-item, todos-raise-item, todos-lower-item):
1635 Use message instead of error.
1636 (todos-move-item): If the category to be moved to does not exist,
1637 add it as a new category.
1638 (todos-item-done, todos-reset-separator):
1639 Use todos-category-select instead of todos-show.
1640 (todos-archive-done-items): Make buffer writeable; conditionalize
1641 search for end of category; save after adding to archive in case
1642 the file is new, so it can be found.
1643 (todos-category-select): Wrap search in if instead of or+and;
1644 don't hide done items in an archive.
1645 (todos-set-item-priority): Check the category's `todo'
1646 property to determine if there are not done todo items.
1647 (todos-jump-to-category-noninteractively): Just switch to buffer
1648 visiting todos-current-todos-file, since this can be either a
1649 Todos file or an archive.
1650 (todos-item-counts): Use category's plist instead of an alist.
1651 (todos-longest-category-name-length): Argument is now a list of
1652 category names, not an alist, so just test each element, not each
1653 element's the car.
1654 (todos-padded-string): Use todos-categories instead of
1655 todos-categories-alist.
1656 (todos-insert-category-name): Use category plist to get item
1657 counts; take archived items into account.
1658
16592012-09-13 Stephen Berman <stephen.berman@gmx.net>
1660
1661 Changes from 2010-06-18 (revision 109994).
1662 * calendar/todos.el: Numerous spelling and comment fixes, doc
1663 string fixes to conform with checkdoc, further rearrangement of
1664 definitions, etc.
1665 (todos-previous-line, todos-previous-answer)
1666 (todos-insert-item-ask-date, todos-change-date)
1667 (todos-date-nodayname-pattern, todos-dayname-date-pattern)
1668 (todos-count-items-in-category, todos-count-all-items): Remove.
1669 (todos-update-numbered-prefix, todos-item-start-overlays)
1670 (todos-add-item-non-interactively): Comment out, also in uses.
1671 (todos-done-separator): Change default value.
1672 (todos-always-add-time-string): Rename from todos-add-time-string
1673 and adjust uses.
1674 (todos-read-category): Rename from todos-completing-read and
1675 adjust callers; use todos-current-category.
1676 (todos-make-categories-alist): Rename from function
1677 todos-categories-alist.
1678 (todos-categories-alist): New variable.
1679 (todos-indent-to-here): New defcustom.
1680 (todos-button): New face.
1681 (todos-display-categories-alphabetically, todos-raise-category)
1682 (todos-lower-category, todos-insert-item-for-diary-ask-date-time)
1683 (todos-insert-item-here-ask-date-time)
1684 (todos-insert-item-ask-date-time)
1685 (todos-insert-item-ask-dayname-time): New commands.
1686 (todos-edit-item-header): New command replacing todos-change-date.
1687 (todos-category-number, todos-indent, todos-item-counts)
1688 (todos-check-category-name, todos-read-date, todos-read-dayname)
1689 (todos-read-time, todos-padded-string)
1690 (todos-insert-category-name): New functions.
1691 (todos-set-item-priority): New function replacing
1692 todos-add-item-non-interactively.
1693 (todos-mode-map): Remap newline to newline-and-indent.
1694 (todos-edit-mode-map): Make sparse keymap; remap newline to
1695 newline-and-indent.
1696 (todos-categories-mode-map): New keymap.
1697 (todos-mode, todos-edit-mode): Make indent-line-function local
1698 variable and set to todos-indent.
1699 (todos-categories-mode): New major mode.
1700 (todos-display-categories): List categories initially in their
1701 numerical order; add optional argument to switch to alphabetical
1702 listing.
1703 (todos-toggle-view-done-items): Simplify implementation.
1704 (todos-toggle-display-date-time): Fix regexp search string.
1705 (todos-backward-item, todos-forward-item): Use variable
1706 todos-item-start.
1707 (todos-add-category): Use todos-check-category-name and
1708 todos-categories-alist.
1709 (todos-rename-category): Use todos-current-category,
1710 todos-check-category-name and todos-categories-alist.
1711 (todos-delete-category): Use todos-check-category-name and
1712 todos-categories-alist and take done items into account.
1713 (todos-insert-item): Use separate arguments to handle insertion of
1714 date/dayname and time strings, add new argument to mark item for
1715 diary inclusion, use new todos-read-* functions,
1716 todos-set-item-priority and todos-item-counts.
1717 (todos-insert-item-here, todos-insert-item-for-diary)
1718 (todos-insert-item-from-calendar): Adapt to new version of
1719 todos-insert-item.
1720 (todos-delete-item, todos-item-done): Use todos-item-counts.
1721 (todos-edit-item): Indent newlines inserted by C-q C-j if nonspace
1722 char follows.
1723 (todos-lower-item): Ensure only not-done items can be lowered.
1724 (todos-move-item): Use todos-current-category, todos-read-category
1725 and todos-item-counts.
1726 (todos-archive-done-items): Use todos-current-category and
1727 todos-item-counts; fix regexp search string.
1728 (todos-item-undo): Use todos-current-category,
1729 todos-set-item-priority, todos-insert-with-overlays and
1730 todos-item-counts; restore if user quits before inserting undone
1731 item.
1732 (todos-date-pattern): Rewrite without using
1733 todos-date-nodayname-pattern and todos-dayname-date-pattern.
1734 (todos-date-string-match): Do not make todos-date-pattern an
1735 unnumbered group.
1736 (todos-time-string-match): Make todos-date-pattern a shy group.
1737 (todos-wrap-and-indent): Use todos-indent-to-here.
1738 (todos-reset-prefix): Revert to using todos-show instead of
1739 todos-category-select.
1740 (todos-prefix-overlays): Fix numbering of done items and updating
1741 of prefix.
1742 (todos-category-select): Use todos-current-category; fix display
1743 of separator string; don't move point to top of category.
1744 (todos-jump-to-category-noninteractively): Use todos-category-number.
1745 (todos-insert-with-overlays): Use todos-item-start unconditionally.
1746 (todos-item-start): New variable.
1747 (todos-item-start): Use it to define this function.
1748 (todos-item-end): Adjust if item is last unfinished one before
1749 displayed done items.
1750 (todos-remove-item): Use todos-item-start and todos-item-end
1751 instead of todos-forward-item and todos-backward-item.
1752 (todos-longest-category-name-length): Add argument for list of
1753 categories.
1754
17552012-09-13 Stephen Berman <stephen.berman@gmx.net>
1756
1757 Changes from 2010-05-25 (revision 109993).
1758 * calendar/todos.el: Comment out calendar require, since diary-lib
1759 requires calendar. Rearrange file to group definitions according
1760 to their use (types of commands, internal functions, etc.)
1761 (todos-file-done, todos-insert-threshold, todos-remove-separator)
1762 (todos-date-string, todos-time-string, todos-check-overlay)
1763 (todos-show-paren-hack, todos-file-item, todos-more-important-p):
1764 Comment out.
1765 (todos-current-date, todos-item-end-overlays)
1766 (todos-list-categories): Remove.
1767 (todos-item-end): Remove (the variable, not the function).
1768 (todos-prefix-overlays): Rename from todos-item-overlays and adjust
1769 callers.
1770 (todos-done-separator, todos-done-string, todos-show-with-done)
1771 (todos-files, todos-archive-file, todos-categories-buffer)
1772 (todos-archived-categories-buffer, todos-wrap-lines)
1773 (todos-line-wrapping-function): New defcustoms.
1774 (todos-done, todos-done-sep): New faces.
1775 (todos-done-face, todos-done-sep-face): Corresponding new variables.
1776 (todos-search-string, todos-date-nodayname-pattern)
1777 (todos-dayname-date-pattern, todos-date-pattern): New variables.
1778 (todos-done-string-match, todos-category-string-match)
1779 (todos-check-format, todos-wrap-and-indent, todos-reset-separator)
1780 (todos-current-category, todos-count-items-in-category)
1781 (todos-done-item-p, todos-categories-alist, todos-count-all-items)
1782 (todos-longest-category-name-length): New functions.
1783 (todos-categories-list): New buffer-specific function replacing
1784 todos-list-categories.
1785 (todos-toggle-item-numbering, todos-toggle-view-done-items)
1786 (todos-search, todos-view-archive, todos-diary-items)
1787 (todos-toggle-display-date-time, todos-insert-item-no-time)
1788 (todos-insert-item-ask-date, todos-insert-item-for-diary)
1789 (todos-insert-item-from-calendar, todos-edit-quit)
1790 (todos-change-date, todos-item-done, todos-archive-done-items)
1791 (todos-item-undo): New commands.
1792 (todos-archive-mode): New major mode.
1793 (todos-archive-mode-map, todos-edit-mode-map): New keymaps.
1794 (todos-category-beg): Change value.
1795 (todos-number-prefix): Change default value.
1796 (todos-edit-buffer): Change from defvar to defcustom.
1797 (todos-font-lock-keywords): Use todos-done-string-match and
1798 todos-category-string-match.
1799 (todos-backward-item, todos-forward-item): Use todos-done-string
1800 and todos-date-pattern.
1801 (todos-display-categories): Reimplement using buttons from
1802 button.el instead of widgets.
1803 (todos-top-priorities): Use with-current-buffer; take done items
1804 into account; ensure buffers gets fontified.
1805 (todos-add-category): Ensure new category does not begin with
1806 empty lines.
1807 (todos-jump-to-category): Use todos-category-select instead of
1808 todos-show.
1809 (todos-rename-category): Prompt for new name in body instead of in
1810 interactive spec.
1811 (todos-insert-item): Don't insert in done items section of
1812 category. Add two optional arguments to control insertion: (i) to
1813 insert near point without prompting for priority; (ii) to use
1814 defaults for date and time strings, to prompt for these, or to
1815 choose date from the Calendar.
1816 (todos-insert-item-here): Reimplement using todos-insert-item.
1817 (todos-delete-item): Don't move point after deleting last item.
1818 (todos-raise-item, todos-lower-item): Take done items into account.
1819 (todos-move-item): Don't move done items; update item numbering;
1820 restore if user quits before inserting moved item.
1821 (todos-print): Prompt for confirmation to print.
1822 (todos-reset-prefix): Search backward from end of file instead of
1823 forward from top.
1824 (todos-jump-to-category-noninteractively): Take Todos archive into
1825 account.
1826 (todos-category-select): Show or hide done items according to
1827 todos-show-with-done; if shown, coordinate separator and prefix
1828 overlays.
1829 (todos-add-item-non-interactively): Replace binary insertion
1830 algorithm with prompting for numerical priority.
1831 (todos-insert-with-overlays): Remove use of variable todos-item-end.
1832 (todos-item-start): Take done items into account; use
1833 todos-date-pattern.
1834 (todos-item-end): Reimplement using todos-forward-item.
1835 (todos-remove-item): Reimplement using todos-forward-item and
1836 todos-backward-item; redo overlay handling.
1837 (todos-mode-map): Add some new key bindings and change numerous
1838 existing bindings; use "i" as prefix key for item insertion
1839 commands.
1840 (todos-mode): Use todos-wrap-lines and delegate word-wrap and
1841 wrap-prefix settings to todos-wrap-and-indent; add to invisibility
1842 spec; set buffer-read-only to t and consequently let-bind this
1843 variable in all Todos commands that change buffer content.
1844 (todos-edit-mode): Make an indepent mode, not derived from text-mode.
1845 (todos-save): Don't save top priorities buffer.
1846 (todos-show): Make a no-op if called interactively in narrowed
1847 Todos mode, since, also to work around item prefix reduplication
1848 bug with show-paren-mode enabled; use todos-categories-list.
1849
18502012-09-12 Stephen Berman <stephen.berman@gmx.net>
1851
1852 Changes from 2009-11-07 (revision 109992).
1853 * calendar/todos.el: Comment out time-stamp require; require
1854 calendar and diary-lib.
1855 (todos-prefix): Change default value and doc string to reflect new
1856 meaning; add :initialize and :set functions.
1857 (todos-time-string-format, todos-entry-prefix-function)
1858 (todos-initials, todos-entry-timestamp-initials)
1859 (todos-prefix-face, todos-category-sep, todos-category-end)
1860 (todos-cp): Comment out.
1861 (todos-prefix-string): Inherit from font-lock-comment-face.
1862 (todos-item-header, todos-item-header-face): Remove.
1863 (todos-date, todos-time): New faces.
1864 (todos-date-face, todos-time-face): Corresponding new variables.
1865 (todos-add-time-string, todos-include-in-diary)
1866 (todos-exclusion-start, todos-exclusion-end, todos-number-prefix):
1867 New defcustoms.
1868 (todos-item-end, todos-item-start-overlays)
1869 (todos-item-end-overlays): New variables.
1870 (todos-date-string-match, todos-time-string-match): New functions.
1871 (todos-font-lock-keywords): Use them.
1872 (todos-current-date, todos-date-string, todos-time-string)
1873 (todos-toggle-item-diary-inclusion, todos-toggle-diary-inclusion)
1874 (todos-reset-prefix, todos-update-numbered-prefix)
1875 (todos-check-overlay, todos-item-overlays)
1876 (todos-insert-with-overlays, todos-show-paren-hack): New functions.
1877 (todos-highlight-item): New command.
1878 (todos-category-beg): Change value.
1879 (todos-category-select): Use todos-category-beg and todos-item-overlays.
1880 (todos-backward-item): Add optional count argument; use it and
1881 todos-item-start.
1882 (todos-forward-item): Use todos-check-overlay, todos-item-start
1883 and variable todos-item-end.
1884 (todos-edit-item, todos-delete-item): Use todos-number-prefix,
1885 todos-update-numbered-prefix, todos-item-overlays.
1886 (todos-add-category, todos-rename-category)
1887 (todos-list-categories): Use new category format.
1888 (todos-delete-category): Allow deleting non-empty category;
1889 use new category format.
1890 (todos-add-item-non-interactively): Comment out unnecessary
1891 save-excursion; use todos-insert-with-overlays.
1892 (todos-insert-item): Comment out unnecessary save-excursion; use
1893 new item format for date/time header and diary inclusion marking.
1894 (todos-insert-item-here): Use new item format for date/time header
1895 and diary inclusion marking; use todos-insert-with-overlays.
1896 (todos-raise-item): Make a no-op if point is on an empty line; use
1897 todos-insert-with-overlays.
1898 (todos-lower-item): Use todos-insert-with-overlays.
1899 (todos-top-priorities): Move call to todos-show inside
1900 save-excursion; add save-current-buffer after save-restriction.
1901 (todos-item-start): Use variable todos-item-end.
1902 (todos-item-end): Use todos-check-overlay and variable todos-item-end.
1903 (todos-remove-item): Take item overlays into account.
1904 (todos-mode): Change calculation of wrap-prefix; make
1905 hl-line-range-function a local variable and set it to highlight
1906 todo item.
1907 (todos-show): Ensure point stays at top of category.
1908
19092012-09-12 Stephen Berman <stephen.berman@gmx.net>
1910
1911 Changes from 2009-07-04 (revision 109991).
1912 * calendar/todos.el (todos-window-configuration): Comment out.
1913 (todos-display-categories): Comment out use of
1914 todos-window-configuration; use switch-to-buffer instead of
1915 pop-to-buffer.
1916 (todos-jump-to-category-noninteractively): Comment out use of
1917 todos-window-configuration.
1918 (todos-edit-item): Don't allow editing of date/time item header.
1919 (todos-insert-item, todos-insert-item-here): Insert date/time
1920 header in front of new item string.
1921 (todos-mode): Tweak wrap-prefix.
1922
19232012-09-12 Stephen Berman <stephen.berman@gmx.net>
1924
1925 Changes from 2009-06-26 (revision 109989).
1926 * calendar/todos.el (todos-file-do, todos-file-done):
1927 Change default location to directory "~/.emacs.d/".
1928 (todos-completion-ignore-case, todos-categories-buffer):
1929 New defcustoms.
1930 (todos-prefix-string, todos-item-header): New faces.
1931 (todos-prefix-face, todos-item-header-face): Corresponding
1932 new variables.
1933 (todos-rename-category, todos-delete-category)
1934 (todos-display-categories, todos-move-item): New commands.
1935 (todos-mode-map): Add key bindings for new commands and for
1936 todos-add-category, which had no key binding.
1937 (todos-jump-to-category-noninteractively): New function.
1938 (todos-top-priorities): Comment out code using a previously
1939 deleted variable.
1940 (todos-completing-read): Allow SPC to insert a space when entering
1941 a new category name; use todos-completion-ignore-case.
1942 (todos-font-lock-keywords, todos-window-configuration):
1943 New variables.
1944 (todos-mode): Make mode-name "TODOS"; make font-lock-defaults,
1945 word-wrap, and wrap-prefix local variables.
1946
19472012-09-12 Stephen Berman <stephen.berman@gmx.net>
1948
1949 Changes from 2009-02-16 (revision 109988).
1950 * calendar/todos.el (todos-list-categories): Fix typos.
1951 (todos-show): Ensure file is in todos-mode.
1952
19532012-09-12 Stephen Berman <stephen.berman@gmx.net>
1954
1955 Changes from 2009-02-12 (revision 109987).
1956 * calendar/todos.el (todos-header): Remove defvar.
1957 (todos-add-category): Comment out code that inserts and updates
1958 the file local variables first line of the file todos-file-do.
1959 (todos-list-categories): New function.
1960 (todos-show): Use it; remove use of a previously deleted variable.
1961
19622012-09-11 Stephen Berman <stephen.berman@gmx.net>
1963
1964 Changes from 2009-02-12 (revision 109986).
1965 * calendar/todos.el: New file. This is a copy of todo-mode.el
1966 from revision 94343 except for the following changes: replace all
1967 occurrences of the namespace prefix "todo-" with "todos-", delete
1968 the defvar todo-cats (the old name of todo-categories) and its use
1969 in todos-add-category, delete all defaliases of old command names.