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

This reverts commit c41a6f5a33.
This commit is contained in:
Bastien Guerry 2012-01-19 16:20:07 +01:00
parent a7c6f70ab1
commit 9b9f2d0d8d
1 changed files with 8 additions and 9 deletions

View File

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