diff options
| author | Oliver Seidel | 1997-10-24 16:53:20 +0000 |
|---|---|---|
| committer | Oliver Seidel | 1997-10-24 16:53:20 +0000 |
| commit | 2e5900308012b94bfb9e068243c9ab3d13397c17 (patch) | |
| tree | fd5d25b526ae28bd86ebe24d22b69f7187efe1fa | |
| parent | 0aa18b36b310950db442eb748c61c329235b94fc (diff) | |
| download | emacs-2e5900308012b94bfb9e068243c9ab3d13397c17.tar.gz emacs-2e5900308012b94bfb9e068243c9ab3d13397c17.zip | |
Paul Stodghill <stodghil@CS.Cornell.EDU> writes:
When invoked with a prefix, todo-insert-item
should not prompt for a category. (He adds:
At least that's what I think.)
| -rw-r--r-- | lisp/calendar/todo-mode.el | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 80ddcdc03ad..d265b258cae 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.21 1997/10/18 13:31:40 os10000 Exp $ | 7 | ;; Version: $Id: todo-mode.el,v 1.21 1997/10/24 16:51:02 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. |
| @@ -77,7 +77,7 @@ | |||
| 77 | ;; | 77 | ;; |
| 78 | ;; Which version of todo-mode.el does this documentation refer to? | 78 | ;; Which version of todo-mode.el does this documentation refer to? |
| 79 | ;; | 79 | ;; |
| 80 | ;; $Id: todo-mode.el,v 1.21 1997/10/18 13:31:40 os10000 Exp $ | 80 | ;; $Id: todo-mode.el,v 1.21 1997/10/24 16:51:02 os10000 Exp os10000 $ |
| 81 | ;; | 81 | ;; |
| 82 | ;; Pre-Requisites | 82 | ;; Pre-Requisites |
| 83 | ;; | 83 | ;; |
| @@ -250,6 +250,25 @@ | |||
| 250 | ;;; Change Log: | 250 | ;;; Change Log: |
| 251 | 251 | ||
| 252 | ;; $Log: todo-mode.el,v $ | 252 | ;; $Log: todo-mode.el,v $ |
| 253 | ;; Revision 1.21 1997/10/24 16:51:02 os10000 | ||
| 254 | ;; Rafael Laboissiere <rafael@icp.inpg.fr> writes: | ||
| 255 | ;; | ||
| 256 | ;; I was just annoyed with the fact that there is no way | ||
| 257 | ;; to dynamically control the insertion accuracy. I mean: | ||
| 258 | ;; the variable `todo-insert-threshold' does the job, but | ||
| 259 | ;; it is not very handy if one wants to mix the two | ||
| 260 | ;; behaviors (bisection and "insert right here under the | ||
| 261 | ;; cursor"). | ||
| 262 | ;; | ||
| 263 | ;; Therefore I did a quick hack in the function | ||
| 264 | ;; `todo-insert-item'. Now by giving a prefix argument to | ||
| 265 | ;; the insert command (i.e. by typing "C-u i"), entries | ||
| 266 | ;; are inserted exactly at the line where the cursor is. | ||
| 267 | ;; It would be better to give the value of | ||
| 268 | ;; `todo-insert-threshold' as a numeric argument of | ||
| 269 | ;; `todo-insert-item' (like "M-8 i"), but it's too late | ||
| 270 | ;; now for continuing to hack. | ||
| 271 | ;; | ||
| 253 | ;; Revision 1.20 1997/10/17 15:41:57 os10000 | 272 | ;; Revision 1.20 1997/10/17 15:41:57 os10000 |
| 254 | ;; Thanks to Harald Backer <harald.backer@fou.telenor.no>, we now have | 273 | ;; Thanks to Harald Backer <harald.backer@fou.telenor.no>, we now have |
| 255 | ;; the following facilities available: | 274 | ;; the following facilities available: |
| @@ -586,10 +605,14 @@ TODO categories. Use `todo-categories' instead.") | |||
| 586 | (funcall todo-entry-prefix-function))))) | 605 | (funcall todo-entry-prefix-function))))) |
| 587 | (categories todo-categories) | 606 | (categories todo-categories) |
| 588 | (history (cons 'categories (1+ todo-category-number))) | 607 | (history (cons 'categories (1+ todo-category-number))) |
| 589 | (category (completing-read | 608 | (current-category (nth todo-category-number todo-categories)) |
| 609 | (category | ||
| 610 | (if ARG | ||
| 611 | current-category | ||
| 612 | (completing-read | ||
| 590 | (concat "Category [" | 613 | (concat "Category [" |
| 591 | (nth todo-category-number todo-categories) "]: ") | 614 | current-category "]: ") |
| 592 | (todo-category-alist) nil nil nil history))) | 615 | (todo-category-alist) nil nil nil history)))) |
| 593 | (if (string= "" category) | 616 | (if (string= "" category) |
| 594 | (setq category (nth todo-category-number todo-categories))) | 617 | (setq category (nth todo-category-number todo-categories))) |
| 595 | (let ((cat-exists (member category todo-categories))) | 618 | (let ((cat-exists (member category todo-categories))) |