From a752684bf0368ddea1f6480157e770c0dd57b7a5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 31 Jan 2015 12:46:50 +0100 Subject: [PATCH] org-clock: Fix `org-clock-in-last' with universal argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/org-clock.el (org-clock-in-last): `org-clock-in' expects an universal argument, not the return value of `org-clock-select-task'. Reported-by: Peter Münster --- lisp/org-clock.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index c772dd988..07f02b02a 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1349,8 +1349,7 @@ With three universal prefix arguments, interactively prompt for a todo state to switch to, overriding the existing value `org-clock-in-switch-to-state'." (interactive "P") - (if (equal arg '(4)) - (org-clock-in (org-clock-select-task)) + (if (equal arg '(4)) (org-clock-in arg) (let ((start-time (if (or org-clock-continuously (equal arg '(16))) (or org-clock-out-time (org-current-time org-clock-rounding-minutes t)) -- 2.11.4.GIT