diff options
| author | Stephen Berman | 2011-05-16 01:00:28 +0100 |
|---|---|---|
| committer | Stephen Berman | 2011-05-16 01:00:28 +0100 |
| commit | d04d6b955b4caaa9817ec053eddb59e923a68cf8 (patch) | |
| tree | 631e54d1f7898e56b161ac1ccf53d91322b06adc /lisp/ChangeLog | |
| parent | f730d2733db5e5c757ebdbfbdba25340c11ebe9e (diff) | |
| download | emacs-d04d6b955b4caaa9817ec053eddb59e923a68cf8.tar.gz emacs-d04d6b955b4caaa9817ec053eddb59e923a68cf8.zip | |
* calendar/todos.el Add and revise various doc strings, remove
further commented out code; add further comments; further code
rearrangement.
(todos-file-do, todos-archive-file, todos-mode-hook)
(todos-edit-mode-hook, todos-exclusion-start, todos-exclusion-end)
(todos-view-archive, todos-search-string)
(todos-jump-to-category-noninteractively, todos-initial-setup):
Remove.
(todos-files): Remove this defcustom.
(todos-initial-category, todos-display-categories-first)
(todos-auto-switch-todos-file, todos-default-todos-file)
(todos-categories-category-label, todos-categories-todo-label)
(todos-categories-diary-label, todos-categories-done-label)
(todos-categories-archived-label)
(todos-categories-number-separator, todos-categories-align)
(todos-ignore-archived-categories, todos-nondiary-marker):
New defcustoms.
(todos-prefix, todos-done-separator, todos-file-top)
(todos-categories-buffer, todos-archived-categories-buffer)
(todos-edit-buffer, todos-always-add-time-string, todos-button):
Change default value.
(todos-done-string): Add todos-reset-done-string as :set function,
but keep this commented out.
(todos-files, todos-archives, todos-insertion-map)
(todos-category-done, todos-nondiary-start, todos-nondiary-end)
(todos-show-done-only, todos-date-string-start)
(todos-done-string-start): New variables.
(todos-files-directory, todos-files-function, todos-merged-files)
(todos-prompt-merged-files, todos-files, todos-modes-set-1)
(todos-modes-set-2, todos-reset-done-string, todos-reset-categories)
(todos-toggle-switch-todos-file-noninteractively)
(todos-switch-todos-file, todos-counts, todos-get-count)
(todos-set-count, todos-set-categories)
(todos-truncate-categories-list, todos-update-categories-sexp)
(todos-read-file-name, todos-sort, todos-display-sorted)
(todos-label-to-key, todos-insert-sort-button): New functions.
(todos-display-categories-sorted-by-todo)
(todos-display-categories-sorted-by-diary)
(todos-display-categories-sorted-by-done)
(todos-display-categories-sorted-by-archived)
(todos-update-merged-files, todos-switch-to-archive)
(todos-choose-archive, todos-merged-top-priorities)
(todos-jump-to-category-other-file, todos-clear-matches)
(todos-add-file, todos-change-default-file, todos-move-category)
(todos-merge-category, todos-merge-categories)
(todos-edit-item-time, todos-move-item-to-file)
(todos-unarchive-category, todos-toggle-item-diary-nonmarking)
(todos-toggle-diary-nonmarking): New commands.
(todos-toggle-show-done-only): New command replacing todos-view-archive.
(todos-faces): New defgroup; use in all face definitions.
(todos-sorted-column, todos-archived-only, todos-search): New faces.
(todos-font-lock-keywords): Use subexpression 1 with matcher
todos-category-string-match.
(todos-mode-map, todos-archive-mode-map, todos-edit-mode-map)
(todos-categories-mode-map): Add new key bindings; change some
existing bindings.
(todos-top-priorities-mode-map): New keymap.
(todos-menu): Add submenues and new entries.
(auto-mode-alist): Add extension of Todos and Todos archive files.
(todos-mode, todos-archive-mode): Make derived mode; use
todos-modes-set-1, todos-modes-set-2, todos-auto-switch-todos-file
and todos-switch-todos-file; make todos-show-done-only local
variable.
(todos-edit-mode): Make derived mode; use todos-modes-set-1.
(todos-categories-mode): Make derived mode.
(todos-top-priorities-mode): New derived major mode.
(todos-save): Remove unused code.
(todos-quit): Handle todos-categories-mode; save archive buffer.
(todos-show): Add optional argument to prompt for a Todos file; if
called interactively or with prefix arg or from an archive, don't
make a no-op but reset todos-current-todos-file, todos-categories
and todos-category-number; use todos-read-file-name,
todos-display-categories-first, todos-ignore-archived-categories.
(todos-display-categories): Change argument name; refactor code
for inserting table labels and lines, using
todos-ignore-archived-categories, todos-sort,
todos-categories-number-separator, todos-insert-sort-button,
todos-categories-*-labels, and todos-insert-category-line.
(todos-display-categories-alphabetically): Use todos-display-sorted.
(todos-toggle-view-done-items): Use todos-done-string-start and
todos-get-count.
(todos-toggle-display-date-time): Use todos-done-string-start.
(todos-top-priorities): Remove autoload cookie; partially rewrite:
new argument list; allow combining top priorities of multiple
Todos files; change display to include category (and file) name as
part of item header; use todos-top-priorities-mode.
(todos-diary-items): Reimplement using only todos-top-priorities.
(todos-forward-category, todos-backward-category): Accommodate to
1-based numbering of categories; move point to top of category.
(todos-jump-to-category): Rewrite, adding optional arguments to
provide a category in non-interactive uses and to prompt for which
Todos file to jump to.
(todos-search): Reimplement; highlight each match as found, say
how many matches remain and prompt whether to go to next one; at
end of search prompt whether to remove highlighting.
(todos-add-category): Remove autoload cookie; assign new category
the highest category number; associate zero-initialized vector of
item counts, instead of property list, with new category; use
todos-validate-category-name and todos-update-categories-sexp.
(todos-rename-category): Use todos-validate-category-name and
todos-update-categories-sexp; take archive files into account.
(todos-delete-category): Use todos-get-count and
todos-update-categories-sexp, let-bind variable that were
mistakenly global; use delete-region instead of kill-region;
accommodate to 1-based numbering of categories; move point to top
of category.
(todos-raise-category): Handle item count vectors; use
todos-insert-category-line and todos-update-categories-sexp.
(todos-insert-item): Use nil time-string argument to omit time
string; use todos-nondiary-start and todos-nondiary-end and
todos-update-categories-sexp; if category named to insert into
does not exist, add it; take new diary items into account.
(todos-insert-item-ask-date, todos-insert-item-ask-date-time)
(todos-insert-item-ask-date-time-for-diary)
(todos-insert-item-ask-date-time-for-diary-here)
(todos-insert-item-ask-date-time-here)
(todos-insert-item-ask-date-maybe-notime)
(todos-insert-item-ask-date-maybe-notime-for-diary)
(todos-insert-item-ask-date-maybe-notime-for-diary-here)
(todos-insert-item-ask-date-maybe-notime-here)
(todos-insert-item-ask-date-for-diary)
(todos-insert-item-ask-date-for-diary-here)
(todos-insert-item-ask-date-here, todos-insert-item-ask-dayname)
(todos-insert-item-ask-dayname-time)
(todos-insert-item-ask-dayname-time-for-diary)
(todos-insert-item-ask-dayname-time-for-diary-here)
(todos-insert-item-ask-dayname-time-here)
(todos-insert-item-ask-dayname-maybe-notime)
(todos-insert-item-ask-dayname-maybe-notime-for-diary)
(todos-insert-item-ask-dayname-maybe-notime-for-diary-here)
(todos-insert-item-ask-dayname-maybe-notime-here)
(todos-insert-item-ask-dayname-for-diary)
(todos-insert-item-ask-dayname-for-diary-here)
(todos-insert-item-ask-dayname-here, todos-insert-item-ask-time)
(todos-insert-item-ask-time-for-diary)
(todos-insert-item-ask-time-for-diary-here)
(todos-insert-item-ask-time-here)
(todos-insert-item-maybe-notime)
(todos-insert-item-maybe-notime-for-diary)
(todos-insert-item-maybe-notime-for-diary-here)
(todos-insert-item-maybe-notime-here)
(todos-insert-item-for-diary, todos-insert-item-for-diary-here):
New insertion commands.
(todos-insert-item-from-calendar): Use todos-current-todos-file.
(todos-delete-item): Handle diary items;
use todos-update-categories-sexp.
(todos-edit-item): Check if point is with item string;
use read-string instead of read-from-minibuffer;
use todos-date-string-start; after editing put point at start of
item text.
(todos-edit-multiline): Narrow to item before invoking
todos-edit-mode; show key binding of todos-edit-quit in a message.
(todos-edit-quit): Use todos-save; kill buffer.
(todos-edit-item-header): Add optional argument to prompt for
editing only date string or only time string;
use todos-date-string-start.
(todos-edit-item-date, todos-edit-item-date-is-today)
(todos-raise-item-priority, todos-lower-item-priority): Rename
from todos-{raise, lower}-item and make them DTRT in
todos-top-priorities-mode.
(todos-set-item-priority): Make interactive; use todos-get-count
and todos-insert-with-overlays; interactively, just relocate the
item within its category.
(todos-move-item): Add optional argument to prompt for a category
in another Todos file; handle diary items; fix restoration after
cancelling before inserting.
(todos-item-done): Handle diary items; simplify handling of
insertion in done items section.
(todos-item-undo): Handle diary items.
(todos-archive-done-items): Accommodate to new handling of archive
files (in parallel with Todos files); handle diary items; use
todos-done-string-start.
(todos-toggle-item-diary-inclusion): Use todos-nondiary-start,
todos-nondiary-end and todos-item-counts.
(todos-toggle-diary-inclusion): Use todos-category-done instead of
todos-category-end.
(todos-print): Remove autoload cookie; rewrite to make overlays,
line wrapping and wrap prefixes printable.
(todos-date-pattern): Make parenthesized groups shy.
(todos-date-string-match): Use todos-date-string-start; make
todos-date-pattern an explicitly numbered group.
(todos-time-string-match): Use todos-date-string-start.
(todos-done-string-match): Use todos-done-string-start.
(todos-category-string-match): Rewrite to match new category and
category+filename patterns in todos-top-priorities-mode.
(todos-prefix-overlays): Use todos-done-string-start and
todos-category-done.
(todos-reset-prefix): Handle archive files; restore point after
changing prefix.
(todos-reset-separator): Handle archive files.
(todos-category-number): Make category number one more than its
list index.
(todos-current-category): Accommodate to 1-based numbering of
categories.
(todos-category-select): Simplify handling of done items and done
separator string overlay.
(todos-item-start): Use todos-date-string-start and
todos-done-string-start.
(todos-item-start, todos-item-end): Fix wrong parenthesizing.
(todos-item-string): Restore point after getting item bounds; use
buffer-substring-no-properties.
(todos-done-item-p): Use todos-done-string-start.
(todos-make-categories-list): Add optional argument to force
looping through file to get categories and their item counts,
otherwise set todos-categories from sexp in first line; use
vectors of item counts instead of plists; count diary items.
(todos-item-counts): Use todos-counts, todos-set-counts,
todos-get-counts, and todos-update-categories-sexp instead of
getting and setting properties; handle diary items.
(todos-read-category): Add argument to set prompt; don't offer
default category.
(todos-validate-category-name): Rename from
todos-check-category-name; take into account whether there are
already categories or not.
(todos-read-date): Accept `*' as an unspecified month, day, or year.
(todos-padded-string): Accommodate new structure of
todos-categories as alists; use todos-categories-align.
(todos-descending-counts-store): New variable.
(todos-insert-category-line): Rename from
todos-insert-category-name and reimplement using labels and
todos-get-counts instead of properties; use
todos-ignore-archived-categories; highlight sorted column.
Diffstat (limited to 'lisp/ChangeLog')
| -rw-r--r-- | lisp/ChangeLog | 225 |
1 files changed, 225 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fc8bbbac000..db18c225cde 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,228 @@ | |||
| 1 | 2012-09-18 Stephen Berman <stephen.berman@gmx.net> | ||
| 2 | |||
| 3 | * calendar/todos.el Add and revise various doc strings, remove | ||
| 4 | further commented out code; add further comments; further code | ||
| 5 | rearrangement. | ||
| 6 | (todos-file-do, todos-archive-file, todos-mode-hook) | ||
| 7 | (todos-edit-mode-hook, todos-exclusion-start, todos-exclusion-end) | ||
| 8 | (todos-view-archive, todos-search-string) | ||
| 9 | (todos-jump-to-category-noninteractively, todos-initial-setup): | ||
| 10 | Remove. | ||
| 11 | (todos-files): Remove this defcustom. | ||
| 12 | (todos-initial-category, todos-display-categories-first) | ||
| 13 | (todos-auto-switch-todos-file, todos-default-todos-file) | ||
| 14 | (todos-categories-category-label, todos-categories-todo-label) | ||
| 15 | (todos-categories-diary-label, todos-categories-done-label) | ||
| 16 | (todos-categories-archived-label) | ||
| 17 | (todos-categories-number-separator, todos-categories-align) | ||
| 18 | (todos-ignore-archived-categories, todos-nondiary-marker): | ||
| 19 | New defcustoms. | ||
| 20 | (todos-prefix, todos-done-separator, todos-file-top) | ||
| 21 | (todos-categories-buffer, todos-archived-categories-buffer) | ||
| 22 | (todos-edit-buffer, todos-always-add-time-string, todos-button): | ||
| 23 | Change default value. | ||
| 24 | (todos-done-string): Add todos-reset-done-string as :set function, | ||
| 25 | but keep this commented out. | ||
| 26 | (todos-files, todos-archives, todos-insertion-map) | ||
| 27 | (todos-category-done, todos-nondiary-start, todos-nondiary-end) | ||
| 28 | (todos-show-done-only, todos-date-string-start) | ||
| 29 | (todos-done-string-start): New variables. | ||
| 30 | (todos-files-directory, todos-files-function, todos-merged-files) | ||
| 31 | (todos-prompt-merged-files, todos-files, todos-modes-set-1) | ||
| 32 | (todos-modes-set-2, todos-reset-done-string, todos-reset-categories) | ||
| 33 | (todos-toggle-switch-todos-file-noninteractively) | ||
| 34 | (todos-switch-todos-file, todos-counts, todos-get-count) | ||
| 35 | (todos-set-count, todos-set-categories) | ||
| 36 | (todos-truncate-categories-list, todos-update-categories-sexp) | ||
| 37 | (todos-read-file-name, todos-sort, todos-display-sorted) | ||
| 38 | (todos-label-to-key, todos-insert-sort-button): New functions. | ||
| 39 | (todos-display-categories-sorted-by-todo) | ||
| 40 | (todos-display-categories-sorted-by-diary) | ||
| 41 | (todos-display-categories-sorted-by-done) | ||
| 42 | (todos-display-categories-sorted-by-archived) | ||
| 43 | (todos-update-merged-files, todos-switch-to-archive) | ||
| 44 | (todos-choose-archive, todos-merged-top-priorities) | ||
| 45 | (todos-jump-to-category-other-file, todos-clear-matches) | ||
| 46 | (todos-add-file, todos-change-default-file, todos-move-category) | ||
| 47 | (todos-merge-category, todos-merge-categories) | ||
| 48 | (todos-edit-item-time, todos-move-item-to-file) | ||
| 49 | (todos-unarchive-category, todos-toggle-item-diary-nonmarking) | ||
| 50 | (todos-toggle-diary-nonmarking): New commands. | ||
| 51 | (todos-toggle-show-done-only): New command replacing todos-view-archive. | ||
| 52 | (todos-faces): New defgroup; use in all face definitions. | ||
| 53 | (todos-sorted-column, todos-archived-only, todos-search): New faces. | ||
| 54 | (todos-font-lock-keywords): Use subexpression 1 with matcher | ||
| 55 | todos-category-string-match. | ||
| 56 | (todos-mode-map, todos-archive-mode-map, todos-edit-mode-map) | ||
| 57 | (todos-categories-mode-map): Add new key bindings; change some | ||
| 58 | existing bindings. | ||
| 59 | (todos-top-priorities-mode-map): New keymap. | ||
| 60 | (todos-menu): Add submenues and new entries. | ||
| 61 | (auto-mode-alist): Add extension of Todos and Todos archive files. | ||
| 62 | (todos-mode, todos-archive-mode): Make derived mode; use | ||
| 63 | todos-modes-set-1, todos-modes-set-2, todos-auto-switch-todos-file | ||
| 64 | and todos-switch-todos-file; make todos-show-done-only local | ||
| 65 | variable. | ||
| 66 | (todos-edit-mode): Make derived mode; use todos-modes-set-1. | ||
| 67 | (todos-categories-mode): Make derived mode. | ||
| 68 | (todos-top-priorities-mode): New derived major mode. | ||
| 69 | (todos-save): Remove unused code. | ||
| 70 | (todos-quit): Handle todos-categories-mode; save archive buffer. | ||
| 71 | (todos-show): Add optional argument to prompt for a Todos file; if | ||
| 72 | called interactively or with prefix arg or from an archive, don't | ||
| 73 | make a no-op but reset todos-current-todos-file, todos-categories | ||
| 74 | and todos-category-number; use todos-read-file-name, | ||
| 75 | todos-display-categories-first, todos-ignore-archived-categories. | ||
| 76 | (todos-display-categories): Change argument name; refactor code | ||
| 77 | for inserting table labels and lines, using | ||
| 78 | todos-ignore-archived-categories, todos-sort, | ||
| 79 | todos-categories-number-separator, todos-insert-sort-button, | ||
| 80 | todos-categories-*-labels, and todos-insert-category-line. | ||
| 81 | (todos-display-categories-alphabetically): Use todos-display-sorted. | ||
| 82 | (todos-toggle-view-done-items): Use todos-done-string-start and | ||
| 83 | todos-get-count. | ||
| 84 | (todos-toggle-display-date-time): Use todos-done-string-start. | ||
| 85 | (todos-top-priorities): Remove autoload cookie; partially rewrite: | ||
| 86 | new argument list; allow combining top priorities of multiple | ||
| 87 | Todos files; change display to include category (and file) name as | ||
| 88 | part of item header; use todos-top-priorities-mode. | ||
| 89 | (todos-diary-items): Reimplement using only todos-top-priorities. | ||
| 90 | (todos-forward-category, todos-backward-category): Accommodate to | ||
| 91 | 1-based numbering of categories; move point to top of category. | ||
| 92 | (todos-jump-to-category): Rewrite, adding optional arguments to | ||
| 93 | provide a category in non-interactive uses and to prompt for which | ||
| 94 | Todos file to jump to. | ||
| 95 | (todos-search): Reimplement; highlight each match as found, say | ||
| 96 | how many matches remain and prompt whether to go to next one; at | ||
| 97 | end of search prompt whether to remove highlighting. | ||
| 98 | (todos-add-category): Remove autoload cookie; assign new category | ||
| 99 | the highest category number; associate zero-initialized vector of | ||
| 100 | item counts, instead of property list, with new category; use | ||
| 101 | todos-validate-category-name and todos-update-categories-sexp. | ||
| 102 | (todos-rename-category): Use todos-validate-category-name and | ||
| 103 | todos-update-categories-sexp; take archive files into account. | ||
| 104 | (todos-delete-category): Use todos-get-count and | ||
| 105 | todos-update-categories-sexp, let-bind variable that were | ||
| 106 | mistakenly global; use delete-region instead of kill-region; | ||
| 107 | accommodate to 1-based numbering of categories; move point to top | ||
| 108 | of category. | ||
| 109 | (todos-raise-category): Handle item count vectors; use | ||
| 110 | todos-insert-category-line and todos-update-categories-sexp. | ||
| 111 | (todos-insert-item): Use nil time-string argument to omit time | ||
| 112 | string; use todos-nondiary-start and todos-nondiary-end and | ||
| 113 | todos-update-categories-sexp; if category named to insert into | ||
| 114 | does not exist, add it; take new diary items into account. | ||
| 115 | (todos-insert-item-ask-date, todos-insert-item-ask-date-time) | ||
| 116 | (todos-insert-item-ask-date-time-for-diary) | ||
| 117 | (todos-insert-item-ask-date-time-for-diary-here) | ||
| 118 | (todos-insert-item-ask-date-time-here) | ||
| 119 | (todos-insert-item-ask-date-maybe-notime) | ||
| 120 | (todos-insert-item-ask-date-maybe-notime-for-diary) | ||
| 121 | (todos-insert-item-ask-date-maybe-notime-for-diary-here) | ||
| 122 | (todos-insert-item-ask-date-maybe-notime-here) | ||
| 123 | (todos-insert-item-ask-date-for-diary) | ||
| 124 | (todos-insert-item-ask-date-for-diary-here) | ||
| 125 | (todos-insert-item-ask-date-here, todos-insert-item-ask-dayname) | ||
| 126 | (todos-insert-item-ask-dayname-time) | ||
| 127 | (todos-insert-item-ask-dayname-time-for-diary) | ||
| 128 | (todos-insert-item-ask-dayname-time-for-diary-here) | ||
| 129 | (todos-insert-item-ask-dayname-time-here) | ||
| 130 | (todos-insert-item-ask-dayname-maybe-notime) | ||
| 131 | (todos-insert-item-ask-dayname-maybe-notime-for-diary) | ||
| 132 | (todos-insert-item-ask-dayname-maybe-notime-for-diary-here) | ||
| 133 | (todos-insert-item-ask-dayname-maybe-notime-here) | ||
| 134 | (todos-insert-item-ask-dayname-for-diary) | ||
| 135 | (todos-insert-item-ask-dayname-for-diary-here) | ||
| 136 | (todos-insert-item-ask-dayname-here, todos-insert-item-ask-time) | ||
| 137 | (todos-insert-item-ask-time-for-diary) | ||
| 138 | (todos-insert-item-ask-time-for-diary-here) | ||
| 139 | (todos-insert-item-ask-time-here) | ||
| 140 | (todos-insert-item-maybe-notime) | ||
| 141 | (todos-insert-item-maybe-notime-for-diary) | ||
| 142 | (todos-insert-item-maybe-notime-for-diary-here) | ||
| 143 | (todos-insert-item-maybe-notime-here) | ||
| 144 | (todos-insert-item-for-diary, todos-insert-item-for-diary-here): | ||
| 145 | New insertion commands. | ||
| 146 | (todos-insert-item-from-calendar): Use todos-current-todos-file. | ||
| 147 | (todos-delete-item): Handle diary items; | ||
| 148 | use todos-update-categories-sexp. | ||
| 149 | (todos-edit-item): Check if point is with item string; | ||
| 150 | use read-string instead of read-from-minibuffer; | ||
| 151 | use todos-date-string-start; after editing put point at start of | ||
| 152 | item text. | ||
| 153 | (todos-edit-multiline): Narrow to item before invoking | ||
| 154 | todos-edit-mode; show key binding of todos-edit-quit in a message. | ||
| 155 | (todos-edit-quit): Use todos-save; kill buffer. | ||
| 156 | (todos-edit-item-header): Add optional argument to prompt for | ||
| 157 | editing only date string or only time string; | ||
| 158 | use todos-date-string-start. | ||
| 159 | (todos-edit-item-date, todos-edit-item-date-is-today) | ||
| 160 | (todos-raise-item-priority, todos-lower-item-priority): Rename | ||
| 161 | from todos-{raise, lower}-item and make them DTRT in | ||
| 162 | todos-top-priorities-mode. | ||
| 163 | (todos-set-item-priority): Make interactive; use todos-get-count | ||
| 164 | and todos-insert-with-overlays; interactively, just relocate the | ||
| 165 | item within its category. | ||
| 166 | (todos-move-item): Add optional argument to prompt for a category | ||
| 167 | in another Todos file; handle diary items; fix restoration after | ||
| 168 | cancelling before inserting. | ||
| 169 | (todos-item-done): Handle diary items; simplify handling of | ||
| 170 | insertion in done items section. | ||
| 171 | (todos-item-undo): Handle diary items. | ||
| 172 | (todos-archive-done-items): Accommodate to new handling of archive | ||
| 173 | files (in parallel with Todos files); handle diary items; use | ||
| 174 | todos-done-string-start. | ||
| 175 | (todos-toggle-item-diary-inclusion): Use todos-nondiary-start, | ||
| 176 | todos-nondiary-end and todos-item-counts. | ||
| 177 | (todos-toggle-diary-inclusion): Use todos-category-done instead of | ||
| 178 | todos-category-end. | ||
| 179 | (todos-print): Remove autoload cookie; rewrite to make overlays, | ||
| 180 | line wrapping and wrap prefixes printable. | ||
| 181 | (todos-date-pattern): Make parenthesized groups shy. | ||
| 182 | (todos-date-string-match): Use todos-date-string-start; make | ||
| 183 | todos-date-pattern an explicitly numbered group. | ||
| 184 | (todos-time-string-match): Use todos-date-string-start. | ||
| 185 | (todos-done-string-match): Use todos-done-string-start. | ||
| 186 | (todos-category-string-match): Rewrite to match new category and | ||
| 187 | category+filename patterns in todos-top-priorities-mode. | ||
| 188 | (todos-prefix-overlays): Use todos-done-string-start and | ||
| 189 | todos-category-done. | ||
| 190 | (todos-reset-prefix): Handle archive files; restore point after | ||
| 191 | changing prefix. | ||
| 192 | (todos-reset-separator): Handle archive files. | ||
| 193 | (todos-category-number): Make category number one more than its | ||
| 194 | list index. | ||
| 195 | (todos-current-category): Accommodate to 1-based numbering of | ||
| 196 | categories. | ||
| 197 | (todos-category-select): Simplify handling of done items and done | ||
| 198 | separator string overlay. | ||
| 199 | (todos-item-start): Use todos-date-string-start and | ||
| 200 | todos-done-string-start. | ||
| 201 | (todos-item-start, todos-item-end): Fix wrong parenthesizing. | ||
| 202 | (todos-item-string): Restore point after getting item bounds; use | ||
| 203 | buffer-substring-no-properties. | ||
| 204 | (todos-done-item-p): Use todos-done-string-start. | ||
| 205 | (todos-make-categories-list): Add optional argument to force | ||
| 206 | looping through file to get categories and their item counts, | ||
| 207 | otherwise set todos-categories from sexp in first line; use | ||
| 208 | vectors of item counts instead of plists; count diary items. | ||
| 209 | (todos-item-counts): Use todos-counts, todos-set-counts, | ||
| 210 | todos-get-counts, and todos-update-categories-sexp instead of | ||
| 211 | getting and setting properties; handle diary items. | ||
| 212 | (todos-read-category): Add argument to set prompt; don't offer | ||
| 213 | default category. | ||
| 214 | (todos-validate-category-name): Rename from | ||
| 215 | todos-check-category-name; take into account whether there are | ||
| 216 | already categories or not. | ||
| 217 | (todos-read-date): Accept `*' as an unspecified month, day, or year. | ||
| 218 | (todos-padded-string): Accommodate new structure of | ||
| 219 | todos-categories as alists; use todos-categories-align. | ||
| 220 | (todos-descending-counts-store): New variable. | ||
| 221 | (todos-insert-category-line): Rename from | ||
| 222 | todos-insert-category-name and reimplement using labels and | ||
| 223 | todos-get-counts instead of properties; use | ||
| 224 | todos-ignore-archived-categories; highlight sorted column. | ||
| 225 | |||
| 1 | 2012-09-14 Stephen Berman <stephen.berman@gmx.net> | 226 | 2012-09-14 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 227 | ||
| 3 | * calendar/todos.el Remove lots of commented out code; add various | 228 | * calendar/todos.el Remove lots of commented out code; add various |