commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\312\313&\210\314\315\316\317\320DD\321\312\305\322\323&\210\314\324\316\317\325DD\326\312\305\322\323&\210\314\327\316\317\330DD\331\312\305\322\323&\210\314\332\316\317\333DD\334\312\305\322\335&\210\314\336\316\317\337DD\340\312\305\322\335&\210\314\341\316\317\342DD\343\312\305\322\335&\210\314\344\316\317\345DD\346\312\305\347\350\322\351& \210\314\352\316\317\353DD\354\312\305\347\350\322\351& \210\314\355\316\317\356DD\357\312\305\322\335&\210\360\361\362\363\312\305\312\364&\210\360\365\366\367\312\305\312\364&\210\360\370\371\372\312\305\312\364&\210\360\373\374\372\312\305\312\364&\210\360\375\376\377\312\305\312\364&\210\360\201@ \201A \377\312\305\312\364&\210\360\201B \201C \201D \312\305\312\364&\210\360\201E \201F \201D \312\305\312\364&\207" [require cl-lib org org-agenda custom-declare-group org-habit nil "Options concerning habit tracking in Org mode." :tag "Org Habit" :group org-progress custom-declare-variable org-habit-graph-column funcall function #[0 "\300\207" [40] 1] "The absolute column at which to insert habit consistency graphs.\nNote that consistency graphs will overwrite anything else in the buffer." :type integer org-habit-preceding-days #[0 "\300\207" [21] 1] "Number of days before today to appear in consistency graphs." org-habit-following-days #[0 "\300\207" [7] 1] "Number of days after today to appear in consistency graphs." org-habit-show-habits #[0 "\300\207" [t] 1] "If non-nil, show habits in agenda buffers." boolean org-habit-show-habits-only-for-today #[0 "\300\207" [t] 1] "If non-nil, only show habits on today's agenda, and not for future days.\nNote that even when shown for future days, the graph is always\nrelative to the current effective date." org-habit-show-all-today #[0 "\300\207" [nil] 1] "If non-nil, will show the consistency graph of all habits on\ntoday's agenda, even if they are not scheduled." org-habit-today-glyph #[0 "\300\207" [33] 1] "Glyph character used to identify today." :version "24.1" character org-habit-completed-glyph #[0 "\300\207" [42] 1] "Glyph character used to show completed days on which a task was done." org-habit-show-done-always-green #[0 "\300\207" [nil] 1] "Non-nil means DONE days will always be green in the consistency graph.\nIt will be green even if it was done after the deadline." custom-declare-face org-habit-clear-face ((((background light)) (:background "#8270f9")) (((background dark)) (:background "blue"))) "Face for days on which a task shouldn't be done yet." org-faces org-habit-clear-future-face ((((background light)) (:background "#d6e4fc")) (((background dark)) (:background "midnightblue"))) "Face for future days on which a task shouldn't be done yet." org-habit-ready-face ((((background light)) (:background "#4df946")) (((background dark)) (:background "forestgreen"))) "Face for days on which a task should start to be done." org-habit-ready-future-face ((((background light)) (:background "#acfca9")) (((background dark)) (:background "darkgreen"))) org-habit-alert-face ((((background light)) (:background "#f5f946")) (((background dark)) (:background "gold"))) "Face for days on which a task is due." org-habit-alert-future-face ((((background light)) (:background "#fafca9")) (((background dark)) (:background "darkgoldenrod"))) org-habit-overdue-face ((((background light)) (:background "#f9372d")) (((background dark)) (:background "firebrick"))) "Face for days on which a task is overdue." org-habit-overdue-future-face ((((background light)) (:background "#fc9590")) (((background dark)) (:background "darkred")))] 10) |
|
16 |
#@11 |
|
17 |
|
|
18 |
(fn TS) |
|
19 |
(defalias 'org-habit-duration-to-days #[257 "\300\301\"\203 \302\303\304\305\"!\306\304\307\"\310\"A_!\207\311\312\"\207" [string-match "\\([0-9]+\\)\\([dwmy]\\)" floor string-to-number match-string 1 assoc 2 (("d" . 1) ("w" . 7) ("m" . 30.4) ("y" . 365.25)) error "Invalid duration string: %s"] 7 (#$ . 4066)]) |
|
20 |
#@58 Is the task at POM or point a habit? |
|
21 |
|
|
22 |
(fn &optional POM) |
|
23 |
(defalias 'org-is-habit-p #[256 "\300\206 `\301\"\302\230\207" [org-entry-get "STYLE" "habit"] 4 (#$ . 4399)]) |
|
24 |
#@492 Parse the TODO surrounding point for its habit-related data. |
|
25 |
Returns a list with the following elements: |
|
26 |
|
|
27 |
0: Scheduled date for the habit (may be in the past) |
|
28 |
1: ".+"-style repeater for the schedule, in days |
|
29 |
2: Optional deadline (nil if not present) |
|
30 |
3: If deadline, the repeater for the deadline, otherwise nil |
|
31 |
4: A list of all the past dates this todo was mark closed |
|
32 |
5: Repeater type as a string |
|
33 |
|
|
34 |
This list represents a "habit" for the rest of this module. |
|
35 |
|
|
36 |
(fn &optional POM) |
|
37 |
(defalias 'org-habit-parse-todo #[256 "\212\211\203 \211b\210\306`!\204 \307\310!\210\311`!\312\313`\314\"!\212\315 \210`)\316\317 8\320\211\2035 \321\322G$\210\202= \323\322G\320$\210\266\202\320\211\211\211\211\203S \324 !\262 \202Y \325\326\"\210\204d \325\327\"\210\330!\262\331\332 \"\210\333\322 \"\262\322V\204\203 \325\334\"\210\331\335 \"\203\252 \330\333\336\n\"!\262X\203\242 \325\337\n#\210Z\\\262\340\341!\210 \n\\\211\203\272 \342\202\273 \343\203\304 \202\305 `\322\344\345\346\f!
\3475\236A\211\204\331 \350\202\367 \351\352\353!\354
B\3556B\356\357\360
B\3616B\362BBBBBB\"P\262$\204\fb\210W\203*\341#\203*\324\363\333\336!\206\333\364!!!B\262T\262\202\266\257\266\211)\207" [org-rm-props org-habit-preceding-days org-habit-following-days org-log-states-order-reversed org-done-keywords org-ts-regexp-inactive org-is-habit-p cl--assertion-failed (org-is-habit-p (point)) org-get-scheduled-time org-get-repeat org-entry-get "SCHEDULED" outline-next-heading 4 org-heading-components nil remove-text-properties 0 set-text-properties time-to-days error "Habit %s has no scheduled date" "Habit `%s' has no scheduled repeat period or has an incorrect one" org-habit-duration-to-days string-match "[\\.+]?\\+" match-string-no-properties "Habit %s scheduled repeat period is less than 1d" "/\\([0-9]+[dwmy]\\)" 1 "Habit %s deadline repeat period is less than or equal to scheduled (%s)" org-back-to-heading t re-search-forward re-search-backward format "^[ ]*-[ ]+\\(?:State \"%s\".*%s%s\\)" regexp-opt done "" "\\|" org-replace-escapes regexp-quote "%d" "%D" ("%s" . "\"\\S-+\"") ("%S" . "\"\\S-+\"") "%t" "%T" (("%u" . ".*?") ("%U" . ".*?")) org-time-string-to-time 2 org-log-note-headings org-ts-regexp] 30 (#$ . 4576)]) |
|
38 |
#@14 |
|
39 |
|
|
40 |
(fn HABIT) |
|
41 |
(defalias 'org-habit-scheduled #[257 "\211@\207" [] 2 (#$ . 6886)]) |
|
42 |
(put 'org-habit-scheduled 'byte-optimizer 'byte-compile-inline-expand) |
|
43 |
#@14 |
|
44 |
|
|
45 |
(fn HABIT) |
|
46 |
(defalias 'org-habit-scheduled-repeat #[257 "\211A@\207" [] 2 (#$ . 7044)]) |
|
47 |
(put 'org-habit-scheduled-repeat 'byte-optimizer 'byte-compile-inline-expand) |
|
48 |
#@14 |
|
49 |
|
|
50 |
(fn HABIT) |
|
51 |
(defalias 'org-habit-deadline #[257 "\3008\211\206\" |