Переглянути джерело

Revert "Fix clocking to allow again selection of a task in the history"

This reverts commit c59c2b791d52cbdaacf564e49fa92cf40a60b3f7.
Carsten Dominik 15 роки тому
батько
коміт
661a8855d3
2 змінених файлів з 2 додано та 10 видалено
  1. 0 3
      lisp/ChangeLog
  2. 2 7
      lisp/org-clock.el

+ 0 - 3
lisp/ChangeLog

@@ -1,8 +1,5 @@
 2009-11-27  Carsten Dominik  <carsten.dominik@gmail.com>
 
-	* org-clock.el (org-clock-in): Fix current task detection when a
-	task is selected from the clock history.
-
 	* org-latex.el (org-export-latex-class-options): New variable.
 	(org-export-latex-set-initial-vars): Use the class options.
 

+ 2 - 7
lisp/org-clock.el

@@ -854,13 +854,8 @@ the clocking selection, associated with the letter `d'."
 	(when (save-excursion
 		(org-back-to-heading t)
 		(and (equal (marker-buffer org-clock-hd-marker)
-			    (if selected-task
-				(marker-buffer selected-task)
-			      (current-buffer)))
-		     (= (marker-position org-clock-hd-marker)
-			(if selected-task
-			    (marker-position selected-task)
-			  (point)))))
+			    (current-buffer))
+		     (= (marker-position org-clock-hd-marker) (point))))
 	  (message "Clock continues in \"%s\"" org-clock-heading)
 	  (throw 'abort nil))
 	(move-marker org-clock-interrupted-task