%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/org/ |
Current File : //usr/local/share/emacs/27.2/lisp/org/org-timer.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!\207" [require cl-lib org-clock] 2) #@28 t=0 for the running timer. (defvar org-timer-start-time nil (#$ . 478)) #@33 Time when the timer was paused. (defvar org-timer-pause-time nil (#$ . 556)) #@154 Current countdown timer. This is a timer object if there is an active countdown timer, `paused' if there is a paused countdown timer, and nil otherwise. (defvar org-timer-countdown-timer nil (#$ . 640)) #@61 Title for notification displayed when a countdown finishes. (defvar org-timer-countdown-timer-title nil (#$ . 849)) #@48 Regular expression used to match timer stamps. (defconst org-timer-re "\\([-+]?[0-9]+\\):\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)" (#$ . 971)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\315\316\317\320\310\311&\210\300\321\302\303\322DD\323\306\307\310\324&\207" [custom-declare-variable org-timer-format funcall function #[0 "\300\207" [#1="%s "] 1 #1#] "The format to insert the time of the timer.\nThis format must contain one instance of \"%s\" which will be replaced by\nthe value of the timer." :group org-time :type string org-timer-default-timer #[0 "\300\207" [#2="0"] 1 #2#] "The default timer when a timer is set, in minutes or hh:mm:ss format.\nWhen 0, the user is prompted for a value." :version "26.1" :package-version (Org . "8.3") org-timer-display #[0 "\300\207" [mode-line] 1] "Define where running timer is displayed, if at all.\nWhen a timer is running, Org can display it in the mode line\nand/or frame title. Allowed values are:\n\nboth displays in both mode line and frame title\nmode-line displays only in mode line (default)\nframe-title displays only in frame title\nnil current timer is not displayed" (choice (const :tag "Mode line" mode-line) (const :tag "Frame title" frame-title) (const :tag "Both" both) (const :tag "None" nil))] 12) #@43 Hook run after relative timer is started. (defvar org-timer-start-hook nil (#$ . 2316)) #@57 Hook run before relative or countdown timer is stopped. (defvar org-timer-stop-hook nil (#$ . 2410)) #@56 Hook run before relative or countdown timer is paused. (defvar org-timer-pause-hook nil (#$ . 2517)) #@58 Hook run after relative or countdown timer is continued. (defvar org-timer-continue-hook nil (#$ . 2624)) #@40 Hook run after countdown timer is set. (defvar org-timer-set-hook nil (#$ . 2736)) #@46 Hook run after countdown timer reaches zero. (defvar org-timer-done-hook nil (#$ . 2825)) #@539 Set the starting time for the relative timer to now. When called with prefix argument OFFSET, prompt the user for an offset time, with the default taken from a timer stamp at point, if any. If OFFSET is a string or an integer, it is directly taken to be the offset without user interaction. When called with a double prefix arg, all timer strings in the active region will be shifted by a specific amount. You will be prompted for the amount, with the default to make the first timer string in the region 0:00:00. (fn &optional OFFSET) (defalias 'org-timer-start #[256 "\211\304\232\203\n \305\306!\207\203 \307\310!\207\311\211\211\204 \312 \202c \250\203* \262\202_ ;\2037 \313!\262\202_ \314\n!\203C \315\316!\202D \317\262\320\321\322\"!\262\323\324\"\204X \262\313\325!!\262\326!\311\327\330!\210\331\332\333\334 \"\335\206v \316!#\210\336\337!\207" [org-timer-countdown-timer org-timer-start-time org-timer-re org-timer-pause-time (16) call-interactively org-timer-change-times-in-region user-error "Countdown timer is running. Cancel first" nil current-time org-timer-hms-to-secs org-in-regexp match-string 0 "0:00:00" read-string format "Restart timer with offset [%s]: " string-match "\\S-" org-timer-fix-incomplete org-time-since org-timer-set-mode-line on message "Timer start time set to %s, current value is %s" format-time-string "%T" org-timer-secs-to-hms run-hooks org-timer-start-hook] 9 (#$ . 2922) "P"]) #@113 Pause or continue the relative or countdown timer. With prefix arg STOP, stop it entirely. (fn &optional STOP) (defalias 'org-timer-pause-or-continue #[256 "\211\203 \304 \207\204 \305\306!\207 \203D \307!\307 !\n\203. Z\310\"\311\312\"\210\2024 \313Z!\312\314\315!\210\316\317!\210\320\321\322 \"\207\n\203N \323\n!\210\324\316\325!\210\326 \314\324!\210\320\327\322 \"\207" [org-timer-start-time org-timer-pause-time org-timer-countdown-timer org-timer-countdown-timer-title org-timer-stop error "No timer is running" float-time org-timer--run-countdown-timer org-time-add nil org-time-since org-timer-set-mode-line on run-hooks org-timer-continue-hook message "Timer continues at %s" org-timer-value-string cancel-timer paused org-timer-pause-hook current-time "Timer paused at %s"] 7 (#$ . 4379) "P"]) #@39 Stop the relative or countdown timer. (defalias 'org-timer-stop #[0 "\204 \303\304!\210\305 !\203 \306 !\210\307\310!\210\311\211\311\312\313!\210\314\315!\207" [org-timer-start-time org-timer-countdown-timer org-timer-pause-time user-error "No timer running" timerp cancel-timer run-hooks org-timer-stop-hook nil org-timer-set-mode-line off message "Timer stopped"] 3 (#$ . 5209) nil]) #@531 Insert a H:MM:SS string from the timer into the buffer. The first time this command is used, the timer is started. When used with a `\[universal-argument]' prefix, force restarting the timer. When used with a `\[universal-argument] \[universal-argument]' prefix, change all the timer strings in the region by a fixed amount. This can be used to re-calibrate a timer that was not started at the correct moment. If NO-INSERT is non-nil, return the string instead of inserting it in the buffer. (fn &optional RESTART NO-INSERT) (defalias 'org-timer #[512 "\301\232\203\n \302!\207\303\232\204 \204 \302 \210\211\203 \304 \207\304 c\207" [org-timer-start-time (16) org-timer-start (4) org-timer-value-string] 4 (#$ . 5609) "P"]) #@30 Return current timer string. (defalias 'org-timer-value-string #[0 "\304\305\306 !\306\n!Z\307\310\203 [\202 !!\262!\"\207" [org-timer-format org-timer-pause-time org-timer-start-time org-timer-countdown-timer format org-timer-secs-to-hms float-time abs floor] 7 (#$ . 6352)]) #@67 Change all h:mm:ss time in region by a DELTA. (fn BEG END DELTA) (defalias 'org-timer-change-times-in-region #[771 "\300\301\302\303\"\2041 \212b\210\304\305#\2030 \306\307!\262\310!\311\232\203+ \312\313\"\262\2020 \314P\262)\315\316!!\262\307U\203B \317\320!\210\212b\210\321\305#\205x `\262\322\323 \324\307\325\326\327!\330\"\331$\216\332\315\306\307!!\\!)\262\305\211#\210\211b\210\202F )\207" ["[-+]?[0-9]+:[0-9]\\{2\\}:[0-9]\\{2\\}" nil string-match "\\S-" re-search-forward t match-string 0 string-to-char 45 substring 1 "-" org-timer-hms-to-secs org-timer-fix-incomplete error "No change" re-search-backward replace-match match-data make-byte-code "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 org-timer-secs-to-hms] 13 (#$ . 6642) "r\nsEnter time difference like \"-1:08:26\". Default is first time to zero: "]) #@82 Insert a description-type item with the current timer value. (fn &optional ARG) (defalias 'org-timer-item #[256 "\301 `\203<