Fix refile bug which would always refile to the clock

This bug resulted from a recent patch which made a prefix arg of 2 to
mean refile to the clock.  However, I forgot to actually test the
value of the prefix arg...
This commit is contained in:
Carsten Dominik 2009-11-05 07:20:03 +01:00
parent 49da78775f
commit 36b8aaac5a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-11-05 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-refile): Refile to clock only if the prefix arg is
2.
2009-11-04 Carsten Dominik <carsten.dominik@gmail.com>
* org-remember.el (org-remember-apply-template): Make sure the

View File

@ -8955,7 +8955,8 @@ See also `org-refile-use-outline-path' and `org-completion-use-ido'"
(if (equal goto '(16))
(org-refile-goto-last-stored)
(when (or
(and org-clock-hd-marker (marker-buffer org-clock-hd-marker)
(and (equal goto 2)
org-clock-hd-marker (marker-buffer org-clock-hd-marker)
(prog1
(setq it (list (or org-clock-heading "running clock")
(buffer-file-name