comparison lisp/calendar/todo-mode.el @ 24720:71c05fbebaba

Removed some inappropriate "autoload comments", as suggested by <Marc.Zonzon@univ-rennes1.fr>. Thanks.
author Oliver Seidel <os10000@seidel-space.de>
date Wed, 12 May 1999 08:41:32 +0000
parents 1e30ade63ed3
children 7d6f2982fe6e
comparison
equal deleted inserted replaced
24719:a0382c9f41ce 24720:71c05fbebaba
2 2
3 ;; Copyright (C) 1997 Free Software Foundation, Inc. 3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
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.36 1999/03/17 11:10:29 os10000 Exp os10000 $ 7 ;; Version: $Id: todo-mode.el,v 1.37 1999/03/18 08:53:48 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.
11 11
12 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
115 ;; 115 ;;
116 ;; Version 116 ;; Version
117 ;; 117 ;;
118 ;; Which version of todo-mode.el does this documentation refer to? 118 ;; Which version of todo-mode.el does this documentation refer to?
119 ;; 119 ;;
120 ;; $Id: todo-mode.el,v 1.36 1999/03/17 11:10:29 os10000 Exp os10000 $ 120 ;; $Id: todo-mode.el,v 1.37 1999/03/18 08:53:48 os10000 Exp os10000 $
121 ;; 121 ;;
122 ;; Pre-Requisites 122 ;; Pre-Requisites
123 ;; 123 ;;
124 ;; This package will require the following packages to be 124 ;; This package will require the following packages to be
125 ;; available on the load-path: 125 ;; available on the load-path:
290 ;; --------------------------------------------------------------------------- 290 ;; ---------------------------------------------------------------------------
291 291
292 ;;; Change Log: 292 ;;; Change Log:
293 293
294 ;; $Log: todo-mode.el,v $ 294 ;; $Log: todo-mode.el,v $
295 ;; Revision 1.37 1999/03/18 08:53:48 os10000
296 ;; Marc Zonzon <Marc.Zonzon@univ-rennes1.fr> on 18.Mar.99 writes that I
297 ;; should remove the single space between ### and autoload. And now I
298 ;; have.
299 ;;
295 ;; Revision 1.36 1999/03/17 11:10:29 os10000 300 ;; Revision 1.36 1999/03/17 11:10:29 os10000
296 ;; Alastair Burt <alastair.burt@dfki.de> sent in a patch on 17.Mar.98 301 ;; Alastair Burt <alastair.burt@dfki.de> sent in a patch on 17.Mar.98
297 ;; which removes duplicates from the category list and saves the buffer 302 ;; which removes duplicates from the category list and saves the buffer
298 ;; after category addition. Thanks. 303 ;; after category addition. Thanks.
299 ;; 304 ;;
805 (find-buffer-visiting todo-file-do) buffer-name)) 810 (find-buffer-visiting todo-file-do) buffer-name))
806 (message "To exit, simply kill this buffer and return to list.") 811 (message "To exit, simply kill this buffer and return to list.")
807 (todo-edit-mode) 812 (todo-edit-mode)
808 (narrow-to-region (todo-item-start) (todo-item-end)))) 813 (narrow-to-region (todo-item-start) (todo-item-end))))
809 814
810 ;;;###autoload
811 (defun todo-add-category (cat) 815 (defun todo-add-category (cat)
812 "Add new category CAT to the TODO list." 816 "Add new category CAT to the TODO list."
813 (interactive "sCategory: ") 817 (interactive "sCategory: ")
814 (save-window-excursion 818 (save-window-excursion
815 (pushnew cat todo-categories) 819 (pushnew cat todo-categories)
830 todo-category-end 834 todo-category-end
831 todo-prefix todo-category-sep)) 835 todo-prefix todo-category-sep))
832 (save-buffer)) 836 (save-buffer))
833 0) 837 0)
834 838
835 ;;;###autoload
836 (defun todo-add-item-non-interactively (new-item category) 839 (defun todo-add-item-non-interactively (new-item category)
837 "Insert NEW-ITEM in TODO list as a new entry in CATEGORY." 840 "Insert NEW-ITEM in TODO list as a new entry in CATEGORY."
838 (save-excursion 841 (save-excursion
839 (todo-show)) 842 (todo-show))
840 (save-excursion 843 (save-excursion
893 (todo-category-alist) nil nil nil history)))) 896 (todo-category-alist) nil nil nil history))))
894 (todo-add-item-non-interactively new-item category)))) 897 (todo-add-item-non-interactively new-item category))))
895 898
896 (defalias 'todo-cmd-inst 'todo-insert-item) 899 (defalias 'todo-cmd-inst 'todo-insert-item)
897 900
898 ;;;###autoload
899 (defun todo-insert-item-here () 901 (defun todo-insert-item-here ()
900 "Insert new TODO list entry under the cursor." 902 "Insert new TODO list entry under the cursor."
901 (interactive "") 903 (interactive "")
902 (save-excursion 904 (save-excursion
903 (if (not (string-equal mode-name "TODO")) (todo-show)) 905 (if (not (string-equal mode-name "TODO")) (todo-show))
992 994
993 ;; --------------------------------------------------------------------------- 995 ;; ---------------------------------------------------------------------------
994 996
995 ;; Utility functions: 997 ;; Utility functions:
996 998
997
998 ;;;###autoload
999 (defun todo-top-priorities (&optional nof-priorities category-pr-page) 999 (defun todo-top-priorities (&optional nof-priorities category-pr-page)
1000 "List top priorities for each category. 1000 "List top priorities for each category.
1001 1001
1002 Number of entries for each category is given by NOF-PRIORITIES which 1002 Number of entries for each category is given by NOF-PRIORITIES which
1003 defaults to \'todo-show-priorities\'. 1003 defaults to \'todo-show-priorities\'.
1054 (display-buffer todo-print-buffer-name) 1054 (display-buffer todo-print-buffer-name)
1055 (message "Type C-x 1 to remove %s window. M-C-v to scroll the help." 1055 (message "Type C-x 1 to remove %s window. M-C-v to scroll the help."
1056 todo-print-buffer-name) 1056 todo-print-buffer-name)
1057 )) 1057 ))
1058 1058
1059 ;;;###autoload
1060 (defun todo-save-top-priorities (&optional nof-priorities) 1059 (defun todo-save-top-priorities (&optional nof-priorities)
1061 "Save top priorities for each category in `todo-file-top'. 1060 "Save top priorities for each category in `todo-file-top'.
1062 1061
1063 Number of entries for each category is given by NOF-PRIORITIES which 1062 Number of entries for each category is given by NOF-PRIORITIES which
1064 defaults to `todo-show-priorities'." 1063 defaults to `todo-show-priorities'."