Explorar el Código

Revert "Honour existing restrictions when clocking in from the agenda"

This reverts commit fc1f01c54e5f9018374c15f11cf7b25c37996dd6.
Carsten Dominik hace 13 años
padre
commit
21e99fedc4
Se han modificado 1 ficheros con 8 adiciones y 9 borrados
  1. 8 9
      lisp/org-agenda.el

+ 8 - 9
lisp/org-agenda.el

@@ -7797,15 +7797,14 @@ The cursor may be at a date in the calendar, or in the Org agenda."
 	   newhead)
       (org-with-remote-undo (marker-buffer marker)
         (with-current-buffer (marker-buffer marker)
-	  (save-restriction
-	    (widen)
-	    (goto-char pos)
-	    (org-show-context 'agenda)
-	    (org-show-entry)
-	    (org-cycle-hide-drawers 'children)
-	    (org-clock-in arg)
-	    (setq newhead (org-get-heading)))
-	  (org-agenda-change-all-lines newhead hdmarker))))))
+	  (widen)
+	  (goto-char pos)
+	  (org-show-context 'agenda)
+	  (org-show-entry)
+	  (org-cycle-hide-drawers 'children)
+	  (org-clock-in arg)
+	  (setq newhead (org-get-heading)))
+	(org-agenda-change-all-lines newhead hdmarker)))))
 
 (defun org-agenda-clock-out ()
   "Stop the currently running clock."