diff options
| author | Stephen Berman | 2010-06-18 23:52:10 +0100 |
|---|---|---|
| committer | Stephen Berman | 2010-06-18 23:52:10 +0100 |
| commit | ee7412e467393ef608f1b1f868e368ab923ae406 (patch) | |
| tree | f9fe5f7b3a5ea08051c4010741eba9142c935ac0 /lisp/ChangeLog | |
| parent | 2c173503dcb83660571ab5abe244cc559eb61596 (diff) | |
| download | emacs-ee7412e467393ef608f1b1f868e368ab923ae406.tar.gz emacs-ee7412e467393ef608f1b1f868e368ab923ae406.zip | |
* calendar/todos.el: Numerous spelling and comment fixes, doc
string fixes to conform with checkdoc, further rearrangement of
definitions, etc.
(todos-previous-line, todos-previous-answer)
(todos-insert-item-ask-date, todos-change-date)
(todos-date-nodayname-pattern, todos-dayname-date-pattern)
(todos-count-items-in-category, todos-count-all-items): Remove.
(todos-update-numbered-prefix, todos-item-start-overlays)
(todos-add-item-non-interactively): Comment out, also in uses.
(todos-done-separator): Change default value.
(todos-always-add-time-string): Rename from todos-add-time-string
and adjust uses.
(todos-read-category): Rename from todos-completing-read and
adjust callers; use todos-current-category.
(todos-make-categories-alist): Rename from function
todos-categories-alist.
(todos-categories-alist): New variable.
(todos-indent-to-here): New defcustom.
(todos-button): New face.
(todos-display-categories-alphabetically, todos-raise-category)
(todos-lower-category, todos-insert-item-for-diary-ask-date-time)
(todos-insert-item-here-ask-date-time)
(todos-insert-item-ask-date-time)
(todos-insert-item-ask-dayname-time): New commands.
(todos-edit-item-header): New command replacing todos-change-date.
(todos-category-number, todos-indent, todos-item-counts)
(todos-check-category-name, todos-read-date, todos-read-dayname)
(todos-read-time, todos-padded-string)
(todos-insert-category-name): New functions.
(todos-set-item-priority): New function replacing
todos-add-item-non-interactively.
(todos-mode-map): Remap newline to newline-and-indent.
(todos-edit-mode-map): Make sparse keymap; remap newline to
newline-and-indent.
(todos-categories-mode-map): New keymap.
(todos-mode, todos-edit-mode): Make indent-line-function local
variable and set to todos-indent.
(todos-categories-mode): New major mode.
(todos-display-categories): List categories initially in their
numerical order; add optional argument to switch to alphabetical
listing.
(todos-toggle-view-done-items): Simplify implementation.
(todos-toggle-display-date-time): Fix regexp search string.
(todos-backward-item, todos-forward-item): Use variable
todos-item-start.
(todos-add-category): Use todos-check-category-name and
todos-categories-alist.
(todos-rename-category): Use todos-current-category,
todos-check-category-name and todos-categories-alist.
(todos-delete-category): Use todos-check-category-name and
todos-categories-alist and take done items into account.
(todos-insert-item): Use separate arguments to handle insertion of
date/dayname and time strings, add new argument to mark item for
diary inclusion, use new todos-read-* functions,
todos-set-item-priority and todos-item-counts.
(todos-insert-item-here, todos-insert-item-for-diary)
(todos-insert-item-from-calendar): Adapt to new version of
todos-insert-item.
(todos-delete-item, todos-item-done): Use todos-item-counts.
(todos-edit-item): Indent newlines inserted by C-q C-j if nonspace
char follows.
(todos-lower-item): Ensure only not-done items can be lowered.
(todos-move-item): Use todos-current-category, todos-read-category
and todos-item-counts.
(todos-archive-done-items): Use todos-current-category and
todos-item-counts; fix regexp search string.
(todos-item-undo): Use todos-current-category,
todos-set-item-priority, todos-insert-with-overlays and
todos-item-counts; restore if user quits before inserting undone
item.
(todos-date-pattern): Rewrite without using
todos-date-nodayname-pattern and todos-dayname-date-pattern.
(todos-date-string-match): Do not make todos-date-pattern an
unnumbered group.
(todos-time-string-match): Make todos-date-pattern a shy group.
(todos-wrap-and-indent): Use todos-indent-to-here.
(todos-reset-prefix): Revert to using todos-show instead of
todos-category-select.
(todos-prefix-overlays): Fix numbering of done items and updating
of prefix.
(todos-category-select): Use todos-current-category; fix display
of separator string; don't move point to top of category.
(todos-jump-to-category-noninteractively): Use todos-category-number.
(todos-insert-with-overlays): Use todos-item-start unconditionally.
(todos-item-start): New variable.
(todos-item-start): Use it to define this function.
(todos-item-end): Adjust if item is last unfinished one before
displayed done items.
(todos-remove-item): Use todos-item-start and todos-item-end
instead of todos-forward-item and todos-backward-item.
(todos-longest-category-name-length): Add argument for list of
categories.
Diffstat (limited to 'lisp/ChangeLog')
| -rw-r--r-- | lisp/ChangeLog | 100 |
1 files changed, 97 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e2d88a96ac4..0bcb61c3712 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,100 @@ | |||
| 1 | 2012-09-13 Stephen Berman <stephen.berman@gmx.net> | 1 | 2012-09-13 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 2 | ||
| 3 | * calendar/todos.el: Numerous spelling and comment fixes, doc | ||
| 4 | string fixes to conform with checkdoc, further rearrangement of | ||
| 5 | definitions, etc. | ||
| 6 | (todos-previous-line, todos-previous-answer) | ||
| 7 | (todos-insert-item-ask-date, todos-change-date) | ||
| 8 | (todos-date-nodayname-pattern, todos-dayname-date-pattern) | ||
| 9 | (todos-count-items-in-category, todos-count-all-items): Remove. | ||
| 10 | (todos-update-numbered-prefix, todos-item-start-overlays) | ||
| 11 | (todos-add-item-non-interactively): Comment out, also in uses. | ||
| 12 | (todos-done-separator): Change default value. | ||
| 13 | (todos-always-add-time-string): Rename from todos-add-time-string | ||
| 14 | and adjust uses. | ||
| 15 | (todos-read-category): Rename from todos-completing-read and | ||
| 16 | adjust callers; use todos-current-category. | ||
| 17 | (todos-make-categories-alist): Rename from function | ||
| 18 | todos-categories-alist. | ||
| 19 | (todos-categories-alist): New variable. | ||
| 20 | (todos-indent-to-here): New defcustom. | ||
| 21 | (todos-button): New face. | ||
| 22 | (todos-display-categories-alphabetically, todos-raise-category) | ||
| 23 | (todos-lower-category, todos-insert-item-for-diary-ask-date-time) | ||
| 24 | (todos-insert-item-here-ask-date-time) | ||
| 25 | (todos-insert-item-ask-date-time) | ||
| 26 | (todos-insert-item-ask-dayname-time): New commands. | ||
| 27 | (todos-edit-item-header): New command replacing todos-change-date. | ||
| 28 | (todos-category-number, todos-indent, todos-item-counts) | ||
| 29 | (todos-check-category-name, todos-read-date, todos-read-dayname) | ||
| 30 | (todos-read-time, todos-padded-string) | ||
| 31 | (todos-insert-category-name): New functions. | ||
| 32 | (todos-set-item-priority): New function replacing | ||
| 33 | todos-add-item-non-interactively. | ||
| 34 | (todos-mode-map): Remap newline to newline-and-indent. | ||
| 35 | (todos-edit-mode-map): Make sparse keymap; remap newline to | ||
| 36 | newline-and-indent. | ||
| 37 | (todos-categories-mode-map): New keymap. | ||
| 38 | (todos-mode, todos-edit-mode): Make indent-line-function local | ||
| 39 | variable and set to todos-indent. | ||
| 40 | (todos-categories-mode): New major mode. | ||
| 41 | (todos-display-categories): List categories initially in their | ||
| 42 | numerical order; add optional argument to switch to alphabetical | ||
| 43 | listing. | ||
| 44 | (todos-toggle-view-done-items): Simplify implementation. | ||
| 45 | (todos-toggle-display-date-time): Fix regexp search string. | ||
| 46 | (todos-backward-item, todos-forward-item): Use variable | ||
| 47 | todos-item-start. | ||
| 48 | (todos-add-category): Use todos-check-category-name and | ||
| 49 | todos-categories-alist. | ||
| 50 | (todos-rename-category): Use todos-current-category, | ||
| 51 | todos-check-category-name and todos-categories-alist. | ||
| 52 | (todos-delete-category): Use todos-check-category-name and | ||
| 53 | todos-categories-alist and take done items into account. | ||
| 54 | (todos-insert-item): Use separate arguments to handle insertion of | ||
| 55 | date/dayname and time strings, add new argument to mark item for | ||
| 56 | diary inclusion, use new todos-read-* functions, | ||
| 57 | todos-set-item-priority and todos-item-counts. | ||
| 58 | (todos-insert-item-here, todos-insert-item-for-diary) | ||
| 59 | (todos-insert-item-from-calendar): Adapt to new version of | ||
| 60 | todos-insert-item. | ||
| 61 | (todos-delete-item, todos-item-done): Use todos-item-counts. | ||
| 62 | (todos-edit-item): Indent newlines inserted by C-q C-j if nonspace | ||
| 63 | char follows. | ||
| 64 | (todos-lower-item): Ensure only not-done items can be lowered. | ||
| 65 | (todos-move-item): Use todos-current-category, todos-read-category | ||
| 66 | and todos-item-counts. | ||
| 67 | (todos-archive-done-items): Use todos-current-category and | ||
| 68 | todos-item-counts; fix regexp search string. | ||
| 69 | (todos-item-undo): Use todos-current-category, | ||
| 70 | todos-set-item-priority, todos-insert-with-overlays and | ||
| 71 | todos-item-counts; restore if user quits before inserting undone | ||
| 72 | item. | ||
| 73 | (todos-date-pattern): Rewrite without using | ||
| 74 | todos-date-nodayname-pattern and todos-dayname-date-pattern. | ||
| 75 | (todos-date-string-match): Do not make todos-date-pattern an | ||
| 76 | unnumbered group. | ||
| 77 | (todos-time-string-match): Make todos-date-pattern a shy group. | ||
| 78 | (todos-wrap-and-indent): Use todos-indent-to-here. | ||
| 79 | (todos-reset-prefix): Revert to using todos-show instead of | ||
| 80 | todos-category-select. | ||
| 81 | (todos-prefix-overlays): Fix numbering of done items and updating | ||
| 82 | of prefix. | ||
| 83 | (todos-category-select): Use todos-current-category; fix display | ||
| 84 | of separator string; don't move point to top of category. | ||
| 85 | (todos-jump-to-category-noninteractively): Use todos-category-number. | ||
| 86 | (todos-insert-with-overlays): Use todos-item-start unconditionally. | ||
| 87 | (todos-item-start): New variable. | ||
| 88 | (todos-item-start): Use it to define this function. | ||
| 89 | (todos-item-end): Adjust if item is last unfinished one before | ||
| 90 | displayed done items. | ||
| 91 | (todos-remove-item): Use todos-item-start and todos-item-end | ||
| 92 | instead of todos-forward-item and todos-backward-item. | ||
| 93 | (todos-longest-category-name-length): Add argument for list of | ||
| 94 | categories. | ||
| 95 | |||
| 96 | 2012-09-13 Stephen Berman <stephen.berman@gmx.net> | ||
| 97 | |||
| 3 | * calendar/todos.el: Comment out calendar require, since diary-lib | 98 | * calendar/todos.el: Comment out calendar require, since diary-lib |
| 4 | requires calendar. Rearrange file to group definitions according | 99 | requires calendar. Rearrange file to group definitions according |
| 5 | to their use (types of commands, internal functions, etc.) | 100 | to their use (types of commands, internal functions, etc.) |
| @@ -10,9 +105,8 @@ | |||
| 10 | (todos-current-date, todos-item-end-overlays) | 105 | (todos-current-date, todos-item-end-overlays) |
| 11 | (todos-list-categories): Remove. | 106 | (todos-list-categories): Remove. |
| 12 | (todos-item-end): Remove (the variable, not the function). | 107 | (todos-item-end): Remove (the variable, not the function). |
| 13 | (todos-item-overlays): Rename to todos-prefix-overlays and adjust | 108 | (todos-prefix-overlays): Rename from todos-item-overlays and adjust |
| 14 | callers. | 109 | callers. |
| 15 | (todos-prefix-overlays): Rename from todos-item-overlays. | ||
| 16 | (todos-done-separator, todos-done-string, todos-show-with-done) | 110 | (todos-done-separator, todos-done-string, todos-show-with-done) |
| 17 | (todos-files, todos-archive-file, todos-categories-buffer) | 111 | (todos-files, todos-archive-file, todos-categories-buffer) |
| 18 | (todos-archived-categories-buffer, todos-wrap-lines) | 112 | (todos-archived-categories-buffer, todos-wrap-lines) |
| @@ -35,7 +129,7 @@ | |||
| 35 | (todos-insert-item-from-calendar, todos-edit-quit) | 129 | (todos-insert-item-from-calendar, todos-edit-quit) |
| 36 | (todos-change-date, todos-item-done, todos-archive-done-items) | 130 | (todos-change-date, todos-item-done, todos-archive-done-items) |
| 37 | (todos-item-undo): New commands. | 131 | (todos-item-undo): New commands. |
| 38 | (todos-archive-mode): New mode. | 132 | (todos-archive-mode): New major mode. |
| 39 | (todos-archive-mode-map, todos-edit-mode-map): New keymaps. | 133 | (todos-archive-mode-map, todos-edit-mode-map): New keymaps. |
| 40 | (todos-category-beg): Change value. | 134 | (todos-category-beg): Change value. |
| 41 | (todos-number-prefix): Change default value. | 135 | (todos-number-prefix): Change default value. |