فهرست منبع

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

This reverts commit fc1f01c54e5f9018374c15f11cf7b25c37996dd6.
Carsten Dominik 14 سال پیش
والد
کامیت
21e99fedc4
1فایلهای تغییر یافته به همراه8 افزوده شده و 9 حذف شده
  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."