浏览代码

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...
Carsten Dominik 15 年之前
父节点
当前提交
36b8aaac5a
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 5 0
      lisp/ChangeLog
  2. 2 1
      lisp/org.el

+ 5 - 0
lisp/ChangeLog

@@ -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

+ 2 - 1
lisp/org.el

@@ -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