diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-08-14 11:17:44 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-08-14 11:17:44 +0200 |
commit | 748bfee34a73a2bc869106f248bfb19853cb7961 (patch) | |
tree | ddf70de39fd7a6c657bb98a2c1fa9521f7876e41 | |
parent | 548b07741be0a218a0c0b6f7e64965ec0bb296ec (diff) | |
download | org-mode-748bfee34a73a2bc869106f248bfb19853cb7961.tar.gz |
org-clock: Remove interactive from `org-clock-select-task'
* lisp/org-clock.el (org-clock-select-task): Remove `interactive'.
This function is not meant to be called interactively. Use
`org-clock-goto' with a prefix argument instead.
-rw-r--r-- | lisp/org-clock.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 9d0ef08..6b967c6 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -591,8 +591,9 @@ cannot be translated." "Hook called in task selection just before prompting the user.") (defun org-clock-select-task (&optional prompt) - "Select a task that was recently associated with clocking." - (interactive) + "Select a task that was recently associated with clocking. +Return marker position of the selected task. Raise an error if +there is no recent clock to choose from." (let (och chl sel-list rpl (i 0) s) ;; Remove successive dups from the clock history to consider (dolist (c org-clock-history) |