فهرست منبع

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

This reverts commit c41a6f5a333441ba68029c6f8792c9a9938fc57c.
Bastien Guerry 13 سال پیش
والد
کامیت
9b9f2d0d8d
1فایلهای تغییر یافته به همراه8 افزوده شده و 9 حذف شده
  1. 8 9
      lisp/org-agenda.el

+ 8 - 9
lisp/org-agenda.el

@@ -7879,15 +7879,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."