diff options
Diffstat (limited to 'lisp/org/org-clock.el')
| -rw-r--r-- | lisp/org/org-clock.el | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 9ff0ff3e6de..32cfa9ae913 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | (declare-function calendar-absolute-from-iso "cal-iso" (&optional date)) | 35 | (declare-function calendar-absolute-from-iso "cal-iso" (&optional date)) |
| 36 | (declare-function notifications-notify "notifications" (&rest params)) | 36 | (declare-function notifications-notify "notifications" (&rest params)) |
| 37 | (declare-function org-pop-to-buffer-same-window "org-compat" (&optional buffer-or-name norecord label)) | 37 | (declare-function org-pop-to-buffer-same-window "org-compat" (&optional buffer-or-name norecord label)) |
| 38 | (declare-function org-refresh-properties "org" (dprop tprop)) | ||
| 38 | (defvar org-time-stamp-formats) | 39 | (defvar org-time-stamp-formats) |
| 39 | (defvar org-ts-what) | 40 | (defvar org-ts-what) |
| 40 | (defvar org-frame-title-format-backup frame-title-format) | 41 | (defvar org-frame-title-format-backup frame-title-format) |
| @@ -159,12 +160,15 @@ the clock can be resumed from that point." | |||
| 159 | The clock is resumed when Emacs restarts. | 160 | The clock is resumed when Emacs restarts. |
| 160 | When this is t, both the running clock, and the entire clock | 161 | When this is t, both the running clock, and the entire clock |
| 161 | history are saved. When this is the symbol `clock', only the | 162 | history are saved. When this is the symbol `clock', only the |
| 162 | running clock is saved. | 163 | running clock is saved. When this is the symbol `history', only |
| 164 | the clock history is saved. | ||
| 163 | 165 | ||
| 164 | When Emacs restarts with saved clock information, the file containing the | 166 | When Emacs restarts with saved clock information, the file containing |
| 165 | running clock as well as all files mentioned in the clock history will | 167 | the running clock as well as all files mentioned in the clock history |
| 166 | be visited. | 168 | will be visited. |
| 167 | All this depends on running `org-clock-persistence-insinuate' in .emacs" | 169 | |
| 170 | All this depends on running `org-clock-persistence-insinuate' in your | ||
| 171 | Emacs initialization file." | ||
| 168 | :group 'org-clock | 172 | :group 'org-clock |
| 169 | :type '(choice | 173 | :type '(choice |
| 170 | (const :tag "Just the running clock" clock) | 174 | (const :tag "Just the running clock" clock) |
| @@ -201,7 +205,7 @@ file name play this sound file. If not possible, fall back to beep" | |||
| 201 | (const :tag "Standard beep" t) | 205 | (const :tag "Standard beep" t) |
| 202 | (file :tag "Play sound file"))) | 206 | (file :tag "Play sound file"))) |
| 203 | 207 | ||
| 204 | (define-obsolete-variable-alias 'org-clock-modeline-total | 208 | (org-define-obsolete-variable-alias 'org-clock-modeline-total |
| 205 | 'org-clock-mode-line-total "24.3") | 209 | 'org-clock-mode-line-total "24.3") |
| 206 | 210 | ||
| 207 | (defcustom org-clock-mode-line-total 'auto | 211 | (defcustom org-clock-mode-line-total 'auto |
| @@ -1078,6 +1082,7 @@ time as the start time \(see `org-clock-continuously' to | |||
| 1078 | make this the default behavior.)" | 1082 | make this the default behavior.)" |
| 1079 | (interactive "P") | 1083 | (interactive "P") |
| 1080 | (setq org-clock-notification-was-shown nil) | 1084 | (setq org-clock-notification-was-shown nil) |
| 1085 | (org-refresh-properties org-effort-property 'org-effort) | ||
| 1081 | (catch 'abort | 1086 | (catch 'abort |
| 1082 | (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) | 1087 | (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) |
| 1083 | (org-clocking-p))) | 1088 | (org-clocking-p))) |
| @@ -1199,7 +1204,7 @@ make this the default behavior.)" | |||
| 1199 | (setq org-clock-start-time | 1204 | (setq org-clock-start-time |
| 1200 | (apply 'encode-time | 1205 | (apply 'encode-time |
| 1201 | (org-parse-time-string (match-string 1)))) | 1206 | (org-parse-time-string (match-string 1)))) |
| 1202 | (setq org-clock-effort (org-get-effort)) | 1207 | (setq org-clock-effort (get-text-property (point) 'org-effort)) |
| 1203 | (setq org-clock-total-time (org-clock-sum-current-item | 1208 | (setq org-clock-total-time (org-clock-sum-current-item |
| 1204 | (org-clock-get-sum-start)))) | 1209 | (org-clock-get-sum-start)))) |
| 1205 | ((eq org-clock-in-resume 'auto-restart) | 1210 | ((eq org-clock-in-resume 'auto-restart) |
| @@ -1219,7 +1224,7 @@ make this the default behavior.)" | |||
| 1219 | (beginning-of-line 1) | 1224 | (beginning-of-line 1) |
| 1220 | (org-indent-line-to (- (org-get-indentation) 2))) | 1225 | (org-indent-line-to (- (org-get-indentation) 2))) |
| 1221 | (insert org-clock-string " ") | 1226 | (insert org-clock-string " ") |
| 1222 | (setq org-clock-effort (org-get-effort)) | 1227 | (setq org-clock-effort (get-text-property (point) 'org-effort)) |
| 1223 | (setq org-clock-total-time (org-clock-sum-current-item | 1228 | (setq org-clock-total-time (org-clock-sum-current-item |
| 1224 | (org-clock-get-sum-start))) | 1229 | (org-clock-get-sum-start))) |
| 1225 | (setq org-clock-start-time | 1230 | (setq org-clock-start-time |