diff options
| author | Oliver Seidel | 1997-10-28 21:59:48 +0000 |
|---|---|---|
| committer | Oliver Seidel | 1997-10-28 21:59:48 +0000 |
| commit | 1966902e99987255c65029cf205258580dbc0c5e (patch) | |
| tree | 0db56cd8ace2600fb706459fb5eab54cbb73d666 | |
| parent | d145aa839c859041eec4a54bf84d8837cc32d4c7 (diff) | |
| download | emacs-1966902e99987255c65029cf205258580dbc0c5e.tar.gz emacs-1966902e99987255c65029cf205258580dbc0c5e.zip | |
Improved documentation, fixed insertion with prefix.
| -rw-r--r-- | lisp/calendar/todo-mode.el | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 5275c9e4364..08f061dc531 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Oliver.Seidel@cl.cam.ac.uk (was valid on Aug 2, 1997) | 5 | ;; Author: Oliver.Seidel@cl.cam.ac.uk (was valid on Aug 2, 1997) |
| 6 | ;; Created: 2 Aug 1997 | 6 | ;; Created: 2 Aug 1997 |
| 7 | ;; Version: $Id: todo-mode.el,v 1.28 1997/10/28 21:37:05 os10000 Exp os10000 $ | 7 | ;; Version: $Id: todo-mode.el,v 1.29 1997/10/28 21:47:12 os10000 Exp os10000 $ |
| 8 | ;; Keywords: Categorised TODO list editor, todo-mode | 8 | ;; Keywords: Categorised TODO list editor, todo-mode |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -96,7 +96,7 @@ | |||
| 96 | ;; | 96 | ;; |
| 97 | ;; Which version of todo-mode.el does this documentation refer to? | 97 | ;; Which version of todo-mode.el does this documentation refer to? |
| 98 | ;; | 98 | ;; |
| 99 | ;; $Id: todo-mode.el,v 1.28 1997/10/28 21:37:05 os10000 Exp os10000 $ | 99 | ;; $Id: todo-mode.el,v 1.29 1997/10/28 21:47:12 os10000 Exp os10000 $ |
| 100 | ;; | 100 | ;; |
| 101 | ;; Pre-Requisites | 101 | ;; Pre-Requisites |
| 102 | ;; | 102 | ;; |
| @@ -117,9 +117,11 @@ | |||
| 117 | ;; d to file the current entry, including a | 117 | ;; d to file the current entry, including a |
| 118 | ;; comment and timestamp | 118 | ;; comment and timestamp |
| 119 | ;; e to edit the current entry | 119 | ;; e to edit the current entry |
| 120 | ;; E to edit a multi-line entry | ||
| 120 | ;; f to file the current entry, including a | 121 | ;; f to file the current entry, including a |
| 121 | ;; comment and timestamp | 122 | ;; comment and timestamp |
| 122 | ;; i to insert a new entry | 123 | ;; i to insert a new entry |
| 124 | ;; I to insert a new entry at current cursor position | ||
| 123 | ;; j jump to category | 125 | ;; j jump to category |
| 124 | ;; k to kill the current entry | 126 | ;; k to kill the current entry |
| 125 | ;; l to lower the current entry's priority | 127 | ;; l to lower the current entry's priority |
| @@ -265,6 +267,10 @@ | |||
| 265 | ;;; Change Log: | 267 | ;;; Change Log: |
| 266 | 268 | ||
| 267 | ;; $Log: todo-mode.el,v $ | 269 | ;; $Log: todo-mode.el,v $ |
| 270 | ;; Revision 1.29 1997/10/28 21:47:12 os10000 | ||
| 271 | ;; Implemented "insert-under-cursor" as suggested by | ||
| 272 | ;; Kai Grossjohann <grossjohann@ls6.cs.uni-dortmund.de>. | ||
| 273 | ;; | ||
| 268 | ;; Revision 1.28 1997/10/28 21:37:05 os10000 | 274 | ;; Revision 1.28 1997/10/28 21:37:05 os10000 |
| 269 | ;; Incorporated simplifying suggestions from | 275 | ;; Incorporated simplifying suggestions from |
| 270 | ;; Carsten Dominik <dominik@strw.LeidenUniv.nl>. | 276 | ;; Carsten Dominik <dominik@strw.LeidenUniv.nl>. |
| @@ -614,9 +620,9 @@ Use `todo-categories' instead.") | |||
| 614 | (suppress-keymap map t) | 620 | (suppress-keymap map t) |
| 615 | (define-key map "+" 'todo-forward-category) | 621 | (define-key map "+" 'todo-forward-category) |
| 616 | (define-key map "-" 'todo-backward-category) | 622 | (define-key map "-" 'todo-backward-category) |
| 623 | (define-key map "d" 'todo-file-item) ;done/delete | ||
| 617 | (define-key map "e" 'todo-edit-item) | 624 | (define-key map "e" 'todo-edit-item) |
| 618 | (define-key map "E" 'todo-edit-multiline) | 625 | (define-key map "E" 'todo-edit-multiline) |
| 619 | (define-key map "d" 'todo-file-item) ;done/delete | ||
| 620 | (define-key map "f" 'todo-file-item) | 626 | (define-key map "f" 'todo-file-item) |
| 621 | (define-key map "i" 'todo-insert-item) | 627 | (define-key map "i" 'todo-insert-item) |
| 622 | (define-key map "I" 'todo-insert-item-here) | 628 | (define-key map "I" 'todo-insert-item-here) |
| @@ -786,23 +792,23 @@ With a prefix argument solicit the category, otherwise use the current | |||
| 786 | category." | 792 | category." |
| 787 | (interactive "P") | 793 | (interactive "P") |
| 788 | (save-excursion | 794 | (save-excursion |
| 789 | (todo-show) | 795 | (if (not (string-equal mode-name "TODO")) (todo-show)) |
| 790 | (let* ((new-item (concat todo-prefix " " | 796 | (let* ((new-item (concat todo-prefix " " |
| 791 | (read-from-minibuffer | 797 | (read-from-minibuffer |
| 792 | "New TODO entry: " | 798 | "New TODO entry: " |
| 793 | (if todo-entry-prefix-function | 799 | (if todo-entry-prefix-function |
| 794 | (funcall todo-entry-prefix-function))))) | 800 | (funcall todo-entry-prefix-function))))) |
| 795 | (categories todo-categories) | 801 | (categories todo-categories) |
| 796 | (history (cons 'categories (1+ todo-category-number))) | 802 | (history (cons 'categories (1+ todo-category-number))) |
| 797 | (current-category (nth todo-category-number todo-categories)) | 803 | (current-category (nth todo-category-number todo-categories)) |
| 798 | (category | 804 | (category |
| 799 | (if ARG | 805 | (if ARG |
| 800 | current-category | 806 | current-category |
| 801 | (completing-read | 807 | (completing-read |
| 802 | (concat "Category [" | 808 | (concat "Category [" |
| 803 | current-category "]: ") | 809 | current-category "]: ") |
| 804 | (todo-category-alist) nil nil nil history)))) | 810 | (todo-category-alist) nil nil nil history)))) |
| 805 | (todo-add-item-non-interactively new-item category ARG)))) | 811 | (todo-add-item-non-interactively new-item category ARG)))) |
| 806 | 812 | ||
| 807 | (defalias 'todo-cmd-inst 'todo-insert-item) | 813 | (defalias 'todo-cmd-inst 'todo-insert-item) |
| 808 | 814 | ||
| @@ -810,13 +816,7 @@ category." | |||
| 810 | (defun todo-insert-item-here () | 816 | (defun todo-insert-item-here () |
| 811 | "Insert new TODO list entry under the cursor." | 817 | "Insert new TODO list entry under the cursor." |
| 812 | (interactive) | 818 | (interactive) |
| 813 | (save-excursion | 819 | (todo-insert-item t)) |
| 814 | (let* ((new-item (concat todo-prefix " " | ||
| 815 | (read-from-minibuffer | ||
| 816 | "New TODO entry: " | ||
| 817 | (if todo-entry-prefix-function | ||
| 818 | (funcall todo-entry-prefix-function)))))) | ||
| 819 | (insert (concat new-item "\n"))))) | ||
| 820 | 820 | ||
| 821 | (defun todo-more-important-p (line) | 821 | (defun todo-more-important-p (line) |
| 822 | "Ask whether entry is more important than the one at LINE." | 822 | "Ask whether entry is more important than the one at LINE." |