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!\207" [require cl-lib org-clock] 2) |
|
16 |
#@28 t=0 for the running timer. |
|
17 |
(defvar org-timer-start-time nil (#$ . 478)) |
|
18 |
#@33 Time when the timer was paused. |
|
19 |
(defvar org-timer-pause-time nil (#$ . 556)) |
|
20 |
#@154 Current countdown timer. |
|
21 |
This is a timer object if there is an active countdown timer, |
|
22 |
`paused' if there is a paused countdown timer, and nil |
|
23 |
otherwise. |
|
24 |
(defvar org-timer-countdown-timer nil (#$ . 640)) |
|
25 |
#@61 Title for notification displayed when a countdown finishes. |
|
26 |
(defvar org-timer-countdown-timer-title nil (#$ . 849)) |
|
27 |
#@48 Regular expression used to match timer stamps. |
|
28 |
(defconst org-timer-re "\\([-+]?[0-9]+\\):\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)" (#$ . 971)) |
|
29 |
(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) |
|
30 |
#@43 Hook run after relative timer is started. |
|
31 |
(defvar org-timer-start-hook nil (#$ . 2316)) |
|
32 |
#@57 Hook run before relative or countdown timer is stopped. |
|
33 |
(defvar org-timer-stop-hook nil (#$ . 2410)) |
|
34 |
#@56 Hook run before relative or countdown timer is paused. |
|
35 |
(defvar org-timer-pause-hook nil (#$ . 2517)) |
|
36 |
#@58 Hook run after relative or countdown timer is continued. |
|
37 |
(defvar org-timer-continue-hook nil (#$ . 2624)) |
|
38 |
#@40 Hook run after countdown timer is set. |
|
39 |
(defvar org-timer-set-hook nil (#$ . 2736)) |
|
40 |
#@46 Hook run after countdown timer reaches zero. |
|
41 |
(defvar org-timer-done-hook nil (#$ . 2825)) |
|
42 |
#@539 Set the starting time for the relative timer to now. |
|
43 |
When called with prefix argument OFFSET, prompt the user for an offset time, |
|
44 |
with the default taken from a timer stamp at point, if any. |
|
45 |
If OFFSET is a string or an integer, it is directly taken to be the offset |
|
46 |
without user interaction. |
|
47 |
When called with a double prefix arg, all timer strings in the active |
|
48 |
region will be shifted by a specific amount. You will be prompted for |
|
49 |
the amount, with the default to make the first timer string in |
|
50 |
the region 0:00:00. |
|
51 |
|
|
52 |
(fn &optional OFFSET) |
|
53 |
(defalias 'org-timer-start #[256 "\211\304\232\203\n \305\306!\207\203 \307\310!\207\311\211\211\204 \312 \202h \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\327\312 !Z!\311\330\331!\210\332\333\334\335 \"\336\206{ \316!#\210\337\340!\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 seconds-to-time float-time 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"]) |
|
54 |
#@113 Pause or continue the relative or countdown timer. |
|
55 |
With prefix arg STOP, stop it entirely. |
|
56 |
|
|
57 |
(fn &optional STOP) |
|
58 |
(defalias 'org-timer-pause-or-continue #[256 "\211\203 \304 \207\204 \305\306!\207 \203L \307!\307 !\n\2031 Z\310\"\311\312 \313!\"\210\202< |