?
Current Path : /usr/share/emacs/24.3/lisp/calendar/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/calendar/todo-mode.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/calendar/todo-mode.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311\312\313& \210\314\315\316\317\320\321\312\303&\210\314\322\323\324\320\325\312\303&\210\314\326\327\330\320\325\312\303&\210\314\331\304\332\320\333\312\303&\210\314\334\304\335\320\333\312\303&\210\314\336\337\340\320\341\312\303&\207" [require time-stamp custom-declare-group todo nil "Maintain a list of todo items." :link (emacs-commentary-link "todo-mode") :version "21.1" :group calendar custom-declare-variable todo-prefix "*/*" "TODO mode prefix for entries.\n\nThis is useful in conjunction with `calendar' and `diary' if you use\n\n#include \"~/.todo-do\"\n\nin your diary file to include your todo list file as part of your\ndiary. With the default value \"*/*\" the diary displays each entry\nevery day and it may also be marked on every day of the calendar.\nUsing \"&%%(equal (calendar-current-date) date)\" instead will only\nshow and mark todo entries for today, but may slow down processing of\nthe diary file somewhat." :type string todo-file-do (convert-standard-filename "~/.todo-do") "TODO mode list file." file todo-file-done (convert-standard-filename "~/.todo-done") "TODO mode archive file." todo-mode-hook "TODO mode hooks." hook todo-edit-mode-hook "TODO Edit mode hooks." todo-insert-threshold 0 "TODO mode insertion accuracy.\n\nIf you have 8 items in your TODO list, then you may get asked 4\nquestions by the binary insertion algorithm. However, you may not\nreally have a need for such accurate priorities amongst your TODO\nitems. If you now think about the binary insertion halving the size\nof the window each time, then the threshold is the window size at\nwhich it will stop. If you set the threshold to zero, the upper and\nlower bound will coincide at the end of the loop and you will insert\nyour item just before that point. If you set the threshold to,\ne.g. 8, it will stop as soon as the window size drops below that\namount and will insert the item in the approximate center of that\nwindow." integer] 10) #@24 TODO Edit buffer name. (defvar todo-edit-buffer " *TODO Edit*" (#$ . 2581)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\300\314\315\316\304\317\306\307&\210\300\320\321\322\304\317\306\307&\210\300\323\324\325\304\326\306\307&\210\300\327\324\330\304\326\306\307&\210\300\331\332\333\304\305\306\307&\210\300\334\335\336\304\313\306\307&\210\300\337\340\341\304\305\306\307&\207" [custom-declare-variable todo-file-top (convert-standard-filename "~/.todo-top") "TODO mode top priorities file.\n\nNot in TODO format, but diary compatible.\nAutomatically generated when `todo-save-top-priorities' is non-nil." :type string :group todo todo-print-function 'ps-print-buffer-with-faces "Function to print the current buffer." symbol todo-show-priorities 1 "Default number of priorities to show by \\[todo-top-priorities].\n0 means show all entries." integer todo-print-priorities 0 "Default number of priorities to print by \\[todo-print].\n0 means print all entries." todo-remove-separator t "Non-nil to remove category separators in\\[todo-top-priorities] and \\[todo-print]." boolean todo-save-top-priorities-too "Non-nil makes `todo-save' automatically save top-priorities in `todo-file-top'." todo-time-string-format "%:y-%02m-%02d %02H:%02M" "TODO mode time string format for done entries.\nFor details see the variable `time-stamp-format'." todo-entry-prefix-function 'todo-entry-timestamp-initials "Function producing text to insert at start of todo entry." todo-initials (or (getenv "INITIALS") (user-login-name)) "Initials of todo item author."] 8) #@66 Prepend timestamp and your initials to the head of a TODO entry. (defalias 'todo-entry-timestamp-initials #[nil "\303 \304\n\305R)\207" [todo-time-string-format time-stamp-format todo-initials time-stamp-string " " ": "] 4 (#$ . 4193)]) #@18 TODO categories. (defvar todo-categories nil (#$ . 4438)) #@78 Old variable for holding the TODO categories. Use `todo-categories' instead. (defvar todo-cats nil (#$ . 4502)) #@28 Previous line asked about. (defvar todo-previous-line 0 (#$ . 4620)) #@22 Previous answer got. (defvar todo-previous-answer 0 (#$ . 4695)) #@19 TODO mode keymap. (defvar todo-mode-map (byte-code "\301 \302\303\"\210\304\305\306#\210\304\307\310#\210\304\311\312#\210\304\313\314#\210\304\315\316#\210\304\317\312#\210\304\320\321#\210\304\322\323#\210\304\324\325#\210\304\326\327#\210\304\330\331#\210\304\332\333#\210\304\334\335#\210\304\336\337#\210\304\340\341#\210\304\342\343#\210\304\344\345#\210\304\346\347#\210\304\350\351#\210)\207" [map make-keymap suppress-keymap t define-key "+" todo-forward-category "-" todo-backward-category "d" todo-file-item "e" todo-edit-item "E" todo-edit-multiline "f" "i" todo-insert-item "I" todo-insert-item-here "j" todo-jump-to-category "k" todo-delete-item "l" todo-lower-item "n" todo-forward-item "p" todo-backward-item "P" todo-print "q" todo-quit "r" todo-raise-item "s" todo-save "S" todo-save-top-priorities "t" todo-top-priorities] 4) (#$ . 4766)) #@23 TODO category number. (defvar todo-category-number 0 (#$ . 5652)) (defvar todo-tmp-buffer-name " *todo tmp*") #@21 Category separator. (defvar todo-category-sep (make-string 75 45) (#$ . 5768)) #@62 Category start separator to be prepended onto category name. (defvar todo-category-beg " --- " (#$ . 5853)) #@29 Separator after a category. (defvar todo-category-end "--- End" (#$ . 5967)) #@23 Header of todo files. (defvar todo-header "-*- mode: todo; " (#$ . 6050)) #@56 Make TODO mode display the current category correctly. (defalias 'todo-category-select #[nil " 8\306\307\310\n\"P~\210eb\210\311\312\313\f \nQ!\314Q!\210\315 T\311\312P!\210\316 }\210eb*\207" [todo-category-number todo-categories name mode-line-buffer-identification todo-prefix todo-category-beg "Category: " format "%18s" search-forward-regexp "^" regexp-quote "$" line-end-position line-beginning-position begin todo-category-end] 6 (#$ . 6130)]) (defalias 'todo-cat-slct 'todo-category-select) #@43 Go forward to TODO list of next category. (defalias 'todo-forward-category #[nil "\302T G\"\303 \207" [todo-category-number todo-categories mod todo-category-select] 3 (#$ . 6643) nil]) (defalias 'todo-cmd-forw 'todo-forward-category) #@44 Go back to TODO list of previous category. (defalias 'todo-backward-category #[nil "\302S G\"\303 \207" [todo-category-number todo-categories mod todo-category-select] 3 (#$ . 6886) nil]) (defalias 'todo-cmd-back 'todo-backward-category) #@37 Select previous entry of TODO list. (defalias 'todo-backward-item #[nil "\301\302\303!P\304\305#\210\306\307!\207" [todo-prefix search-backward-regexp "^" regexp-quote nil t message ""] 4 (#$ . 7132) nil]) (defalias 'todo-cmd-prev 'todo-backward-item) #@42 Select COUNT-th next entry of TODO list. (defalias 'todo-forward-item #[(&optional count) "<\203 @\302\210\303\304\305 !P\302\306$\210\307 \210\310\311!\207" [count todo-prefix nil search-forward-regexp "^" regexp-quote goto-end beginning-of-line message ""] 5 (#$ . 7391) "P"]) (defalias 'todo-cmd-next 'todo-forward-item) #@21 Save the TODO list. (defalias 'todo-save #[nil "\212\214\301 \210*\205\f \302 \207" [todo-save-top-priorities-too save-buffer todo-save-top-priorities] 1 (#$ . 7727) nil]) (defalias 'todo-cmd-save 'todo-save) #@30 Done with TODO list for now. (defalias 'todo-quit #[nil "~\210\300 \210\301\302!\210\303 \207" [todo-save message "" bury-buffer] 2 (#$ . 7943) nil]) (defalias 'todo-cmd-done 'todo-quit) #@31 Edit current TODO list entry. (defalias 'todo-edit-item #[nil "edW\203* \302 \303!\203 \304 \202( \305\306\"\307 \210 \310\261\210\311 \210\312\313!))\207\314\315!\207" [item new todo-item-string todo-string-multiline-p todo-edit-multiline read-from-minibuffer "Edit: " todo-remove-item "\n" todo-backward-item message "" error "No TODO list entry to edit"] 3 (#$ . 8136) nil]) (defalias 'todo-cmd-edit 'todo-edit-item) #@58 Set up a buffer for editing a multiline TODO list entry. (defalias 'todo-edit-multiline #[nil "\303!\304\305\306\n! \"!\210\307\310!\210\311 \210\312 \313 })\207" [todo-edit-buffer buffer-name todo-file-do generate-new-buffer-name switch-to-buffer make-indirect-buffer file-name-nondirectory message "To exit, simply kill this buffer and return to list." todo-edit-mode todo-item-start todo-item-end] 4 (#$ . 8568) nil]) #@40 Add new category CAT to the TODO list. (defalias 'todo-add-category #[(&optional cat) "\306\307\"\310\311\312\n!!\204 \204 \f\204 \313\314\"\210 \204$ \315 !r\nq\210 \316\230\2034 \317\211\202J \320\321 \"\203A \322\211\202J \235\203U \323\211\203U \315 !\211\204( \324!\204^ \325 \210 B~\210eb\210\326\327e\330\\\307#\203w \331 \210\202} \332c\210\333u\210\334\335\"c\210\336u\210\334\337$% &$'&c\210\340\341!\203\245 \342(\343 \202\246 \342+\207" [todo-file-do prompt buf todo-categories todo-cats cat find-file-noselect t "Category: " zerop buffer-size error "Error in %s: File is non-empty but contains no category" read-from-minibuffer "" "Enter a non-empty category name: " string-match "\\`\\s-+\\'" "Enter a category name that is not only white space: " "Enter a non-existing category name: " file-exists-p todo-mode search-forward "-*- mode: todo; " 16 kill-line "-*- mode: todo; \n" -1 format "todo-categories: %S; -*-" 1 "%s%s%s\n%s\n%s %s\n" called-interactively-p interactive 0 todo-show todo-prefix todo-category-beg todo-category-end todo-category-sep todo-category-number] 8 (#$ . 8997) nil]) #@58 Insert NEW-ITEM in TODO list as a new entry in CATEGORY. (defalias 'todo-add-item-non-interactively #[(new-item category) "\212\306 \210)\212\307\230\203 \n8\n\235\211\203 \nGGZ\202# \310!)\306 \210\311\312\313ed\"T ZV\203d \\\314\245\211 W\205O \315!\211\203[ \202` T*\2023 \\\314\245eb\210Sy\210*\316\261\210\317 \210\320 \210\321\307!)\207" [category todo-category-number todo-categories cat-exists todo-previous-line bottom todo-show "" todo-add-category 0 1 count-lines 2 todo-more-important-p "\n" todo-backward-item todo-save message top todo-insert-threshold current answer new-item] 5 (#$ . 10138)]) #@114 Insert new TODO list entry. With a prefix argument ARG solicit the category, otherwise use the current category. (defalias 'todo-insert-item #[(arg) "\212\306\307!\204\n \310 \210\311\312\313 \205 \"Q\f8\203% \314 \202&