aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2013-06-01 18:01:47 +0200
committerStephen Berman2013-06-01 18:01:47 +0200
commit53e63b4cb930cfe4d756ba5e68e89d6a4e6318da (patch)
tree481d3f6793ea94264422637c109747646c5c07ce
parent23cbdcbcbed9f895393d26df14cd90d27df1d0ab (diff)
downloademacs-53e63b4cb930cfe4d756ba5e68e89d6a4e6318da.tar.gz
emacs-53e63b4cb930cfe4d756ba5e68e89d6a4e6318da.zip
* todos.el: Some custom cleanup.
(todos-edit): Rename from todos-item-insertion and adjust doc string. (todos-display): Rename from todos-mode-display. (todos-item-mark, todos-undo-item-omit-comment): Change :group to todos-edit. (todos-indent-to-here): Change :group to todos-display. (todos, todos-edit, todos-categories, todos-filtered) (todos-display, todos-faces): Change :version to "24.4".
-rw-r--r--lisp/calendar/ChangeLog11
-rw-r--r--lisp/calendar/todos.el56
2 files changed, 39 insertions, 28 deletions
diff --git a/lisp/calendar/ChangeLog b/lisp/calendar/ChangeLog
index 1c26f253475..fdfed1a8899 100644
--- a/lisp/calendar/ChangeLog
+++ b/lisp/calendar/ChangeLog
@@ -1,5 +1,16 @@
12013-06-01 Stephen Berman <stephen.berman@gmx.net> 12013-06-01 Stephen Berman <stephen.berman@gmx.net>
2 2
3 * todos.el: Some custom cleanup.
4 (todos-edit): Rename from todos-item-insertion and adjust doc string.
5 (todos-display): Rename from todos-mode-display.
6 (todos-item-mark, todos-undo-item-omit-comment): Change :group to
7 todos-edit.
8 (todos-indent-to-here): Change :group to todos-display.
9 (todos, todos-edit, todos-categories, todos-filtered)
10 (todos-display, todos-faces): Change :version to "24.4".
11
122013-06-01 Stephen Berman <stephen.berman@gmx.net>
13
3 * todos.el (todos-filtered-items-mode-map): Fix omission in 14 * todos.el (todos-filtered-items-mode-map): Fix omission in
4 previous change. 15 previous change.
5 (todos-mode): Comment out invocation of easy-menu-add, since menu 16 (todos-mode): Comment out invocation of easy-menu-add, since menu
diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el
index b2e81273579..8858d54b4f9 100644
--- a/lisp/calendar/todos.el
+++ b/lisp/calendar/todos.el
@@ -863,7 +863,7 @@ only when no items are marked."
863 widget))) 863 widget)))
864 :set (lambda (symbol value) 864 :set (lambda (symbol value)
865 (custom-set-default symbol (propertize value 'face 'todos-mark))) 865 (custom-set-default symbol (propertize value 'face 'todos-mark)))
866 :group 'todos-mode-display) 866 :group 'todos-edit)
867 867
868(defun todos-toggle-mark-item (&optional n) 868(defun todos-toggle-mark-item (&optional n)
869 "Mark item with `todos-item-mark' if unmarked, otherwise unmark it. 869 "Mark item with `todos-item-mark' if unmarked, otherwise unmark it.
@@ -933,14 +933,14 @@ marking of the next N items."
933(defcustom todos-include-in-diary nil 933(defcustom todos-include-in-diary nil
934 "Non-nil to allow new Todo items to be included in the diary." 934 "Non-nil to allow new Todo items to be included in the diary."
935 :type 'boolean 935 :type 'boolean
936 :group 'todos-item-insertion) 936 :group 'todos-edit)
937 937
938(defcustom todos-diary-nonmarking nil 938(defcustom todos-diary-nonmarking nil
939 "Non-nil to insert new Todo diary items as nonmarking by default. 939 "Non-nil to insert new Todo diary items as nonmarking by default.
940This appends `diary-nonmarking-symbol' to the front of an item on 940This appends `diary-nonmarking-symbol' to the front of an item on
941insertion provided it doesn't begin with `todos-nondiary-marker'." 941insertion provided it doesn't begin with `todos-nondiary-marker'."
942 :type 'boolean 942 :type 'boolean
943 :group 'todos-item-insertion) 943 :group 'todos-edit)
944 944
945(defcustom todos-nondiary-marker '("[" "]") 945(defcustom todos-nondiary-marker '("[" "]")
946 "List of strings surrounding item date to block diary inclusion. 946 "List of strings surrounding item date to block diary inclusion.
@@ -949,7 +949,7 @@ non-empty string that does not match a diary date in order to
949have its intended effect. The second string is inserted after 949have its intended effect. The second string is inserted after
950the diary date." 950the diary date."
951 :type '(list string string) 951 :type '(list string string)
952 :group 'todos-item-insertion 952 :group 'todos-edit
953 :initialize 'custom-initialize-default 953 :initialize 'custom-initialize-default
954 :set 'todos-reset-nondiary-marker) 954 :set 'todos-reset-nondiary-marker)
955 955
@@ -960,12 +960,12 @@ argument, this reverses the effect of
960`todos-always-add-time-string': if t, these commands omit the 960`todos-always-add-time-string': if t, these commands omit the
961current time, if nil, they include it." 961current time, if nil, they include it."
962 :type 'boolean 962 :type 'boolean
963 :group 'todos-item-insertion) 963 :group 'todos-edit)
964 964
965(defcustom todos-use-only-highlighted-region t 965(defcustom todos-use-only-highlighted-region t
966 "Non-nil to enable inserting only highlighted region as new item." 966 "Non-nil to enable inserting only highlighted region as new item."
967 :type 'boolean 967 :type 'boolean
968 :group 'todos-item-insertion) 968 :group 'todos-edit)
969 969
970(defcustom todos-undo-item-omit-comment 'ask 970(defcustom todos-undo-item-omit-comment 'ask
971 "Whether to omit done item comment on undoing the item. 971 "Whether to omit done item comment on undoing the item.
@@ -974,7 +974,7 @@ means prompt user and omit comment only on confirmation."
974 :type '(choice (const :tag "Never" nil) 974 :type '(choice (const :tag "Never" nil)
975 (const :tag "Always" t) 975 (const :tag "Always" t)
976 (const :tag "Ask" ask)) 976 (const :tag "Ask" ask))
977 :group 'todos) 977 :group 'todos-edit)
978 978
979;; ----------------------------------------------------------------------------- 979;; -----------------------------------------------------------------------------
980;;; Item editing commands 980;;; Item editing commands
@@ -2315,7 +2315,7 @@ categories shown in `todos-archived-only' face and pressing the
2315category button visits the category in the archive instead of the 2315category button visits the category in the archive instead of the
2316todo file." 2316todo file."
2317 :type 'boolean 2317 :type 'boolean
2318 :group 'todos-mode-display) 2318 :group 'todos-display)
2319 2319
2320(defun todos-find-archive (&optional ask) 2320(defun todos-find-archive (&optional ask)
2321 "Visit the archive of the current Todos category, if it exists. 2321 "Visit the archive of the current Todos category, if it exists.
@@ -2617,7 +2617,7 @@ and jump to any category in the current archive."
2617 widget))) 2617 widget)))
2618 :initialize 'custom-initialize-default 2618 :initialize 'custom-initialize-default
2619 :set 'todos-reset-prefix 2619 :set 'todos-reset-prefix
2620 :group 'todos-mode-display) 2620 :group 'todos-display)
2621 2621
2622(defcustom todos-number-prefix t 2622(defcustom todos-number-prefix t
2623 "Non-nil to prefix items with consecutively increasing integers. 2623 "Non-nil to prefix items with consecutively increasing integers.
@@ -2625,7 +2625,7 @@ These reflect the priorities of the items in each category."
2625 :type 'boolean 2625 :type 'boolean
2626 :initialize 'custom-initialize-default 2626 :initialize 'custom-initialize-default
2627 :set 'todos-reset-prefix 2627 :set 'todos-reset-prefix
2628 :group 'todos-mode-display) 2628 :group 'todos-display)
2629 2629
2630(defcustom todos-done-separator-string "=" 2630(defcustom todos-done-separator-string "="
2631 "String for generating `todos-done-separator'. 2631 "String for generating `todos-done-separator'.
@@ -2639,26 +2639,26 @@ the value of `todos-done-separator'."
2639 :type 'string 2639 :type 'string
2640 :initialize 'custom-initialize-default 2640 :initialize 'custom-initialize-default
2641 :set 'todos-reset-done-separator-string 2641 :set 'todos-reset-done-separator-string
2642 :group 'todos-mode-display) 2642 :group 'todos-display)
2643 2643
2644(defcustom todos-done-string "DONE " 2644(defcustom todos-done-string "DONE "
2645 "Identifying string appended to the front of done todos items." 2645 "Identifying string appended to the front of done todos items."
2646 :type 'string 2646 :type 'string
2647 :initialize 'custom-initialize-default 2647 :initialize 'custom-initialize-default
2648 :set 'todos-reset-done-string 2648 :set 'todos-reset-done-string
2649 :group 'todos-mode-display) 2649 :group 'todos-display)
2650 2650
2651(defcustom todos-comment-string "COMMENT" 2651(defcustom todos-comment-string "COMMENT"
2652 "String inserted before optional comment appended to done item." 2652 "String inserted before optional comment appended to done item."
2653 :type 'string 2653 :type 'string
2654 :initialize 'custom-initialize-default 2654 :initialize 'custom-initialize-default
2655 :set 'todos-reset-comment-string 2655 :set 'todos-reset-comment-string
2656 :group 'todos-mode-display) 2656 :group 'todos-display)
2657 2657
2658(defcustom todos-show-with-done nil 2658(defcustom todos-show-with-done nil
2659 "Non-nil to display done items in all categories." 2659 "Non-nil to display done items in all categories."
2660 :type 'boolean 2660 :type 'boolean
2661 :group 'todos-mode-display) 2661 :group 'todos-display)
2662 2662
2663(defun todos-mode-line-control (cat) 2663(defun todos-mode-line-control (cat)
2664 "Return a mode line control for todo or archive file buffers. 2664 "Return a mode line control for todo or archive file buffers.
@@ -2674,19 +2674,19 @@ The function expects one argument holding the name of the current
2674Todos category. The resulting control becomes the local value of 2674Todos category. The resulting control becomes the local value of
2675`mode-line-buffer-identification' in each Todos buffer." 2675`mode-line-buffer-identification' in each Todos buffer."
2676 :type 'function 2676 :type 'function
2677 :group 'todos-mode-display) 2677 :group 'todos-display)
2678 2678
2679(defcustom todos-highlight-item nil 2679(defcustom todos-highlight-item nil
2680 "Non-nil means highlight items at point." 2680 "Non-nil means highlight items at point."
2681 :type 'boolean 2681 :type 'boolean
2682 :initialize 'custom-initialize-default 2682 :initialize 'custom-initialize-default
2683 :set 'todos-reset-highlight-item 2683 :set 'todos-reset-highlight-item
2684 :group 'todos-mode-display) 2684 :group 'todos-display)
2685 2685
2686(defcustom todos-wrap-lines t 2686(defcustom todos-wrap-lines t
2687 "Non-nil to activate Visual Line mode and use wrap prefix." 2687 "Non-nil to activate Visual Line mode and use wrap prefix."
2688 :group 'todos-mode-display 2688 :type 'boolean
2689 :type 'boolean) 2689 :group 'todos-display)
2690 2690
2691(defcustom todos-indent-to-here 3 2691(defcustom todos-indent-to-here 3
2692 "Number of spaces to indent continuation lines of items. 2692 "Number of spaces to indent continuation lines of items.
@@ -2698,7 +2698,7 @@ shown in the Fancy Diary display."
2698 (widget-put widget :error 2698 (widget-put widget :error
2699 "Invalid value: must be a positive integer") 2699 "Invalid value: must be a positive integer")
2700 widget))) 2700 widget)))
2701 :group 'todos) 2701 :group 'todos-display)
2702 2702
2703(defun todos-indent () 2703(defun todos-indent ()
2704 "Indent from point to `todos-indent-to-here'." 2704 "Indent from point to `todos-indent-to-here'."
@@ -5575,32 +5575,32 @@ If the file already exists, overwrite it only on confirmation."
5575(defgroup todos nil 5575(defgroup todos nil
5576 "Create and maintain categorized lists of todo items." 5576 "Create and maintain categorized lists of todo items."
5577 :link '(emacs-commentary-link "todos") 5577 :link '(emacs-commentary-link "todos")
5578 :version "24.2" 5578 :version "24.4"
5579 :group 'calendar) 5579 :group 'calendar)
5580 5580
5581(defgroup todos-item-insertion nil 5581(defgroup todos-edit nil
5582 "User options for adding new todo items." 5582 "User options for adding and editing todo items."
5583 :version "24.2" 5583 :version "24.4"
5584 :group 'todos) 5584 :group 'todos)
5585 5585
5586(defgroup todos-categories nil 5586(defgroup todos-categories nil
5587 "User options for Todos Categories mode." 5587 "User options for Todos Categories mode."
5588 :version "24.2" 5588 :version "24.4"
5589 :group 'todos) 5589 :group 'todos)
5590 5590
5591(defgroup todos-filtered nil 5591(defgroup todos-filtered nil
5592 "User options for Todos Filter Items mode." 5592 "User options for Todos Filter Items mode."
5593 :version "24.2" 5593 :version "24.4"
5594 :group 'todos) 5594 :group 'todos)
5595 5595
5596(defgroup todos-mode-display nil 5596(defgroup todos-display nil
5597 "User display options for Todos mode." 5597 "User display options for Todos mode."
5598 :version "24.2" 5598 :version "24.4"
5599 :group 'todos) 5599 :group 'todos)
5600 5600
5601(defgroup todos-faces nil 5601(defgroup todos-faces nil
5602 "Faces for the Todos modes." 5602 "Faces for the Todos modes."
5603 :version "24.2" 5603 :version "24.4"
5604 :group 'todos) 5604 :group 'todos)
5605 5605
5606(defun todos-set-show-current-file (symbol value) 5606(defun todos-set-show-current-file (symbol value)