mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
org-clock: Fix `org-clock-in-last' with universal argument
* 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 <pmlists@free.fr> <http://permalink.gmane.org/gmane.emacs.orgmode/94331>
This commit is contained in:
parent
37fc8667e0
commit
a752684bf0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user