%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/org/ |
Current File : //usr/local/share/emacs/27.2/lisp/org/org-habit.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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\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\314\360\316\317\361DD\362\312\305\322\363\364\365\366\367&\210\370\371\372\373\312\305\312\374&\210\370\375\376\377\312\305\312\374&\210\370\201@ \201A \201B \312\305\312\374&\210\370\201C \201D \201B \312\305\312\374&\210\370\201E \201F \201G \312\305\312\374&\210\370\201H \201I \201G \312\305\312\374&\210\370\201J \201K \201L \312\305\312\374&\210\370\201M \201N \201L \312\305\312\374&\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." org-habit-scheduled-past-days #[0 "\300\207" [nil] 1] "Value to use instead of `org-scheduled-past-days', for habits only.\n\nIf nil, `org-scheduled-past-days' is used.\n\nSetting this to say 10000 is a way to make habits always show up\nas a reminder, even if you set `org-scheduled-past-days' to a\nsmall value because you regard scheduled items as a way of\n\"turning on\" TODO items on a particular date, rather than as a\nmeans of creating calendar-based reminders." (choice integer (const nil)) :package-version (Org . "9.3") :safe #[257 "\211\250\206 \211?\207" [] 2 "\n\n(fn V)"] 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")))] 12) #@11 (fn TS) (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 (#$ . 4739)]) #@58 Is the task at POM or point a habit? (fn &optional POM) (defalias 'org-is-habit-p #[256 "\300\206 `\301\"\302\230\207" [org-entry-get "STYLE" "habit"] 4 (#$ . 5072)]) #@492 Parse the TODO surrounding point for its habit-related data. Returns a list with the following elements: 0: Scheduled date for the habit (may be in the past) 1: ".+"-style repeater for the schedule, in days 2: Optional deadline (nil if not present) 3: If deadline, the repeater for the deadline, otherwise nil 4: A list of all the past dates this todo was mark closed 5: Repeater type as a string This list represents a "habit" for the rest of this module. (fn &optional POM) (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 (#$ . 5249)]) #@14 (fn HABIT) (defalias 'org-habit-scheduled #[257 "\211@\207" [] 2 (#$ . 7559)]) (put 'org-habit-scheduled 'byte-optimizer 'byte-compile-inline-expand) #@14 (fn HABIT) (defalias 'org-habit-scheduled-repeat #[257 "\211A@\207" [] 2 (#$ . 7717)]) (put 'org-habit-scheduled-repeat 'byte-optimizer 'byte-compile-inline-expand) #@14 (fn HABIT) (defalias 'org-habit-deadline #[257 "\3008\211\206\"