diff options
author | Bastien <bzg@gnu.org> | 2018-04-28 12:23:26 +0200 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2018-04-28 12:23:26 +0200 |
commit | 1933d9ef26aaa045d1ba62cb58999286c94e4045 (patch) | |
tree | 98d78e20656c64eb9e568265f36c5b875392b6a5 | |
parent | 65d70388abe7d2fd7bc1186e4e5997f92610186e (diff) | |
download | org-mode-1933d9ef26aaa045d1ba62cb58999286c94e4045.tar.gz |
org-clock.el (org-clock-jump-to-current-clock): Tiny enhancements
* lisp/org-clock.el (org-clock-jump-to-current-clock): Add a
docstring, do not use as a command and throw a user error
instead of an error when no clock is active.
-rw-r--r-- | lisp/org-clock.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index e05e0cf..eb5f923 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -949,12 +949,12 @@ If necessary, clock-out of the currently active clock." resolve-to)))))))) (defun org-clock-jump-to-current-clock (&optional effective-clock) - (interactive) + "When an Org clock is running, jump to it." (let ((drawer (org-clock-into-drawer)) (clock (or effective-clock (cons org-clock-marker org-clock-start-time)))) (unless (marker-buffer (car clock)) - (error "No clock is currently running")) + (user-error "No Org clock is currently running")) (org-with-clock clock (org-clock-goto)) (with-current-buffer (marker-buffer (car clock)) (goto-char (car clock)) |